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

:root {
  --ink: #111;
  --muted: #3b3b3b;
  --pink: #ffd6e4;
  --pink-text: #e14b86;
  --red: #e44545;
  --page: #fff;
  --font: Nunito, system-ui, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  padding: 22px 0 8px;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo img {
  display: block;
  width: 42px;
  height: 42px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav a {
  color: #111;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq {
  padding: 28px 0 80px;
}

.footer {
  padding: 28px 0 40px;
  text-align: center;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 800;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.faq__intro h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 16px;
}

.faq__intro p {
  max-width: 280px;
  margin-bottom: 20px;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.faq__intro .cta {
  width: auto;
  padding: 0 28px;
}

.faq__list details {
  border-bottom: 1px solid #ececec;
}

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary i {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
}

.faq__list summary i::before,
.faq__list summary i::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1.5px;
  background: var(--ink);
}

.faq__list summary i::after {
  transform: rotate(90deg);
}

.faq__list details[open] summary i {
  background: #111;
  border-color: #111;
}

.faq__list details[open] summary i::before,
.faq__list details[open] summary i::after {
  background: #fff;
}

.faq__list details[open] summary i::after {
  transform: none;
}

.faq__list details p {
  max-width: 640px;
  padding: 0 52px 20px 0;
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px 0 14px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.login:hover {
  background: #2a2a2a;
}

.hero {
  padding: 20px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 24px;
  align-items: start;
}

h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: 0.08em;
  height: 0.28em;
  z-index: -1;
  background: url("../images/underline.svg") center / 100% 100% no-repeat;
}

.hero__lead {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--pink-text);
  font-size: 15px;
  font-weight: 800;
}

.calc {
  max-width: 520px;
  padding: 22px 24px 20px;
  border: 1px solid #ececec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.calc h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.calc__row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calc__row img {
  display: block;
}

.calc select {
  width: 168px;
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff url("../images/chevron.svg") no-repeat right 12px center;
  appearance: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 168px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
}

.stepper button {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.stepper button:hover {
  color: #888;
}

.stepper b {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
}

.calc__result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 18px 0 16px;
}

.calc__result span {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
}

.calc__result strong {
  display: block;
  color: var(--red);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.calc__result p {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.cta:hover {
  background: #2a2a2a;
}

.cta span {
  font-size: 18px;
}

.login--under {
  display: none;
}

.popup {
  width: 420px;
  max-width: calc(100vw - 32px);
  margin: auto;
  padding: 26px 24px 24px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.popup[open] {
  display: flex;
  flex-direction: column;
}

.popup::backdrop {
  background: rgba(17, 17, 17, 0.45);
}

.popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.popup h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.popup__sub {
  margin-top: 8px;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.popup__close {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.popup__close::before,
.popup__close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: var(--ink);
}

.popup__close::before {
  transform: rotate(45deg);
}

.popup__close::after {
  transform: rotate(-45deg);
}

.popup__close:hover {
  background: #f6f6f6;
}

.lead {
  display: flex;
  flex-direction: column;
}

.lead label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.lead input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ececec;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.lead input::placeholder {
  color: #c5c5c5;
}

.lead__hint {
  margin: 8px 0 16px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.lead__error {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.popup .cta {
  margin-top: 4px;
}

.popup--locked {
  gap: 16px;
}

.popup--locked .login {
  align-self: stretch;
  justify-content: center;
}

.hero__hint {
  max-width: 520px;
  margin-top: 12px;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.hero__hint b {
  color: var(--ink);
}

.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.hero__art img {
  display: block;
  width: min(100%, 640px);
  height: auto;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    display: none;
  }

  .login--under {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .header__inner > .login {
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .calc,
  .hero__hint {
    max-width: none;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .calc__row {
    flex-wrap: wrap;
  }

  .calc select,
  .stepper {
    width: 100%;
  }
}
