/* Fonastra — сайт лейбла и бота. Ночная студия: глубокий синий, кобальт логотипа, янтарь индикаторов. */
:root {
  --night: #0a1632;
  --night-2: #0f2048;
  --cobalt: #2e6bff;
  --cobalt-soft: #7aa2ff;
  --ice: #cfe0ff;
  --paper: #f2f5fb;
  --muted: #9fb0d6;
  --amber: #ffb13d;
  --orange: #fe7e47;
  --line: rgba(207, 224, 255, 0.14);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cobalt-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 22, 50, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.brand img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--ice);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--paper);
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}

.lang a,
.lang span {
  padding: 5px 11px;
  text-decoration: none;
  color: var(--muted);
}

.lang span {
  background: var(--cobalt);
  color: #fff;
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(46, 107, 255, 0.35), transparent 70%),
    radial-gradient(45% 40% at 5% 90%, rgba(46, 107, 255, 0.18), transparent 70%),
    var(--night);
}

/* Фон-картинка лейбла: подставляется, если файл есть (img/hero.jpg). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image, none) center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}

.hero h1 .sub {
  display: block;
  color: var(--cobalt-soft);
}

.hero .lead {
  max-width: 56ch;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ice);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-main {
  background: var(--cobalt);
  color: #fff;
}

.btn-main:hover {
  background: #4a80ff;
  color: #fff;
}

/* Оранжевый — цвет бота Fonastra AI: всё, что ведёт в бота. */
.btn-bot {
  background: var(--orange);
  color: #fff;
}

.btn-bot:hover {
  background: #ff9566;
  color: #fff;
}

.btn-line {
  border: 1px solid rgba(207, 224, 255, 0.35);
  color: var(--paper);
}

.btn-line:hover {
  border-color: var(--paper);
  color: var(--paper);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 48px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
}

.facts li strong {
  color: var(--paper);
  font-weight: 600;
}

/* Индикаторы уровня: столбики поднимаются один раз при загрузке. */
.meter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  margin-top: 56px;
}

.meter i {
  flex: 1;
  min-width: 2px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--cobalt) 0%, var(--cobalt-soft) 72%, var(--amber) 100%);
  opacity: 0.85;
  transform-origin: bottom;
  animation: rise 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 18ms);
}

@keyframes rise {
  from {
    transform: scaleY(0.04);
  }
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .meter i {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Разделы ---------- */
.block {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.block h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}

.bot-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bot-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex: none;
}

.block .intro {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--ice);
  font-size: 18px;
}

/* Возможности бота: список «название — что делает», без карточек. */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  margin: 44px 0 0;
}

.features div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.features dt {
  font-weight: 600;
  font-size: 18px;
}

.features dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.block .actions {
  margin-top: 40px;
}

/* Студия */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
  margin-top: 44px;
}

.services {
  margin: 0;
}

.services div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.services dt {
  font-weight: 600;
  font-size: 18px;
}

.services dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--night-2);
  border: 1px solid var(--line);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.caption {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}

.covers img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--night-2);
}

/* О лейбле */
.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  margin-top: 36px;
}

.about p {
  margin: 0 0 16px;
  max-width: 62ch;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.points li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.points b {
  display: block;
  font-weight: 600;
  font-size: 18px;
}

.points span {
  color: var(--muted);
}

/* Контакты */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 36px 0 0;
}

.contacts div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contacts dt {
  color: var(--muted);
  font-size: 15px;
}

.contacts dd {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 500;
  word-break: break-word;
}

.contacts dd a {
  color: var(--paper);
}

.contacts dd a:hover {
  color: var(--cobalt-soft);
}

.foot {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.foot a {
  color: var(--muted);
}

/* ---------- Телефон ---------- */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .hero {
    padding-top: 56px;
  }
  .meter {
    height: 96px;
    gap: 3px;
    margin-top: 40px;
  }
  .block {
    padding: 64px 0;
  }
  .features,
  .contacts,
  .studio-grid,
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-grid,
  .about {
    gap: 36px;
  }
  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
