:root {
  --bg: #eef1f7;
  --text: #182131;
  --accent: #f59e0b;
  --accent-strong: #de7f02;
  --dark: #09111f;
  --dark-soft: #122033;
  --light: #ffffff;
  --muted: #aeb8c7;
  --gold-soft: #f3cd81;
  --border-soft: rgba(255, 255, 255, 0.22);
  --border-strong: rgba(243, 205, 129, 0.36);
  --card-bg: rgba(250, 247, 241, 0.82);
  --card-dark: rgba(10, 18, 31, 0.68);
  --shadow-lg: 0 28px 80px rgba(9, 17, 31, 0.32);
  --shadow-md: 0 14px 40px rgba(9, 17, 31, 0.18);
  --max-width: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 20%),
    radial-gradient(circle at top right, rgba(61, 107, 168, 0.12), transparent 24%),
    linear-gradient(180deg, #f4f2ec 0%, #eef1f7 34%, #e8edf5 100%),
    var(--bg);
  color: var(--text);
  font-family: "Literata", serif;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 0;
  padding: 14px 8%;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -22px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 8, 14, 0.26), rgba(4, 8, 14, 0.08), transparent);
  backdrop-filter: blur(8px);
  mask-image: linear-gradient(180deg, #000000 0%, #000000 58%, transparent 100%);
  pointer-events: none;
}

.header-shell {
  min-height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(7, 14, 25, 0.72), rgba(7, 14, 25, 0.58)),
    url("header.png") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(9, 17, 31, 0.22);
  backdrop-filter: blur(16px) saturate(135%);
  pointer-events: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--light);
  text-shadow: 0 4px 20px rgba(9, 17, 31, 0.48);
}

.logo-text {
  font-family: "Berkshire Swash", "Literata", serif;
  font-size: clamp(2rem, 1.5rem + 1.3vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  color: #ffe7ad;
  font-style: normal;
  text-shadow:
    0 0 12px rgba(243, 205, 129, 0.5),
    0 0 24px rgba(222, 127, 2, 0.22),
    0 6px 22px rgba(0, 0, 0, 0.62);
}

.logo-text::first-letter {
  font-size: 1.18em;
}

.logo-image {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 30px rgba(9, 17, 31, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  position: relative;
  color: var(--light);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(9, 17, 31, 0.45);
  opacity: 0.88;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.82);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #f7b23c, var(--accent-strong));
  color: var(--light);
  border-radius: 999px;
  border-color: rgba(255, 234, 196, 0.22);
  box-shadow: 0 18px 36px rgba(222, 127, 2, 0.34);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  box-shadow: 0 22px 40px rgba(222, 127, 2, 0.42);
}

.btn-dark {
  min-width: 136px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(88, 49, 24, 0.82), rgba(28, 15, 9, 0.78));
  color: #fff1d1;
  border-color: rgba(243, 205, 129, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(9, 17, 31, 0.18);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  color: #ffffff;
  border-color: rgba(243, 205, 129, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 30px rgba(9, 17, 31, 0.22),
    0 0 20px rgba(243, 205, 129, 0.14);
}

.header-actions .btn-dark:last-child {
  background:
    linear-gradient(135deg, rgba(35, 74, 112, 0.86), rgba(11, 25, 45, 0.82));
  color: #e8f5ff;
  border-color: rgba(125, 198, 255, 0.24);
}

.header-actions .btn-dark:last-child:hover,
.header-actions .btn-dark:last-child:focus-visible {
  border-color: rgba(125, 198, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 30px rgba(9, 17, 31, 0.22),
    0 0 22px rgba(42, 171, 238, 0.16);
}

.paw-btn {
  min-width: 176px;
  gap: 8px;
}

.paw-icon {
  font-size: 1rem;
  line-height: 1;
}

.btn-outline-dark {
  border-color: rgba(24, 33, 49, 0.12);
  background: rgba(255, 255, 255, 0.42);
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: rgba(15, 23, 42, 0.92);
  color: var(--light);
  border-color: rgba(15, 23, 42, 0.92);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.04);
  color: var(--light);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.btn-large {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1rem;
}

main {
  scroll-snap-type: y proximity;
  background: #000000;
  padding-top: 0.1px;
}

.scene {
  min-height: 100vh;
  padding: 140px 8% 8vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
  scroll-margin-top: 120px;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.74) 12%, rgba(0, 0, 0, 0.3) 24%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.1) 64%, rgba(0, 0, 0, 0.24) 82%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(90deg, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0.18));
}

.scene::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 34vh;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.14) 12%, rgba(0, 0, 0, 0.28) 32%, rgba(0, 0, 0, 0.54) 58%, rgba(0, 0, 0, 0.8) 84%, #000000 100%);
  z-index: 0;
  pointer-events: none;
}

.scene.right {
  justify-content: flex-end;
}

.scene.right::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.74) 12%, rgba(0, 0, 0, 0.3) 24%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.1) 64%, rgba(0, 0, 0, 0.24) 82%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(270deg, rgba(6, 12, 22, 0.7), rgba(6, 12, 22, 0.18));
}

.scene.center {
  justify-content: center;
  text-align: center;
}

.scene.center::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.76) 12%, rgba(0, 0, 0, 0.34) 26%, rgba(0, 0, 0, 0.16) 40%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.28) 80%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.78), rgba(6, 12, 22, 0.28));
}

.scene + .scene {
  margin-top: 7vh;
}

.scene-1 {
  background-image: url("/static/img/1.jpeg");
  background-position: center right;
}

.scene-2 {
  background-image: url("/static/img/2.jpeg");
  background-position: center left;
}

.scene-3 {
  background-image: url("/static/img/3.jpeg");
  background-position: center right;
}

.scene-4 {
  background-image: url("/static/img/4.jpeg");
  background-position: center center;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 18px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
}

.content::before {
  content: none;
}

.content-dark {
  color: var(--light);
}

.content-centered {
  max-width: 700px;
}

.scene-description {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  color: var(--gold-soft);
  opacity: 0.96;
  font-family: "Literata", serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(9, 17, 31, 0.3);
}

.content:not(.content-dark) .scene-description {
  color: var(--gold-soft);
}

.content h2 {
  margin: 0 0 18px;
  font-family: "Literata", serif;
  font-size: clamp(2.65rem, 2.2rem + 1vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-wrap: balance;
  color: var(--light);
  text-shadow: 0 6px 28px rgba(9, 17, 31, 0.4);
}

.content p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  text-shadow: 0 4px 24px rgba(9, 17, 31, 0.35);
}

.content .btn {
  margin-top: 28px;
}

@supports ((animation-timeline: view()) and (animation-range: entry 0% cover 45%)) {
  .content {
    opacity: 0;
    transform: translateY(72px);
    animation: scene-reveal linear both;
    animation-timeline: view();
    animation-range: entry 8% cover 48%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes scene-reveal {
  from {
    opacity: 0;
    transform: translateY(72px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scene-4 .btn-accent:hover,
.scene-4 .btn-accent:focus-visible {
  animation: pulse 1s infinite;
}

.scene-4 .btn-large {
  position: relative;
  z-index: 2;
  box-shadow:
    0 10px 22px rgba(222, 127, 2, 0.22),
    0 0 18px rgba(245, 158, 11, 0.1);
}

.scene-4 .btn-large::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(180px, calc(100% + 64px));
  height: max(180px, calc(100% + 64px));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.1) 26%, rgba(245, 158, 11, 0.05) 48%, transparent 74%);
  filter: blur(18px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
}

.scene-1::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 10%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.08) 36%, rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(90deg, rgba(6, 12, 22, 0.58), rgba(6, 12, 22, 0.12));
}

.site-footer {
  position: relative;
  min-height: 60px;
  margin-top: 0;
  padding: 46px 8% 42px;
  background: #000000;
  color: var(--light);
  text-align: left;
  border-top: none;
  box-shadow: none;
  overflow: visible;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 140px;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.32) 38%, rgba(0, 0, 0, 0.74) 78%, #000000 100%);
  backdrop-filter: blur(5px);
  mask-image: linear-gradient(180deg, transparent 0%, #000000 34%, #000000 100%);
  pointer-events: none;
}

.site-footer::after {
  content: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.7fr) minmax(240px, 1fr) minmax(210px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 16px;
  font-family: "Berkshire Swash", "Literata", serif;
  font-size: 2.2rem;
  color: #ffe7ad;
  text-shadow: 0 0 16px rgba(243, 205, 129, 0.34);
}

.footer-brand p,
.footer-social p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 600;
}

.footer-brand span {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: #fff6df;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
  text-shadow: 0 0 12px rgba(243, 205, 129, 0.24);
}

.footer-social {
  display: block;
}

.footer-social p {
  margin-bottom: 18px;
}

.footer-telegram,
.footer-youtube {
  width: fit-content;
  min-width: 120px;
  min-height: 46px;
  padding: 0 20px;
  margin: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #ffffff !important;
  box-shadow:
    0 16px 30px rgba(34, 158, 217, 0.26),
    0 0 26px rgba(42, 171, 238, 0.18);
}

.footer-youtube {
  background: linear-gradient(135deg, #ff3131, #c91414);
  box-shadow:
    0 16px 30px rgba(201, 20, 20, 0.28),
    0 0 26px rgba(255, 49, 49, 0.2);
}

.footer-telegram:hover,
.footer-telegram:focus-visible,
.footer-youtube:hover,
.footer-youtube:focus-visible {
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.32);
}

.footer-telegram:hover,
.footer-telegram:focus-visible {
  box-shadow:
    0 20px 36px rgba(34, 158, 217, 0.34),
    0 0 34px rgba(42, 171, 238, 0.28);
}

.footer-youtube:hover,
.footer-youtube:focus-visible {
  box-shadow:
    0 20px 36px rgba(201, 20, 20, 0.38),
    0 0 34px rgba(255, 49, 49, 0.32);
}

a,
button,
h1,
h2,
h3,
p,
dd,
span,
.scene-description,
.member-role,
.event-kicker,
dt,
strong,
label span {
  transition:
    text-shadow 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

a:hover,
a:focus-visible,
button:hover,
button:focus-visible,
.scene-description:hover,
dt:hover,
label span:hover {
  text-shadow: 0 0 10px rgba(243, 205, 129, 0.42);
}

p:hover,
dd:hover,
span:hover,
strong:hover {
  text-shadow: 0 0 8px rgba(243, 205, 129, 0.28);
}

h1:hover,
h1:focus-visible,
h2:hover,
h2:focus-visible,
.event-body h2:hover,
.archive-card h2:hover {
  text-shadow:
    0 0 14px rgba(243, 205, 129, 0.44),
    0 0 30px rgba(243, 205, 129, 0.22),
    0 6px 24px rgba(0, 0, 0, 0.55);
}

.events-main,
.archive-main {
  min-height: 100vh;
  padding: 138px 8% 72px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(10, 6, 4, 0.92)),
    repeating-linear-gradient(90deg, rgba(96, 54, 28, 0.22) 0 18px, rgba(42, 23, 14, 0.26) 18px 38px),
    linear-gradient(135deg, #2b1810, #080504);
  color: var(--light);
}

.events-hero {
  max-width: var(--max-width);
  margin: 0 auto 42px;
}

.events-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 2rem + 2.7vw, 5.4rem);
  line-height: 0.98;
  color: #fff6df;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 22px rgba(243, 205, 129, 0.2);
}

.events-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 600;
}

.event-list,
.archive-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(243, 205, 129, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 229, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 20, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(0) scale(1);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.event-card:hover,
.event-card:focus-within {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(243, 205, 129, 0.56);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(243, 205, 129, 0.2);
}

.event-art {
  min-height: 380px;
  position: relative;
  background: #120c08;
}

.event-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 54%, rgba(8, 12, 20, 0.72) 100%);
  pointer-events: none;
}

.event-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-kicker,
.archive-card span {
  color: var(--gold-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-body h2,
.archive-card h2 {
  margin: 10px 0 14px;
  color: #ffffff;
  font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3.6rem);
  line-height: 1;
}

.event-body p,
.archive-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 600;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.event-meta div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(243, 205, 129, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.event-meta span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-meta strong {
  color: #ffffff;
  font-size: 1.35rem;
}

.ticket-many {
  color: #bff3c3;
}

.ticket-low {
  color: #ffd08a;
}

.ticket-sold {
  color: #ff9f9f;
}

.event-detail-main {
  min-height: 100vh;
  padding-top: 0.1px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.96) 62%, #000000 100%),
    url("/static/img/pawsington.jpg") center top / cover fixed no-repeat,
    #080504;
  color: var(--light);
}

.event-detail-hero {
  min-height: 88vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 170px 8% 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.event-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3) 62%, transparent),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 42%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.event-detail-hero h1 {
  max-width: 880px;
  margin: 0 0 20px;
  color: #fff6df;
  font-size: clamp(3rem, 2.1rem + 3.7vw, 6.8rem);
  line-height: 0.95;
  text-shadow:
    0 10px 36px rgba(0, 0, 0, 0.64),
    0 0 28px rgba(243, 205, 129, 0.24);
}

.event-detail-hero > p:not(.scene-description) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.72;
  font-weight: 700;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.54);
}

.event-detail-facts {
  width: min(760px, 100%);
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.event-detail-facts div {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 205, 129, 0.26);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.68);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.event-detail-facts dt {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-detail-facts dd {
  margin: 0;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
}

.event-scroll,
.ticket-section {
  padding: 72px 8%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(20, 10, 5, 0.92)),
    repeating-linear-gradient(90deg, rgba(96, 54, 28, 0.2) 0 18px, rgba(42, 23, 14, 0.22) 18px 38px);
}

.event-manuscript,
.ticket-section > * {
  max-width: var(--max-width);
  margin-inline: auto;
}

.event-manuscript {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(243, 205, 129, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 229, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 20, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.event-manuscript h2,
.section-heading h2 {
  margin: 0 0 18px;
  color: #fff6df;
  font-size: clamp(2.2rem, 1.7rem + 1.8vw, 4rem);
  line-height: 1;
}

.event-manuscript p,
.section-heading p:not(.scene-description) {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.78;
  font-weight: 600;
}

.event-manuscript p + p {
  margin-top: 18px;
}

.ticket-section {
  padding-top: 64px;
}

.section-heading {
  margin-bottom: 30px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ticket-card {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 205, 129, 0.3);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.84);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.34);
}

.ticket-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.38s ease, filter 0.38s ease;
}

.ticket-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.38) 54%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 60%);
  pointer-events: none;
}

.ticket-card-body,
.ticket-reveal {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 28px;
}

.ticket-card-body {
  bottom: 0;
}

.ticket-card-body span {
  color: var(--gold-soft);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-card-body h3 {
  margin: 10px 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 1.65rem + 1.5vw, 3.5rem);
  line-height: 1;
}

.ticket-card-body p,
.ticket-reveal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.62;
  font-weight: 700;
}

.ticket-reveal {
  top: auto;
  bottom: 0;
  display: grid;
  gap: 18px;
  background: rgba(7, 12, 20, 0.9);
  backdrop-filter: blur(14px) saturate(130%);
  transform: translateY(100%);
  transition: transform 0.32s ease;
}

.ticket-card:hover img,
.ticket-card:focus-within img {
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.08);
}

.ticket-card:hover .ticket-reveal,
.ticket-card:focus-within .ticket-reveal {
  transform: translateY(0);
}

.archive-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(243, 205, 129, 0.26);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.76);
  transform: translateY(0) scale(1);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.archive-card:hover,
.archive-card:focus-within {
  transform: translateY(-6px) scale(1.018);
  border-color: rgba(243, 205, 129, 0.52);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(243, 205, 129, 0.18);
}

.archive-preview {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}

.archive-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-main,
.profile-main {
  min-height: 100vh;
  padding: 138px 8% 72px;
  background:
    radial-gradient(circle at 20% 18%, rgba(243, 205, 129, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(9, 7, 6, 0.94)),
    url("header.png") center / cover fixed no-repeat,
    #090604;
  color: var(--light);
}

.auth-panel,
.profile-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  border: 1px solid rgba(243, 205, 129, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 229, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 20, 0.8);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.38);
}

.auth-panel {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  padding: clamp(24px, 4vw, 56px);
  align-items: center;
}

.auth-copy h1,
.profile-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 5rem);
  line-height: 0.98;
  color: #fff6df;
}

.auth-copy p:last-child,
.profile-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(243, 205, 129, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 700 1rem "Manrope", sans-serif;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-form input:focus {
  border-color: rgba(243, 205, 129, 0.58);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 22px rgba(243, 205, 129, 0.16);
}

.auth-link {
  justify-self: start;
  color: var(--gold-soft);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.profile-shell {
  grid-template-columns: 320px 1fr;
  padding: clamp(18px, 3vw, 34px);
}

.profile-card,
.profile-content {
  border: 1px solid rgba(243, 205, 129, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-card {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 16px;
  text-align: center;
}

.avatar-frame {
  width: 180px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 205, 129, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(243, 205, 129, 0.34), transparent 34%),
    linear-gradient(135deg, #2b1810, #09111f);
  color: #fff6df;
  font-size: 5rem;
  font-weight: 800;
  box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.34), 0 0 28px rgba(243, 205, 129, 0.14);
}

.avatar-button {
  width: 100%;
}

.profile-content {
  padding: clamp(24px, 4vw, 48px);
}

.profile-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.profile-data div,
.application-row {
  padding: 16px;
  border: 1px solid rgba(243, 205, 129, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-data dt {
  color: rgba(255, 255, 255, 0.56);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-data dd {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.applications-panel h2 {
  margin: 0 0 14px;
  color: #fff6df;
  font-size: 2rem;
}

.application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(0) scale(1);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.application-row:hover,
.application-row:focus-within {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(243, 205, 129, 0.42);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(243, 205, 129, 0.14);
}

.application-row + .application-row {
  margin-top: 12px;
}

.application-row strong,
.application-row span {
  display: block;
}

.application-row span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

.application-status {
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-review {
  color: #241605;
  background: #f3cd81;
}

.status-empty {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.team-main {
  background: #000000;
}

.team-room {
  min-height: 100svh;
  padding: 86px 0 82px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 8, 4, 0.86) 0%, rgba(18, 7, 4, 0.62) 16%, rgba(12, 5, 3, 0.34) 34%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.12) 64%, rgba(6, 4, 3, 0.86) 88%, #000000 100%),
    repeating-linear-gradient(90deg, rgba(39, 16, 8, 0.34) 0 16px, rgba(22, 9, 5, 0.38) 16px 34px),
    linear-gradient(135deg, #1b0b06, #070302);
}

.team-room::before,
.team-room::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}

.team-room::before {
  top: 0;
  height: 360px;
  background:
    linear-gradient(180deg, rgba(24, 10, 5, 0.46) 0%, rgba(18, 7, 4, 0.3) 34%, rgba(8, 3, 2, 0.12) 68%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(6px);
  mask-image: linear-gradient(180deg, #000000 0%, #000000 58%, transparent 100%);
}

.team-room::after {
  bottom: 0;
  height: 44%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(4, 3, 2, 0.34) 28%, rgba(0, 0, 0, 0.82) 72%, #000000 100%);
}

.team-page .team-room::after {
  height: 30%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(4, 3, 2, 0.18) 34%, rgba(0, 0, 0, 0.72) 82%, #000000 100%);
}

.team-page .site-footer::before {
  top: -88px;
  height: 88px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.68) 86%, #000000 100%);
}

/* ==========================================================================
   ОБНОВЛЕННЫЙ СТИЛЬ ЗАГОЛОВКА: ДЕРЕВЯННЫЙ ФОНОМ, РЕГИСТР И ИЗЯЩНЫЙ GLOW
   ========================================================================== */

.team-heading {
  width: 100%;
  max-width: 820px; /* Ограничиваем по ширине контента */
  text-align: center;
  padding: 24px 20px;
  margin: 24px auto 30px auto;
  
  /* Благородный глубокий цвет полированного темного дерева */
  background: linear-gradient(135deg, #2b1810 0%, #1c0f0a 100%);
  
  /* Текстурная деревянная рамка под общий стиль таверны */
  border: 2px solid rgba(243, 205, 129, 0.25);
  border-radius: 999px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5), /* Глубокая тень под плашкой */
    inset 0 0 15px rgba(0, 0, 0, 0.6); /* Внутреннее затемнение для объема фаски */
  
  position: relative;
  z-index: 10;
}

.team-heading h1 {
  font-family: 'Literata', serif;
  font-size: 2.8rem;
  font-weight: 700; /* В меру жирный, идеально подходящий под стиль Literata */
  color: #ffffff;
  margin: 0;
  padding: 0;
  letter-spacing: 0.04em;
  
  /* Убираем принудительный капс, оставляем оригинальный текст "Команда Pawty" */
  text-transform: none; 
  
  /* Многослойный магический Glow-эффект (золотистое неоновое свечение) */
  text-shadow: 
    0 0 8px rgba(243, 205, 129, 0.45),   /* Ближнее мягкое свечение */
    0 0 20px rgba(243, 205, 129, 0.25),  /* Дальнее объемное рассеивание */
    0 2px 4px rgba(0, 0, 0, 0.85);        /* Четкая темная подложка для читаемости */
  
  /* Анимация плавного изменения свечения при наведении */
  transition: text-shadow 0.3s ease;
}

/* При наведении мышки свечение элегантно усиливается */
.team-heading:hover h1 {
  text-shadow: 
    0 0 14px rgba(243, 205, 129, 0.65),
    0 0 28px rgba(243, 205, 129, 0.35),
    0 2px 5px rgba(0, 0, 0, 0.9);
}

.team-heading {
  width: min(820px, 88vw);
  padding: 22px 24px;
  border-width: 1px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(243, 205, 129, 0.2) 18%, rgba(243, 205, 129, 0.34) 50%, rgba(243, 205, 129, 0.2) 82%, transparent 100%) left bottom / 100% 1px no-repeat,
    linear-gradient(135deg, rgba(49, 28, 18, 0.9) 0%, rgba(20, 11, 8, 0.94) 100%);
}

.team-heading h1 {
  font-size: clamp(2.3rem, 1.7rem + 2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff6df;
  white-space: nowrap;
}


/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ И СУЖЕНИЕ ОКНА (max-width: 900px)
   ========================================================================== */

@media (max-width: 900px) {
  .team-heading {
    /* Полностью растворяем деревянную плашку в мобильной версии */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 10px 0 10px;
    margin: 0 auto 15px auto; /* Аккуратный отступ до рамок */
  }
  
  .team-heading h1 {
    font-size: 2rem; /* Комфортный размер текста для дисплеев смартфонов */
    letter-spacing: 0.02em;
    
    /* Сохраняем аккуратное свечение, чтобы текст стильно парил над портретами */
    text-shadow: 
      0 0 8px rgba(243, 205, 129, 0.5),
      0 2px 5px rgba(0, 0, 0, 0.95);
  }
  
  /* Корректируем верхнюю зону, чтобы стена не утыкалась в текст */
  .team-room {
    padding-top: 10px !important;
  }
}
.team-stage {
  width: 100%;
  padding: 0 1vw 28px;
  position: relative;
  z-index: 2;
}

.portrait-wall {
  width: min(1840px, 99vw);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
    url("/static/img/background.jpeg") center / 100% 100% no-repeat;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.portrait-wall::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 0;
  background: url("/static/img/background.jpeg") center / 100% 100% no-repeat;
  filter: blur(18px);
  opacity: 0.58;
  mask-image: radial-gradient(ellipse at center, transparent 42%, #000000 76%);
  pointer-events: none;
}

.portrait-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.22) 78%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 22%, transparent 58%, rgba(0, 0, 0, 0.58) 88%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.member-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  z-index: 3;
  border: 1px solid rgba(246, 208, 132, 0.5);
  background: rgba(18, 12, 8, 0.42);
  overflow: visible;
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    filter 0.32s ease,
    z-index 0s linear 0.38s;
  transform-origin: center;
  outline: none;
}

.top-card {
  z-index: 5;
}

.member-card:hover,
.member-card:focus-within,
.member-card:focus {
  z-index: 20;
  transition-delay: 0s;
  transform: scale(1.09);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.28),
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(245, 158, 11, 0.22);
}

.member-card.is-ceo:hover,
.member-card.is-ceo:focus-within,
.member-card.is-ceo:focus {
  transform: scale(1.07);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center top);
  filter: saturate(0.96) contrast(1.04);
  overflow: hidden;
}

.member-info {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 320px;
  max-width: 42vw;
  padding: 16px 18px;
  border: 1px solid rgba(246, 208, 132, 0.3);
  border-radius: 8px;
  background: rgba(7, 12, 20, 0.9);
  color: var(--light);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px) saturate(130%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  visibility: hidden;
  z-index: 30;
  transition:
    opacity 0.38s ease,
    transform 0.38s ease,
    visibility 0s linear 0.38s;
}

.top-card .member-info {
  top: 100%;
  bottom: auto;
  transform: translate(-50%, -8px);
}

.member-card:hover .member-info,
.member-card:focus-within .member-info,
.member-card:focus .member-info {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
  transition-delay: 0s;
}

.portrait-wall:has(.top-card:hover) .top-card:hover,
.portrait-wall:has(.top-card:focus-within) .top-card:focus-within,
.portrait-wall:has(.top-card:focus) .top-card:focus {
  z-index: 25;
}

.member-info h2 {
  margin: 0 0 4px;
  font-family: "Literata", serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
}

.member-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.member-info .member-role {
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-info a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .header-shell {
    gap: 18px;
    padding: 14px 16px;
    border-radius: 28px;
  }

  .content {
    max-width: 500px;
  }

  .team-stage {
    overflow-x: auto;
    padding-inline: 16px;
  }

  .portrait-wall {
    width: 1160px;
  }

  .team-heading {
    width: min(460px, 72vw);
    left: 28px;
  }

  .team-heading h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 4%;
  }

  .header-shell {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
    border-radius: 22px;
  }

  .logo {
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .logo-image {
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }

  .header-actions {
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .header-actions .btn {
    width: auto;
    min-width: 88px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.69rem;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 1 auto;
  }

  .paw-icon {
    display: none;
  }

  .paw-btn {
    min-width: 116px;
  }

  .scene {
    padding: 132px 4% 8vh;
    justify-content: center;
    background-attachment: scroll;
  }

  .scene.right,
  .scene.center {
    justify-content: center;
    text-align: left;
  }

  .scene::before,
  .scene.right::before,
  .scene.center::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.68) 14%, rgba(0, 0, 0, 0.28) 28%, rgba(0, 0, 0, 0.14) 42%, rgba(0, 0, 0, 0.12) 64%, rgba(0, 0, 0, 0.28) 82%, rgba(0, 0, 0, 0.46) 100%),
      linear-gradient(180deg, rgba(6, 12, 22, 0.72), rgba(6, 12, 22, 0.28));
  }

  .scene-1::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.48) 12%, rgba(0, 0, 0, 0.18) 26%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 62%, rgba(0, 0, 0, 0.22) 82%, rgba(0, 0, 0, 0.4) 100%),
      linear-gradient(180deg, rgba(6, 12, 22, 0.62), rgba(6, 12, 22, 0.22));
  }

  .scene + .scene {
    margin-top: 6vh;
  }

  .content,
  .content-centered {
    max-width: 100%;
    padding: 18px 0;
  }

  .content h2 {
    font-size: 2.15rem;
  }

  .content p {
    font-size: 16px;
  }

  .scene-description {
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .team-room {
    padding-top: 108px;
  }

  .events-main,
  .archive-main,
  .auth-main,
  .profile-main {
    padding: 118px 4% 54px;
  }

  .event-card,
  .archive-card,
  .auth-panel,
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .event-art {
    min-height: 260px;
  }

  .event-art::after {
    background: linear-gradient(180deg, transparent 42%, rgba(8, 12, 20, 0.72) 100%);
  }

  .event-meta {
    grid-template-columns: 1fr;
  }

  .event-detail-main {
    background-attachment: scroll;
  }

  .event-detail-hero {
    min-height: auto;
    padding: 138px 4% 58px;
  }

  .event-detail-facts,
  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .event-scroll,
  .ticket-section {
    padding: 48px 4%;
  }

  .ticket-card {
    min-height: 480px;
  }

  .ticket-reveal {
    position: relative;
    transform: none;
  }

  .profile-data {
    grid-template-columns: 1fr;
  }

  .application-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-heading {
    top: 104px;
    width: min(420px, 84vw);
  }

  .team-heading h1 {
    font-size: 1.9rem;
  }

  .member-info {
    width: 280px;
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 8px 4%;
  }

  .site-footer {
    margin-top: 0;
    padding: 36px 4%;
  }

  .header-shell {
    gap: 8px;
    padding: 8px 10px;
  }

  .logo-image {
    width: 34px;
    height: 34px;
  }

  .header-shell {
    flex-direction: column;
  }

  .header-actions {
    justify-content: center;
  }

  .header-actions .btn {
    min-height: 34px;
    min-width: 72px;
    padding: 0 8px;
    font-size: 0.63rem;
  }

  .scene {
    padding-top: 126px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column a {
    font-size: 0.88rem;
  }

  .footer-telegram,
  .footer-youtube {
    min-width: 126px;
  }

  .team-room {
    padding-top: 102px;
  }

  .portrait-wall {
    width: 1060px;
  }

  .member-info {
    width: 260px;
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  /* 1. Меняем фон и пропорции стены на мобильные */
  .portrait-wall {
    width: min(540px, 92vw); 
    aspect-ratio: 9 / 16;   
    background-image: 
      linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18)),
      url("/static/img/backgroundm.jpeg");
  }

  /* Размытый задний план */
  .portrait-wall::before {
    background-image: url("/static/img/backgroundm.jpeg") !important;
  }

  /* 2. Переносим карточки на твои места с правильной очередностью элементов */
  
  /* Верхний ряд рамок (3 штуки) */
  .portrait-wall .member-card:nth-child(1) { /* Lajornelle */
    --x: 7.4% !important; --y: 19.0% !important; --w: 21.4% !important; --h: 16.8% !important;
  }
  .portrait-wall .member-card:nth-child(2) { /* Codey */
    --x: 39.5% !important; --y: 19.0% !important; --w: 21.4% !important; --h: 16.8% !important;
  }
  .portrait-wall .member-card:nth-child(3) { /* Mike */
    --x: 71.3% !important; --y: 19.0% !important; --w: 21.4% !important; --h: 16.8% !important;
  }

  /* Средний ряд рамок (Слева, Ласка по центру, Справа) */
  .portrait-wall .member-card:nth-child(4) { /* Panda */
    --x: 7.4% !important; --y: 41.6% !important; --w: 21.4% !important; --h: 16.8% !important;
  }
  .portrait-wall .member-card:nth-child(6) { /* Laska (Она 6-я в HTML) */
    --x: 38.0% !important; --y: 41.0% !important; --w: 24.0% !important; --h: 17.8% !important;
  }
  .portrait-wall .member-card:nth-child(5) { /* FawyaN */
    --x: 71.3% !important; --y: 41.6% !important; --w: 21.4% !important; --h: 16.8% !important;
  }

  /* Нижний ряд рамок (3 штуки) */
  .portrait-wall .member-card:nth-child(7) { /* Milkyway */
    --x: 7.4% !important; --y: 64.0% !important; --w: 21.4% !important; --h: 16.8% !important;
  }
  .portrait-wall .member-card:nth-child(8) { /* RAnd */
    --x: 39.5% !important; --y: 64.0% !important; --w: 21.4% !important; --h: 16.8% !important;
  }
  .portrait-wall .member-card:nth-child(9) { /* Nikita */
    --x: 71.3% !important; --y: 64.0% !important; --w: 21.4% !important; --h: 16.8% !important;
  }

  /* 3. Корректируем всплывашки (member-info), чтобы на мобилках они не вылезали за экран */
  .member-info {
    width: 240px;
    max-width: 75vw;
  }
  
  /* Сдвиг для ЛЕВОГО столбца карточек (1, 4, 7), чтобы текст не улетал влево */
  .portrait-wall .member-card:nth-child(1) .member-info,
  .portrait-wall .member-card:nth-child(4) .member-info,
  .portrait-wall .member-card:nth-child(7) .member-info {
    left: 0;
    transform: translate(0, 8px);
  }
  .portrait-wall .member-card:nth-child(1):hover .member-info,
  .portrait-wall .member-card:nth-child(4):hover .member-info,
  .portrait-wall .member-card:nth-child(7):hover .member-info {
    transform: translate(0, 0);
  }

  /* Сдвиг для ПРАВОГО столбца карточек (3, 5, 9), чтобы текст не улетал вправо */
  .portrait-wall .member-card:nth-child(3) .member-info,
  .portrait-wall .member-card:nth-child(5) .member-info,
  .portrait-wall .member-card:nth-child(9) .member-info {
    left: auto;
    right: 0;
    transform: translate(0, 8px);
  }
  .portrait-wall .member-card:nth-child(3):hover .member-info,
  .portrait-wall .member-card:nth-child(5):hover .member-info,
  .portrait-wall .member-card:nth-child(9):hover .member-info {
    transform: translate(0, 0);
  }
}

@media (max-width: 900px) {
  .team-room {
    padding-top: 112px !important;
  }

  .team-heading {
    display: block;
    width: min(520px, 90vw);
    margin: 0 auto 18px auto;
    padding: 0 10px;
  }

  .team-heading h1 {
    display: block;
    font-size: clamp(1.9rem, 1.35rem + 3vw, 2.7rem);
    line-height: 1;
  }
}
