/* ===============================
   ГЛОБАЛЬНЫЕ НАСТРОЙКИ
   =============================== */

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

html {
  scroll-behavior: smooth;
}

body.nb-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 0%, rgba(148, 236, 180, 0.16) 0, transparent 50%),
              radial-gradient(circle at 85% 20%, rgba(92, 213, 255, 0.14) 0, transparent 55%),
              linear-gradient(to bottom, #031413 0%, #042126 45%, #06353C 100%);
  color: #f4f7fb;
  font-family: "NB-Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

/* ===============================
   ЛОКАЛЬНЫЕ ШРИФТЫ
   (файлы должны лежать в /fonts)
   =============================== */

@font-face {
  font-family: "NB-Display";
  src: url("../fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NB-Text";
  src: url("../fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NB-Text";
  src: url("../fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NB-Text";
  src: url("../fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   БАЗОВАЯ ТИПОГРАФИКА
   =============================== */

.nb-main {
  padding-top: 80px; /* компенсация фиксированного хедера */
}

.nb-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: #3ee7ff;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Ограничение ширины картинок по проекту */
.nb-img {
  display: block;
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
}

/* ===============================
   ХЕДЕР
   =============================== */

.nb-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  z-index: 50;
  background: rgba(3, 18, 19, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(32, 58, 62, 0.85);
}

.nb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nb-header__glow {
  position: absolute;
  inset: auto 0 -120px;
  height: 120px;
  background: radial-gradient(circle at 50% 0, rgba(148, 236, 180, 0.18), transparent 65%);
  opacity: 0.55;
  pointer-events: none;
}

/* Логотип */

.nb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f7fb;
  text-decoration: none;
}

.nb-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 15%, #ffb547 0, transparent 55%),
    radial-gradient(circle at 70% 85%, #3ee7ff 0, transparent 55%);
  box-shadow: 0 0 18px rgba(255, 181, 71, 0.75), 0 0 26px rgba(62, 231, 255, 0.35);
  position: relative;
}

.nb-logo__mark::after {
  content: "";
  position: absolute;
  inset: 6px 9px;
  border-radius: 999px;
  border: 2px solid rgba(3, 20, 19, 0.65);
}

.nb-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nb-logo__title {
  font-family: "NB-Display", system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nb-logo__tagline {
  font-size: 11px;
  color: #a3adc2;
}

/* Навигация */

.nb-nav {
  display: flex;
}

.nb-nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-nav__link {
  font-size: 14px;
  color: #c8d1e2;
  position: relative;
  padding-block: 4px;
}

.nb-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb547, #3ee7ff);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nb-nav__link:hover::after,
.nb-nav__link:focus-visible::after,
.nb-nav__link--active::after {
  width: 100%;
}

/* ===============================
   БУРГЕР ДЛЯ МОБИЛКИ
   =============================== */

.nb-nav-toggle {
  display: none; /* по умолчанию скрыт (десктоп) */
  width: 36px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(103, 138, 141, 0.7);
  background: radial-gradient(circle at 30% 0, rgba(255, 181, 71, 0.18), transparent 55%),
              rgba(4, 33, 38, 0.9);
  cursor: pointer;

  /* настройки для мобильного состояния, включатся когда display станет flex */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nb-nav-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f4f7fb;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

/* Состояние открытого меню (крестик) */

.nb-header--nav-open .nb-nav-toggle__line:nth-child(1) {
  transform: translateY(4px) rotate(35deg);
}

.nb-header--nav-open .nb-nav-toggle__line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nb-header--nav-open .nb-nav-toggle__line:nth-child(3) {
  transform: translateY(-4px) rotate(-35deg);
}

.nb-header--nav-open .nb-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   КНОПКИ
   =============================== */

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nb-btn--primary {
  background: radial-gradient(circle at 0 0, #ffe4b4 0, transparent 45%),
              linear-gradient(135deg, #ffb547, #ff9147);
  color: #111827;
  box-shadow: 0 0 16px rgba(255, 181, 71, 0.7);
}

.nb-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 181, 71, 0.9);
}

.nb-btn--ghost {
  background: rgba(4, 22, 24, 0.9);
  border-color: rgba(102, 164, 169, 0.7);
  color: #f4f7fb;
}

.nb-btn--ghost:hover {
  background: rgba(7, 35, 39, 0.95);
  box-shadow: 0 0 16px rgba(62, 231, 255, 0.55);
}

/* ===============================
   FOOTER
   =============================== */

.nb-footer {
  border-top: 1px solid rgba(34, 61, 66, 0.9);
  padding: 32px 0 40px;
  background: radial-gradient(circle at 50% 0, rgba(92, 213, 255, 0.12), transparent 65%),
              rgba(3, 18, 19, 0.95);
  margin-top: 40px;
}

.nb-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.nb-footer__brand strong {
  font-family: "NB-Display", system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nb-footer__brand p {
  margin-top: 10px;
  max-width: 380px;
  font-size: 14px;
  color: #c8d1e2;
}

.nb-footer__meta {
  max-width: 420px;
  font-size: 12px;
  color: #91a1b9;
}

.nb-footer__copy {
  margin: 0 0 6px;
}

.nb-footer__note {
  margin: 0;
}

/* ===============================
   ОБЩИЕ АНИМАЦИИ РАСКРЫТИЯ
   =============================== */

.nb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nb-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   АДАПТИВ
   =============================== */

@media (max-width: 960px) {
  .nb-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nb-main {
    padding-top: 72px;
  }

  .nb-nav-toggle {
    display: inline-flex; /* на мобильных показываем бургер */
  }

  .nb-nav {
    position: absolute;
    inset: 64px 0 auto 0;
    background: radial-gradient(circle at 50% 0, rgba(92, 213, 255, 0.12), transparent 65%),
                rgba(3, 18, 19, 0.98);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nb-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 16px;
    gap: 14px;
  }

  .nb-footer {
    padding-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .nb-logo__title {
    font-size: 14px;
  }

  .nb-logo__tagline {
    display: none;
  }

  .nb-footer__brand p {
    font-size: 13px;
  }
}
.nb-footer__legal {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.nb-footer__legal-item {
  margin: 0;
}

.nb-footer__legal-link {
  font-size: 12px;
  color: #c8d1e2;
  text-decoration: none;
  border-bottom: 1px dashed rgba(145, 161, 185, 0.6);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nb-footer__legal-link:hover,
.nb-footer__legal-link:focus-visible {
  color: #3ee7ff;
  border-color: rgba(62, 231, 255, 0.9);
  opacity: 1;
}
.nb-img {
  display: block;
  max-width: 350px;
  width: 100%;
  max-height: 280px;   /* ⬅ ограничиваем высоту */
  height: auto;
  border-radius: 18px;
  object-fit: cover;   /* аккуратно обрезает, если фото слишком вытянутое */
}
