/* VIP-объявления on the home page */
/* Tokens are shared with other blocks that reuse the card (e.g. related listings) */
.vip, .vip-scope {
  --vip-ink: #2B2A29;
  --vip-red: #E31E24;
  --vip-red-dark: #a11418;
  --vip-muted: #707070;
  --vip-line: #E4E4E4;
  --vip-paper: #FFFFFF;
  --vip-mist: #F4F4F5;
}
.vip {
  padding: 65px 0 70px;
  background: var(--vip-mist);
}
@media (max-width: 767px) {
  .vip { padding: 40px 0 45px; }
}

.vip-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.vip-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--vip-ink);
}
.vip-head p {
  margin: 6px 0 0;
  color: var(--vip-muted);
  font-size: 15px;
}
.vip-foot { margin-top: 26px; text-align: center; }
a.vip-all {
  display: inline-flex;
  padding: 8px 22px;
  border: 1px solid var(--vip-ink);
  border-radius: 5px;
  color: var(--vip-ink);
  font-weight: 500;
  font-size: 15px;
}
a.vip-all:hover { background: var(--vip-ink); color: #fff; text-decoration: none; }
a.vip-all:focus-visible { outline: 2px solid var(--vip-red) !important; outline-offset: 2px; }
@media (max-width: 575px) {
  .vip-head h2 { font-size: 24px; }
}

/* Slider */
.vip-slider { position: relative; padding: 0 48px; }
.vip-slider .swiper-container { padding: 4px 2px 8px; }
.vip-slider .swiper-slide { width: 290px; height: auto; }
@media (max-width: 575px) {
  .vip-slider { padding: 0; }
  .vip-slider .swiper-slide { width: 100%; }
}
.vip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--vip-line);
  background: var(--vip-paper);
  color: var(--vip-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.vip-nav:hover { border-color: var(--vip-ink); }
.vip-nav:focus-visible { outline: 2px solid var(--vip-red) !important; outline-offset: 2px; }
.vip-nav.swiper-button-disabled { opacity: .35; cursor: default; }
.vip-nav.swiper-button-lock { display: none; }
.vip-nav-prev { left: 0; }
.vip-nav-next { right: 0; }
@media (max-width: 575px) { .vip-nav { display: none; } }

/* Card */
.vip-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--vip-paper);
  border: 1px solid var(--vip-line);
  border-radius: 6px;
  padding: 16px 18px 18px;
  color: var(--vip-ink);
  transition: border-color .2s ease;
}
.vip-card:hover { border-color: var(--vip-ink); }

.vip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 23px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--vip-muted);
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vip-red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 3px;
}
.vip-type { font-size: 12px; font-weight: 500; color: var(--vip-ink); }
.vip-badge img { width: 13px; height: 13px; filter: brightness(0) invert(1); }

/* Specimen box: the mark as printed in a registration certificate */
.vip-specimen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  margin-bottom: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--vip-line);
}
.vip-specimen::before,
.vip-specimen::after,
.vip-specimen > .vip-corner::before,
.vip-specimen > .vip-corner::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--vip-red);
}
.vip-specimen::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vip-specimen::after { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vip-specimen > .vip-corner::before { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vip-specimen > .vip-corner::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vip-specimen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.vip-specimen-word {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
}

.vip-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.vip-title a { color: inherit; }
.vip-title a:hover { color: var(--vip-red); text-decoration: none; }
.vip-meta {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--vip-muted);
}

.vip-classes { margin-bottom: 16px; }
.vip-classes-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--vip-muted);
}
.vip-classes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vip-classes li {
  min-width: 30px;
  padding: 3px 6px;
  border: 1px solid var(--vip-ink);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.vip-classes li.vip-classes-more { border-style: dashed; color: var(--vip-muted); }

.vip-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--vip-line);
}
.vip-price-main {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vip-price-label { font-size: 12px; color: var(--vip-muted); }
.vip-price-license { margin-top: 4px; font-size: 13px; color: var(--vip-muted); }
.vip-price-license b { color: var(--vip-ink); font-weight: 500; }

a.vip-btn {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 5px;
  background: var(--vip-red);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
a.vip-btn:hover { background: var(--vip-red-dark); color: #fff; text-decoration: none; }
a.vip-btn:focus-visible { outline: 2px solid var(--vip-ink) !important; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .vip-card, a.vip-btn { transition: none; }
}
