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

:root {
  --brand-red: #d90429;
  --brand-red-dark: #9b001a;
  --brand-red-soft: rgba(217, 4, 41, 0.09);
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --surface-card: #ffffff;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.14);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f9 55%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   ВЕРХНЯЯ НАВИГАЦИОННАЯ ПАНЕЛЬ (ПРЕМИУМ + ПЛАВАЮЩАЯ ЛИНИЯ)
   ========================================================= */
.navbar {
  position: relative;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar > .container-fluid {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

.navbar-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-left: -10px;
  border-radius: 16px;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Мягкий радиальный ореол в фирменных цветах газеты позади логотипа */
.navbar-brand::before {
  content: "";
  position: absolute;
  inset: -6px -14px;
  border-radius: 22px;
  background: radial-gradient(
    ellipse at 45% 50%,
    rgba(217, 4, 41, 0.26) 0%,
    rgba(255, 30, 66, 0.15) 45%,
    rgba(255, 122, 69, 0.06) 70%,
    transparent 85%
  );
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

/* Акцентная газетная красная линия с неоновым свечением снизу логотипа */
.navbar-brand::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #d90429 18%,
    #ff1e42 50%,
    #d90429 82%,
    transparent 100%
  );
  box-shadow:
    0 0 12px rgba(217, 4, 41, 0.85),
    0 0 24px rgba(255, 30, 66, 0.55);
  opacity: 0;
  transform: scaleX(0.2);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.navbar-brand img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-brand:hover::before {
  opacity: 1;
  transform: scale(1.06);
  animation: logoAuraPulse 2.2s ease-in-out infinite alternate;
}

.navbar-brand:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar-brand:hover img {
  transform: translateY(-2px) scale(1.045);
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 10px rgba(217, 4, 41, 0.65))
    drop-shadow(0 0 22px rgba(255, 30, 66, 0.48))
    drop-shadow(0 6px 26px rgba(217, 4, 41, 0.35));
  animation: logoEditorialGlow 2.2s ease-in-out infinite alternate;
}

@keyframes logoEditorialGlow {
  0% {
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 9px rgba(217, 4, 41, 0.6))
      drop-shadow(0 0 20px rgba(255, 30, 66, 0.42))
      drop-shadow(0 6px 24px rgba(217, 4, 41, 0.3));
  }
  100% {
    filter:
      drop-shadow(0 0 3px rgba(255, 255, 255, 1))
      drop-shadow(0 0 14px rgba(255, 30, 66, 0.82))
      drop-shadow(0 0 30px rgba(217, 4, 41, 0.65))
      drop-shadow(0 8px 34px rgba(255, 82, 82, 0.45));
  }
}

@keyframes logoAuraPulse {
  0% {
    opacity: 0.85;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.navbar-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1e293b !important;
  padding: 12px 20px !important;
  border-radius: 12px;
  position: relative;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--brand-red) !important;
  background-color: rgba(217, 4, 41, 0.05);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.is-current-page {
  color: var(--brand-red) !important;
}

/* Плавающая красная линия под текстом вкладок */
.nav-floating-line {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 3.5px;
  width: 0;
  background: linear-gradient(90deg, #ff1e42 0%, #d90429 50%, #9b001a 100%);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(217, 4, 41, 0.45);
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
  opacity: 0;
  z-index: 5;
}

.navbar-toggler {
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.2);
}

.navbar .dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px;
  min-width: 170px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  margin-top: 4px !important;
  animation: navDropdownFade 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar .dropdown-item {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: #1e293b;
  padding: 9px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.navbar .dropdown-item::after {
  content: "→";
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
  color: var(--brand-red);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--brand-red-soft);
  color: var(--brand-red);
  padding-left: 20px;
}

.navbar .dropdown-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   КАРТОЧКИ РЕДАКЦИИ
   ========================================================= */
.container.my-5 {
  max-width: 1320px;
  margin-top: 3rem !important;
  margin-bottom: 4rem !important;
  padding: 0 24px;
}

.card {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 22px !important;
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.36s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 4, 41, 0.22) !important;
}

/* Обёртка изображения и само фото с возможностью открытия */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 360px;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.62) saturate(1.25);
  transform: scale(1.14);
  z-index: 1;
  pointer-events: none;
}

.card-img-top {
  width: 100%;
  height: 360px;
  object-fit: contain !important;
  object-position: center center;
  cursor: zoom-in;
  display: block;
  background: transparent;
  position: relative;
  z-index: 2;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease;
}

.card:hover .card-img-top {
  filter: brightness(1.03);
}

/* Плашка-подсказка при наведении на карточку */
.staff-photo-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
  z-index: 3;
}

.card:hover .staff-photo-hint {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.card:hover .card-title::after {
  width: 72px;
}

.card-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО ОТКРЫТИЯ ФОТОГРАФИИ РЕДАКТОРА (LIGHTBOX)
   ========================================================= */
.staff-photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2050;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.staff-photo-modal.show {
  display: flex;
  opacity: 1;
}

.staff-modal-content {
  position: relative;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: staffModalZoom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes staffModalZoom {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.staff-modal-img-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.staff-modal-img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #0f172a;
}

.staff-modal-caption {
  margin-top: 16px;
  text-align: center;
  max-width: 680px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 24px;
  border-radius: 16px;
  color: #ffffff;
}

.staff-modal-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.staff-modal-bio {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.staff-modal-close {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2060;
  transition: all 0.2s ease;
}

.staff-modal-close:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: rotate(90deg) scale(1.06);
}

.staff-modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2060;
  transition: all 0.2s ease;
}

.staff-modal-prev {
  left: 28px;
}

.staff-modal-next {
  right: 28px;
}

.staff-modal-nav:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-50%) scale(1.08);
}

/* =========================================================
   КНОПКА НАВЕРХ И ФУТЕР
   ========================================================= */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--brand-red) 0%,
    var(--brand-red-dark) 100%
  );
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 10px 24px rgba(217, 4, 41, 0.35);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
}

.info-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 3.2rem 0 2.6rem;
  margin-top: auto;
  border-top: 4px solid var(--brand-red);
}

.info-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.info-content {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  font-size: 0.98rem;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.info-item strong {
  color: #ffffff;
  font-weight: 600;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.22s ease;
}

.info-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .navbar {
    padding: 0.38rem 0;
  }
  .navbar > .container-fluid {
    padding: 0 14px;
  }
  .navbar-brand {
    max-width: calc(100% - 62px);
    padding: 2px 0;
  }
  .navbar-brand img {
    max-height: 44px;
    max-width: 195px;
    width: auto;
  }
  .navbar-toggler {
    padding: 6px 10px;
  }

  .navbar-collapse {
    background: #ffffff;
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .nav-floating-line,
  .navbar .dropdown-menu::before {
    display: none;
  }

  .navbar .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    margin-top: 6px !important;
  }
}

@media (max-width: 767.98px) {
  .card::before,
  .card-img-top {
    height: 320px;
  }

  .staff-photo-hint {
    opacity: 0.92;
    transform: none;
  }

  .staff-modal-prev {
    left: 10px;
  }

  .staff-modal-next {
    right: 10px;
  }
}
