/* Логотип ТЕРАКОР — SVG + две строки текста */

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}

.navbar-brand.site-logo {
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-right: 1rem;
  min-width: auto;
  max-width: none;
  z-index: 3;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.site-logo__mark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  line-height: 0;
  align-self: center;
}

.site-logo__mark svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(22, 33, 62, 0.18));
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.1;
  gap: 0.2rem;
}

.site-logo__name {
  display: block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(90deg, #07182f 0%, #0f3460 42%, #e67e22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo__tagline {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: 100%;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #102a4d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.site-logo__tagline-line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .navbar--compact > .container {
    align-items: center;
    gap: 0.5rem;
  }

  .navbar--compact .navbar-brand.site-logo {
    flex: 0 0 auto;
    margin-right: 1.25rem;
    max-width: min(300px, 34vw);
  }

  .navbar--compact .site-logo__tagline {
    font-size: clamp(0.54rem, 0.9vw, 0.64rem);
    letter-spacing: 0.02em;
  }

  .navbar--compact .navbar-nav .nav-link {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

@media (min-width: 1200px) {
  .navbar > .container {
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-brand.site-logo {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-right: 1.25rem;
    min-width: auto;
    max-width: min(320px, 30vw);
    position: relative;
    z-index: 5;
  }

  .navbar-collapse {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
  }

  .navbar--home > .container {
    padding-left: 0.35rem;
  }

  .navbar--home .navbar-brand.site-logo {
    margin-left: -1.25rem;
    margin-right: 0.85rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar-brand.site-logo {
    flex: 0 0 auto;
    flex-basis: auto;
    min-width: auto;
    max-width: min(220px, 24vw);
    margin-right: 0.55rem;
  }

  .site-logo__tagline {
    display: none;
  }

  .site-logo__mark {
    width: 40px;
    height: 40px;
  }

  .site-logo__name {
    font-size: 1.1rem;
  }
}

@media (min-width: 1400px) {
  .navbar-brand.site-logo {
    flex-basis: auto;
    min-width: auto;
    max-width: none;
    margin-right: 0.75rem;
  }

  .site-logo__tagline {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 1199.98px) {
  .navbar > .container {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: clip;
  }

  .navbar-brand.site-logo {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    margin-right: 0.35rem;
  }

  .site-logo {
    flex-shrink: 0;
    align-items: center;
    min-width: auto;
    max-width: none;
    min-height: 46px;
    gap: 0.85rem;
    overflow: visible;
  }

  .site-logo__mark {
    width: 40px;
    height: 40px;
  }

  .site-logo__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .site-logo__name {
    font-size: 1.22rem;
    letter-spacing: 0.045em;
    line-height: 1;
  }

  .site-logo__tagline {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .site-logo {
    min-height: 44px;
    gap: 0.8rem;
  }

  .site-logo__mark {
    width: 38px;
    height: 38px;
  }

  .site-logo__text {
    display: flex;
  }

  .site-logo__name {
    font-size: 1.18rem;
  }

  .site-logo__tagline {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .navbar--home > .container {
    padding-left: 0.5rem;
  }

  .navbar--home .navbar-brand.site-logo {
    margin-left: -1.5rem;
  }
}

@media (max-width: 575.98px) {
  .site-logo {
    min-height: 44px;
    gap: 0.75rem;
  }

  .site-logo__mark {
    width: 36px;
    height: 36px;
  }

  .site-logo__name {
    font-size: 1.14rem;
  }
}
