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

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --page: #f3f3f3;
  --lime: #c8f000;
  --badge: #d6f25c;
  --font: "Golos Text", system-ui, sans-serif;
  --display: Unbounded, "Golos Text", sans-serif;
  --wrap: 1180px;
  --pad: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

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

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

.logo {
  display: flex;
  color: var(--ink);
}

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

.nav {
  display: flex;
  gap: 28px;
  margin: 0 auto 0 120px;
}

.nav a {
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

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

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 400px);
  gap: 56px;
  align-items: start;
}

.badge {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero__text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: #3a3a3a;
  margin-bottom: 28px;
}

.hero__text strong {
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hero-btn__mark,
.hero-btn__calc {
  display: block;
  width: 18px;
  height: 18px;
}

.hero-btn--dark {
  background: #111;
  color: #fff;
}

.hero-btn--light {
  background: #fff;
  border-color: #111;
}

.hero-btn--dark:hover {
  background: var(--lime);
  color: var(--ink);
}

.hero-btn--light:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.hero-btn--light:hover img {
  filter: invert(1);
}

.hero__hint {
  font-size: 13px;
  color: #8a8a8a;
  font-weight: 600;
}

.hero__hint strong {
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.shift {
  background: #fff;
  border-radius: 22px;
  padding: 22px 24px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.shift__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.shift__kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.shift__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.shift__row--muted {
  color: #8a8a8a;
}

.shift__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.shift__total b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.shift__bar {
  height: 6px;
  border-radius: 999px;
  background: #efefef;
  overflow: hidden;
  margin-bottom: 10px;
}

.shift__bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
}

.shift__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9a9a9a;
  font-weight: 600;
  margin-bottom: 16px;
}

.shift__note {
  font-size: 12px;
  line-height: 1.45;
  color: #b0b0b0;
  font-weight: 600;
}

.plus {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--lime);
}

.plus strong {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plus span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.block {
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 12px;
}

.block__head {
  max-width: 520px;
  margin-bottom: 40px;
}

.block__head h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 14px;
}

.block__head p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #6b6b6b;
}

.block__cta {
  margin-top: 28px;
}

.points__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.points__grid article span {
  display: block;
  margin-bottom: 14px;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.points__grid h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.points__grid p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

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

.how .block__head {
  margin-bottom: 0;
}

.how__steps {
  list-style: none;
  display: grid;
  gap: 12px;
}

.how__steps li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
  background: #fff;
  border-radius: 22px;
  padding: 20px 22px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.how__steps b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.how__steps h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.how__steps p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.academy {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.academy .block__head {
  margin-bottom: 0;
}

.academy__card {
  background: #fff;
  border-radius: 22px;
  padding: 22px 24px 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.academy__card ul {
  list-style: none;
}

.academy__card li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #f0f0f0;
}

.academy__card li:first-of-type {
  border-top: 0;
}

.academy__card li > span {
  flex: 0 0 auto;
  color: #b5b5b5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 3px;
}

.academy__card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.academy__card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--dark {
  background: #111;
  color: #fff;
}

.btn--dark:hover {
  background: var(--lime);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #111;
  color: #fff;
}

.popup {
  width: 44vw;
  max-width: 720px;
  min-width: 420px;
  margin: auto;
  padding: 28px 32px 32px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 16, 24, 0.12);
  overflow: auto;
}

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

#popup-calc {
  width: 440px;
  max-width: calc(100vw - 32px);
  min-width: 0;
  max-height: min(92dvh, 760px);
  padding: 26px 26px 22px;
  border-radius: 32px;
}

#popup-lead {
  width: 440px;
  max-width: calc(100vw - 32px);
  min-width: 0;
  max-height: min(92dvh, 640px);
  padding: 26px 26px 24px;
  border-radius: 32px;
}

#popup-lead h2 {
  font-size: 26px;
  line-height: 1.15;
}

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

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

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

.lead input::placeholder {
  color: #c5c5c5;
  font-weight: 600;
}

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

.lead__error {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #c43c3c;
}

.lead__cta {
  width: 100%;
  height: 54px;
  min-width: 0;
}

.popup__sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #8a8a8a;
}

.calc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc__city select {
  width: 100%;
  margin-top: 8px;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff url("../images/chevron.svg") no-repeat right 14px center;
  appearance: none;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.calc__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.stepper {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
}

.stepper__value {
  flex: 1;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stepper__btn {
  width: 36px;
  height: 36px;
  margin-left: 4px;
  border: 1px solid #ececec;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.stepper__btn:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.calc__sum {
  display: grid;
  gap: 8px;
}

.calc__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f3f0;
  font-size: 14px;
  font-weight: 600;
}

.calc__line #calc-bonus {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.calc__total {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #f4f3f0;
  text-align: center;
}

.calc__total span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.calc__total strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.calc__total p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
}

.calc__cta {
  width: 100%;
  height: 54px;
  min-width: 0;
}

.calc__note {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: #9a9a9a;
}

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

#popup-calc h2 {
  font-size: 26px;
}

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

.popup h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.popup__close {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--page);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.popup__close:hover {
  background: #e8e8e8;
}

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

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

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

.popup__lead {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 28px;
}

.popup__form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

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

.popup__form input,
.popup__form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.popup__form--calc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: none;
  margin-bottom: 20px;
  flex: none;
}

.page-faq .header__inner {
  justify-content: space-between;
}

.page-faq .nav {
  margin: 0 auto 0 28px;
  flex: 1;
}

.page-faq .nav a[aria-current="page"] {
  color: var(--ink);
}

.header__calc {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.header__calc:hover {
  background: var(--lime);
  color: var(--ink);
}

.header__calc:hover img {
  filter: none;
}

.page-faq .header__calc {
  display: inline-flex;
}

.header__calc img {
  display: block;
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.faq {
  padding: 56px 0 96px;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 600;
}

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

.faq__intro h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 18px;
}

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

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

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

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

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

.faq__list summary i::before,
.faq__list summary i::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  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 22px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: #8a8a8a;
}

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

  .page-faq .header__inner {
    flex-wrap: wrap;
  }

  .nav {
    margin-left: 24px;
    gap: 18px;
  }

  .hero__grid,
  .points__grid,
  .how,
  .academy {
    grid-template-columns: 1fr;
  }

  .hero__aside {
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    margin: 0;
    flex-wrap: wrap;
  }

  .popup {
    width: calc(100vw - 48px);
    min-width: 0;
    max-width: none;
    margin: auto;
    padding: 28px 24px 32px;
  }

  #popup-calc,
  #popup-lead {
    width: calc(100vw - 32px);
    max-height: 90dvh;
    padding: 22px 18px 18px;
  }

  .calc__pair {
    grid-template-columns: 1fr;
  }
}
