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

:root {
  --bg:     #0f0f13;
  --bg2:    #1a1a22;
  --card-w: 340px;
  --card-h: 460px;
  --text:   #f0f0f5;
  --text2:  #8888aa;
  --text3:  #555570;
  --border: rgba(255,255,255,.08);
  --blue:   #4f8eff;
  --green:  #3ecf8e;
  --red:    #ff5f6d;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', -apple-system, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(79,142,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,15,19,.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px; height: 64px;
}
.nav-logo {
  font-weight: 700; letter-spacing: 0;
  color: var(--text); text-decoration: none; flex-shrink: 0;
  /* font-size:0 убирает пробелы между inline-элементами */
  font-size: 0;
  display: flex !important; flex-direction: row !important;
  align-items: center !important; justify-content: flex-start !important;
  height: 64px; padding: 0 !important; white-space: nowrap;
}
/* Восстанавливаем размер текста внутри логотипа */
.nav-logo-text, .nav-logo span, .nav-logo-word {
  font-size: 22px;
}
.nav-logo:hover { color: var(--text) !important; opacity: 1 !important; }
.nav-center-icon {
  display: flex; align-items: center; justify-content: center;
}
.nav-center-icon svg {
  width: 38px;
  height: 38px;
  fill: #ffffff;
}

/* Меню прижато к правому краю */
.nav-links { display: flex; list-style: none; justify-content: flex-end; }

.nav-link {
  padding: 0 20px; height: 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-link:hover { opacity: .75; }
.nav-link.active .nav-tr { opacity: 1; }
.nav-link.active .nav-en { opacity: .55; }

.nav-tr {
  font-size: 15px; font-weight: 500; color: var(--text);
  letter-spacing: 0.9px; line-height: 1.5;
}
.nav-en {
  font-size: 10px; font-weight: 500; color: #767692;
  letter-spacing: 0.2px; line-height: 1.5; text-transform: uppercase;
}
.nav-link.active .nav-tr { color: #7DDBD4; }
.nav-link.active .nav-en { opacity: 1; }

/* ── TOAST ────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.12);
  color: var(--text); padding: 10px 20px; border-radius: 980px;
  font-size: 13px; font-weight: 500; z-index: 9999;
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav-burger { display: none; }
.nav-mob-icon { display: none; }

@media (max-width: 800px) {
  /* Nav */
  nav { padding: 0 20px; grid-template-columns: auto 1fr auto; height: 56px; }
  .nav-center-icon { display: none; }

  /* Мобильная иконка кота по центру */
  .nav-mob-icon {
    display: flex; align-items: center; justify-content: center;
    grid-column: 2; justify-self: center;
  }
  .nav-mob-icon svg { width: 32px; height: 32px; fill: #ffffff; }

  /* Логотип без пробелов — letter-spacing отрицательный */
  .nav-logo { font-size: 0 !important; white-space: nowrap; height: 56px !important; flex-direction: row !important; flex-wrap: nowrap !important; }
  .nav-logo span, .nav-logo-word { font-size: 17px !important; }

  /* Бургер виден только на мобиле */
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 40px; height: 40px; cursor: pointer;
    background: none; border: none; padding: 4px; justify-self: end;
  }
  .nav-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }

  /* Мобильное меню — выезжает сверху */
  .nav-links {
    position: fixed; top: 56px; left: 0; right: 0;
    background: rgba(15,15,19,.98);
    backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch;
    padding: 8px 0 16px; gap: 0;
    transform: translateY(-110%); opacity: 0;
    transition: transform .3s cubic-bezier(.25,.46,.45,.94), opacity .3s;
    pointer-events: none; z-index: 190;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    margin-left: 0;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-link {
    flex-direction: row; justify-content: flex-start;
    height: auto; padding: 14px 24px; gap: 0;
  }
  .nav-tr { font-size: 16px; }
  .nav-en { font-size: 11px; }

  /* Логотип слева занимает нужное место */
  .nav-logo { font-size: 18px !important; }
}

@media (max-width: 800px) {
  /* Главная страница — карточки вертикально */
}
