/* Общая навигация лендингов Anidub Studio */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

.ln-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  color: #fff;
  background: var(--primary, #cb0c9f);
  font: 600 14px/1.4 "Inter", system-ui, sans-serif;
}

.ln-skip:focus {
  left: 0;
}

.ln-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #262a40;
  background: rgba(11, 13, 25, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.ln-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), 1280px);
  height: 80px;
  margin: 0 auto;
}

.ln-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #e9eaf2;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.ln-brand img {
  display: block;
  width: 36px;
  height: 36px;
}

.ln-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.ln-nav a {
  color: #9aa0b4;
  transition: color 0.15s ease;
}

.ln-nav a:hover,
.ln-nav a[aria-current="page"] {
  color: #e9eaf2;
}

.ln-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.ln-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #343954;
  border-radius: 9999px;
  color: #9aa0b4;
  font: 700 12.5px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ln-lang:hover {
  color: #fff;
  border-color: rgba(203, 12, 159, 0.55);
}

.ln-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid #343954;
  border-radius: 9999px;
  color: #e9eaf2;
  font: 600 14px/1.4 "Inter", system-ui, sans-serif;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ln-login:hover {
  color: #fff;
  border-color: #4a5070;
  background: rgba(255, 255, 255, 0.06);
}

/* Акцентный «Войти» на страницах без собственного CTA (главный лендинг) */

.ln-login--primary {
  border-color: #cb0c9f;
  color: #fff;
  background: #cb0c9f;
  box-shadow: 0 10px 15px -3px rgba(203, 12, 159, 0.2);
}

.ln-login--primary:hover {
  color: #fff;
  border-color: rgba(203, 12, 159, 0.9);
  background: rgba(203, 12, 159, 0.9);
}

.ln-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9999px;
  color: #fff;
  background: #cb0c9f;
  box-shadow: 0 10px 15px -3px rgba(203, 12, 159, 0.2);
  font: 700 14px/1.4 "Inter", system-ui, sans-serif;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.ln-cta:hover {
  background: rgba(203, 12, 159, 0.9);
}

.ln-cta__short {
  display: none;
}

.ln-mobile {
  position: relative;
  display: none;
}

.ln-mobile summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #343954;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}

.ln-mobile summary::-webkit-details-marker {
  display: none;
}

.ln-mobile summary span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #e9eaf2;
}

.ln-mobile__panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  width: 232px;
  padding: 8px;
  border: 1px solid #343954;
  border-radius: 14px;
  background: #14172a;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.ln-mobile__panel a {
  padding: 10px 12px;
  border-radius: 9px;
  color: #e9eaf2;
  font: 500 14px/1.4 "Inter", system-ui, sans-serif;
}

.ln-mobile__panel a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ln-mobile__panel a:last-child {
  margin-top: 4px;
  border-top: 1px solid #262a40;
  border-radius: 0 0 9px 9px;
  color: #9aa0b4;
}

@media (max-width: 1024px) {
  .ln-header__inner {
    gap: 12px;
    width: min(calc(100% - 32px), 1280px);
    height: 64px;
  }

  .ln-brand {
    gap: 9px;
    font-size: 16px;
  }

  .ln-brand img {
    width: 32px;
    height: 32px;
  }

  .ln-nav,
  .ln-lang,
  .ln-login:not(.ln-login--primary) {
    display: none;
  }

  .ln-mobile {
    display: block;
  }

  .ln-cta {
    padding: 9px 14px;
    font-size: 13px;
  }

  .ln-login--primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  .ln-cta__full {
    display: none;
  }

  .ln-cta__short {
    display: inline;
  }

  html {
    scroll-padding-top: 80px;
  }
}

@media (max-width: 380px) {
  .ln-brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Подменю разделов страницы (общее для лендингов) */

.section-nav {
  border-bottom: 1px solid rgba(38, 42, 64, 0.55);
  background: rgba(20, 23, 42, 0.35);
}

.section-nav .wrap {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  margin: 0 auto;
  width: min(calc(100% - 48px), 1280px);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav .wrap::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9aa0b4;
  font: 600 12.5px/1.4 "Inter", system-ui, sans-serif;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.section-nav a:hover {
  color: #e9eaf2;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .section-nav .wrap {
    width: min(calc(100% - 32px), 1280px);
  }
}

@media (max-width: 640px) {
  .section-nav .wrap {
    gap: 4px;
  }

  .section-nav a {
    padding: 6px 10px;
    font-size: 12px;
  }
}
