:root {
  --bg0: #070910;
  --bg1: #0b1022;
  --fg: #eef0ff;
  --muted: rgba(238, 240, 255, .72);
  --muted2: rgba(238, 240, 255, .52);
  --line: rgba(238, 240, 255, .14);
  --card: rgba(255, 255, 255, .06);
  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {

  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(1200px 800px at 12% 18%, #161a3a 0%, transparent 60%),
    radial-gradient(1000px 700px at 85% 30%, #2a1644 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));

  overflow-x: hidden;

  /* sticky footer: footer всегда внизу */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Golos Text", sans-serif;
}

main {
  flex: 1;
}

/* ===== Background layers ===== */

/* Переливающийся фон (aurora) */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 15% 25%, rgba(140, 94, 255, .55), transparent 65%),
    radial-gradient(closest-side at 85% 35%, rgba(255, 91, 174, .38), transparent 62%),
    radial-gradient(closest-side at 60% 90%, rgba(0, 255, 195, .22), transparent 62%),
    radial-gradient(closest-side at 30% 75%, rgba(255, 210, 110, .18), transparent 62%),
    linear-gradient(180deg, #070910, #0b1022);
  filter: blur(22px) saturate(120%);
  animation: auroraMove 10s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  opacity: .95;
}

@keyframes auroraMove {
  0% {
    transform: translate(-1.5%, -1%) scale(1.03);
    filter: blur(22px) saturate(120%);
  }

  50% {
    transform: translate(1.8%, -0.5%) scale(1.06);
    filter: blur(24px) saturate(135%);
  }

  100% {
    transform: translate(0.6%, 1.2%) scale(1.04);
    filter: blur(23px) saturate(125%);
  }
}

/* Canvas 3D */
.bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* над aurora(-3), под контентом */
  pointer-events: none;
  opacity: .95;
}

/* Background blobs */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg__blob {
  position: absolute;
  width: 520px;
  height: 520px;
  filter: blur(40px);
  opacity: .55;
  border-radius: 999px;
  transform: translate3d(0, 0, 0);
  animation: drift 16s ease-in-out infinite;
}

.bg__blob--a {
  left: -120px;
  top: -90px;
  background:
    radial-gradient(circle at 30% 30%, rgba(140, 94, 255, .85), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(0, 255, 195, .35), transparent 60%);
}

.bg__blob--b {
  right: -160px;
  top: 120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 91, 174, .55), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(90, 140, 255, .55), transparent 60%);
  animation-duration: 18s;
}

.bg__blob--c {
  left: 12%;
  bottom: -220px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 210, 110, .35), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(140, 94, 255, .55), transparent 60%);
  animation-duration: 20s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(26px, -18px) scale(1.04);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Grain / noise overlay */
.bg__noise {
  position: absolute;
  inset: 0;
  opacity: .10;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bg__vignette {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(closest-side at 50% 35%, transparent 35%, rgba(0, 0, 0, .55) 100%);
}

/* Контент поверх фона */
.topbar,
.wrap {
  position: relative;
  z-index: 2;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 9, 16, .55);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
}

.brand__mark {
  width: 10px;
  height: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  opacity: .9;
}

.brand__text {
  opacity: .95;
}

.brand__text {
  font-size: 30px;
  /* можешь поставить 22px или 24px */
  font-weight: 700;
  /* сделаем чуть плотнее */
}

.nav {
  display: flex;
  gap: 18px;
}

.nav__link {
  color: var(--muted2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.nav__link:hover {
  color: var(--fg);
}

/* ===== Layout ===== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 22px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 16px 18px;
  }
}

.kicker {
  margin: 0 0 14px;
  color: var(--muted2);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero__title {
  margin: 0 0 14px;
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 5.0vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__accent {
  display: inline-block;
  background: linear-gradient(90deg, rgba(140, 94, 255, 1), rgba(255, 91, 174, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 52ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  padding: 8px 10px;
  border-radius: 999px;
}

/* ===== Card ===== */
.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.card__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: .2px;
}

.card__hint {
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.45;
}

.form {
  padding: 16px 18px 18px;
  display: grid;
  gap: 14px;
}

.drop {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .03);
  padding: 14px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.drop:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .05);
}

.drop__input {
  display: none;
}

.drop__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 18px;
}

.drop__text {
  display: grid;
  gap: 2px;
}

.drop__headline {
  font-weight: 600;
}

.drop__sub {
  color: var(--muted2);
  font-size: 13px;
}

.drop__file {
  color: var(--muted);
  font-size: 13px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ===== Button ===== */
.btn {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(90deg, rgba(140, 94, 255, .28), rgba(255, 91, 174, .20));
  color: var(--fg);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .32);
  background: linear-gradient(90deg, rgba(140, 94, 255, .36), rgba(255, 91, 174, .26));
}

.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.btn__shine {
  position: absolute;
  inset: -60% -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), transparent 55%);
  transform: translateX(-18%);
  animation: shine 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-22%);
    opacity: .5;
  }

  50% {
    transform: translateX(18%);
    opacity: .85;
  }

  100% {
    transform: translateX(-22%);
    opacity: .5;
  }
}

/* ===== Result ===== */
.result {
  margin-top: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  display: grid;
  gap: 10px;
}

.result__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.result__label {
  color: var(--muted2);
}

.result__value {
  font-weight: 700;
  letter-spacing: .2px;
}

.meter {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}

.meter__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(0, 255, 195, .55),
      rgba(140, 94, 255, .75),
      rgba(255, 91, 174, .65));
}

/* ===== About ===== */
.about {
  margin-top: 28px;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

.about__card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  padding: 16px 16px 14px;
}

.about__card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: .2px;
}

.about__card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ===== Sections / Features ===== */
.section {
  margin-top: 34px;
}

.section__head {
  margin: 0 0 14px;
}

.section__title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: .2px;
}

.section__subtitle {
  margin: 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.45;
  max-width: 70ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 16px 18px;
}

.feature__title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.feature__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Footer (как topbar, но внизу) ===== */
footer.topbar {
  position: relative;
  /* отменяем sticky */
  top: auto;
}

.footer-bar {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 9, 16, .55);
  backdrop-filter: blur(12px);
}

/* footer как topbar, но внизу */
footer.topbar.footer-bar {
  position: relative;
  /* отменяем sticky */
  top: auto;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 0;
}

/* внутренний лэйаут */
.footer-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

/* текст */
.footer-title {
  font-weight: 700;
  letter-spacing: .2px;
}

.footer-sub {
  margin-top: 6px;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.45;
}

.footer-meta {
  margin-top: 12px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.6;
}

/* ссылки справа */
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.footer-sep {
  color: rgba(238, 240, 255, .35);
}

/* адаптив */
@media (max-width: 820px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    margin-top: 10px;
  }
}

.brand__logo {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}