@font-face {
  font-family: 'Roboto';
  src: url('./assets/fonts/Roboto/Roboto-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #673ab7;
  --color-elipse: #7639e2;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-selected: #4a148c;
  --color-gray: #292929;
  --color-darkgray: #0d0d0f;
}
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  /* Поставил пока тестовый цвет */
  /* background-color: #291b42; */
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: 'Roboto', 'Arial', sans-serif;
  padding: 0 120px;
  overflow-x: hidden;
  position: relative;
}

.span__text {
  font-size: 20px;
  line-height: 140%;
  vertical-align: middle;
}
/* navbar */
.navbar {
  position: fixed;
  color: var(--color-white);
  display: flex;
  margin: 24px auto;
  padding: 0 24px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-radius: 80px;
  overflow: hidden;
  width: 894px;
  height: 56px;
  z-index: 1000;
  background-color: rgba(13, 13, 15, 0.45);
  backdrop-filter: blur(40px);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.logo__stahi {
  height: 40px;
  width: 28px;
}
.navbar__menu {
  display: flex;
  gap: 2rem;
}

.navbar__menu a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar__menu a:hover {
  color: var(--color-primary);
}
/* Switch */
.wrapper__switch {
  display: flex;
  justify-content: center;
  align-items: center;
}
.switch {
  position: relative;
  display: inline-block;
  width: 132px;
  height: 32px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
/* Переключатель */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-gray);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
  color: var(--color-white);
  font-weight: bold;
  overflow: hidden;
}
.slider::before,
.slider::after {
  content: '';
  position: absolute;
  height: 28px;
  width: 64px;
  top: 2px;
  background-color: var(--color-primary);
  border-radius: 24px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.slider::before {
  left: 2px;
}
.slider::after {
  right: 2px;
  opacity: 0;
}
input:checked + .slider::before {
  opacity: 0;
}
input:checked + .slider::after {
  opacity: 1;
}
.slider__ru,
.slider__en {
  z-index: 2;
  font-size: 14px;
  user-select: none;
}
/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*  header logo */
.header__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: visible;
  height: 300px;
}
.big__logo {
  position: absolute;
  top: 160px;
  z-index: -1;
  pointer-events: none;
}
.text__logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 190px;
}
/* Button Store */
.stores {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 80px;
}
.stores__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--color-white) solid 1px;
  border-radius: 8px;
  width: 200px;
  padding: 17px 48.5px;
  text-align: center;
  background-color: transparent;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.stores__item:hover {
  background-color: var(--color-primary);
}

.stores__item:active {
  background-color: var(--color-selected);
}
/*home*/
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 100px;
  margin-top: 40px;
  margin-bottom: 80px;
}
.home__text {
  display: flex;
  flex-direction: column;
  width: 752px;
}
.home__screen {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 484px;
  /* width: 424px; */
}
.home__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/*transaction*/
.transaction {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 80px;
  padding-right: 170px;
}
.transaction__text {
  display: flex;
  flex-direction: column;
  width: 550px;
}

/*piggy*/
#piggy {
  scroll-margin-top: 140px;
}
.piggy {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  margin: 40px auto 80px;
  max-width: 1200px;
  gap: 23px;
  position: relative;
  overflow: visible;
}
.piggy__text {
  display: flex;
  flex-direction: column;
  width: 550px;
}
.piggy__image {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
}
.piggy__screen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  max-height: 586px;
}
.piggy__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.drawing_car {
  position: absolute;
  right: -150px;
  top: 45%;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
  width: 721px;
  height: 840px;
}

/*calendar*/
#calendar {
  scroll-margin-top: 150px;
}
.calendar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 1200px;
  gap: 200px;
  margin-top: 40px;
  margin-bottom: 80px;
}
.calendar__text {
  display: flex;
  flex-direction: column;
  width: 550px;
}

/*analytics*/
#analytics {
  scroll-margin-top: 150px;
}
.analytics {
  display: flex;
  flex-direction: row;
  gap: 100px;
  margin-top: 40px;
  margin-bottom: 80px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.text__container {
  position: relative;
  width: 100%;
}
.text__form {
  padding: 48px 48px 180px 48px;
  background: rgba(0, 0, 0, 0.29);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.analytics__text {
  display: flex;
  flex-direction: column;
  width: 590px;
  color: var(--color-white);
}

.analytics__image {
  position: absolute;
  left: 182px;
  top: 60%;
  height: 484px;
  z-index: 20;
  pointer-events: none;
}

/*analytics*/
.date {
  display: flex;
  flex-direction: row;
  gap: 100px;
  margin-top: 424px;
  margin-bottom: 80px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  position: relative;
  overflow: visible;
}

.date__text {
  display: flex;
  flex-direction: column;
  width: 550px;
  color: var(--color-white);
}

.date__image {
  position: absolute;
  right: 12px;
  top: 20%;
  height: 484px;
  z-index: 20;
  pointer-events: none;
}
.lines__image {
  position: absolute;
  left: -580px;
  top: 30%;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
}

/* budget */
#budget {
  scroll-margin-top: 130px;
}
.budget {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 23px;
  margin: 180px auto 80px;
  max-width: 1200px;
}
.budget__image {
  display: flex;
  width: 100%;
  justify-content: center;
}
.budget__screen {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 484px;
  width: 424px;
}
.budget__screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Footer */
.footer {
  width: calc(100% + 240px);
  margin-left: -120px;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  background: radial-gradient(
    circle at top center,
    #301b57 0%,
    #100e14 62%,
    #0d0d0e 100%
  );
  margin-top: 100px;
}
.footer__container {
  max-width: 1400px;
  margin: 0 auto; /* выравнивает по центру */
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-right: 64px; /* добавляем отступ справа, что бы смотрелось по центру */
}
.footer__store {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
}
.footer__logo {
  width: clamp(150px, 50vw, 670px); /* адаптивная ширина */
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}
.footer__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Footer Button Store */
.footer__stores {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-direction: row;
  gap: 16px;
  margin-top: 74px;
  flex-wrap: wrap;
}
.footer__stores__item {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--color-white) solid 1px;
  border-radius: 8px;
  padding: 17px 0px;
  text-align: center;
  background-color: transparent;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.footer__stores__item:hover {
  background-color: var(--color-primary);
}

.footer__stores__item:active {
  background-color: var(--color-selected);
}
.footer__vk {
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}
.vk-icon {
  width: 100%;
  height: 100%;
  fill: #ffffff;
}
.footer__vk:hover .vk-icon path {
  fill: var(--color-primary);
}
.footer__vk:active .vk-icon path {
  fill: var(--color-selected);
}

.footer__pp {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  max-height: 32px;
  width: 142px;
}
.footer__pp img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer__text__end {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-left: 64px;
  margin-bottom: 32px;
}
.footer__text__plitics {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__text__pointpuls {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 16px;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  color: var(--color-white);
}
.footer__contact h1 {
  font-size: 20px;
  margin: 0;
}
.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Button */
#toTop {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: none; /* по умолчанию скрыта */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
#toTop:hover {
  transform: translateY(-3px);
}

/* decor */
.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ellipse {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur, 150px));
  background: radial-gradient(
    circle at center,
    var(--color-elipse) 100%,
    transparent 70%
  );
}

.e-start-horizontal {
  width: 2170px;
  height: 317px;
  top: 629px;
  left: -365px;
  --color: var(--color-elipse);
  --blur: 400px;
}

.e-start-vertical {
  width: 974px;
  height: 260px;
  top: 244px;
  left: 300px;
  transform: rotate(90deg);
  transform-origin: center;
  --color: var(--color-elipse);
  --blur: 400px;
}

.e-middle-horizontal {
  width: 2170px;
  height: 317px;
  top: 2769px;
  left: -365px;
  --color: var(--color-elipse);
  --blur: 400px;
}

.e-middle-vertical {
  width: 974px;
  height: 260px;
  top: 2384px;
  left: 300px;
  transform: rotate(90deg);
  transform-origin: center;
  --color: var(--color-elipse);
  --blur: 400px;
}

.e-end-horizontal {
  width: 2170px;
  height: 317px;
  top: 4989px;
  left: -365px;
  --color: var(--color-elipse);
  --blur: 400px;
}

.e-end-vertical {
  width: 974px;
  height: 260px;
  top: 4989px;
  left: 365px;
  transform: rotate(90deg);
  transform-origin: center;
  --color: var(--color-elipse);
  --blur: 400px;
}
