.icon-wrapper {
      position: relative;
      display: inline-block;
      cursor: pointer;
      margin-left: 30px;
      margin-right: 15px;
    }


    .pulse-background {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 30px;
      height: 30px;
      background-color: rgba(255, 0, 0, 0.15); /* светло-красный */
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(1);
      animation: pulse-bg 1.2s infinite ease-in-out;
      z-index: 0;
    }

        @media (max-width: 376px) {
        .icon-wrapper{
            margin-left: 19px; margin-right: 10px;
        }
            .pulse-background{
                width: 20px;
            }
    }

    .animated-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 30px;
      height: 30px;
      transform: translate(-50%, -50%);
      animation: wiggle-scale 1.2s infinite ease-in-out;
      z-index: 1;
    }

    .animated-icon path {
      fill: #8B0000; /* тёмно-красный цвет */
    }

    .stopped .animated-icon,
    .stopped .pulse-background {
      animation-play-state: paused;
        background: none;
        animation: none;
    }

    .stopped path {
      fill: #505050; /* тёмно-красный цвет */
    }

    @keyframes wiggle-scale {
      0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
      10%  { transform: translate(-50%, -50%) scale(1.05) rotate(-5deg); }
      20%  { transform: translate(-50%, -50%) scale(1.1) rotate(5deg); }
      30%  { transform: translate(-50%, -50%) scale(1.05) rotate(-3deg); }
      40%  { transform: translate(-50%, -50%) scale(1.03) rotate(3deg); }
      50%  { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
      100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    }

    @keyframes pulse-bg {
      0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
      50%  { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    }
    .news-icon-button {
      position: relative;
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
    }

    .news-modal {
      position: absolute;
      top: 54px;  /* ниже кнопки */
      right: 0;
      width: 300px;
      background: #ffffff;
      border: 1px solid #ccc;
      box-shadow: 0 6px 16px rgba(0,0,0,0.15);
      z-index: 1000;
      border-radius: 8px;
    }

    .news-modal-content {
      padding: 8px 12px;
      max-height: 400px;
      overflow-y: auto;
      font-size: 14px;
    }

    .news-modal ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .news-modal li {
      margin-bottom: 8px;
    }

    .hidden {
      display: none;
    }