/* === FONTS === */
@font-face {
  font-family: 'HelveticaNeueCyr';
  src: url('fonts/HelveticaNeueCyr-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'HelveticaNeueCyr';
  src: url('fonts/HelveticaNeueCyr-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'HelveticaNeueCyr';
  src: url('fonts/HelveticaNeueCyr-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'HelveticaNeueCyr';
  src: url('fonts/HelveticaNeueCyr-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');

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

html, body {
  background: #000;
  color: #fff;
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
img { display: block; }

.page {
  max-width: 430px;
  margin: 0 auto;
  background: #000;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  padding: 7px 5px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0 8px;
  height: 53px;
}

.logo {
  height: 36px;
  width: auto;
  margin-left: 4px;
}

.header-btns {
  display: flex;
  gap: 4px;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 39px;
  border-radius: 7px;
  background: rgba(121, 121, 121, 0.33);
  border: 0.4px solid rgba(255, 255, 255, 0.1);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.44px;
  color: #fff;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1400;
  max-height: 80vh;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  bottom: 28px;
  left: 16px;
  right: 16px;
  z-index: 2;
}

.hero-text h1 {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 400;
  font-size: 50px;
  line-height: 41px;
  letter-spacing: -2.5px;
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: -0.1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hero-sub .dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards {
  padding: 8px 10px 0;
}

.grid {
  display: grid;
  grid-template-columns: 43fr 57fr;
  grid-template-rows: auto auto;
  gap: 8px;
}

/* Общие классы для карточек с фоном на всю площадь */
.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.content-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- YANDEX --- */
.c-ya {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #252525;
  aspect-ratio: 1.1;
  border: none;
}

.c-ya .content-overlay {
  padding: 8px;
}

.c-ya .badge {
  width: 17px;
  height: 17px;
}

.c-ya .badge img {
  width: 100%;
  height: 100%;
}

.c-ya .foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.c-ya .foot .name {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 19.5px;
  letter-spacing: -1.05px;
  text-transform: uppercase;
}

.c-ya .foot .arrow-btn {
  width: 44px;
  height: 39px;
  border-radius: 7px;
  background: rgba(121, 121, 121, 0.33);
  border: 0.4px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-ya .foot .arrow-btn img {
  width: 6px;
  height: 13px;
}

/* --- КАТАЛОГ --- */
.c-cat {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #252525;
  border: none;
}

.c-cat .ttl {
  padding: 14px 12px 8px;
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 19.5px;
  letter-spacing: -1.05px;
  text-transform: uppercase;
}

.c-cat .obtn {
  margin: 0 8px 10px 8px;
  text-align: center;
  padding: 11px 0;
  border-radius: 7px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #fff;
  background: rgba(121, 121, 121, 0.33);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.4px solid rgba(255, 255, 255, 0.05);
}

/* --- СОЦСЕТИ --- */
.c-soc {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sc {
  background: #252525;
  border-radius: 12px;
  aspect-ratio: 0.59;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sc .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sc .top .ico { width: 17px; height: 17px; }
.sc .top .ext { width: 7px; height: 7px; opacity: 0.5; }

.sc .nm {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 19.5px;
  letter-spacing: -1.05px;
  text-transform: uppercase;
}

#text-tg {
  letter-spacing: 2px;
}

/* ============================================
   JOIN
   ============================================ */
.join {
  padding: 50px 16px 120px;
  text-align: center;
}

.join h2 {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 19.5px;
  letter-spacing: -1.05px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.join p {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.43px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.join .btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #fff;
  background: transparent;
}

::-webkit-scrollbar { display: none; }

/* ============================================
   MODAL ADDRESSES
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: rgba(37, 37, 37, 0.85);
  border-radius: 16px;
  border: 0.4px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-size: 21px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -1.05px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 0.4px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  width: 32px; height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:active {
  background: rgba(255, 255, 255, 0.15);
}

.modal-close svg {
  width: 16px; height: 16px;
}

.modal-city {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.store-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
  border: 0.4px solid rgba(255, 255, 255, 0.05);
}

.store-item h4 {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}

.store-item h4 span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.store-item .time {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.store-break {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.store-break p {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.modal-text {
  font-family: 'HelveticaNeueCyr', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.modal-btn {
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 24px;
  transition: background 0.2s;
}

.modal-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.btn-highlight {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader img {
  width: 140px;
  height: auto;
  animation: pulse 1.5s infinite;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ============================================
   RESPONSIVENESS (Mobile Adaptation)
   ============================================ */
@media (max-width: 410px) {
  .hero-text h1 { font-size: 44px; line-height: 38px; }
  .c-ya .foot .name, .c-cat .ttl, .sc .nm, .join h2, .modal-header h3 { font-size: 18px; line-height: 17px; }
  .header-btn { padding: 0 10px; font-size: 8.5px; height: 36px; }
  .logo { height: 32px; }
}

@media (max-width: 370px) {
  .hero-text h1 { font-size: 38px; line-height: 34px; }
  .c-ya .foot .name, .c-cat .ttl, .sc .nm, .join h2, .modal-header h3 { font-size: 16px; line-height: 15px; }
  .header-btn { padding: 0 6px; font-size: 7.5px; height: 32px; }
  .logo { height: 28px; }
  .c-ya .foot .arrow-btn { width: 38px; height: 34px; }
  .c-cat .obtn { margin: 0 6px 8px 6px; padding: 9px 0; font-size: 10px; }
  .join .btn { padding: 11px 28px; }
  .hero-sub { font-size: 10px; }
}

@media (max-width: 330px) {
  .hero-text h1 { font-size: 34px; line-height: 30px; }
  .c-ya .foot .name, .c-cat .ttl, .sc .nm, .join h2, .modal-header h3 { font-size: 14px; line-height: 13px; }
  .header-btn { padding: 0 4px; font-size: 7px; }
  .sc .nm { font-size: 13px; }
  #text-tg { letter-spacing: 1.5px; }
}
