/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #fff;
  scroll-behavior: smooth;
  position: relative;
  background-color: #0b1018;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYGBgAAAABAABJzQnCgAAAABJRU5ErkJggg==');
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 60px;
  position: relative;
  z-index: 2;
}

.title-with-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 3rem;
  font-weight: 700;
}

.logo-inline {
  height: 1em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  object-fit: contain;
  display: inline-block;
}

/* Шапка */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  margin-right: 16px;
}

/* Мобильный стиль */
@media (max-width: 768px) {
  .header-inner {
    padding: 6px 12px;
    align-items: center;
  }

  .burger {
    display: block;
  }

  nav.nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  nav.nav.open {
    display: flex;
  }

  nav .nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
  }

  .lang-switch {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    height: 40px;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav.show {
    display: flex;
  }
}

/* Material 3 кнопки */
nav .nav-btn {
  background-color: #e8f0fe;
  color: #0b57d0;
  border: none;
  border-radius: 20px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

nav .nav-btn:hover {
  background-color: #d2e3fc;
  transform: scale(1.03);
}

nav .nav-btn.active {
  background-color: #006FFD;
  color: white;
}

.lang-switch button {
  background-color: #f1f3f4;
  color: #202124;
  border: none;
  border-radius: 18px;
  padding: 8px 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-switch .active {
  background-color: #006FFD;
  color: #fff;
}

.main-block {
  position: relative;
  background: linear-gradient(90deg,
      #0b1018 0%,
      #1a2440 15%,
      #2b3f80 35%,
      #4259c0 50%,
      #2b3f80 65%,
      #1a2440 85%,
      #0b1018 100%);
  background-size: 200% 200%;
  animation: bgShift 15s ease infinite;
}

.main-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYGBgAAAABAABJzQnCgAAAABJRU5ErkJggg==');
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .main-block {
    padding: 40px 0;
  }

  .flex.center {
    flex-direction: column;
    text-align: center;
    display: flex;
    justify-content: flex-start;
    padding: 60px 20px;
    gap: 24px;
  }

  .main-content {
    max-width: 100%;
    margin-top: 32px;
    order: 1;
  }

  .main-content h1 {
    font-size: 2.2rem;
  }

  .main-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 24px;
  }

  .store-links {
    margin-top: 20px;
  }

  .mockup-gallery {
    margin-top: 12px;
    justify-content: center;
    align-items: center;
  }

  .mockup-single {
    max-width: 80%;
    height: auto;
  }

  .title-with-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .logo-inline {
    height: 4rem;
  }

  .back-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 2rem;
    filter: blur(1.5px);
    opacity: 0.07;
    white-space: nowrap;
    z-index: 1;
  }
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Фоновая надпись SPOKO PARK */
.back-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-55%, -45%);
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  filter: blur(2.5px);
}

/* Стили для блока features */
.features-block {
  padding: 80px 20px;
  background-color: #111;
  color: #fff;
  text-align: center;
}

.features-block h2 {
  margin-bottom: 40px;
  font-size: 2rem;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  max-width: 300px;
  flex: 1 1 260px;
  background-color: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  fill: currentColor;
}

/* Flex container */
.flex.center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
}

/* Контент в главном блоке */
.main-content {
  z-index: 3;
  max-width: 50%;
}

.main-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
  background: linear-gradient(90deg, #ffffff, #cce6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Кнопки стора */
.store-links a {
  display: inline-block;
  margin-right: 20px;
}

.store-links a img {
  height: 50px;
  transition: transform .3s;
}

.store-links a:hover {
  transform: translateY(-8px);
}

/* Мокап */
.mockup-gallery {
  width: 40%;
  margin-top: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-single {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform .8s;
}

.mockup-single:hover {
  transform: scale(1.05);
}

.works-block {
  position: relative;
  background: #ffffff;
  color: #222;
  padding: 60px 20px;
  overflow: hidden;
  z-index: 0;
}

.works-block h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #222;
}

.info-block {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
  z-index: 2;
}

.caption {
  font-size: 1.8rem;
  max-width: 800px;
  margin: 0 auto 30px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(to right, #1c76cb, #1c529a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qr-mock {
  max-width: 50%;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 100px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.step:not(:first-child) {
  margin-top: -150px;
}

.step-even {
  flex-direction: row-reverse;
}

.step img {
  width: 35%;
  max-width: 300px;
  height: auto;
  min-height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  border: 1.5px solid rgba(26, 68, 222, 0.3);
  border-radius: 24px;
}

.step-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  margin: 0 20px;
  border-radius: 32px;
  backdrop-filter: blur(8px);
  color: #0c1e3d;
  position: relative;
  margin-top: 100px;
}

.step-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.step-text p {
  font-size: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
}

/* Текст выравнивание */
.step-odd .step-text {
  text-align: left;
}

.step-even .step-text {
  text-align: right;
}

/* Номер шага с Material3 стилем */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255 255 255 / 0.12);
  border: 1.5px solid rgba(26, 68, 222, 0.3);
  border-radius: 24px;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #085dee;
  margin-bottom: 14px;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 768px) {

  .step,
  .step-even,
  .step-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step:not(:first-child) {
    margin-top: -100px;
  }

  .step img {
    order: 2;
    width: 80%;
    max-width: 90%;
    margin: 20px 0 0;
  }

  .step-text {
    order: 1;
    max-width: 90%;
    margin: 20px 0 0;
    text-align: center !important;
  }

  .qr-mock {
    max-width: 90%;
    margin-bottom: 20px;
  }

  .caption {
    font-size: 1.2rem;
  }

  .step-text h3 {
    font-size: 1.2rem;
  }

  .step-text p {
    font-size: 0.95rem;
  }
}

/* Адаптив */
@media (max-width: 1024px) {
  .flex.center {
    flex-direction: column;
    text-align: center;
  }

  .main-content {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .mockup-gallery {
    width: 100%;
  }

  .mockup-single {
    max-width: 90%;
  }
}

.slider-block h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.slider-block {
  padding: 40px 20px;
  background: #0d1b3d;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.slider-block h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
}

.swiper {
  width: 100%;
  padding: 40px 0;
  box-sizing: border-box;
  position: relative;
}

.swiper-slide {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(0.6);
  transform: scale(1);
  opacity: 0.6;
}

.swiper-slide-active {
  transform: scale(1.5);
  filter: none;
  opacity: 1;
  z-index: 2;
}

.swiper-slide img {
  width: auto;
  height: auto;
  max-height: 600px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.swiper-button-prev,
.swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-pagination {
  position: static;
  margin-top: 30px;
  text-align: center;
}

/* Дополнительная кастомизация для Material-style кнопок */
.material-button {
  background: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
}

.swiper-button-prev {
  left: clamp(10px, 2vw, 20px);
  z-index: 20;
}

.swiper-button-next {
  right: clamp(10px, 2vw, 20px);
  z-index: 20;
}

@media (max-width: 768px) {
  .swiper-slide img {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 12px;
  }

  .swiper-slide-active {
    transform: scale(1.05);
    /* Уменьшаем масштаб на мобильных */
  }
}

.material-icons-outlined {
  font-size: 28px;
  color: #333;
}

.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 0;
}

.contacts-left,
.contacts-right {
  flex: 1 1 45%;
  min-width: 280px;
}

.contacts-left .title-with-logo {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-left .logo-inline {
  height: 32px;
}

.contacts-left p {
  margin: 10px 0 20px;
}

.compact-links img {
  height: 40px;
  margin-right: 10px;
}

.contacts-right h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.contacts-right a {
  color: #007bff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contacts-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}