/* Certificate Card — CSS-only replacement for image */
.cert-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  overflow: hidden;
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

.cert-card__inner {
  border: 1px solid #D4C5A9;
  border-radius: 8px;
  margin: 16px;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
}

.cert-card__inner[data-design="graphite"]::before,
.cert-card__inner[data-design="gold"]::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}

.cert-card__inner[data-design="graphite"]::before {
  border: 1px solid #C9A96E66;
}

.cert-card__inner[data-design="gold"]::before {
  border: 1px solid #8B691488;
}

.cert-card__top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: absolute;
  top: 20px;
  left: 28px;
}

.cert-card__brand {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.cert-card__brand-script {
  font-family: 'English111VivaceBT', cursive;
  font-size: 28px;
  font-weight: 300;
  color: #A68B5B;
  line-height: 1;
}

.cert-card__brand-concept {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-top: 0;
}

.cert-card__type {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  line-height: 1.6;
}

.cert-card__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
}

.cert-card__denom-label {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.cert-card__denom-value {
  font-family: 'Cormorant', serif;
  font-size: 56px;
  font-weight: 300;
  color: #A68B5B;
  line-height: 1;
  position: relative;
}

.cert-card__denom-value::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: #D4C5A9;
  margin: 8px auto 0;
}

.cert-card__fp {
  position: absolute;
  top: 18px;
  right: 22px;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 3px;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #C9B896;
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.cert-card__bottom {
  text-align: center;
  width: 100%;
  margin-top: auto;
  padding-bottom: 8px;
}

.cert-card__validity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cert-card__validity span:last-child {
  color: #666;
  font-size: 13px;
}

/* Trust pills */
.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px;
}

.pill-check {
  color: var(--muted);
  border-color: var(--line);
}

.pill-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.pill-inactive {
  color: var(--muted-2);
  border-color: var(--line-2);
  opacity: 0.45;
}

.pill-q {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--muted);
  font-size: 11px;
  cursor: help;
}

.pill-q::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 20;
  pointer-events: none;
}

.pill-q::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 20;
  pointer-events: none;
}

.pill-q:hover::after,
.pill-q:hover::before,
.pill-q.is-open::after,
.pill-q.is-open::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* В фильтрах каталога тултип смещён влево чтобы не обрезался */
.filter-q::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
}
.filter-q::before {
  left: auto;
  right: 6px;
  transform: translateY(4px);
}
.filter-q:hover::after,
.filter-q.is-open::after {
  transform: translateY(0);
}
.filter-q:hover::before,
.filter-q.is-open::before {
  transform: translateY(0);
}
/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .02em;
  padding: 10px 20px;
  border-radius: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}
/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--ink-2);
  color: #f0ede8;
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -2px 20px rgba(15, 14, 12, 0.18);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 300px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(240, 237, 232, 0.88);
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__link:hover {
  opacity: 0.8;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Shared button base */
.btn-cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-cookie--outline {
  background: transparent;
  border-color: rgba(240, 237, 232, 0.3);
  color: rgba(240, 237, 232, 0.8);
}

.btn-cookie--outline:hover {
  border-color: rgba(240, 237, 232, 0.6);
  color: #f0ede8;
}

.btn-cookie--primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.btn-cookie--primary:hover {
  opacity: 0.85;
}

/* ============================================================
   RESPONSIVE — cookie banner (≤600)
   ============================================================ */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 14px 16px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-banner__text {
    flex: 0 1 auto;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .btn-cookie {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}
