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

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-canvas);
  line-height: 1.4;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad-y) 0;
}

.section--flush {
  padding: 0;
}

.heading-xl {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
}

.heading-lg {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 64px;
}

.heading-md {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 48px;
}

.title-xl {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.title-lg {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.body-xl {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.body-lg {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.text-muted {
  color: var(--text-muted);
}

.text-tertiary {
  color: var(--text-tertiary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent-600);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: translateY(1px);
}

.btn--chip {
  background: var(--bg-chip);
  color: var(--text-primary);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.btn--accent {
  background: var(--accent-500);
  color: var(--text-on-accent);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.btn--accent-lg {
  background: var(--accent-500);
  color: var(--text-on-accent);
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  border-radius: var(--radius-input);
}

.btn--metrica {
  background: var(--status-warning);
  color: var(--text-on-accent);
  padding: 8px 32px;
  height: 64px;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.btn--nav {
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
}

.btn--nav img {
  width: 11px;
  height: 22.5px;
}

.btn--nav.is-next img {
  transform: scaleX(-1);
}

.input {
  width: 100%;
  height: 64px;
  padding: 8px 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-input);
  background: var(--bg-card);
  color: var(--text-primary);
}

.input::placeholder {
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 20px 0 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.site-header__logo {
  width: 133px;
  height: 24px;
  flex-shrink: 0;
}

.site-header__logo img {
  width: 133px;
  height: 24px;
}

.site-header__nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 32px;
  font-size: 18px;
  line-height: 28px;
}

.site-header__nav a:hover {
  color: var(--accent-500);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.site-header__btns {
  display: flex;
  gap: 24px;
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 84px;
  height: 32px;
  padding: 4px;
  border: 0;
  border-radius: 48px;
  background: var(--accent-area);
  cursor: pointer;
}

.theme-switch img {
  width: 36px;
  height: 24px;
}

.theme-switch img:last-child {
  width: 33.5px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--bg-chip);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding: 24px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.mobile-nav.is-open {
  display: flex;
}

/* First screen */
.first-screen {
  position: relative;
  padding-top: 0;
  overflow: hidden;
}

.first-screen__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.first-screen__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first-screen__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 170px;
  padding: 150px 0 170px;
}

.first-screen__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  text-align: center;
}

.first-screen__hero .heading-xl,
.first-screen__hero .title-xl {
  max-width: 1488px;
}

.first-screen__form {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.first-screen__form .input {
  width: 480px;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-grid__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 264px;
  padding: 48px;
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: 32px;
}

.feature-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.feature-note {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-note .body-xl {
  max-width: 950px;
}

/* CTA */
.cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 40px 96px;
  background-image: var(--gradient-cta);
  text-align: center;
  color: var(--text-on-accent);
}

.cta-area .heading-md {
  max-width: 960px;
  color: var(--text-on-accent);
}

/* Auction */
.auction__intro {
  max-width: 900px;
  margin-top: 48px;
}

.auction__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.auction-player,
.auction-bids {
  min-height: 530px;
  padding: 64px;
}

.auction-player {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.auction-player__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.auction-player__url {
  width: 245px;
  height: 20px;
  border-radius: 48px;
  background: var(--bg-elevated);
}

.auction-player__dots {
  display: flex;
  gap: 16px;
}

.auction-player__dots span {
  width: 24px;
  height: 24px;
  border-radius: 48px;
  background: var(--bg-elevated);
}

.auction-player__ad {
  position: relative;
  width: 100%;
  max-width: 494px;
  height: 290px;
  border-radius: 32px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auction-player__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  border-radius: 48px;
  display: grid;
  place-items: center;
  background: rgba(210, 217, 234, 0.1);
}

.auction-player__brand {
  width: 79px;
  height: 48px;
}

.auction-player__label {
  color: #f8f8f8;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.auction-player__progress {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 28px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.auction-player__progress-bar {
  height: 100%;
  width: 20%;
  border-radius: 28px;
  background: var(--accent-600);
  transition: width 0.4s ease;
}

.auction-bids {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auction-bids__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auction-bids__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.auction-bids__score {
  width: 96px;
  height: 48px;
  border-radius: 16px 16px 0 16px;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  color: var(--text-on-accent);
  font-weight: 700;
  transition: background 0.3s ease;
}

.auction-bids__row.is-active .auction-bids__score {
  background: var(--accent-600);
}

.auction-bids__logo {
  height: 28px;
  width: auto;
}

.auction__caption {
  margin-top: 24px;
}

/* Calculate */
.calculate__intro {
  max-width: 900px;
  margin-top: 48px;
}

.calculate__panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 24px;
  padding: 48px;
}

.calculate__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calculate__divider {
  width: 1px;
  min-height: 194px;
  background: var(--border-subtle);
  align-self: stretch;
}

.calculate__manual {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.calculate__result {
  margin-top: 24px;
  padding: 48px;
  border-radius: var(--radius-card);
  background: var(--accent-area);
  border: 1px solid var(--border-subtle);
}

/* Slider section */
.slider-section__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.slider-section__main {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 428px;
}

.slider-section__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-section__stack .card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Start / payments */
.start__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 100%;
}

.step-card__body {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.pay-block {
  margin-top: 170px;
  padding: 170px 0;
  background: var(--accent-area);
}

.pay-block__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pay-block__row {
  display: grid;
  gap: 24px;
}

.pay-block__row--top {
  grid-template-columns: 1fr 1fr;
}

.pay-block__row--mid,
.pay-block__row--bot {
  grid-template-columns: 1fr 1fr;
}

.pay-hero {
  padding: 60px 48px;
  border-radius: var(--radius-card);
  background-image: var(--gradient-pay);
  color: var(--text-on-accent);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 234px;
}

.pay-hero .title-xl,
.pay-hero .body-xl {
  color: var(--text-on-accent);
}

.pay-points {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

.pay-points__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pay-points__item img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pay-method {
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.pay-method__icon {
  width: 32px;
  flex-shrink: 0;
}

.pay-method__flag {
  width: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pay-method__flag span {
  display: block;
  height: 8px;
  width: 32px;
}

.pay-method__flag span:nth-child(1) {
  background: #eef1f8;
  border-radius: 1px 1px 0 0;
}

.pay-method__flag span:nth-child(2) {
  background: #4776ff;
}

.pay-method__flag span:nth-child(3) {
  background: #c92929;
  border-radius: 0 0 1px 1px;
}

.pay-method__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pay-block__note {
  margin-top: 0;
}

/* Feedback / team sliders */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.slider-nav {
  display: flex;
  gap: 24px;
}

.reviews-track,
.team-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.reviews-track {
  margin-top: 48px;
}

.review-card {
  flex: 0 0 calc(50% - 12px);
  padding: 48px;
  min-height: 412px;
}

.review-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-divider);
  margin-bottom: 30px;
}

.review-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-card__quote {
  width: 36px;
  height: 24px;
  flex-shrink: 0;
}

.team-shell {
  margin-top: 48px;
  padding: 64px;
  overflow: hidden;
}

.team-track {
  transition: transform 0.35s ease;
}

.team-member {
  flex: 0 0 calc(25% - 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.team-member__photo {
  width: 260px;
  height: 260px;
  border-radius: 220px;
  object-fit: cover;
  border: 1px solid rgba(210, 217, 234, 0.1);
}

.team-member__meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-member__tg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-member__tg img {
  width: 24px;
  height: 24px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px 32px;
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  min-height: 32px;
}

.faq-item__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding-top: 56px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__nav {
  display: flex;
  gap: 40px;
  font-size: 18px;
  line-height: 28px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 50px 0 64px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__brand-row img {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1280px) {
  :root {
    --container: 1184px;
    --section-pad-y: 120px;
  }

  .heading-xl {
    font-size: 48px;
    line-height: 56px;
  }

  .heading-lg {
    font-size: 40px;
    line-height: 52px;
  }

  .team-member {
    flex-basis: calc(33.333% - 16px);
  }
}

@media (max-width: 1024px) {
  :root {
    --container: 960px;
    --section-pad-y: 100px;
  }

  .site-header__nav,
  .site-header__btns {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .first-screen__content {
    gap: 96px;
    padding: 96px 0 120px;
  }

  .first-screen__form {
    flex-direction: column;
    width: min(100%, 480px);
  }

  .first-screen__form .input {
    width: 100%;
  }

  .feature-grid__row,
  .auction__grid,
  .calculate__panel,
  .slider-section__grid,
  .start__steps,
  .pay-block__row--top,
  .pay-block__row--mid,
  .pay-block__row--bot,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .calculate__divider {
    display: none;
  }

  .review-card,
  .team-member {
    flex-basis: calc(100% - 0px);
    min-width: 100%;
  }

  .team-member__photo {
    width: 200px;
    height: 200px;
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
  }

  .site-footer__nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --container: 720px;
    --section-pad-y: 80px;
    --radius-card: 28px;
  }

  .heading-xl {
    font-size: 36px;
    line-height: 44px;
  }

  .heading-lg,
  .heading-md {
    font-size: 28px;
    line-height: 36px;
  }

  .site-header__inner {
    padding: 16px 20px;
    border-radius: 24px;
  }

  .feature-card,
  .feature-note,
  .auction-player,
  .auction-bids,
  .calculate__panel,
  .calculate__result,
  .slider-section__main,
  .slider-section__stack .card,
  .step-card,
  .pay-method,
  .pay-points,
  .review-card,
  .team-shell {
    padding: 28px;
  }

  .pay-block {
    margin-top: 96px;
    padding: 96px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: 560px;
  }

  .feature-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --container: 100%;
    --gutter: 16px;
  }

  .heading-xl {
    font-size: 28px;
    line-height: 36px;
  }

  .cta-area {
    padding: 56px 20px 64px;
  }
}
