/* ===========================================================
   REDLINK — публичная страница
   =========================================================== */

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

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  --accent: #ff2d3f;
  --accent-2: #8c0a18;
  --bg: #070405;
  --r: 20px;
  --txt: #f7f3f4;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body[data-font="inter"] { --font: "Inter", -apple-system, "Segoe UI", sans-serif; }
body[data-font="manrope"] { --font: "Manrope", -apple-system, "Segoe UI", sans-serif; }
body[data-font="montserrat"] { --font: "Montserrat", -apple-system, "Segoe UI", sans-serif; }

a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, p { margin: 0; }

.container { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 22px; }

/* ---------- фон ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 45, 63, .16), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(140, 10, 24, .22), transparent 65%),
    var(--bg);
}

.bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}

.o1 {
  width: 520px; height: 520px;
  left: -180px; top: -140px;
  background: radial-gradient(circle, rgba(255, 45, 63, .55), transparent 70%);
  animation: float1 18s ease-in-out infinite;
}

.o2 {
  width: 620px; height: 620px;
  right: -260px; top: 20%;
  background: radial-gradient(circle, rgba(140, 10, 24, .6), transparent 70%);
  animation: float2 22s ease-in-out infinite;
}

.o3 {
  width: 460px; height: 460px;
  left: 35%; bottom: -260px;
  background: radial-gradient(circle, rgba(255, 45, 63, .35), transparent 70%);
  animation: float1 26s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, -30px, 0) scale(1.06); }
}

.bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  opacity: .6;
}

.bg .glow-line {
  position: absolute;
  top: 0; left: 50%;
  width: min(720px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 40px 6px rgba(255, 45, 63, .35);
}

body.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- шапка ---------- */

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px -8px rgba(255, 45, 63, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.mark svg { width: 22px; height: 22px; }

.brand-img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.top-right { display: flex; align-items: center; gap: 10px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #36e07a;
  box-shadow: 0 0 0 3px rgba(54, 224, 122, .16);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- герой ---------- */

main { position: relative; z-index: 2; flex: 1; }

.hero {
  text-align: center;
  padding: clamp(28px, 6vw, 64px) 0 clamp(32px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 45, 63, .32);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 45, 63, .14), rgba(255, 45, 63, .05));
  box-shadow: 0 10px 30px -14px rgba(255, 45, 63, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffc9cf;
}

.eyebrow .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 45, 63, .6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 63, .55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 45, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 63, 0); }
}

h1 {
  font-size: clamp(34px, 6.4vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin: 0 auto 18px;
  max-width: 15ch;
  background: linear-gradient(180deg, #fff 20%, #e7dfe0 70%, #c9bfc1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .accent {
  background: linear-gradient(100deg, var(--accent) 10%, #ff9aa4 55%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.sub {
  max-width: 60ch;
  margin: 0 auto;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- видео ---------- */

.video-wrap { margin: clamp(24px, 4vw, 38px) auto clamp(22px, 3.5vw, 32px); }

.video-card {
  position: relative;
  border-radius: calc(var(--r) + 6px);
  padding: 7px;
  background: linear-gradient(160deg, rgba(255, 45, 63, .55), rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, .03) 68%, rgba(140, 10, 24, .5));
  box-shadow:
    0 40px 100px -30px rgba(255, 20, 45, .55),
    0 0 0 1px rgba(255, 255, 255, .04);
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 12% 8% -14% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 45, 63, .35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.video-inner {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.video-inner video,
.video-inner iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, .4);
  font-size: 13.5px;
  letter-spacing: .02em;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(255, 45, 63, .18), transparent 70%),
    linear-gradient(160deg, #170409, #090405);
}

.ico-xl { width: 46px; height: 46px; opacity: .55; }

.corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--accent);
  opacity: .55;
  pointer-events: none;
}

.c1 { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.c2 { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.sound {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(10, 4, 6, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: .25s ease;
}

.sound:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.ico-s { width: 19px; height: 19px; }

/* ---------- преимущества ---------- */

.bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-width: 780px;
  margin: 0 auto clamp(24px, 3.5vw, 34px);
}

.bullets li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .028);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .84);
  text-align: left;
  transition: .25s ease;
}

.bullets li:hover {
  border-color: rgba(255, 45, 63, .35);
  background: rgba(255, 45, 63, .06);
  transform: translateY(-2px);
}

.ico-b {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255, 45, 63, .5));
}

/* ---------- кнопки ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 15px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease, background .22s ease, border-color .22s ease;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, #ff4353 0%, var(--accent) 42%, #d3122a 100%);
  box-shadow:
    0 18px 40px -14px rgba(255, 35, 60, .95),
    0 2px 0 0 rgba(255, 255, 255, .18) inset,
    0 -2px 0 0 rgba(0, 0, 0, .22) inset;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 55px -14px rgba(255, 35, 60, 1),
    0 2px 0 0 rgba(255, 255, 255, .22) inset,
    0 -2px 0 0 rgba(0, 0, 0, .25) inset;
}

.btn-primary:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.99); }

.btn-outline {
  color: #f0e9ea;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  border-color: rgba(255, 45, 63, .55);
  background: rgba(255, 45, 63, .1);
  transform: translateY(-2px);
}

.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: #fff; }

.btn-ico { display: inline-grid; place-items: center; }
.btn .ico { width: 20px; height: 20px; }
.btn-arrow { width: 18px !important; height: 18px !important; opacity: .55; transition: transform .25s ease, opacity .25s; }
.btn:hover .btn-arrow { transform: translateX(4px); opacity: 1; }

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .38);
}

.ico-xs { width: 14px; height: 14px; flex: 0 0 14px; }

/* ---------- подвал ---------- */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 26px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .34);
}

.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { transition: color .2s; }
.foot-links a:hover { color: var(--accent); }

/* ---------- анимации появления ---------- */

.anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise .85s cubic-bezier(.16, .84, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .anim .reveal { animation: none; opacity: 1; transform: none; }
  .o1, .o2, .o3, .live i, .eyebrow .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- мобильная кнопка ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 4, 5, 0), rgba(7, 4, 5, .92) 42%);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  .cta .btn { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; padding-bottom: 104px; }
  h1 { max-width: 100%; }
  .hero { padding: 22px 0 26px; }
  .video-wrap { margin: 20px auto 18px; }
  .bullets { gap: 8px; }
  .note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .5); }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .brand-name { font-size: 14px; letter-spacing: .1em; }
  .bullets { grid-template-columns: 1fr; }
  .bullets li { justify-content: flex-start; }
}

/* ---------- страницы документов ---------- */
.doc-page { min-height: 100vh; display: flex; flex-direction: column; }
.doc-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.doc-brand { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: #fff; text-decoration: none; }
.doc-back { color: #b9aeb1; text-decoration: none; font-size: 14px; }
.doc-back:hover { color: #fff; }
.doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 42px 22px 70px; }
.doc h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
.doc-date { color: #8d8285; font-size: 13px; margin: 0 0 26px; }
.doc h2 { font-size: 17px; margin: 30px 0 8px; color: #fff; }
.doc p { color: #b9aeb1; line-height: 1.72; margin: 0 0 12px; font-size: 15px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; color: #b9aeb1; line-height: 1.72; font-size: 15px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--a, #ff2d3f); }
.doc-foot {
  margin-top: auto; display: flex; gap: 16px; justify-content: space-between;
  padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.07);
  color: #8d8285; font-size: 13px; max-width: 760px; width: 100%; margin-left: auto; margin-right: auto;
}
.doc-foot a { color: #b9aeb1; text-decoration: none; }

/* ---------- переключатель языка ---------- */

.lang { position: relative; }
.lang > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
  transition: border-color .2s, color .2s, background .2s;
  user-select: none;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); }
.lang[open] > summary { color: #fff; border-color: rgba(255, 45, 63, .45); }

.lang-flag { display: inline-flex; width: 18px; height: 12px; flex: 0 0 18px; border-radius: 2px; overflow: hidden; }
.lang-flag svg { width: 18px; height: 12px; display: block; }

.lang-code { font-size: 12px; }
.lang-caret { width: 10px; height: 7px; opacity: .55; transition: transform .2s; }
.lang[open] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 178px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(18, 10, 12, .97);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: langIn .16s ease;
}
@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } }

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 13px;
  transition: background .16s, color .16s;
}
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lang-menu a.on { color: #fff; background: rgba(255, 45, 63, .13); }
.lang-check { width: 14px; height: 14px; margin-left: auto; color: #ff5563; }

.doc-top-right { display: flex; align-items: center; gap: 14px; }
@media (max-width: 520px) {
  .doc-top { padding: 12px 16px; }
  .doc-top-right { gap: 10px; }
  .doc-back { font-size: 13px; }
}
