/* ==================== CSS Variables & Reset ==================== */
:root {
  --Purple: #9747ff;
  --Blue: #0085FF;
  --Black: #131313;
  --White: #FFFFFF;
  --Grey: rgba(255, 255, 255, 0.8);
  --Light-grey: rgba(255, 255, 255, 0.5);
  --button-border-color: rgba(0, 133, 255, 1);
  --background-color: #00192F;
  --mobile-background-color: #000F1C;
  --header-color: #000F1C;
}

html {
  font-size: 26px;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

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

body, html {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--Grey);
  background: var(--background-color);
  -webkit-font-smoothing: antialiased;
}

img { border-style: none; max-width: 100%; }
a { background-color: transparent; text-decoration: none; }

/* ==================== Utils ==================== */
.c-Purple { color: var(--Blue); }

.container {
  width: 100%;
  max-width: 1260px;
  padding: 0 2.5rem;
  margin: 0 auto;
}

/* ==================== Buttons ==================== */
.btn {
  cursor: pointer;
  text-decoration: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  height: 2rem;
  min-height: 43px;
  padding: 5px 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 15px;
  border: 2px solid transparent;
  font-size: 0.6rem;
  font-weight: bold;
  line-height: normal;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.btn__blue {
  background: var(--Blue);
  color: var(--White);
}

.btn__blue img {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(97deg) brightness(103%) contrast(101%);
  width: 0.85rem;
  height: 0.85rem;
}

.btn.btn__border {
  border-color: var(--button-border-color);
  background: transparent;
  color: var(--White);
}

/* ==================== Header ==================== */
.header {
  width: 100%;
  height: 3.75rem;
  display: flex;
  flex-direction: column;
  background: var(--header-color);
  flex-shrink: 0;
}

.header .container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.header__content {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  width: 7.925rem;
  display: block;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__right .btn {
  min-width: 7.5rem;
}

/* ==================== Main ==================== */
main {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 2.5rem 0;
  gap: 3.75rem;
}

/* ==================== Banner ==================== */
.banner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.banner__content {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.banner__left {
  width: 16.63rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.banner__title {
  color: var(--White);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 122.222%;
}

.banner__title .c-Purple { color: var(--Blue); }

.banner__text {
  color: var(--Grey);
  font-size: 1rem;
  font-weight: 400;
  line-height: 125%;
}

.banner__btn .btn {
  max-width: 8.75rem;
}

.banner__right {
  width: 23rem;
}

.banner__right img {
  width: 100%;
  height: 100%;
}

/* ==================== Section titles ==================== */
.titleH2 {
  color: var(--White);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 122.222%;
}

.titleH2 .c-Purple { color: var(--Blue); }

/* ==================== How It Works ==================== */
.howWork {
  display: flex;
  flex-direction: column;
}

.howWork .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.howWork__content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.howWork__left {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  max-width: 25.95rem;
  align-items: flex-start;
}

.howWork__img {
  display: flex;
  width: calc(50% - 0.5rem);
  height: 12.45rem;
  border-radius: 1.625rem;
  overflow: hidden;
}

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

.howWork__add {
  width: calc(50% - 0.5rem);
  height: 5.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1.625rem;
  background: #efe8ff;
}

.howWork__add img {
  width: 2.125rem;
  height: 2.125rem;
}

.howWork__leftCol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: calc(50% - 0.5rem);
}

.howWork__leftCol .howWork__img {
  width: calc(50% - 0.5rem);
  height: 5.75rem;
}

.howWork__right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 34.65%;
}

.howWork__title {
  color: var(--White);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 125%;
}

.howWork__text {
  color: var(--Grey);
  font-size: 1rem;
  font-weight: 400;
  line-height: 140%;
}

/* ==================== Unique Avatars ==================== */
.uniqeAv .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.uniqeAv__content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.uniqeAv__img {
  width: 9.8rem;
  height: 9.8rem;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ==================== Reviews ==================== */
.rating {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.rating img {
  width: 2rem;
  height: 2rem;
}

.review .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review__content {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.review__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: calc(50% - 15px);
}

.review__item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 80px;
  background: var(--Black);
  border-radius: 0.75rem;
}

.review__itemTitle {
  color: var(--White);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 125%;
}

.review__itemText {
  color: var(--Grey);
  font-size: 1rem;
  font-weight: 400;
  line-height: 140%;
}

/* ==================== FAQ ==================== */
.faq .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq__content {
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
}

.faq__item {
  padding: 2rem;
  gap: 0.875rem;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  background: var(--Black);
}

.faq__itemTitle {
  color: var(--White);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 125%;
}

.faq__itemText {
  color: var(--Grey);
  font-size: 1rem;
  font-weight: 400;
  line-height: 140%;
}

/* ==================== Marquee (mobile) ==================== */
.marquee-wrapper {
  position: relative;
}

.marquee-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 440px;
  gap: 20px;
}

.marquee-group {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  width: 100%;
  height: 100%;
  max-width: 2200px;
  padding-top: 20px;
  padding-bottom: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marquee-group-inner {
  position: relative;
  grid-column: span 1 / span 1;
  overflow: hidden;
}

.marquee-line {
  --bottom-offset: -220px;
  min-width: 4000px;
  display: flex;
  flex-wrap: nowrap;
  animation: Transition_Slider 48s linear infinite;
  animation-delay: 0s;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
}

.marquee-line > * {
  padding-right: 6px;
  flex: 1;
  flex-grow: 1;
  padding-left: 6px;
}

.marquee-line:last-child {
  top: unset;
  bottom: 0;
  margin-left: var(--bottom-offset);
  display: none;
}

.marquee-line.marquee-line--right {
  margin-left: calc(max(-50vw, -1100px) + 8px);
}

.marquee-line-image {
  position: relative;
  aspect-ratio: 9.6 / 12;
  height: 100%;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.marquee-line-image img {
  transition: transform .5s ease;
  will-change: transform;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
}

.marquee-line-image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.5), inset 0 0 15px rgb(0,0,0), inset 0 0 15px rgb(0,0,0);
  z-index: 10;
}

.marquee-line-image p {
  letter-spacing: .04em;
  text-transform: uppercase;
  position: absolute;
  bottom: .875rem;
  left: 50%;
  z-index: 10;
  border-radius: 3px;
  background-color: rgb(17 17 17/.2);
  padding-left: .375rem;
  padding-right: .375rem;
  text-align: center;
  font-size: 12px;
  line-height: 1rem;
  font-weight: 700;
  opacity: .8;
  transform: translate3d(-50%, 0px, 0px);
}

.marquee-group--line {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 9;
  height: 100%;
  width: 6px;
  border: 1px solid #000;
  transform: translateX(-50%);
  border-radius: 10px;
  background-color: var(--Blue);
  box-shadow: 0 2px 12px 4px rgba(0,0,0,0.24);
}

@keyframes Transition_Slider {
  0%   { transform: translate3d(calc(-75% + min(50vw, 1100px)), 0, 0); }
  100% { transform: translate3d(calc(-25% + min(50vw, 1100px)), 0, 0); }
}


.result-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.result-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 36px;
  background: var(--Light-grey);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 100%;
}

/* ==================== Landing bottom (mobile CTA) ==================== */
.landing.page {
  position: relative;
  padding: 0;
  gap: 0;
}

.landing__bottom {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgb(0,0,0) 195px);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 250px 0 0;
  z-index: 9;
  position: absolute;
  bottom: 0;
}

.landing__bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing__bottom .btn {
  margin-bottom: 12px !important;
}

.russo-one-regular {
  font-family: "Russo One", sans-serif;
  font-weight: bold;
  font-size: 48px;
  line-height: 100%;
}

.titleH1 {
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 40px;
}

.title-text {
  font-size: 14px!important;
  line-height: 100%!important;
  text-align: center!important;
  color: var(--Light-grey)!important;
}

/* ==================== Responsive ==================== */
.desc_reg div form {
    max-width: 10rem;
}
.desc_reg div {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
  .banner__left { width: 50%; }
  .banner__right { width: 45%; }
}

@media (max-width: 768px) {
  .banner, .howWork, .uniqeAv, .review, .faq, .desc_reg { display: none; }

  .landing__bottom {
    padding: 75px 0;
  }

  .titleH1 {
    font-family: "Russo One", sans-serif;
    text-align: center;
    font-size: 40px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 40px;
  }

  .header {
    position: fixed;
    top: 0;
    z-index: 100;
  }
}

@media (max-width: 420px) {
  .russo-one-regular {
    font-size: 36px;
    margin-bottom: 20px;
  }
}

@media (max-height: 830px) {
  .marquee-inner { height: 350px; gap: 10px; }
  .landing__bottom { padding: 75px 0; }
}

@media (max-height: 750px) {
  .marquee-inner { height: 270px; }
}

@media (max-height: 650px) {
  .marquee-inner { height: 260px; }
  .russo-one-regular { font-size: 32px; margin-bottom: 12px; }
}

@media (max-height: 600px) {
  .result-buttons { opacity: 0; }
}

@media (max-height: 430px) {
  .marquee-wrapper { display: none; }
}

/* ==================== Land page: form inputs ==================== */
/* Override auth.css .input[type="tel"] calc() padding (specificity 0,2,0 → need 0,3,0) */
.input.land-phone[type="tel"] {
  padding: 5px 20px;
}

/* ==================== Desktop/Mobile visibility ==================== */
/* Desktop sections — скрываем на мобильных */
@media (max-width: 800px) {
  .banner,
  .howWork,
  .uniqeAv,
  .review,
  .faq,
  header.header {
    display: none;
  }

  main {
    padding: 0;
    gap: 0;
  }

  .landing.page {
    height: auto;
    overflow: visible;
    background: var(--mobile-background-color);
  }

  /* До/После кнопки — фиксированная высота, не сжимаются */
  .result-buttons {
    flex-shrink: 0;
    height: 36px;
  }

  /* Мобильная страница: flex-колонка на весь экран, чтобы CTA был внизу */
  .landing.page.mobile {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .landing__bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    bottom: auto;
    background: none;
    margin-top: 20px;
    padding: 30px 20px 120px;
  }

  /* .container внутри имеет padding: 0 65px — на мобиле сбрасываем до нуля */
  .landing__bottom .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Mobile section (.landing.page) — скрываем на десктопе */
@media (min-width: 800px) {
  .landing.page.mobile {
    display: none;
  }
}

/* ==================== Mobile Bottom Navigation ==================== */
.mob-bottom-nav {
  display: none;
}

@media (max-width: 800px) {
  .mob-bottom-nav {
    display: none;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mob-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--Grey);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
  }

  .mob-bottom-nav__item svg {
    width: 22px;
    height: 22px;
  }
}


/* ==================== Checkbox consent text ==================== */
.checkbox-label span {
    font-size: 0.3rem;
}
.landing .form__checkbox .checkbox .checkbox-input + .checkbox-label,
.landing .title-text {
  font-size: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  line-height: 1.5;
}
