@charset "UTF-8";
:root {
  --accent: var(--red);
  --accent-hov: var(--red80);
  --black: #1d1d1b;
  --card-shadow: 0 2px 24px rgba(20, 20, 20, 0.08);
  --error: var(--red20);
  --gray: #888888;
  --light-gray: #f2f2f2;
  --light-shadow: 0 4px 16px rgba(20, 20, 20, 0.06);
  --medium-gray: #dfdfdf;
  --red: #e30613;
  --red20: #f9cdd0;
  --red80: #b5030d;
  --white: #ffffff;
}

@font-face {
  font-weight: 400;
  font-family: "Ubuntu";
  font-style: normal;

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

  font-display: swap;
  src: url("../fonts/ubuntu-medium.woff2") format("woff2");
}
html {
  box-sizing: border-box;
}

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

body {
  min-width: 360px;

  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  font-family: "Ubuntu", Arial, Helvetica, sans-serif;
  color: var(--black);

  background-color: var(--white);
}

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

a {
  color: var(--accent);

  -webkit-tap-highlight-color: transparent;
}

b {
  font-weight: 500;
}

input[type=number] {
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  margin: 0;

  -webkit-appearance: none;
}

.visually-hidden:not(:focus):not(:active),
input[type=radio].visually-hidden,
input[type=checkbox].visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  white-space: nowrap;

  border: 0;

  clip: rect(0 0 0 0);
          clip-path: inset(100%);

  -webkit-clip-path: inset(100%);
}

.container {
  width: 100%;
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}
@media (min-width: 768px) {
  .container {
    max-width: 690px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 940px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1110px;
  }
}

.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

.site-container {
  overflow: hidden;
}

.is-open-menu {
  overflow: hidden;
}

.indent-reset {
  margin: 0;
  padding: 0;
}

.list-reset {
  margin: 0;
  padding: 0;

  list-style: none;
}

.btn-reset {
  padding: 0;

  color: inherit;

  background-color: transparent;
  border: none;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

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

h2 {
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

h4 {
  font-size: 18px;
  line-height: 1.25;
}

.hd {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
}
.hd--h1 {
  font-size: 24px;
  line-height: 1.2;
}
.hd--h2 {
  font-size: 20px;
  line-height: 1.25;
}
.hd--h3 {
  font-size: 18px;
  line-height: 1.25;
}
.hd--h4 {
  font-size: 18px;
  line-height: 1.25;
}

.small {
  font-size: 14px;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  h4 {
    font-size: 20px;
  }
  .hd {
    font-size: 48px;
  }
  .hd--h1 {
    font-size: 32px;
  }
  .hd--h2 {
    font-size: 24px;
  }
  .hd--h3 {
    font-size: 20px;
  }
  .hd--h4 {
    font-size: 20px;
  }
  .small {
    font-size: 15px;
  }
}
.anim-fade-down {
  -webkit-animation-name: fade-down;
          animation-name: fade-down;
  -webkit-animation-duration: 0.2s;
          animation-duration: 0.2s;

  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

.anim-fade-up {
  -webkit-animation-name: fade-up;
          animation-name: fade-up;
  -webkit-animation-duration: 0.2s;
          animation-duration: 0.2s;

  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

@-webkit-keyframes fade-down {
  0% {
    -webkit-transform: translate(0, -15%);
            transform: translate(0, -15%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes fade-down {
  0% {
    -webkit-transform: translate(0, -15%);
            transform: translate(0, -15%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
  }
}
@-webkit-keyframes fade-up {
  0% {
    -webkit-transform: translate(0, 15%);
            transform: translate(0, 15%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes fade-up {
  0% {
    -webkit-transform: translate(0, 15%);
            transform: translate(0, 15%);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
    opacity: 1;
  }
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px;

  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--white);
  text-decoration: none;

  background-color: var(--accent);
  border: none;
  border-radius: 4px;

  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.btn:hover {
  background-color: var(--accent-hov);
}
.btn:disabled,
.btn.disabled {
  -webkit-filter: grayscale(1) opacity(0.3);
          filter: grayscale(1) opacity(0.3);

  pointer-events: none;
}
.btn--outlined {
  color: var(--accent);

  background-color: var(--white);
  border: 1px solid var(--accent);
}
.btn--outlined:hover {
  color: var(--white);

  background-color: var(--accent);
}

.form__input {
  width: 100%;
  padding: 16px;

  font-size: 16px;

  background-color: var(--light-gray);
  border: none;
  border-radius: 4px;
  outline: none;

  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.form__input.invalid {
  background-color: var(--error);
}
.form__checkbox + label {
  position: relative;

  display: inline-block;
  padding-left: 34px;

  cursor: pointer;

  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.form__checkbox + label::before,
.form__checkbox + label::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;

  width: 20px;
  height: 20px;

  border-radius: 4px;
}
.form__checkbox + label::before {
  border: 1px solid var(--accent);
}
.form__checkbox:checked + label::after {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.68182L4.88889 7.5L11 1.5' stroke='%231D1D1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E ");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
  border-radius: 4px;
}
.form__checkbox.invalid + label::before {
  background-color: var(--error);
}

.modal {
  position: relative;

  max-width: 330px;
  margin: 15px;
  padding: 30px;

  color: var(--black);

  background-color: var(--white);
  border-radius: 4px;
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;

  color: var(--gray);

  outline: none;
  cursor: pointer;

  transition: color 0.15s ease-in-out;
}
.modal__close:hover,
.modal__close:focus {
  color: var(--accent);
}
.modal__title {
  margin-bottom: 20px;
}
.modal__text {
  margin-bottom: 30px;
}
.modal__error-text {
  color: var(--red);
}
@media (min-width: 768px) {
  .modal {
    max-width: 445px;
    padding: 36px;
  }
  .modal__title {
    margin-bottom: 30px;
  }
}

.scroll-top {
  position: fixed;
  right: max(15px, (100% - 1200px) / 2);
  bottom: 40px;
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;

  border-radius: 50%;
  visibility: hidden;
  opacity: 0;

  transition: opacity 0.3s ease-in-out;
}
.scroll-top--show {
  visibility: visible;
  opacity: 1;
}
.scroll-top__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  color: var(--white);

  background-color: var(--accent);
  border-radius: 50%;
  opacity: 0.6;

  transition: opacity 0.25s ease-in-out;
}
.scroll-top__link:hover {
  opacity: 1;
}

.tooltip {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;

  font-size: 18px;
  color: var(--gray);

  background-color: var(--white);
  border: 1px solid var(--gray);
  border-radius: 50%;
  cursor: pointer;

  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.tooltip:hover > .tooltip__text,
.tooltip:focus > .tooltip__text {
  display: block;
}
.tooltip__text {
  position: absolute;
  right: -5px;
  bottom: 30px;
  z-index: 1;

  display: none;
  width: 45vw;
  max-width: 220px;
  padding: 10px;

  color: var(--black);

  background-color: var(--white);
  border-radius: 4px;
  box-shadow: var(--light-shadow);
}
.tooltip__text::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 10px;

  margin-left: -5px;

  border-width: 6px;
  border-style: solid;
  border-color: var(--white) transparent transparent transparent;
}

.header {
  display: flex;
  align-items: center;
  min-height: 60px;

  color: var(--black);

  background-color: var(--white);
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  flex-shrink: 0;
}
.header__contacts {
  display: flex;
  margin: -7px -14px;
}
.header__contacts > li {
  margin: 7px 14px;
}
@media (min-width: 1200px) {
  .header {
    min-height: 80px;
  }
  .header__logo {
    width: 200px;
    height: 55px;
  }
}

.header-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;

  text-decoration: none;

  background-color: var(--accent);
  border-radius: 50%;
}
.header-contact__text {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  white-space: nowrap;

  border: 0;

  clip: rect(0 0 0 0);
          clip-path: inset(100%);

  -webkit-clip-path: inset(100%);
}
@media (min-width: 992px) {
  .header-contact {
    width: auto;
    height: auto;

    background-color: transparent;
    border-radius: 0;
  }
  .header-contact--email {
    font-size: 15px;
  }
  .header-contact--email:hover {
    text-decoration: underline;
  }
  .header-contact--phone {
    font-weight: 500;
    font-size: 18px;
    color: var(--black);

    transition: color 0.2s ease-in-out;
  }
  .header-contact--phone:hover {
    color: var(--accent);
    text-decoration: underline;
  }
  .header-contact__text {
    position: static;

    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;

    clip: auto;
            clip-path: none;

    -webkit-clip-path: none;
  }
}

.hero {
  padding-top: 60px;
  padding-bottom: 30px;

  color: var(--white);

  background-color: var(--accent);
}
.hero__title {
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }
  .hero__title {
    margin-bottom: 30px;
  }
}
@media (min-width: 1200px) {
  .hero {
    padding-bottom: 60px;
  }
}

.caclculator__data {
  padding-top: 40px;
  padding-bottom: 40px;
}
.caclculator__field {
  position: relative;
}
.caclculator__field:not(:last-child) {
  margin-bottom: 24px;
}
.caclculator__field--decor {
  margin-bottom: 30px;
  padding-bottom: 30px;
}
.caclculator__field--decor::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 1px;

  background-color: var(--medium-gray);
}
.caclculator__results {
  padding-top: 30px;
  padding-bottom: 40px;

  color: var(--white);

  background-color: var(--black);
}
@media (min-width: 768px) {
  .caclculator__data,
  .caclculator__results {
    padding-top: 0;
    padding-bottom: 0;
  }
  .caclculator__field-wrapper {
    display: flex;
    align-items: flex-end;
  }
  .caclculator__field {
    position: relative;

    flex-basis: 100%;
    margin-top: 30px;
    padding-bottom: 30px;
  }
  .caclculator__field:not(:last-child) {
    margin-right: 30px;
    margin-bottom: 0;
    padding-right: 30px;
  }
  .caclculator__field--decor::after {
    top: -79px;
    right: 0;
    bottom: 0;
    left: auto;

    width: 1px;
    height: auto;
  }
}
@media (min-width: 1200px) {
  .caclculator__field {
    margin-top: 40px;
    padding-bottom: 40px;
  }
  .caclculator__field--decor::after {
    top: -112px;
  }
}

.caclculator-field {
  border: none;
}
.caclculator-field__title {
  margin-bottom: 24px;
}
.caclculator-field__content {
  display: flex;
  align-items: flex-end;
  margin-right: 10px;
}
.caclculator-field__content > div {
  flex-basis: 100%;
}
.caclculator-field__content > div:first-child {
  margin-right: 40px;
}
.caclculator-field__wrapper {
  position: relative;
}
.caclculator-field__label {
  position: relative;

  display: grid;

  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;

  row-gap: 8px;
}
.caclculator-field__label::after {
  position: absolute;
  right: 16px;
  bottom: 15px;
  z-index: 1;

  color: var(--gray);
}
.caclculator-field__label--val::after {
  content: "₽";
}
.caclculator-field__label--val > input {
  padding-right: 35px;
}
.caclculator-field__label--percent::after {
  content: "%";
}
.caclculator-field__label--percent > input {
  padding-right: 35px;
}
.caclculator-field__label--date::after {
  content: "мес.";
}
.caclculator-field__label--date > input {
  padding-right: 55px;
}
.caclculator-field__input {
  width: 100%;
  padding: 16px;

  font-size: 16px;

  background-color: var(--light-gray);
  border: none;
  border-radius: 4px;
  outline: none;

  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.caclculator-field__label-text {
  color: var(--gray);
}
.caclculator-field__label-text--light {
  color: var(--white);
}
.caclculator-field__label-text--light + input {
  background-color: var(--white);
}
.caclculator-field__tooltip {
  position: absolute;
  right: -12px;
  bottom: 38px;
}
@media (min-width: 768px) {
  .caclculator-field__content {
    flex-direction: column;
    align-items: stretch;
    margin-right: 0;
  }
  .caclculator-field__content > div:first-child {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .caclculator-field__label-text {
    white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  .caclculator-field__content {
    flex-direction: row;
    align-items: flex-end;
  }
  .caclculator-field__content > div:first-child {
    margin-right: 20px;
    margin-bottom: 0;
  }
  .caclculator-field__label-text {
    white-space: normal;
  }
}

.clear-field {
  position: absolute;
  right: -20px;
  bottom: 14px;
  z-index: 2;

  display: none;
  width: 20px;
  height: 20px;

  background-image: url("data:image/svg+xml,%3Csvg width='26' height='22' viewBox='0 0 26 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.09375 3.72291L5.00021 11M5.00021 11L11.5942 6.02653M5.00021 11C5.00021 5.47715 9.47757 1 15.0004 1C20.5233 1 25.0004 5.47715 25.0004 11C25.0004 16.5228 20.5233 21 15.0004 21C11.9988 21 9.30596 19.7591 7.47292 17.6951' stroke='%23E30613' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px auto;
}

.about {
  padding-top: 60px;
  padding-bottom: 60px;

  font-size: 18px;
}
.about__title {
  margin-bottom: 24px;
}
.about__formula {
  font-size: 20px;
  color: var(--accent);
}
@media (min-width: 1200px) {
  .about {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.callback {
  position: relative;
  z-index: 1;
}
.callback::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;

  width: 100%;

  background-color: var(--black);
}
.callback__content {
  position: relative;
  z-index: 2;

  padding: 30px;

  background-color: var(--white);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.callback__title {
  margin-bottom: 20px;
}
.callback__title > span {
  display: block;

  color: var(--accent);
}
.callback__descr {
  margin-bottom: 20px;

  font-size: 18px;
}
.callback__form {
  display: grid;
  align-items: start;

  row-gap: 24px;
}
.callback__submit {
  width: 100%;
}
@media (min-width: 576px) {
  .callback__submit {
    width: auto;
    padding: 18px 36px;
  }
}
@media (min-width: 768px) {
  .callback::after {
    top: 40px;
    bottom: 40px;
  }
  .callback__content {
    width: 570px;
    padding: 40px;
  }
  .callback__title {
    margin-bottom: 24px;
  }
  .callback__descr {
    margin-bottom: 40px;
  }
  .callback__form {
            column-gap: 30px;

    -webkit-column-gap: 30px;
       -moz-column-gap: 30px;
    grid-template-columns: repeat(2, 1fr);
  }
  .callback__policy-wrapper,
  .callback__submit-wrapper {
    grid-column: span 2;
  }
}
@media (min-width: 1200px) {
  .callback__content {
    width: 905px;
  }
  .callback__form {
    grid-template-columns: repeat(3, 1fr);
  }
  .callback__policy-wrapper {
    grid-column: span 3;
    grid-row: 2/3;
  }
  .callback__submit-wrapper {
    grid-column: span 1;
  }
  .callback__submit {
    padding: 14px 24px;
  }
}

.services {
  padding-top: 60px;
  padding-bottom: 60px;
}
.services__title {
  margin-bottom: 30px;
}
.services__list {
  display: flex;
  flex-direction: column;
  margin: -10px;
}
.services__list > li {
  flex-basis: 100%;
  margin: 10px;
}
@media (min-width: 768px) {
  .services__list {
    flex-direction: row;
  }
}
@media (min-width: 992px) {
  .services__list {
    margin: -15px;
  }
  .services__list > * {
    margin: 15px;
  }
}
@media (min-width: 1200px) {
  .services {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .services__title {
    margin-bottom: 40px;
  }
}

.service-card {
  padding: 20px;

  box-shadow: var(--card-shadow);
}
.service-card__title {
  margin-bottom: 30px;

  color: var(--accent);
}
.service-card__price {
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .service-card {
    display: flex;
    flex-direction: column;
  }
  .service-card__title {
    flex-shrink: 0;
    margin-bottom: auto;
  }
  .service-card__price {
    margin-top: 30px;
  }
}
@media (min-width: 1200px) {
  .service-card {
    align-items: flex-start;
    padding: 30px;
  }
  .service-card__price {
    margin-bottom: 30px;
  }
}

.footer {
  padding-top: 60px;
  padding-bottom: 50px;

  text-align: center;
  color: var(--white);

  background-color: var(--black);
}
.footer__tagline {
  margin-bottom: 36px;
}
.footer__relations {
  margin-bottom: 48px;
}
.footer__contacts > li {
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .footer__contacts {
    display: flex;
    justify-content: center;
    margin: -30px;
    margin-bottom: 0;
  }
  .footer__contacts > li {
    margin: 30px;
  }
}
@media (min-width: 1200px) {
  .footer__relations {
    display: flex;
    justify-content: center;
  }
  .footer__contacts {
    margin: -10px -40px;
    margin-right: 80px;
  }
  .footer__contacts > li {
    margin: 10px 40px;
  }
}

.footer-contact {
  display: inline-flex;
  align-items: center;

  color: var(--white);
  text-decoration: none;

  transition: color 0.15s ease-in-out;
}
.footer-contact:hover {
  color: var(--accent);
}
.footer-contact__icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;

  background-color: var(--accent);
  border-radius: 50%;
}
.footer-contact__title {
  margin-left: 16px;

  font-weight: 500;
}

.footer-socials__title {
  margin-bottom: 16px;
}
.footer-socials__list {
  display: flex;
  justify-content: center;
  margin: -4px;
}
.footer-socials__list > li {
  margin: 4px;
}
.footer-socials__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;

  background-color: var(--accent);
  border-radius: 50%;

  transition: -webkit-transform 0.15s ease-in-out;
  transition:         transform 0.15s ease-in-out;
  transition:         transform 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out;
}
.footer-socials__link:hover {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
@media (min-width: 1200px) {
  .footer-socials {
    display: flex;
    align-items: center;
  }
  .footer-socials__title {
    margin-right: 12px;
    margin-bottom: 0;
  }
}

.footer-rules {
  display: grid;

  color: var(--gray);

  justify-items: center;
  row-gap: 16px;
}
.footer-rules__policy-link {
  margin-bottom: 20px;

  color: inherit;

  transition: color 0.15s ease-in-out;
}
.footer-rules__policy-link:hover {
  color: var(--white);
  text-decoration: none;
}
.footer-rules__site-link {
  color: inherit;

  transition: color 0.15s ease-in-out;
}
.footer-rules__site-link:hover {
  color: var(--white);
  text-decoration: none;
}
