html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 18px;
  line-height: var(--line-height-base);
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;

  background:
    radial-gradient(
      1000px 420px at 18% 10%,
      rgba(23, 190, 187, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 420px at 82% 35%,
      rgba(23, 190, 187, 0.08),
      transparent 60%
    ),
    radial-gradient(
      1100px 520px at 50% 100%,
      rgba(0, 0, 0, 0.78),
      transparent 65%
    ),
    linear-gradient(to bottom, var(--color-bg), var(--color-bg-2));
}

/* Лёгкая “зернистость”, убирает ощущение плоского градиента */
body::after {
  content: "";
  position: fixed;
  inset: -80px;
  z-index: -9;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("../img/noise.png"); /* если нет файла — просто удали блок */
  background-size: 260px 260px;
  mix-blend-mode: overlay;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  position: relative;
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  background: transparent;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ===== Top bar ===== */
.topbar {
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-2);
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 12px;
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.6);
}
.chip strong {
  color: var(--color-text);
  font-weight: 600;
}
.topbar a:hover {
  color: var(--color-accent);
  transition: color var(--tr-fast);
}

/* ===== Main header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
}
.logo__img {
  width: 55px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.logo__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__title {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}
.logo__subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  max-width: 140px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__link {
  position: relative;
  display: inline-flex;
  padding: 10px 8px;
  color: var(--color-text-2);
  font-weight: 600;
  letter-spacing: 0.15px;
  transition: color var(--tr-fast);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--color-accent);
}
.nav__link.is-active {
  color: var(--color-text);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 999px;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--tr-fast),
    background var(--tr-fast),
    border-color var(--tr-fast);
  user-select: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-ghost {
  background: rgba(22, 27, 34, 0.55);
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: rgba(23, 190, 187, 0.55);
}

.icon-btn {
  width: 44px;
  padding: 0;
}

/* Mobile toggle */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(22, 27, 34, 0.55);
  cursor: pointer;
  transition: border-color var(--tr-fast);
}
.burger:hover {
  border-color: rgba(23, 190, 187, 0.55);
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-text);
  border-radius: 2px;
  opacity: 0.9;
}

/* Mobile menu */
.mobile {
  display: none;
  border-top: 1px solid var(--color-border);
  background: rgba(13, 17, 23, 0.96);
}
.mobile__inner {
  padding: 12px 0 18px;
  display: grid;
  gap: 10px;
}
.mobile__links {
  display: grid;
  gap: 6px;
}
.mobile__links a {
  padding: 12px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.55);
  color: var(--color-text-2);
  font-weight: 700;
}
.mobile__links a:hover {
  color: var(--color-accent);
  border-color: rgba(23, 190, 187, 0.55);
}
.mobile__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* PROMO */

.promo__btn {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  color: var(--color-text);
  box-shadow: 0 14px 32px rgba(17, 214, 198, 0.18);
}
.promo__btn:active {
  transform: translateY(1px);
}

.promo__btn:hover {
  filter: brightness(1.13);
}

/* PROMO */
.promo {
  position: relative;
  min-height: calc(100vh - 120px); /* если у тебя шапка высокая — подстрой */
  padding: 90px 0 70px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px; /* перекрываем возможный 1px gap */
  height: 320px; /* ↑ больше = мягче и без шва */
  pointer-events: none;
  z-index: -1;

  /* САМОЕ ВАЖНОЕ: внизу точно var(--color-bg-2), как у body::before */
  background: linear-gradient(
    to bottom,
    rgba(13, 17, 23, 0) 0%,
    rgba(13, 17, 23, 0.55) 45%,
    rgba(13, 17, 23, 0.92) 78%,
    var(--color-bg-2) 100%
  );
}

.promo__bg {
  position: absolute;
  inset: 0;
  z-index: -2;

  /* ✅ сюда подставь твой фон */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.18) 35%,
      rgba(0, 0, 0, 0.18) 65%,
      var(--color-bg-2) 100% /* важно */
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
    url("../img/promo-bg.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.02);
}

.promo__container {
  min-height: inherit;
  display: flex;
  align-items: center;
}

.promo__content {
  max-width: 760px;
  padding: 22px 22px 26px;
  border-radius: 10px;

  /* лёгкая подложка, чтобы текст читался на любом фото */
  background: linear-gradient(
    180deg,
    rgba(10, 14, 20, 0.62),
    rgba(10, 14, 20, 0.36)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.promo__title {
  margin: 0 0 25px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  color: var(--text-100);
  letter-spacing: -0.02em;
}

.promo__subtitle {
  margin: 0 0 25px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--text-300);
}

.promo__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  margin-top: auto;
  padding: 44px 0 22px;
  color: var(--color-text-2);
  position: relative;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer > .container {
  position: relative;
  z-index: 1;
}
.footer__container {
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer__logo img {
  display: block;
  filter: drop-shadow(0 10px 18px rgba(17, 214, 198, 0.22));
  width: 55px;
  height: 46px;
}

.footer__name {
  color: var(--color-text);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.footer__tagline {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.footer__desc {
  margin: 14px 0 16px;
  line-height: 1.6;
  max-width: 44ch;
}

.footer__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

/* если btn--ghost у тебя ещё нет */
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  transition: var(--tr-base);
}
.btn--ghost:hover {
  border-color: rgba(23, 190, 187, 0.35);
  box-shadow: 0 14px 32px rgba(17, 214, 198, 0.12);
}

.footer__title {
  color: var(--color-text);
  font-weight: 900;
  margin: 6px 0 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer__link {
  color: var(--color-text-2);
  text-decoration: none;
  transition: var(--tr-base);
}
.footer__link:hover {
  color: var(--color-text);
}
.footer__item {
  color: var(--color-text-2);
}

.footer__cards {
  display: grid;
  gap: 10px;
}

.footer__card {
  padding: 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-sm);
}

.footer__card-label {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.footer__card-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  margin: 2px 0;
  transition: var(--tr-base);
}
.footer__card-link:hover {
  color: var(--color-accent);
}

.footer__card-text {
  color: var(--color-text-2);
  margin: 2px 0;
}

.footer__bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  color: var(--color-text-muted);
  font-size: 13px;
}

.footer__mini-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--tr-base);
}
.footer__mini-link:hover {
  color: var(--color-text);
}

.footer__dot {
  opacity: 0.6;
  margin: 0 8px;
}

/* Адаптив */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav__list {
    gap: 10px;
  }
  .header-actions {
    min-width: 220px;
  }
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header-actions {
    min-width: auto;
  }
  .burger {
    display: inline-block;
  }
  .topbar__left .chip:last-child {
    display: none;
  } /* чуть упрощаем */
}
/* адаптив */
@media (max-width: 640px) {
  .promo {
    padding: 70px 0 56px;
    min-height: calc(100vh - 96px);
  }
  .promo__content {
    padding: 18px 16px 20px;
  }
  .btn {
    width: 100%;
  }
  .footer {
    padding: 36px 0 18px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__desc {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .topbar__row {
    justify-content: center;
  }
  .topbar__left {
    display: none;
  }
  .logo__subtitle {
    display: none;
  }
  .btn-primary {
    display: none;
  } /* CTA уедет в mobile menu */
}
