.logo-animated-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 48px auto 0 auto;
    width: 140px;
    height: 140px;
    transition: width 0.6s, height 0.6s;
    cursor: pointer;
    position: relative;
    max-width: 100vw;
    max-height: 100vw;
  }
  
  .logo-single {
    display: block;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    transition: opacity 0.4s;
    z-index: 2;
  }
  .logo-j {
    fill: var(--accent);
    user-select: none;
  }
  .logo-full {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
  }
  .logo-full .logo-border {
    display: none;
  }
  .logo-word {
    fill: var(--accent);
    user-select: none;
  }
  .logo-border {
    stroke: var(--accent);
    stroke-width: 10;
    fill: var(--background);
  }
  
  /* --- Анимация только на десктопе --- */
  @media (min-width: 701px) {
    .logo-animated-wrap:hover {
      width: 540px;
      height: 140px;
      transition: width 0.6s, height 0.6s;
    }
    .logo-animated-wrap:hover .logo-single {
      opacity: 0;
      transition: opacity 0.2s;
      pointer-events: none;
    }
    .logo-animated-wrap:hover .logo-full {
      opacity: 1;
      pointer-events: auto;
      transition: opacity 0.4s 0.2s;
    }
  }
  
  /* --- Мобильная версия: маленький квадрат, без анимации и без раскрытия --- */
  @media (max-width: 700px) {
    .logo-animated-wrap {
      width: 70px !important;
      height: 70px !important;
      min-width: 70px;
      min-height: 70px;
      max-width: 90vw;
      max-height: 90vw;
      cursor: default;
    }
    .logo-single {
      opacity: 1 !important;
      pointer-events: auto !important;
      position: relative;
      width: 70px;
      height: 70px;
    }
    .logo-single .logo-svg {
      width: 70px !important;
      height: 70px !important;
    }
    .logo-full {
      display: none !important;
    }
  }