/* ========================================
1. RESET / BASE
Базовые стили сайта
======================================== */

html {
  scroll-behavior: smooth;
}

#interactive {
  scroll-margin-top: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #ffffff;
  color: #6b2e2e;
}


/* ========================================
2. GLOBAL BACKGROUND
Глобальный фон сайта
======================================== */

.global-bg {
  position: fixed;
  top: 0;
  left: 0;

  width: 140vw;
  height: 100vh;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  z-index: -1;
  overflow: hidden;
}

.global-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.70) 10%,
    rgba(0, 0, 0, 0.40) 40%,
    rgba(0, 0, 0, 0.15) 80%,
    rgba(0, 0, 0, 0.05) 100%
  );

  z-index: 1;
}


/* ========================================
3. HEADER
Верхняя панель сайта
======================================== */

.map-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;
  border-bottom: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.10) 40%,
    rgba(0, 0, 0, 0.10) 70%,
    rgba(0, 0, 0, 0.00) 100%
  );
}

.map-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 10px 20px;
  gap: 10px;
}


/* ========================================
4. HEADER BUTTONS
Кнопки header
======================================== */

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 12px 12px;

  font-size: 18px;
  font-weight: 400;
  color: white;
  text-decoration: none;

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  background: rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.header-btn img {
  width: 22px;
  height: 22px;
  padding: 2px;

  filter: brightness(0) invert(1);
}

.map-btn {
  gap: 6px;
}

.map-btn .map-icon {
  width: 35px;
  height: 35px;
  filter: none;
}

.map-icon {
  width: 135px;
  height: 135px;
  object-fit: contain;
}


/* ========================================
5. LANGUAGE DROPDOWN
Переключатель языков
======================================== */

.language-dropdown {
  position: relative;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 6px;

  width: 80px;
  height: 36px;
  padding: 10px 16px;

  font-size: 18px;
  font-weight: 400;
  color: white;

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  cursor: pointer;

  background: rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.lang-icon {
  width: 16px;
  height: 16px;

  opacity: 0.95;
  filter: brightness(0) invert(1);
}

.language-menu {
  position: absolute;
  top: 42px;
  right: 0;

  display: none;
  flex-direction: column;

  width: 80px;
  overflow: hidden;

  font-size: 18px;
  font-weight: 500;
  color: white;

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  background: rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(2px);
}

.language-menu span {
  padding: 10px 16px;
  text-align: center;

  cursor: pointer;
}

.language-menu span:hover {
  background: rgba(255, 255, 255, 0.35);
}


/* ========================================
6. HERO SECTION
Главный экран
======================================== */

.hero {
  position: relative;

  display: flex;
  align-items: flex-start;

  min-height: 90vh;
  margin-top: 0;

  padding: 40px 80px 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 620px;
  margin-top: 10px;
}

.hero-icon {
  width: 340px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;

  margin-bottom: 16px;

  color: #ffffff;
}

.status {
  display: block;

  font-size: 26px;
  font-weight: 600;

  margin-bottom: 20px;

  color: #ffffff;
}

.description {
  font-size: 18px;
  line-height: 1.6;

  color: #ffffff;
}

.hero-passport {
  position: absolute;
  right: 5%;
  bottom: 10%;

  width: 42vw;
  max-width: 650px;

  z-index: 0;
  pointer-events: none;
}


/* ========================================
7. ABOUT SECTION
Описание продукта
======================================== */

.about {
  padding: 50px 20px;
  background: #ffffff;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-title {
  margin-bottom: 16px;

  font-size: 32px;
  font-weight: 700;
  text-align: center;

  color: #111;
  white-space: pre-line;
}

.about-subtitle {
  margin-bottom: 20px;

  font-size: 18px;
  line-height: 1.6;
  text-align: center;

  color: #555;
  white-space: pre-line;
}

.about-steps {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.about-step {
  display: flex;
  align-items: flex-start;

  gap: 20px;
}

.about-number {
  min-width: 40px;
  margin-top: 6px;

  font-size: 24px;
  font-weight: 700;

  color: #7a1f2b;
}

.about-content h3 {
  margin-bottom: 8px;

  font-size: 22px;

  color: #111;
  white-space: pre-line;
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;

  color: #555;
  white-space: pre-line;
}

.about-final {
  margin-top: 10px;

  font-size: 18px;
  font-style: italic;
  text-align: center;

  color: #333;
}


/* ========================================
8. INTERACTIVE SECTION
Интерактивный паспорт
======================================== */

.interactive {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: start;

  padding: 20px 0 40px 0;

  background: #ffffff;
  overflow: hidden;
}


/* LEFT */

.interactive-left {
  display: grid;
  grid-template-rows: auto 1fr 1fr 1fr;

  height: 100%;
  padding: 0 40px;
}

.interactive-left h2 {
  font-size: 24px;
  font-weight: 700;

  margin-bottom: 6px;
}

.interactive-left p {
  font-size: 16px;
  line-height: 1.4;

  margin-bottom: 10px;
  opacity: 0.8;
}


/* CARDS */

.interactive-cards {
  display: contents;
}

.interactive-card {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 160px;
  margin-bottom: 16px;

  overflow: hidden;
  border-radius: 20px;
}

.interactive-card img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 1;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.70),
    rgba(0, 0, 0, 0.40),
    rgba(0, 0, 0, 0.10)
  );
}

.interactive-card-content {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;

  z-index: 2;

  padding: 0 20px;

  color: white;
}

.interactive-step {
  margin-bottom: 6px;

  font-size: 16px;
  font-weight: 600;

  opacity: 0.9;
}

.interactive-title {
  margin: 6px 0 0 0;

  font-size: 22px;
  font-weight: 700;
}

.interactive-desc {
  font-size: 16px;
  line-height: 1.4;

  opacity: 0.95;
}

.interactive-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  margin-top: 10px;

  padding: 8px 14px;

  font-size: 18px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  line-height: 1;

  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.interactive-card-btn:hover {
  background: #7a1f2b;
}


/* RIGHT */

.interactive-right {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}


/* PASSPORT */

.interactive-passport-wrap {
  position: relative;

  width: 100%;
  aspect-ratio: 5 / 3.5;

  overflow: hidden;
}

.interactive-passport {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;

  width: 88%;

  transform: translate(-50%);
  object-fit: contain;

  z-index: 1;
  pointer-events: none;
}

.interactive-layer {
  position: absolute;
  top: 12%;
  right: 10%;
  bottom: 18%;
  left: 10%;

  z-index: 2;
  cursor: pointer;
}

.random-item {
  position: absolute;
  transform: translate(-50%, -50%);

  pointer-events: none;
  z-index: 2;
}

.sticker-item {
  padding: 4px;

  background: #f3e1cf;
  border: 1px solid #d1b8a8;
}


/* CONTROLS */

.interactive-controls {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  margin-bottom: 6px;

  gap: 6px;
  z-index: 3;
}

.interactive-hint {
  padding: 4px 10px;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;

  color: #6b2e2e;
}

.interactive-buttons {
  display: flex;
  gap: 10px;
}

.interactive-controls button {
  padding: 12px 22px;

  font-size: 16px;
  font-weight: 600;

  border-radius: 28px;
  border: none;

  cursor: pointer;

  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.interactive-controls button.active {
  color: white;
  background: #7a1f2b;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


/* ========================================
9. FOOTER
======================================== */

.footer {
  position: relative;

  margin-top: 20px;
  padding: 20px;

  color: white;
}

.footer-container {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;

  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
}

.footer-desc {
  max-width: 260px;

  font-size: 14px;
  line-height: 1.5;

  opacity: 0.85;
}

.footer-title {
  margin-bottom: 6px;

  font-size: 16px;
  font-weight: 600;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  padding: 2px;

  font-size: 14px;
  color: white;
  text-decoration: none;

  opacity: 0.8;
}

.footer-link:hover {
  opacity: 1;
}

.footer-contact-item {
  font-size: 14px;
  opacity: 0.8;
}

.footer-socials {
  display: flex;
  gap: 12px;

  margin-top: 10px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.footer-social img {
  width: 18px;
  height: 18px;

  filter: brightness(0) invert(1);
}

.footer-contact {
  padding: 0 16px;

  font-size: 14px;
  font-weight: 500;

  border-radius: 20px;
  text-decoration: none;
  color: white;

  white-space: nowrap;
}

.footer-social.footer-contact {
  width: auto;
  height: 42px;
  padding: 0 16px;
  border-radius: 20px;
}

.footer-extra-link {
  margin-top: 12px;

  display: inline-block;
  opacity: 0.85;

  text-decoration: underline;
}

.footer-extra-link:hover {
  opacity: 1;
}


/* ========================================
10. MODALS
Popup / Bottom sheet
======================================== */

.collab-modal {
  position: fixed;
  inset: 0;

  display: none;
  z-index: 5000;
}

.collab-modal.active {
  display: block;
}

.collab-overlay {
  position: absolute;
  inset: 0;

  opacity: 0;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);

  transition: opacity 0.25s ease;
}

.collab-modal.active .collab-overlay {
  opacity: 1;
}

.collab-content {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 420px;
  max-width: 90%;
  padding: 24px;

  text-align: center;

  border-radius: 20px;

  transform: translate(-50%, -50%);

  background: white;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.collab-title {
  margin-bottom: 10px;

  font-size: 20px;
  font-weight: 700;
}

.collab-text {
  margin-bottom: 16px;

  font-size: 15px;
  opacity: 0.7;
}

.collab-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collab-link {
  display: block;

  padding: 12px;

  font-weight: 500;
  text-decoration: none;
  color: #000;

  border-radius: 14px;

  background: #f3f3f3;
}

.collab-close {
  position: absolute;
  top: 10px;
  right: 12px;

  font-size: 18px;

  border: none;
  background: none;

  cursor: pointer;
}


/* ========================================
11. RESPONSIVE
ВСЕ мобильные стили
======================================== */

@media (max-width: 768px) {

  /* HERO */

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-passport {
    right: 5%;
    bottom: 20px;

    width: 100vw;
    max-width: 400px;
  }
  
/* ABOUT — COMPACT MOBILE (FIXED) */

.about {
  padding: 10 !important;
}

.about-title {
  margin: 0 0 8px 0 !important;
  font-size: 26px;
}

.about-subtitle {
  margin: 0 0 12px 0 !important;
  font-size: 16px;
}

.about-steps {
  gap: 10px !important;
}

.about-step {
  padding: 0 20px !important;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-number {
  font-size: 20px;
  margin: 0;
}

.about-content h3 {
  margin: 0 0 4px 0 !important;
  font-size: 20px;
}

.about-content p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.4;
}

.about-final {
  margin: 20px 10px 0 0 !important;
  font-size: 16px;
  font-weight: 600;
}

  /* INTERACTIVE */

  .interactive {
    grid-template-columns: 1fr;
    padding: 16px 0 24px 0;
  }

  .interactive-left {
    display: flex;
    flex-direction: column;

    padding: 0 16px 16px 16px;
    gap: 12px;
  }

  .interactive-cards {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
  }

  .interactive-cards::-webkit-scrollbar {
    display: none;
  }

  .interactive-card {
    flex: 0 0 80%;
    height: 200px;

    scroll-snap-align: start;
  }

  .interactive-desc {
  font-size: 14px;
}

  .interactive-right {
    padding: 0 16px;
  }

  .interactive-passport {
    width: 94%;
  }

  .interactive-controls {
    gap: 4px;
  }

  .interactive-hint {
    font-size: 24px;
    text-align: center;
  }

  /* FOOTER */

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* MODAL */

  .collab-content {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;

    transform: translateY(120%);

    width: auto;
    max-width: none;

    padding: 20px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.9);

    transition: transform 0.3s ease;
  }

  .collab-modal.active .collab-content {
    transform: translateY(0);
  }

}