@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080808;
  --panel: #111111;
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d3b17a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --safe-top: max(1.25rem, env(safe-area-inset-top));
  --safe-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

a,
button,
input,
label,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(211, 177, 122, 0.18), transparent 24%),
    linear-gradient(180deg, #131313 0%, #080808 42%, #050505 100%);
  color: var(--text);
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", sans-serif;
}

body {
  overflow: hidden;
}

body.is-intro-running .top-links,
body.is-intro-running .language-toggle,
body.is-intro-running .brand-logo {
  opacity: 0;
  animation: headerReveal 900ms ease 1800ms forwards;
}

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

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.intro-overlay {
  --intro-final-top: calc(var(--safe-top) + 1.6rem);
  --intro-final-size: 3rem;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  animation: introOverlayExit 2600ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  animation: introBlackout 2600ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.intro-logo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48vw, 18rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: introLogoMove 2600ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.intro-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-logo-color {
  animation: introColorLogo 2600ms ease forwards;
}

.intro-logo-white {
  opacity: 0;
  animation: introWhiteLogo 2600ms ease forwards;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: calc(var(--safe-top) + 3.2rem);
  padding: var(--safe-top) 1rem 0;
  pointer-events: none;
}

.brand-center,
.top-links {
  pointer-events: auto;
}

.brand-center {
  position: absolute;
  top: calc(var(--safe-top) + 1.6rem);
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-size: clamp(0.64rem, 2.45vw, 0.76rem);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.top-links-left {
  justify-content: flex-start;
}

.top-links-right {
  margin-left: auto;
  justify-content: flex-end;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  height: 1.65rem;
  padding: 0 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  pointer-events: auto;
}

.language-flag {
  width: 1.05rem;
  height: 0.7rem;
  display: block;
  border-radius: 0.12rem;
  object-fit: cover;
}

.language-code {
  font-size: 0.72em;
  font-weight: 700;
}

.shorts-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.shorts-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.shorts-feed {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.shorts-feed::-webkit-scrollbar {
  display: none;
}

.short-card {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #0b0b0b;
}

.short-media,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-media {
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-media.is-visible {
  opacity: 1;
}

.hero-overlay,
.card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.12) 0%, rgba(3, 3, 3, 0.42) 45%, rgba(3, 3, 3, 0.82) 100%);
}

.card-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(84vw, 34rem);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 0.8rem)) scale(0.99);
  transition:
    opacity 240ms ease-out,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  text-align: center;
}

.short-card.is-copy-visible .card-copy {
  opacity: 0.9;
  transform: translate(-50%, -50%) scale(1);
}

.lead-composition {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(84vw, 23rem);
  min-width: 0;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.72rem;
  color: #ffffff;
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", sans-serif;
}

.lead-title {
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: clamp(1.18rem, 4.7vw, 1.72rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.52);
}

.lead-form {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.78rem;
  color: #ffffff;
  padding: 1.35rem 1.15rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.05rem;
  background: linear-gradient(180deg, rgba(24, 34, 48, 0.66), rgba(10, 13, 17, 0.56));
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px) saturate(1.08);
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", sans-serif;
}

.lead-field {
  display: grid;
  gap: 0;
  min-width: 0;
}

.lead-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lead-field input {
  width: 100%;
  height: 3.05rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  outline: none;
  backdrop-filter: blur(12px);
}

.lead-field input::placeholder {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lead-field input:focus {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.17);
}

.lead-consent {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  text-align: left;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
  min-width: 0;
  margin-top: 0.05rem;
}

.lead-consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.06rem 0 0;
  accent-color: #ffffff;
}

.lead-submit {
  height: 3.2rem;
  min-width: 0;
  margin-top: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: #45e55f;
  color: #0c0c0c;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.lead-submit:active {
  transform: translateY(1px);
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.92rem, 7.8vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 11ch;
  margin: 0 auto;
  opacity: 0.9;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(1.52rem, 5.25vw, 2.42rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin: 0 auto;
  opacity: 0.9;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.brand-split-title {
  font-weight: 400;
}

.brand-title-word {
  font-weight: 900;
}

.feed-rail {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(-50%);
}

.rail-action {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0c0c0c;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  animation: messagePulse 4.8s ease-in-out infinite;
}

.feed-rail .rail-action:nth-child(1) {
  animation-delay: 0s;
}

.feed-rail .rail-action:nth-child(2) {
  animation-delay: 1.2s;
}

.feed-rail .rail-action:nth-child(3) {
  animation-delay: 2.4s;
}

.rail-action-message::after {
  content: "";
  position: absolute;
  top: -0.08rem;
  right: 0.12rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #45e55f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.rail-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

@keyframes headerReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes messagePulse {
  0%,
  62%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 0 0 rgba(255, 255, 255, 0.34);
  }

  82% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 0.55rem rgba(255, 255, 255, 0);
  }
}

@keyframes introOverlayExit {
  0%,
  88% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

@keyframes introBlackout {
  0%,
  52% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes introLogoMove {
  0% {
    top: 50%;
    width: min(48vw, 18rem);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  48% {
    top: 50%;
    width: min(48vw, 18rem);
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    top: var(--intro-final-top);
    width: var(--intro-final-size);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes introColorLogo {
  0%,
  48% {
    opacity: 1;
  }

  82%,
  100% {
    opacity: 0;
  }
}

@keyframes introWhiteLogo {
  0%,
  42% {
    opacity: 0;
  }

  78%,
  100% {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .intro-overlay {
    --intro-final-top: 4.8rem;
    --intro-final-size: 4.35rem;
  }

  .topbar {
    top: 1.25rem;
    left: 50%;
    right: auto;
    width: min(100%, 28rem);
    transform: translateX(-50%);
    gap: 0.95rem;
    height: 4.8rem;
    padding: 1.25rem 1.35rem 0;
  }

  .brand-logo {
    width: 4.35rem;
    height: 4.35rem;
  }

  .brand-center {
    top: 3.55rem;
  }

  .top-links {
    gap: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.075em;
    white-space: nowrap;
    transform: translateY(0.55rem);
  }

  .language-toggle {
    height: 1.8rem;
    padding: 0 0.55rem;
    transform: translateY(0.55rem);
  }

  h1 {
    font-size: clamp(1.88rem, 5.8vh, 3.08rem);
    line-height: 0.98;
    max-width: 9.8ch;
  }

  h2 {
    font-size: clamp(1.44rem, 4.5vh, 2.24rem);
    line-height: 1;
    max-width: 10.5ch;
  }

  .lead-composition {
    left: 50%;
    width: min(78%, 23rem);
    gap: 0.78rem;
  }

  .lead-form {
    padding: 1.4rem 1.2rem 1.2rem;
  }

  .lead-title {
    font-size: clamp(1.35rem, 3.6vh, 1.72rem);
  }

  .shorts-shell {
    padding: 1.25rem;
  }

  .shorts-frame {
    width: min(100%, 28rem);
    min-height: calc(100vh - 2.5rem);
    margin: 1.25rem 0;
    border: 1px solid var(--line);
    border-radius: 2rem;
    box-shadow: var(--shadow);
  }

  .shorts-feed,
  .short-card {
    border-radius: 2rem;
  }

  .feed-rail {
    right: 0.9rem;
  }
}

@media (max-width: 480px) {
  .lead-composition {
    width: min(80vw, 20.5rem);
  }

  .lead-title {
    font-size: clamp(1.26rem, 6.2vw, 1.62rem);
  }

  html[lang="ru"] .lead-title {
    font-size: clamp(1.16rem, 5.1vw, 1.28rem);
  }

  .lead-form {
    padding: 1.15rem 0.95rem 1rem;
  }

  .lead-field input {
    height: 2.9rem;
  }

  .lead-submit {
    height: 3.05rem;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .brand-center {
    position: absolute;
    top: calc(var(--safe-top) + 1.6rem);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .top-links-left {
    position: absolute;
    left: 0.7rem;
    right: calc(50% + 1.9rem);
    display: flex;
    justify-content: center;
    gap: 0.52rem;
    font-size: clamp(0.5rem, 2.2vw, 0.62rem);
    letter-spacing: 0.04em;
    max-width: none;
  }

  .top-links-right {
    display: flex;
    position: absolute;
    left: calc(50% + 1.9rem);
    right: 4.35rem;
    gap: 0;
    font-size: clamp(0.52rem, 2.3vw, 0.64rem);
    letter-spacing: 0.04em;
    margin-left: 0;
    justify-content: center;
    max-width: none;
  }

  .home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 4.2rem;
    line-height: 1.05;
    text-align: center;
  }

  .language-toggle {
    position: absolute;
    right: 0.7rem;
    width: 3.35rem;
    height: 1.55rem;
    padding: 0 0.32rem;
    justify-content: center;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-copy {
    opacity: 0.9;
    transform: translate(-50%, -50%);
    transition: none;
  }

  .rail-action {
    animation: none;
  }

  body.is-intro-running .top-links,
  body.is-intro-running .language-toggle,
  body.is-intro-running .brand-logo {
    opacity: 1;
    animation: none;
  }

  .intro-overlay {
    display: none;
    animation: none;
  }
}
