/* ============================================
   ТОЧКА ОПОРЫ — Components
   Hero, Bento Grid, Timeline, Telegram, Footer,
   Buttons, Cards, Page-specific
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-white);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 94, 58, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid var(--color-cream);
}

.btn--outline:hover {
  background: var(--color-cream);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-cream);
  padding: 8px 0;
}

.btn--ghost::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn--ghost:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--ghost:hover {
  color: var(--color-coral);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.tag--coral  { border-color: var(--color-coral);  color: var(--color-coral); }
.tag--teal   { border-color: var(--color-teal);   color: var(--color-teal); }
.tag--amber  { border-color: var(--color-amber);  color: var(--color-amber); }
.tag--indigo { border-color: var(--color-lavender); color: var(--color-lavender); }

/* ================================
   HERO — «Точка Входа»
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg picture,
.hero__bg .hero__bg-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 14, 0.3) 0%,
    rgba(14, 14, 14, 0.6) 50%,
    rgba(14, 14, 14, 0.95) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
}

.hero__label .dot {
  width: 8px;
  height: 8px;
  background: var(--color-coral);
  border-radius: 50%;
}

.hero__title {
  overflow: hidden;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line span {
  display: inline-block;
  transform: translateY(110%);
}

.hero__subtitle {
  max-width: 600px;
  margin-top: 32px;
  opacity: 0;
  color: rgba(245, 237, 227, 0.7);
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero__scroll-mouse {
  display: flex;
  justify-content: center;
  width: 26px;
  height: 40px;
  padding-top: 8px;
  border: 2px solid rgba(245, 237, 227, 0.42);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(255, 94, 58, 0.08);
}

.hero__scroll-wheel {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-coral);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  55% {
    transform: translateY(8px);
    opacity: 0;
  }

  56% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-coral), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 767px) {
  .hero__scroll {
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .hero__scroll-mouse {
    width: 22px;
    height: 34px;
    padding-top: 7px;
    border-width: 1.5px;
    border-radius: 11px;
  }

  .hero__scroll-wheel {
    width: 3px;
    height: 7px;
  }

  .hero__scroll-line {
    height: 44px;
  }
}

/* ================================
   BENTO GRID — «Мастерство и Драйв»
   ================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.bento--single .bento__item {
  grid-column: 2 / span 2;
}

.bento--pair .bento__item {
  grid-column: span 2;
}

.bento__item {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
}

.bento__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--tall {
  grid-row: span 2;
  min-height: 580px;
}

.bento__item--accent-coral  { background: linear-gradient(135deg, #FF5E3A 0%, #D94E2F 100%); }
.bento__item--accent-indigo { background: linear-gradient(135deg, #4A2FBD 0%, #2D1B69 100%); }
.bento__item--accent-teal   { background: linear-gradient(135deg, #2ECEC5 0%, #1A8A83 100%); }
.bento__item--accent-amber  { background: linear-gradient(135deg, #F5A623 0%, #D4891A 100%); }

.bento__item-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bento__item-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.bento__item:hover .bento__item-bg img {
  transform: scale(1.08);
}

.bento__item-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14, 14, 14, 0.85) 100%);
}

.bento__item-content {
  position: relative;
  z-index: 1;
}

.bento__item-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.bento__item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 8px;
}

.bento__item-desc {
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.7);
  line-height: 1.5;
}

a.bento__item {
  text-decoration: none;
  color: inherit;
}

a.bento__item:hover {
  color: inherit;
}

.bento__item-meta {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.bento__item-meta i {
  font-size: 0.7rem;
}

.bento__item-sep {
  opacity: 0.4;
}

.bento__item-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.bento__item:hover .bento__item-link {
  color: var(--color-white);
  transform: translateX(4px);
}

.bento__item-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5rem;
  line-height: 1;
  opacity: 0.1;
  color: var(--color-white);
}

@media (max-width: 991px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__item--tall {
    min-height: 400px;
  }
}

@media (max-width: 575px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__item--wide {
    grid-column: span 1;
  }
  .bento--single .bento__item,
  .bento--pair .bento__item {
    grid-column: span 1;
  }
  .bento__item--tall {
    grid-row: span 1;
    min-height: 300px;
  }
}

/* ================================
   TIMELINE — «Таймлайн приключений»
   ================================ */
.timeline-section {
  overflow: hidden;
}

.timeline-track {
  display: flex;
  gap: 24px;
  padding: 40px 0 40px var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.timeline-track::-webkit-scrollbar {
  display: none;
}

.timeline-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.timeline-card:hover {
  transform: translateY(-6px);
}

.timeline-card__image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.timeline-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.timeline-card:hover .timeline-card__image img {
  transform: scale(1.06);
}

.timeline-card__date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-coral);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-card__body {
  padding: 24px;
}

.timeline-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.timeline-card__text {
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-coral);
}

.timeline-card__link:hover {
  color: var(--color-amber);
}

.timeline-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.timeline-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
  color: var(--color-cream);
  font-size: 1.2rem;
}

.timeline-nav__btn:hover {
  border-color: var(--color-coral);
  background: var(--color-coral);
}

@media (max-width: 575px) {
  .timeline-card {
    flex: 0 0 300px;
  }
}

/* ================================
   TELEGRAM FEED — «Пульс сообщества»
   ================================ */
.pulse-grid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.pulse-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.pulse-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-amber));
  transform: scaleX(0);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.pulse-card:hover::before {
  transform: scaleX(1);
}

.pulse-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-4px);
}

.pulse-card--featured {
  border-color: rgba(240, 113, 103, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.pulse-card--pinned {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-bg-card), var(--color-bg-card)) padding-box,
    linear-gradient(135deg, rgba(240, 113, 103, 0.95), rgba(244, 162, 97, 0.85) 52%, rgba(167, 139, 250, 0.75)) border-box;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(240, 113, 103, 0.1),
    0 0 40px rgba(240, 113, 103, 0.1);
}

.pulse-card--pinned::before {
  transform: scaleX(1);
  height: 4px;
}

.pulse-card--pinned:hover {
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(240, 113, 103, 0.22),
    0 0 48px rgba(240, 113, 103, 0.16);
}

.pulse-grid--split {
  align-items: stretch;
}

.pulse-grid__col--pinned,
.pulse-grid__col--feed {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pulse-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.pulse-card--compact {
  padding: 18px 20px;
}

.pulse-card--compact .pulse-card__image {
  aspect-ratio: 16 / 9;
}

.pulse-card--compact .pulse-card__title {
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
}

.pulse-card--compact .pulse-card__text {
  -webkit-line-clamp: 3;
  font-size: 0.88rem;
}

.pulse-card--pinned {
  height: 100%;
}

.pulse-card--pinned .pulse-card__title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  margin-top: 0;
}

.pulse-card--pinned .pulse-card__image--schedule {
  aspect-ratio: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(245, 237, 227, 0.08);
}

.pulse-card--pinned .pulse-card__image--schedule::after {
  display: none;
}

.pulse-card--pinned .pulse-card__image--schedule img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.pulse-card--pinned:hover .pulse-card__image--schedule img {
  transform: none;
}

.pulse-card__body {
  margin-top: 16px;
  color: rgba(245, 237, 227, 0.88);
  line-height: 1.7;
  font-size: 0.92rem;
}

.pulse-card--pinned .pulse-card__body {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}

.pulse-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pulse-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pulse-card__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(240, 113, 103, 0.24), rgba(244, 162, 97, 0.18));
  color: var(--color-coral);
  border: 1px solid rgba(240, 113, 103, 0.32);
  box-shadow: 0 8px 20px rgba(240, 113, 103, 0.12);
}

.pulse-card__badge .bi {
  font-size: 0.72rem;
}

.pulse-card__badge--soft {
  background: rgba(245, 237, 227, 0.06);
  color: rgba(245, 237, 227, 0.82);
  border-color: rgba(245, 237, 227, 0.14);
  box-shadow: none;
}

.pulse-card--pinned .pulse-card__avatar {
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber));
  box-shadow: 0 0 0 2px rgba(240, 113, 103, 0.22);
}

.pulse-card--pinned .pulse-card__image:not(.pulse-card__image--schedule),
.pulse-card--pinned .pulse-gallery {
  box-shadow:
    inset 0 0 0 1px rgba(245, 237, 227, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.24);
}

.pulse-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.pulse-card__meta {
  display: flex;
  flex-direction: column;
}

.pulse-card__channel {
  font-weight: 600;
  font-size: 0.9rem;
}

.pulse-card__time {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.pulse-card__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-cream);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pulse-card__title + .pulse-card__image,
.pulse-card__title + .pulse-gallery {
  margin-top: 20px;
}

.pulse-card__text {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(245, 237, 227, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pulse-card__footer {
  margin-top: auto;
  padding-top: 18px;
}

.pulse-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(28, 28, 36, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: inset 0 0 0 1px rgba(245, 237, 227, 0.07);
}

.pulse-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.42) 0%, transparent 52%);
  pointer-events: none;
  z-index: 1;
}

.pulse-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s var(--ease-out-expo);
}

.pulse-card:hover .pulse-card__image img {
  transform: scale(1.045);
}

.pulse-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  background: rgba(8, 8, 10, 0.72);
  color: var(--color-cream);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 237, 227, 0.18);
  font-size: 1.15rem;
  line-height: 1;
}

.pulse-video-play--card {
  width: 48px;
  height: 48px;
}

.pulse-cta {
  text-align: center;
  margin-top: 48px;
}

/* Сторис — полоса над сеткой */
.pulse-stories {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 28px;
  margin: 0 -4px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  -webkit-overflow-scrolling: touch;
}

.pulse-stories::-webkit-scrollbar {
  height: 4px;
}

.pulse-stories::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.pulse-story {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 76px;
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  color: var(--color-cream);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.pulse-story:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 4px;
  border-radius: 12px;
}

.pulse-story:hover {
  color: var(--color-cream);
  transform: translateY(-2px);
}

.pulse-story__ring {
  width: 68px;
  height: 68px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber) 55%, #8b5cf6);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-story__ring--seen {
  background: var(--color-border);
  padding: 2px;
}

.pulse-story__ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg-card);
  display: block;
}

.pulse-story__ring--video-cover {
  position: relative;
}

.pulse-story__video-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-bg-card);
  box-sizing: border-box;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(145deg, var(--color-coral) 0%, var(--color-amber) 52%, var(--color-coral-dark) 100%);
}

.pulse-story__video-icon i {
  font-size: 1.35rem;
  color: #fff;
  margin-left: 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.pulse-story__video-badge {
  position: absolute;
  inset: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.38);
  color: #fff;
  font-size: 1.1rem;
  pointer-events: none;
}

.pulse-story__video-badge i {
  margin-left: 2px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.pulse-story__title {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(245, 237, 227, 0.85);
}

.pulse-story--more {
  max-width: 96px;
}

.pulse-story--more .pulse-story__ring--more {
  background: linear-gradient(135deg, var(--color-coral), var(--color-amber) 55%, #8b5cf6);
  padding: 3px;
}

.pulse-story__more-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.pulse-story__more-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pulse-story__more-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-amber);
  opacity: 0.92;
  transition: transform var(--duration-fast) var(--ease-out-expo), opacity var(--duration-fast) var(--ease-out-expo);
}

.pulse-story__more-dots span:nth-child(2) {
  width: 6px;
  height: 6px;
  opacity: 1;
}

.pulse-story--more:hover .pulse-story__more-dots span:nth-child(1) {
  transform: translateY(-2px);
}

.pulse-story--more:hover .pulse-story__more-dots span:nth-child(2) {
  transform: translateY(-3px);
}

.pulse-story--more:hover .pulse-story__more-dots span:nth-child(3) {
  transform: translateY(-2px);
}

.pulse-story__title--more {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 0.6rem;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: rgba(245, 237, 227, 0.72);
}

.pulse-story--more:hover .pulse-story__title--more {
  color: rgba(245, 237, 227, 0.92);
}

.pulse-story--more.is-loading .pulse-story__more-dots {
  opacity: 0.35;
}

.pulse-story--more.is-loading .pulse-story__ring--more {
  animation: pulse-story-more-spin 0.9s linear infinite;
}

@keyframes pulse-story-more-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Галерея — квадратный коллаж */
.pulse-card--gallery .pulse-gallery {
  margin-top: 0;
}

.pulse-gallery {
  display: grid;
  gap: 3px;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(28, 28, 36, 0.95), rgba(8, 8, 12, 0.98));
  box-shadow: inset 0 0 0 1px rgba(245, 237, 227, 0.07);
}

/* 2 фото — пополам по ширине, каждая на всю высоту блока */
.pulse-gallery--2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

/* 3 фото — крупное слева, два компактных справа */
.pulse-gallery--3 {
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: 1fr 1fr;
}

.pulse-gallery--3 .pulse-gallery__cell:first-child {
  grid-row: 1 / -1;
}

/* 4 фото — сетка 2×2 */
.pulse-gallery--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.pulse-gallery__cell {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.pulse-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out-expo);
}

.pulse-card:hover .pulse-gallery__cell img {
  transform: scale(1.03);
}

.pulse-card__text--compact {
  margin-top: 10px;
  -webkit-line-clamp: 3;
}

.pulse-card--media .pulse-card__title,
.pulse-card--gallery .pulse-card__title {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* ================================
   STORY MODAL — просмотр сторис на сайте
   ================================ */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.story-modal[hidden] {
  display: none !important;
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story-modal__shell {
  position: relative;
  z-index: 1;
  width: min(420px, 100vw - 24px);
  height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 237, 227, 0.08);
}

.story-modal__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 12px 12px 8px;
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.45) 70%, transparent 100%);
  pointer-events: none;
}

.story-modal__progress-row {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.story-modal__seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.story-modal__seg-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-amber));
  transition: width 0.35s var(--ease-out-expo);
}

.story-modal__seg.is-done .story-modal__seg-fill {
  width: 100%;
  opacity: 0.95;
}

.story-modal__seg.is-current .story-modal__seg-fill {
  width: 100%;
  box-shadow: 0 0 12px rgba(240, 113, 103, 0.35);
}

.story-modal__seg.is-todo .story-modal__seg-fill {
  width: 0;
}

.story-modal__seg--more {
  flex: 0 0 28px;
  max-width: 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.story-modal__seg-more-dots {
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.story-modal__seg--more.is-active .story-modal__seg-more-dots {
  color: var(--color-coral);
}

.story-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.story-modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-modal__meta {
  font-size: 0.72rem;
  color: rgba(245, 237, 227, 0.55);
  white-space: nowrap;
}

.story-modal__close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out-expo);
}

.story-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.story-modal__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0a0a0c;
  display: flex;
  align-items: stretch;
}

.story-modal__frame {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

.story-modal__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-modal__caption {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 48px 16px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245, 237, 227, 0.95);
  background: linear-gradient(to top, rgba(6, 6, 8, 0.92) 0%, transparent 100%);
}

.story-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.45);
  color: rgba(245, 237, 227, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--duration-fast) var(--ease-out-expo), opacity 0.2s;
}

.story-modal__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.story-modal__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.story-modal__arrow--prev {
  left: 6px;
}

.story-modal__arrow--next {
  right: 6px;
}

@media (max-width: 575px) {
  .story-modal__shell {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .story-modal__stage {
    min-height: 0;
    flex: 1;
  }
}

.story-modal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.story-modal__video--placeholder,
.story-modal__video.is-loading {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(145deg, var(--color-coral) 0%, var(--color-amber) 50%, var(--color-coral-dark) 100%);
}

.story-modal__video--placeholder.is-loading::after,
.story-modal__video.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  animation: story-video-shimmer 1.4s ease-in-out infinite;
}

@keyframes story-video-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-modal__video--placeholder.is-loading::after,
  .story-modal__video.is-loading::after {
    animation: none;
    opacity: 0;
  }
}

.story-modal__img[hidden],
.story-modal__video[hidden] {
  display: none !important;
}

/* ================================
   PULSE PAGE — лента, фильтры, карточка материала
   ================================ */
.pulse-filters {
  margin-bottom: 40px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.pulse-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}

.pulse-filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-filters__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.pulse-filters__input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.pulse-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pulse-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pulse-feed-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
}

.pulse-feed-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-3px);
}

.pulse-feed-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.pulse-feed-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pulse-feed-card__thumb-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pulse-feed-card__type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(8, 8, 10, 0.75);
  color: rgba(245, 237, 227, 0.95);
}

.pulse-feed-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-feed-card__body time {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.pulse-feed-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}

.pulse-feed-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.75);
  line-height: 1.5;
}

.pulse-pagination-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pulse-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.pulse-pagination__item {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.pulse-pagination__item:hover:not(.pulse-pagination__item--disabled):not(.is-active) {
  border-color: var(--color-coral);
}

.pulse-pagination__item.is-active {
  border-color: var(--color-coral);
  background: rgba(240, 113, 103, 0.12);
}

.pulse-pagination__item--disabled {
  opacity: 0.35;
  cursor: default;
}

.pulse-page-error,
.pulse-page-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--color-muted);
}

.pulse-detail-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.pulse-detail__nav {
  margin-bottom: 28px;
}

.pulse-detail__back {
  font-size: 0.9rem;
  color: var(--color-coral);
  text-decoration: none;
}

.pulse-detail__back:hover {
  text-decoration: underline;
}

.pulse-detail__header {
  margin-bottom: 28px;
}

.pulse-detail__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(240, 113, 103, 0.15);
  color: var(--color-coral);
  margin-bottom: 12px;
}

.pulse-detail__time {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.pulse-detail__title {
  margin: 0;
}

.pulse-detail__cover {
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.28);
}

.pulse-detail__cover img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(78vh, 860px);
  object-fit: contain;
}

.pulse-detail__cover-video {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  background: #000;
}

.pulse-detail__video-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}

.pulse-detail__video {
  width: 100%;
  max-height: 70vh;
  display: block;
}

.pulse-detail__video-link {
  position: relative;
  display: block;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
  color: var(--color-cream);
  text-decoration: none;
}

.pulse-detail__video-link img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(78vh, 860px);
  object-fit: contain;
  opacity: 0.88;
}

.pulse-detail__video-link-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.pulse-detail__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.pulse-detail__gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.pulse-detail__gallery-item img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  object-fit: contain;
  display: block;
}

.pulse-detail__gallery-caption {
  padding: 8px 10px;
  font-size: 0.85rem;
  color: rgba(245, 237, 227, 0.78);
  background: rgba(0, 0, 0, 0.28);
  line-height: 1.4;
}

.pulse-detail__gallery-video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #000;
}

.pulse-detail__body {
  margin-bottom: 28px;
  color: rgba(245, 237, 227, 0.88);
  line-height: 1.7;
}

.pulse-detail__body p {
  margin-bottom: 1em;
}

.pulse-detail__tg {
  margin-top: 8px;
}

.pulse-detail__timeline {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(240, 113, 103, 0.06);
}

.pulse-detail__timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--color-coral);
}

.pulse-detail__timeline-chapter {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.pulse-detail__timeline-date,
.pulse-detail__timeline-anchor {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(245, 237, 227, 0.75);
}

.pulse-detail__cta {
  margin: 0 0 24px;
}

#pulse .pulse-card[data-pulse-id] {
  cursor: pointer;
}

/* ================================
   CREATIVE FOOTER
   ================================ */
.footer-cta {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  text-align: center;
  overflow: hidden;
}

.footer-cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-indigo-deep) 0%, var(--color-bg) 50%, var(--color-coral-dark) 100%);
  opacity: 0.4;
}

.footer-cta__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.footer-cta__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--color-coral);
  opacity: 0.15;
  top: -100px;
  right: -100px;
}

.footer-cta__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--color-indigo);
  opacity: 0.2;
  bottom: -80px;
  left: -80px;
}

.footer-cta__content {
  position: relative;
  z-index: 1;
}

.footer-cta__title {
  margin-bottom: 24px;
}

.footer-cta__text {
  max-width: 500px;
  margin: 0 auto 40px;
  color: rgba(245, 237, 227, 0.65);
}

.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-text {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-muted);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list a {
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.6);
  transition: color var(--duration-fast);
}

.footer__list a:hover {
  color: var(--color-coral);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
  font-size: 1.1rem;
}

.footer__social-link:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 991px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ================================
   PAGE: About
   ================================ */
.about-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  position: relative;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.value-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-6px);
}

.value-card__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.value-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.value-card__text {
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.6);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* ================================
   PAGE: History
   ================================ */
.history-timeline {
  position: relative;
  padding-left: 60px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.history-item {
  position: relative;
  margin-bottom: 64px;
}

.history-item__dot {
  position: absolute;
  left: -52px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-coral);
  border: 4px solid var(--color-bg);
}

.history-item__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--color-coral);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
}

.history-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.history-item__text {
  color: rgba(245, 237, 227, 0.65);
  line-height: 1.7;
  max-width: 600px;
}

/* ================================
   PAGE: Events / Blog
   ================================ */
.events-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.events-filter__btn {
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.events-filter__btn:hover,
.events-filter__btn.active {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: var(--color-white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.event-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-4px);
}

.event-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.event-card:hover .event-card__image img {
  transform: scale(1.05);
}

.event-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.event-card__body {
  padding: 24px;
}

.event-card__date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-coral);
  margin-bottom: 8px;
}

.event-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.event-card__excerpt {
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.6);
  line-height: 1.6;
  margin-bottom: 16px;
}

.event-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================================
   PAGE: Contacts
   ================================ */
.contact-locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.location-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.location-card__map {
  height: 260px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.location-card__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1) contrast(1.1);
  opacity: 0.7;
}

.location-card__body {
  padding: 32px;
}

.location-card__tag {
  margin-bottom: 12px;
}

.location-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.location-card__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-card__info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(245, 237, 227, 0.7);
}

.location-card__info-row i {
  color: var(--color-coral);
  margin-top: 4px;
}

.contact-form {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-coral);
}

.form-control::placeholder {
  color: var(--color-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 767px) {
  .contact-locations {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px;
  }
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee__track {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  padding: 0 48px;
  color: rgba(245, 237, 227, 0.08);
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee__item .dot {
  width: 12px;
  height: 12px;
  background: var(--color-coral);
  border-radius: 50%;
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
}

.stat-item__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--color-coral);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

@media (max-width: 767px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Page Header (inner pages) --- */
.page-header {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: calc(var(--nav-height) + 40px);
  position: relative;
  background: var(--color-bg-alt);
}

.page-header__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 18rem);
  text-transform: uppercase;
  color: rgba(245, 237, 227, 0.02);
  white-space: nowrap;
  pointer-events: none;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

/* --- Separator / Divider --- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-coral);
  border-radius: 3px;
}

/* --- Quote block --- */
.quote-block {
  border-left: 3px solid var(--color-coral);
  padding: 24px 32px;
  margin: 40px 0;
  background: rgba(255, 94, 58, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block__text {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(245, 237, 227, 0.8);
}

.quote-block__author {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
