/* Стили для image-модалки (унификация с JS-классами) */
.img-modal-box {
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 88vh;
}
.img-modal-trigger {
    cursor: zoom-in;
}
/* Стили для iframe-модалки (унификация с JS-классами) */
.iframe-modal-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px #000a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.iframe-modal-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.iframe-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1 1 0;
}
.iframe-modal-fallback-btn {
    display: block;
    margin: 0 auto 18px auto;
    padding: 10px 18px;
    background: #f3f4f6;
    color: #2563eb;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 2px 8px #0001;
    transition: background .2s;
}
.iframe-modal-fallback-btn:hover {
    background: #e0e7ef;
}
/* Вынесенные стили карточек и фильтров */
.filter-reset-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
    border: 1px solid #fecaca;
    box-shadow: 0 1px 2px #0001;
    text-align: center;
    font-size: 1rem;
    transition: background .2s;
}
.filter-reset-btn:hover {
    background: #fee2e2;
}

.loader-wave {
  display: flex;
  gap: 10px;
  height: 64px;
  align-items: flex-end;
}
.loader-wave .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.7;
  animation: loader-wave-bounce 1.2s infinite cubic-bezier(.68,-0.55,.27,1.55);
}
.loader-wave .dot:nth-child(1) { animation-delay: 0s; }
.loader-wave .dot:nth-child(2) { animation-delay: 0.15s; }
.loader-wave .dot:nth-child(3) { animation-delay: 0.3s; }
.loader-wave .dot:nth-child(4) { animation-delay: 0.45s; }
.loader-wave .dot:nth-child(5) { animation-delay: 0.6s; }
@keyframes loader-wave-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  30% { transform: translateY(-22px); opacity: 1; }
  60% { transform: translateY(0); opacity: 0.7; }
}

.img-modal-bg {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85); z-index: 10000; display: flex; align-items: center; justify-content: center;
    animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.img-modal-img {
    max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 4px 32px #000a;
    transition: box-shadow .2s;
    cursor: pointer;
    background: #fff;
}
.img-modal-close {
    position: absolute; top: 32px; right: 48px; font-size: 2.5rem; color: #fff; cursor: pointer; z-index: 10001;
    background: none; border: none;
    transition: color .2s;
}
.img-modal-close:hover { color: #f87171; }
.img-modal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: #fff; background: rgba(0,0,0,0.25); border: none; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10001;
    transition: background .2s;
}
.img-modal-arrow:hover { background: rgba(0,0,0,0.5); }
.img-modal-arrow.left { left: 32px; }
.img-modal-arrow.right { right: 32px; }
@media (max-width: 600px) {
    .img-modal-close { top: 12px; right: 16px; font-size: 2rem; }
    .img-modal-arrow.left { left: 8px; }
    .img-modal-arrow.right { right: 8px; }
}
.sim-card.list-view {
    flex-direction: row !important;
    align-items: center;
    min-height: 96px;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: none !important;
    margin-bottom: 0.5rem;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}
.sim-card.list-view:hover {
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px #6366f11a;
}
.sim-card.list-view .flex-1 {
    margin: 0;
    flex: 1 1 0%;
}
.sim-card.list-view h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.sim-card.list-view p {
    margin-bottom: 0;
}
.sim-card.list-view .card-images {
    display: none !important;
}
@media (max-width: 600px) {
    .sim-card.list-view {
        flex-direction: column !important;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.5rem;
    }
}

/* Стили для iframe-модалки */
.iframe-modal-bg { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 10000; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; }
.iframe-modal-bg .img-modal-close { position: absolute; top: 18px; right: 32px; font-size: 2.5rem; color: #222; background: none; border: none; z-index: 10001; cursor: pointer; transition: color .2s; }
.iframe-modal-bg .img-modal-close:hover { color: #f87171; }
