/* Hero viewport — Solar Bloom + glass wordmark (index.html) */

.hero-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--gradient-solar-bloom);
}

.hero-wordmark-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 40px;
  user-select: none;
  gap: 0;
}

/* Прозрачные «капли» — только буквы, без фона/рамки */
.hero-glass-letters {
  margin: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  paint-order: stroke fill;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(255, 255, 255, 0.46) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.72);
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 10px rgba(120, 170, 210, 0.14);
  filter: drop-shadow(0 1px 4px rgba(100, 150, 200, 0.1));
}

.hero-wordmark-text {
  paint-order: stroke fill;
  text-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.58),
    0 -1px 0 rgba(255, 255, 255, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.07),
    0 0 22px rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 7.5vw, var(--text-hero));
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
  transform: scaleX(1.55) scaleY(0.92);
  transform-origin: center;
  text-rendering: geometricPrecision;
  color: rgba(255, 255, 255, 0.36);
  -webkit-text-stroke: 1.25px var(--hero-glass-stroke);
}

/* Буквы «я» (учиться) + «в» (видеть) ↔ два синхронных мини-глаза */
.hero-wordmark-uchitsya,
.hero-wordmark-videt {
  display: inline;
  white-space: nowrap;
  letter-spacing: inherit;
  font: inherit;
  text-transform: inherit;
}

.hero-v-slot {
  position: relative;
  display: inline;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  letter-spacing: inherit;
}

.hero-v-letter {
  display: inline;
  margin: 0;
  padding: 0;
  letter-spacing: inherit;
  -webkit-text-stroke: 0.75px var(--hero-glass-stroke);
  transition:
    opacity 0.38s ease,
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
}

.hero-v-eye {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 0.68em;
  height: 0.68em;
  margin-left: -0.34em;
  margin-top: -0.34em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.65);
  pointer-events: none;
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-v-slot--small .hero-v-eye {
  width: 0.52em;
  height: 0.52em;
  margin-left: -0.26em;
  margin-top: -0.28em;
  top: 56%;
}

.hero-v-eye__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: center;
  transition: transform 0.09s ease-in;
}

.hero-v-eye__rim {
  stroke-width: 0.55;
}

.hero-v-eye__gaze {
  transform: translate(0, 0);
  will-change: transform;
}

.hero-v-slot--eye .hero-v-letter {
  opacity: 0;
  transform: scale(0.88);
}

.hero-v-slot--eye .hero-v-eye {
  opacity: 1;
  transform: scale(1);
}

.hero-v-slot--blink .hero-v-eye__svg {
  transform: scaleY(0.18);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: clamp(12px, 2vw, 22px);
  max-width: 90vw;
}

/* Бегущая строка — под wordmark, узкое «окно» с затуханием по краям */
.hero-ticker {
  margin-top: clamp(22px, 3.2vw, 40px);
  width: min(38em, 86vw);
  max-width: 100%;
}

.hero-ticker__window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

.hero-ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.hero-ticker__text {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-right: 3rem;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  paint-order: stroke fill;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 190, 228, 0.42) 42%,
    rgba(255, 130, 195, 0.58) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.85px rgba(255, 255, 255, 0.78);
  text-shadow:
    0 -1.5px 0 rgba(255, 255, 255, 0.62),
    0 -0.5px 0 rgba(255, 255, 255, 0.34),
    0 1px 0 rgba(190, 70, 130, 0.22),
    0 2px 10px rgba(255, 170, 215, 0.28);
  filter: drop-shadow(0 1px 4px rgba(180, 60, 120, 0.14));
}

.hero-bottom-bar {
  width: 100%;
  padding: var(--spacing-32) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-16);
}

.hero-nav-pills,
.hero-action-pills {
  display: flex;
  gap: var(--spacing-12);
}

@media (max-width: 768px) {
  .hero-ticker {
    width: min(34em, 92vw);
  }

  .hero-bottom-bar {
    flex-direction: column;
    gap: 16px;
    padding: var(--spacing-24) 20px;
  }

  .hero-nav-pills,
  .hero-action-pills {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker__track {
    animation: none !important;
  }

  .hero-v-letter,
  .hero-v-eye {
    transition: none !important;
  }

  .hero-v-eye {
    opacity: 0 !important;
    transform: none !important;
  }

  .hero-v-eye__gaze {
    will-change: auto;
  }
}
