:root {
  --accent: #4d86ff;
  --text: #111111;
  --muted: #32323a;
  --soft: rgba(77, 134, 255, .5);
  --page-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  background: #f7f7f7;
  overflow-x: hidden;
}

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

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f7f7f7 url("../img/background.webp") center top / cover no-repeat;
}

.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding-top: 34px;
}

.site-header__inner {
  width: min(var(--page-max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  width: 250px;
  min-height: 60px;
}

.site-logo img {
  width: 250px;
  height: auto;
}

.site-phone {
  padding-top: 1px;
  color: var(--accent);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.site-main {
  flex: 1 0 auto;
}

.hero {
  padding-top: 81px;
}

.hero__inner {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  margin: 0;
  color: #101010;
  font-size: clamp(35px, 2.92vw, 56px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -.035em;
}

.hero__title span,
.hero__title strong {
  display: inline;
}

.hero__title strong {
  font-weight: 800;
  letter-spacing: -.04em;
}

.hero__accent {
  display: inline-block !important;
  margin: 0 .15em;
  padding: 0 .34em .04em;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  letter-spacing: -.04em;
}

.hero__subtitle {
  margin: 59px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -.02em;
}

.quiz-wrap {
  width: min(960px, 100%);
  min-height: 580px;
  margin: 69px auto 0;
  background: #fff;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .19);
  text-align: left;
  overflow: hidden;
}

.quiz-wrap > div[data-marquiz-id] {
  min-height: 580px;
}

.site-footer {
  flex: 0 0 auto;
  padding: 95px 0 81px;
}

.site-footer__inner {
  width: min(var(--page-max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  column-gap: 164px;
  align-items: start;
}

.footer-company {
  margin: 44px 0 0;
  color: #404050;
  font-style: normal;
  font-size: 15px;
  line-height: 1.56;
  letter-spacing: -.015em;
}

.footer-company span {
  display: block;
}

.footer-legal {
  max-width: 640px;
  color: #3f3f4a;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: -.015em;
}

.footer-legal p {
  margin: 0 0 30px;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .site-header {
    padding-top: 10px;
  }

  .site-header__inner {
    width: min(100% - 72px, 620px);
    align-items: center;
  }

  .site-logo,
  .site-logo img {
    width: 123px;
  }

  .site-phone {
    font-size: 16px;
    letter-spacing: 0;
  }

  .hero {
    padding-top: 30px;
  }

  .hero__inner {
    width: min(100% - 70px, 620px);
  }

  .hero__title {
    font-size: 29px;
    line-height: 1.42;
    letter-spacing: -.04em;
  }

  .hero__title span,
  .hero__title strong {
    display: block;
  }

  .hero__accent {
    display: inline-block !important;
    margin: 0 auto;
    padding: 0 .28em .04em;
    line-height: 1.08;
  }

  .hero__subtitle {
    width: min(100%, 315px);
    margin: 32px auto 0;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero__subtitle br {
    display: none;
  }

  .quiz-wrap {
    width: 100%;
    min-height: 0;
    margin-top: 40px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    text-align: center;
  }

  .quiz-wrap > div[data-marquiz-id] {
    min-height: 0;
  }

  .quiz-wrap .marquiz__button,
  .quiz-wrap button,
  .quiz-wrap a[role="button"] {
    max-width: 100%;
  }

  .site-footer {
    padding: 163px 0 34px;
  }

  .site-footer__inner {
    width: min(100% - 72px, 620px);
    display: block;
    text-align: center;
  }

  .footer-company {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.58;
  }

  .footer-legal {
    max-width: 320px;
    margin: 42px auto 0;
    font-size: 11px;
    line-height: 1.48;
  }

  .footer-legal p {
    margin-bottom: 29px;
  }
}

@media (max-width: 480px) {
  .page-bg {
    background-position: center top;
    background-size: auto 100%;
  }

  .site-header__inner,
  .hero__inner,
  .site-footer__inner {
    width: calc(100% - 25px);
  }

  .site-logo,
  .site-logo img {
    width: 121px;
  }

  .site-phone {
    font-size: 15px;
  }

  .hero__title {
    font-size: 29px;
  }

  .quiz-wrap {
    margin-top: 40px;
  }
}

@media (max-width: 374px) {
  .site-header__inner,
  .hero__inner,
  .site-footer__inner {
    width: calc(100% - 36px);
  }

  .site-phone {
    font-size: 14px;
  }

  .site-logo,
  .site-logo img {
    width: 112px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 16px;
  }
}
