/* Фирменный логотип с новым URL обходит прежний кеш браузера. */
#navbar #navbar-logo {
  background-color: transparent;
}

#navbar {
  border-top: 3px solid #ba0c2e;
}

#navbar #navbar-logo img {
  display: none;
}

#navbar #navbar-logo::before {
  display: block;
  width: 150px;
  height: 27px;
  background: url("../img/logo.svg?v=20261009-2") center / contain no-repeat;
  content: "";
}

/* На тёмной теме тот же контур логотипа выводится одним светлым цветом. */
html[data-theme^="gitea-dark"] #navbar #navbar-logo::before {
  background: #f5f5f5;
  -webkit-mask: url("../img/logo.svg?v=20261009-2") center / contain no-repeat;
  mask: url("../img/logo.svg?v=20261009-2") center / contain no-repeat;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="gitea-auto"] #navbar #navbar-logo::before {
    background: #f5f5f5;
    -webkit-mask: url("../img/logo.svg?v=20261009-2") center / contain no-repeat;
    mask: url("../img/logo.svg?v=20261009-2") center / contain no-repeat;
  }
}

/* Главная внутреннего Git-сервиса Netwell. */
.page-content.home.netwell-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(720px, calc(100vh - 112px));
  padding: clamp(36px, 6vw, 88px) 24px;
  background: #f5f5f5;
  color: #282828;
}

.nw-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  width: min(100%, 1280px);
}

.nw-home-copy {
  min-width: 0;
}

.nw-home-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 30px;
  color: #5c5d63;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
}

.nw-home-eyebrow-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: #ba0c2e;
  transform: rotate(45deg);
}

.nw-home-copy h1 {
  margin: 0;
  color: #282828;
  font-size: clamp(48px, 5.5vw, 82px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.nw-home-lead {
  max-width: 560px;
  margin: 30px 0 32px;
  color: #5c5d63;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

.home a.nw-home-login {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-width: 186px;
  min-height: 54px;
  padding: 14px 18px 14px 22px;
  border: 1px solid #ba0c2e;
  border-radius: 7px;
  background: #ba0c2e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.home a.nw-home-login:hover {
  border-color: #970923;
  background: #970923;
  color: #ffffff;
  transform: translateY(-1px);
}

.home a.nw-home-login:focus-visible {
  outline: 3px solid #ba0c2e66;
  outline-offset: 3px;
}

.nw-home-login span {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.nw-home-note {
  margin: 18px 0 0;
  color: #70737c;
  font-size: 14px;
}

.nw-home-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #dde0e6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 26px 68px #2828280d;
}

.nw-home-art::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #ba0c2e;
  content: "";
}

.nw-home-orbit {
  position: absolute;
  width: 770px;
  height: 330px;
  border: 1px solid #e6e7ea;
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-31deg);
}

.nw-home-orbit-one {
  top: -115px;
  right: -370px;
}

.nw-home-orbit-two {
  top: -44px;
  right: -275px;
  border-color: #dde0e6;
}

.nw-home-art-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.nw-home-art-label {
  color: #8b8e9c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}

.nw-home-art-logo {
  display: block;
  width: min(70%, 330px);
  height: auto;
  max-width: none;
}

.nw-home-art-foot {
  position: absolute;
  right: 30px;
  bottom: 26px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e6e7ea;
  color: #8b8e9c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .nw-home-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 650px;
  }

  .nw-home-art {
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  #navbar #navbar-logo::before {
    width: 145px;
    height: 26px;
  }

  .page-content.home.netwell-home {
    padding: 44px 20px 52px;
  }

  .nw-home-eyebrow {
    margin-bottom: 24px;
    font-size: 10px;
  }

  .nw-home-copy h1 {
    font-size: clamp(42px, 11vw, 58px);
  }

  .nw-home-lead {
    margin: 24px 0 28px;
  }

  .nw-home-art {
    min-height: 260px;
  }

  .nw-home-art-foot {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home a.nw-home-login {
    transition: none;
  }
}
