.catalog-dnk {
  margin:100px 0;
  padding:0 20px;
}
.catalog-dnk-inner {
  max-width:1366px;
  margin:0 auto;
}
.catalog-dnk h2 {
  font-size:30px;
  color:#333;
}
.catalog-dnk h2 span {
  display:block;
  margin-top:5px;
  font-size:20px;
}
.menu {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 1px;
      margin-bottom: 36px;
      border-radius:40px;
      margin:40px 0;
    }
    .menu-btn {
      border: none;
      padding: 15px 20px;
      font-size: 1.1rem;
      color: #333;
      cursor: pointer;
      transition: all 0.2s ease;
      background:#ededed;
    }
    .menu-btn:first-child {
      border-radius:40px 0 0 40px;
      padding: 15px 20px 15px 40px;
    }
    .menu-btn:last-child {
      border-radius:0 40px 40px 0;
      padding: 15px 40px 15px 20px;
    }
    .menu-btn:hover {
      background: #4d1f1f;
      color: #fff;
    }

    .menu-btn.active {
      background: #4d1f1f;
      color: white;
    }

    /* Сетка */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      transition: 0.2s;
    }

    .card {
      background: white;
      border-radius: 15px;
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.25s;
      display: flex;
      flex-direction: column;
      height: 100%;
      border: 1px solid #f6f6f6;
      backdrop-filter: blur(2px);
      cursor: default; /* по умолчанию, но фото и кнопка переопределят */
    }

    .card:hover {
      box-shadow: 0 24px 36px -12px rgba(0, 34, 68, 0.15);
    }

    .card-img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      display: block;
      background: #cbd5e1;
      cursor: pointer; /* теперь клик по фото открывает модалку */
    }

    .card-content {
      padding: 20px 18px 22px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: #0b1e33;
      line-height: 1.3;
    }

    .card-text {
      font-size: 0.95rem;
      color: #475569;
      margin-bottom: 20px;
      flex: 1;
    }

    .btn-detail {
      background: #4d1f1f;
      border: none;
      border-radius: 60px;
      padding: 12px 16px;
      font-size: 14px;
      color: #fff;
      cursor: pointer;
      transition: all 0.2s;
      border: 1px solid #e2e8f0;
      margin-top: 8px;
      text-align: center;
    }

    .btn-detail:hover {
      background: #333;
      color: white;
    }

    /* Модальное окно */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(15, 23, 42, 0.7);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
      box-sizing: border-box;
    }

    .modal {
      background: white;
      max-width: 600px;
      width: 100%;
      border-radius: 32px;
      box-shadow: 0 30px 50px -20px #00000040;
      padding: 28px 28px 32px;
      position: relative;
      animation: modalFade 0.25s ease;
    }

    @keyframes modalFade {
      from { opacity: 0; transform: scale(0.96); }
      to { opacity: 1; transform: scale(1); }
    }

    .modal-close {
      position: absolute;
      top: 18px;
      right: 22px;
      background: none;
      border: none;
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
      color: #64748b;
      transition: color 0.15s;
      padding: 6px;
    }

    .modal-close:hover {
      color: #0f172a;
    }

    .modal-title {
      font-size: 1.9rem;
      font-weight: 700;
      margin-bottom: 18px;
      padding-right: 30px;
      color: #0b1e33;
    }

    .modal-description {
      font-size: 1.05rem;
      color: #334155;
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .modal-img {
      width: 100%;
      border-radius: 20px;
      margin-bottom: 20px;
      max-height: 420px;
      object-fit: cover;
    }

    /* Адаптивность */
    @media screen and (max-width: 1024px) {
      .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
    }

    @media screen and (max-width: 768px) {
      .menu-btn { padding: 10px 18px; font-size: 1rem; }
      .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
      }
    .menu {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 36px;
        border-radius:40px;
        margin:40px 0;
      }
    .menu-btn {
      border: none;
      border-radius:40px !important;
      text-align:center;
      padding: 15px 20px  !important;
      font-size: 1.1rem;
      color: #333;
      cursor: pointer;
      transition: all 0.2s ease;
      background:#ededed;
    }
    }

    @media screen and (max-width: 524px) {
      .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .menu {
        justify-content: center;
      }
      .menu-btn {
        flex: 1 0 auto;
        text-align: center;
        padding: 12px 10px;
      }
      h1 { font-size: 1.8rem; }
    }

    .empty-message {
      grid-column: 1 / -1;
      text-align: center;
      padding: 48px;
      color: #64748b;
      font-size: 1.2rem;
    }
