.logo {
  --ligthness: calc(var(--is-light-theme-on) * 90% + var(--is-dark-theme-on) * 25%);
  --logo-border-color: hsla(0 0% calc(0% + var(--is-dark-theme-on) * 100%) / 0.33);
  --image-font-size: 0.85em;
  --logo-letter-spacing: -0.14em;
  --image-padding: calc(1 / 15 * 1em) calc(5 / 15 * 1em) 0;
  display: inline-flex;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-family);
  color: inherit;
}

.logo__image {
  --accent-color: var(--color-html);
  align-self: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--image-padding);
  display: inline-grid;
  place-items: center;
  background-color: var(--color-background);
  border: 1px transparent solid;
  border-radius: 2em;
  pointer-events: none;
  user-select: none;
}

/* добавляем контрастную рамку для лого */
.logo__image--contrast,
.header--open .logo__image--custom {
  border: 1px var(--logo-border-color) solid;
}

.logo__symbols {
  grid-area: 1 / 1 / -1 / -1;
  margin-right: calc(var(--logo-letter-spacing) * -1);
  font-size: var(--image-font-size);
  line-height: 1;
  letter-spacing: var(--logo-letter-spacing);
  text-decoration: none;
}

.logo__eye {
  position: relative;
}

.logo__eye:first-child {
  letter-spacing: calc(var(--logo-letter-spacing) * 2);
}

.logo__nose {
  position: relative;
  font-size: calc(var(--image-font-size) * 10 / 7);
  line-height: calc(var(--image-font-size) * 7 / 10);
  letter-spacing: calc(var(--logo-letter-spacing) * 1.5);
}

.logo__text {
  margin-left: 5px;
  padding: var(--image-padding);
  padding-top: calc(2 / 15 * 1em);
  padding-bottom: calc(1 / 10 * 1em);
  background-color: var(--color-background);
  border-radius: 2em;
  border: 1px transparent solid;
  text-decoration: none;
  font-size: var(--image-font-size);
  line-height: var(--image-font-size);
}

.logo__text--contrast {
  border: 1px var(--logo-border-color) solid;
}

.logo__text::first-letter {
  font-feature-settings: 'ss01' on;
}

.logo--color-contrast {
  --ligthness: calc(var(--is-light-theme-on) * 100%);
}

.logo--color-fade {
  --ligthness: calc(var(--is-light-theme-on) * 90% + var(--is-dark-theme-on) * 25%);
}

.logo__text .link::after {
  display: none;
}
