    .header-v3 {
      background: linear-gradient(135deg, #ff6a00, #ee0979);
      padding: 35px 0;
      border-radius: 0 0 30px 30px;
      position: relative;
      overflow: hidden;
    }
    .header-v3::after {
      content: "";
      position: absolute;
      left: -50px;
      bottom: -50px;
      width: 200px;
      height: 200px;
      background: rgba(255, 255, 255, 0.15);
      transform: rotate(45deg);
      border-radius: 50%;
    }
    .header-v3 .logo img {
      max-height: 75px;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
      transition: transform 0.4s ease;
    }
    .header-v3 .logo img:hover {
      transform: scale(1.15);
    }
    .header-v3 .nav ul {
      display: flex;
      gap: 45px;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .header-v3 .nav ul li a {
      font-size: 19px;
      font-weight: 800;
      color: #fff;
      position: relative;
      padding: 12px 0;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: transform 0.3s ease, color 0.3s ease;
    }
    .header-v3 .nav ul li a:hover {
      color: #ffe100;
      transform: translateY(-12px);
    }
    .header-v3 .nav ul li a::before {
      content: "";
      position: absolute;
      top: -10px;
      left: -10px;
      width: 100%;
      height: 100%;
      border: 2px dashed rgba(255,255,255,0.5);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .header-v3 .nav ul li a:hover::before {
      opacity: 1;
    }

      .modal {
    display: none;               /* по умолчанию скрыто */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .modal.show {
    display: flex;               /* когда добавлен класс show */
  }

  /* Содержимое модалки */
  .modal-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
  }

  /* Анимация появления */
  @keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }

  /* Кнопка закрытия */
  .modal-close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: none; border: none;
    font-size: 1.5rem; line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
  }
  .modal-close:hover {
    color: #000;
  }

  /* Адаптив */
  @media (max-width: 480px) {
    .modal-content { padding: 1rem; }
    .modal-close  { font-size: 1.25rem; }
  }