.abzarak {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 4.5rem);
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 3vw, 1.75rem) 3.2rem;
  overflow: hidden;
}

.abzarak__spark {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.55;
}

.abzarak__spark--a {
  width: 0.55rem;
  height: 0.55rem;
  top: 18%;
  right: 12%;
  background: #cce6ff;
  animation: abzarak-float 7.5s ease-in-out infinite;
}

.abzarak__spark--b {
  width: 0.4rem;
  height: 0.4rem;
  top: 42%;
  left: 10%;
  background: #7eb0d4;
  animation: abzarak-float 9s ease-in-out infinite reverse;
}

.abzarak__spark--c {
  width: 0.7rem;
  height: 0.7rem;
  bottom: 16%;
  right: 22%;
  background: rgba(255, 255, 255, 0.7);
  animation: abzarak-float 8.2s ease-in-out infinite 0.6s;
}

.abzarak__hero {
  width: min(44rem, 100%);
  margin: 0 auto 2.2rem;
  text-align: center;
  animation: abzarak-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.abzarak__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #9dc0dc;
}

.abzarak__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f4f8fb;
  text-shadow: 0 10px 28px rgba(6, 22, 40, 0.28);
}

.abzarak__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(232, 238, 244, 0.78);
}

.abzarak__empty {
  margin: 2rem auto 0;
  text-align: center;
  color: rgba(232, 238, 244, 0.72);
}

.abzarak__grid {
  width: min(68rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 1.6rem 1.25rem;
  justify-items: center;
}

.abzarak-item {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  animation: abzarak-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.abzarak-item:hover,
.abzarak-item:focus-visible {
  transform: translateY(-0.4rem);
  outline: none;
}

.abzarak-item__image {
  width: 180px;
  height: 180px;
  flex: 0 0 180px;
  display: grid;
  place-items: center;
}

.abzarak-item__image img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.abzarak-item__placeholder {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  color: #c5d8e8;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.4rem;
}

.abzarak-card {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.7rem 0.85rem;
  border: 0;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(6, 22, 40, 0.16);
  text-align: center;
}

.abzarak-item:hover .abzarak-card,
.abzarak-item:focus-visible .abzarak-card {
  box-shadow: 0 12px 26px rgba(6, 22, 40, 0.22);
}

.abzarak-card__title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
  color: #123047;
}

.abzarak-card__desc {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #4d6780;
}

.abzarak-dialog {
  width: min(34rem, calc(100% - 1.6rem));
  max-height: min(82dvh, 40rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.abzarak-dialog::backdrop {
  background: rgba(12, 32, 52, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: abzarak-fade 0.32s ease forwards;
}

.abzarak-dialog[open] .abzarak-dialog__panel {
  animation: abzarak-pop 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.abzarak-dialog__panel {
  position: relative;
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 244, 250, 0.88));
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  box-shadow:
    0 28px 70px rgba(4, 16, 32, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #123047;
}

.abzarak-dialog__close {
  position: absolute;
  top: 0.7rem;
  left: 0.75rem;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 48, 71, 0.08);
  color: #123047;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.abzarak-dialog__close:hover {
  background: rgba(18, 48, 71, 0.14);
}

.abzarak-dialog__kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #4d6780;
}

.abzarak-dialog__title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #123047;
}

.abzarak-dialog__lead,
.abzarak-dialog__empty {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #3d5770;
}

.abzarak-dialog__list {
  display: grid;
  gap: 0.7rem;
  max-height: min(52dvh, 24rem);
  overflow: auto;
  padding: 0.15rem 0.1rem 0.2rem;
}

.abzarak-widget {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #123047;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 48, 71, 0.08);
  box-shadow: 0 6px 16px rgba(18, 48, 71, 0.06);
  animation: abzarak-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 70ms);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.abzarak-widget:hover,
.abzarak-widget:focus-visible {
  transform: translateX(-0.2rem);
  background: #fff;
  border-color: rgba(31, 95, 153, 0.22);
  outline: none;
}

.abzarak-widget__media {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #e8f1f6;
}

.abzarak-widget__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.abzarak-widget__mark {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 35% 30%, #9dc0dc, transparent 55%),
    linear-gradient(160deg, #1f5f99, #123047);
}

.abzarak-widget__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.abzarak-widget__body strong {
  font-size: 0.98rem;
  color: #123047;
}

.abzarak-widget__body span {
  font-size: 0.8rem;
  color: #4d6780;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.abzarak-widget__go {
  font-size: 1.25rem;
  color: #1f5f99;
}

body.is-abzarak-open {
  overflow: hidden;
}

@keyframes abzarak-rise {
  from {
    transform: translateY(1.1rem);
    filter: blur(6px);
  }
  to {
    transform: translateY(0);
    filter: none;
  }
}

@keyframes abzarak-card-in {
  from {
    transform: translateY(1.4rem) scale(0.96);
    filter: blur(8px);
  }
  to {
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes abzarak-pop {
  from {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes abzarak-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes abzarak-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-0.8rem, 1.1rem, 0); }
}

@media (max-width: 640px) {
  .abzarak__grid {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abzarak__hero,
  .abzarak-item,
  .abzarak-widget,
  .abzarak-dialog[open] .abzarak-dialog__panel,
  .abzarak-dialog::backdrop,
  .abzarak__spark {
    animation: none;
  }

  .abzarak-item,
  .abzarak-widget {
    transition: none;
  }
}
