:root {
  --bg-deep: #020610;
  --bg-blue: #071a45;
  --bg-electric: #1d62ff;
  --text-main: #f5f4ee;
  --text-soft: rgba(245, 244, 238, 0.86);
  --panel: rgba(5, 8, 18, 0.38);
  --panel-border: rgba(255, 255, 255, 0.16);
  --message-bg: #ece8db;
  --message-text: #414141;
  --button-light: #80b6ff;
  --button-dark: #1a1fb8;
  --button-border: rgba(203, 230, 255, 0.92);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.38);
  --shadow-button: 0 12px 30px rgba(23, 39, 138, 0.34);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Raleway', Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 15%, rgba(29, 98, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(5, 18, 55, 0.72), transparent 40%),
    linear-gradient(180deg, #01040c 0%, #030917 100%);
}

a { color: inherit; }

.welcome-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at center, rgba(18, 59, 168, 0.45), transparent 34%),
    linear-gradient(180deg, rgba(1, 5, 12, 0.96), rgba(2, 7, 20, 0.98));
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.08) brightness(0.62);
}

.bg-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.2) 0%, rgba(2, 4, 10, 0.56) 100%),
    radial-gradient(circle at 50% 38%, rgba(24, 92, 255, 0.18), transparent 28%);
}

.bg-video-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.72);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 32px;
}

.welcome-shell {
  align-items: flex-start;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

.welcome-card {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.brand-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.brand-logo {
  width: clamp(94px, 26vw, 132px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.brand-logo-fallback {
  display: none;
  font-family: 'Forum', serif;
  font-size: 92px;
  line-height: 0.9;
  color: #ffffff;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.logo-fallback-visible .brand-logo-fallback {
  display: block;
}

.welcome-kicker {
  margin: 0 0 14px 0;
  font-size: clamp(17px, 4.1vw, 21px);
  line-height: 1.25;
  color: var(--text-main);
  text-wrap: balance;
}

.member-name {
  margin: 0 0 26px 0;
  font-family: 'Forum', serif;
  font-size: clamp(45px, 11.2vw, 66px);
  line-height: 0.90;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fffdfa;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  max-width: 100%;
  text-wrap: balance;
}

.message-card {
  width: 100%;
  background: var(--message-bg);
  color: var(--message-text);
  border-radius: 24px;
  padding: 22px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.message-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.cta-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
}

.hero-btn,
.share-link,
.member-item {
  appearance: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease, background .22s ease, filter .22s ease;
}

.hero-btn:hover,
.share-link:hover,
.member-item:hover {
  transform: translateY(-2px);
}

.hero-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 74px;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1.6px solid var(--button-border);
  background: linear-gradient(90deg, rgba(132, 186, 255, 0.96) 0%, rgba(28, 36, 190, 0.96) 54%, rgba(110, 173, 255, 0.96) 100%);
  color: #fffdf7;
  font-family: 'Forum', serif;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-button);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.hero-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 42%);
  z-index: 0;
  pointer-events: none;
}

.hero-btn::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -68%;
  width: 38%;
  height: 170%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 25%,
    rgba(255,255,255,0.38) 50%,
    rgba(255,255,255,0.08) 75%,
    rgba(255,255,255,0) 100%
  );
  filter: blur(1px);
  pointer-events: none;
  animation: btnShine 3.8s ease-in-out infinite;
  z-index: 1;
}

.hero-btn > * {
  position: relative;
  z-index: 2;
}

.hero-btn:hover {
  box-shadow: 0 16px 36px rgba(23, 39, 138, 0.42);
  filter: saturate(1.05) brightness(1.03);
}

.hero-btn:active {
  transform: translateY(1px) scale(.995);
}

.hero-btn-secondary {
  min-height: 68px;
  font-size: clamp(17px, 4.7vw, 20px);
}

.share-link {
  align-self: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 4px 0;
  margin-top: 2px;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
}

.video-modal.active {
  display: flex;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 14, 0.82);
  backdrop-filter: blur(8px);
}

.video-dialog {
  position: relative;
  width: min(100%, 880px);
  border-radius: 24px;
  overflow: hidden;
  background: #05070d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: black;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.list-card {
  width: 100%;
  max-width: 920px;
  background: rgba(7, 11, 21, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.list-card h1 {
  margin: 0 0 10px;
  font-family: 'Forum', serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.94;
}

.lead {
  margin: 0;
  color: rgba(245, 244, 238, 0.76);
  font-size: 16px;
  line-height: 1.6;
}

.list-shell { align-items: flex-start; }

.member-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  border-radius: 18px;
  padding: 18px;
}

.member-item strong,
.member-item span { display: block; }

.member-item div span {
  color: rgba(245, 244, 238, 0.72);
  margin-top: 4px;
  font-size: 14px;
}

.empty-state {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 20px;
  color: rgba(245, 244, 238, 0.72);
}

@keyframes btnShine {
  0% {
    left: -68%;
    opacity: 0;
  }
  8% {
    opacity: .95;
  }
  24% {
    left: 132%;
    opacity: .95;
  }
  31% {
    left: 132%;
    opacity: 0;
  }
  100% {
    left: 132%;
    opacity: 0;
  }
}

@media (min-width: 700px) {
  .welcome-shell {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .welcome-shell {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }

  .brand-block {
    margin-top: 4px;
    margin-bottom: 16px;
    min-height: 88px;
  }

  .welcome-kicker {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .member-name {
    margin-bottom: 22px;
    font-size: clamp(41px, 10.8vw, 58px);
    line-height: 0.92;
  }

  .welcome-card {
    gap: 0;
  }

  .message-card {
    padding: 20px 18px;
    border-radius: 22px;
    margin-bottom: 22px;
  }

  .message-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  .cta-stack {
    gap: 12px;
  }

  .hero-btn {
    min-height: 70px;
  }

  .share-link {
    padding-top: 8px;
  }
}

@media (max-width: 480px){

  .welcome-shell{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100dvh;
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .welcome-card{
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ЛОГО ВСЕГДА СВЕРХУ */
  .brand-block{
    order: 0;
    width: 100%;
    min-height: auto;
    margin-top: 0;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-logo{
    width: clamp(88px, 24vw, 120px);
    max-width: 120px;
  }

  /* ПОДЗАГОЛОВОК */
  .welcome-kicker{
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.22;
  }

  /* ИМЯ И ФАМИЛИЯ */
  .member-name{
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
    padding: 0 4px;
    font-family: 'Forum', serif;
    font-weight: 400;
    font-size: clamp(30px, 10.4vw, 58px);
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  /* КАРТОЧКА */
  .message-card{
    width: 100%;
    margin-bottom: 24px;
    padding: 18px 18px;
    border-radius: 22px;
  }

  .message-card p{
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
  }

  /* КНОПКИ */
  .cta-stack{
    width: 100%;
    gap: 14px;
  }

  .hero-btn{
    min-height: 70px;
    font-family: 'Forum', serif;
    font-weight: 400;
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1;
  }

  .hero-btn-secondary{
    min-height: 68px;
    font-size: clamp(16px, 4.7vw, 19px);
  }

  .share-link{
    margin-top: 8px;
    padding-top: 8px;
  }
}




.member-name{
  width: 100%;
  margin: 0 0 24px 0;
  text-align: center;
  font-family: 'Forum', serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
}

.member-name span{
  display: block;
  width: 100%;
  font-size: 64px; /* база */
  white-space: nowrap;
}