/* =========================================================
   DIVINATIONS HUB — main page
   ========================================================= */

.divinations-hub {
  --hub-text: #f7f2ff;
  --hub-muted: rgba(247, 242, 255, .78);
  --hub-muted-2: rgba(247, 242, 255, .62);
  --hub-muted-3: rgba(247, 242, 255, .45);

  --hub-gold: #f6d18a;
  --hub-gold-2: #fff0bd;
  --hub-border: rgba(246, 209, 138, .18);

  color: var(--hub-text);
}

.divinations-hub strong {
  color: var(--hub-gold-2);
}

.divinations-hub__hero {
  margin-bottom: 34px;
}

/* =========================================================
   Section headings
   ========================================================= */

.divinations-hub__section-head {
  max-width: 920px;
  margin: 0 0 24px;
}

.divinations-hub__section-head h2,
.divinations-hub .fate-text-card h2,
.divinations-hub .fate-faq h2 {
  margin: 0 0 12px;
  color: var(--hub-gold-2);
  background: linear-gradient(
    180deg,
    #fff8dc 0%,
    #f8d99b 34%,
    #d6a65a 68%,
    #fff0be 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.divinations-hub__section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--hub-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================================
   Featured cards
   ========================================================= */

.divinations-hub__featured {
  margin-bottom: 30px;
}

.divinations-hub__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hub-oracle-card {
  min-width: 0;
}

.hub-oracle-card__link {
  position: relative;
  display: grid;
  grid-template-rows: 210px 1fr;
  min-height: 100%;
  overflow: hidden;

  border: 1px solid rgba(246, 209, 138, .18);
  border-radius: 30px;

  background:
    radial-gradient(circle at 80% 14%, rgba(185, 124, 255, .18), transparent 36%),
    radial-gradient(circle at 10% 0%, rgba(246, 209, 138, .10), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.022));

  box-shadow:
    0 28px 82px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255,255,255,.07);

  color: var(--hub-text);
  text-decoration: none;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    transform .28s cubic-bezier(.18, .84, .22, 1),
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

.hub-oracle-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.055) 34%, transparent 58%);
  transform: translateX(-120%);
  transition: transform .72s cubic-bezier(.18, .84, .22, 1);
  pointer-events: none;
  z-index: 2;
}

.hub-oracle-card__link:hover,
.hub-oracle-card__link:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(246, 209, 138, .34);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, .42),
    0 0 38px rgba(246, 209, 138, .08),
    inset 0 1px 0 rgba(255,255,255,.09);
  outline: none;
}

.hub-oracle-card__link:hover::before,
.hub-oracle-card__link:focus-visible::before {
  transform: translateX(120%);
}

.hub-oracle-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 210px;
}

.hub-oracle-card__visual::before {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 240, 189, .28), transparent 58%),
    radial-gradient(circle, rgba(185, 124, 255, .22), transparent 72%);
  filter: blur(16px);
  opacity: .9;
}

.hub-oracle-card--arrow .hub-oracle-card__visual {
  background:
    radial-gradient(circle at 50% 54%, rgba(246, 209, 138, .16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(80, 150, 255, .10), transparent 46%);
}

.hub-oracle-card--taro .hub-oracle-card__visual {
  background:
    radial-gradient(circle at 52% 50%, rgba(246, 209, 138, .16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(185, 124, 255, .16), transparent 48%);
}

.hub-oracle-card--crystal .hub-oracle-card__visual {
  background:
    radial-gradient(circle at 50% 48%, rgba(116, 196, 255, .18), transparent 36%),
    radial-gradient(circle at 50% 96%, rgba(246, 209, 138, .12), transparent 46%);
}

.hub-oracle-card__body {
  position: relative;
  z-index: 1;
  padding: 24px 22px 24px;
}

.hub-oracle-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hub-oracle-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;

  border: 1px solid rgba(246, 209, 138, .20);
  border-radius: 999px;

  background: rgba(255,255,255,.04);
  color: var(--hub-muted);

  font-size: 12px;
  font-weight: 780;
  line-height: 1;
}

.hub-oracle-card h3 {
  margin: 0 0 12px;

  color: var(--hub-gold-2);
  background: linear-gradient(
    180deg,
    #fff8dc 0%,
    #f8d99b 36%,
    #d6a65a 72%,
    #fff0be 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.hub-oracle-card p {
  margin: 0;
  color: var(--hub-muted);
  font-size: 15px;
  line-height: 1.66;
}

.hub-oracle-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 18px;
  color: var(--hub-muted-2);
  font-size: 13px;
  line-height: 1.4;
}

.hub-oracle-card__meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hub-oracle-card__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(246, 209, 138, .72);
  box-shadow: 0 0 10px rgba(246, 209, 138, .38);
}

.hub-oracle-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  margin-top: 22px;
  padding: 11px 18px;

  border: 1px solid rgba(246, 209, 138, .30);
  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(246, 209, 138, .16), rgba(255,255,255,.035));

  color: var(--hub-gold-2);
  font-size: 14px;
  font-weight: 820;
  line-height: 1;

  transition:
    transform .22s ease,
    border-color .22s ease,
    color .22s ease,
    background .22s ease;
}

.hub-oracle-card__link:hover .hub-oracle-card__cta,
.hub-oracle-card__link:focus-visible .hub-oracle-card__cta {
  transform: translateY(-1px);
  border-color: rgba(246, 209, 138, .50);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(246, 209, 138, .22), rgba(255,255,255,.055));
}

/* =========================================================
   Ad
   ========================================================= */

.divinations-hub__ad {
  margin: 30px 0;
}

.divinations-hub__ad .fate-ad__placeholder {
  min-height: 250px;
}

/* =========================================================
   Catalog by type
   ========================================================= */

.divinations-hub__catalog {
  margin-top: 34px;
  margin-bottom: 32px;
}

.divinations-hub__type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hub-type-card {
  min-width: 0;
  padding: 22px;

  border: 1px solid rgba(246, 209, 138, .16);
  border-radius: 26px;

  background:
    radial-gradient(circle at 100% 0%, rgba(185, 124, 255, .11), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));

  box-shadow:
    0 20px 62px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.055);
}

.hub-type-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.hub-type-card h3 {
  margin: 0;
  color: var(--hub-gold-2);
  font-size: 21px;
  line-height: 1.18;
}

.hub-type-card__header span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;

  border: 1px solid rgba(246, 209, 138, .22);
  border-radius: 999px;

  color: var(--hub-gold-2);
  background: rgba(255,255,255,.04);

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hub-type-card--soon .hub-type-card__header span {
  color: var(--hub-muted-2);
  border-color: rgba(255,255,255,.12);
}

.hub-type-card p {
  margin: 0 0 16px;
  color: var(--hub-muted);
  font-size: 15px;
  line-height: 1.68;
}

.hub-type-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-type-card__links a,
.hub-type-card__links span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;

  background: rgba(255,255,255,.035);
  color: var(--hub-muted);
  text-decoration: none;

  font-size: 13px;
  font-weight: 760;
  line-height: 1;

  transition:
    transform .2s ease,
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.hub-type-card__links a:hover,
.hub-type-card__links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(246, 209, 138, .32);
  background: rgba(255,255,255,.06);
  color: var(--hub-gold-2);
  outline: none;
}

.hub-type-card__links--muted span {
  color: var(--hub-muted-3);
}

/* =========================================================
   Content / FAQ
   ========================================================= */

.divinations-hub__content {
  margin-top: 32px;
}

.divinations-hub .fate-text-card,
.divinations-hub .fate-faq {
  border-color: rgba(246, 209, 138, .18);
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 124, 255, .10), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
}

.divinations-hub .fate-text-card p,
.divinations-hub .fate-faq p {
  color: var(--hub-muted);
}

.divinations-hub__faq {
  margin-top: 28px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .divinations-hub__cards,
  .divinations-hub__type-grid {
    grid-template-columns: 1fr;
  }

  .hub-oracle-card__link {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .hub-oracle-card__visual {
    min-height: 100%;
  }
}

@media (max-width: 767px) {
  .divinations-hub__hero {
    margin-bottom: 26px;
  }

  .divinations-hub__section-head {
    margin-bottom: 18px;
  }

  .divinations-hub__section-head h2,
  .divinations-hub .fate-text-card h2,
  .divinations-hub .fate-faq h2 {
    font-size: 30px;
  }

  .divinations-hub__section-head p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hub-oracle-card__link {
    grid-template-columns: 1fr;
    grid-template-rows: 170px 1fr;
    border-radius: 26px;
  }

  .hub-oracle-card__visual {
    min-height: 170px;
  }

  .hub-oracle-card__visual::before {
    width: 136px;
    height: 136px;
  }


  .hub-oracle-card__body,
  .hub-type-card {
    padding: 18px;
  }

  .hub-oracle-card h3 {
    font-size: 26px;
  }

  .hub-oracle-card__cta {
    width: 100%;
  }

  .hub-type-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .divinations-hub__ad {
    margin: 24px 0;
  }
}

@media (max-width: 420px) {
  .hub-oracle-card__tags span,
  .hub-type-card__links a,
  .hub-type-card__links span {
    font-size: 12px;
  }
}

/* =========================================================
   Hub cards images instead of icons
   ========================================================= */

.hub-oracle-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 210px;
  isolation: isolate;
}

.hub-oracle-card__visual::before {
  content: "";
  position: absolute;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 240, 189, .26), transparent 58%),
    radial-gradient(circle, rgba(185, 124, 255, .22), transparent 72%);
  filter: blur(18px);
  opacity: .92;
  z-index: 0;
}

.hub-oracle-card__image {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 78%;
  max-height: 178px;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 42px rgba(0, 0, 0, .42))
    drop-shadow(0 0 22px rgba(246, 209, 138, .16));
  transform: translateY(0) scale(1);
  transition:
    transform .42s cubic-bezier(.18, .84, .22, 1),
    filter .42s ease;
}

.hub-oracle-card__image--arrow {
  max-width: 74%;
  max-height: 170px;
}

.hub-oracle-card__image--taro {
  max-width: 108px;
  max-height: 186px;
  border-radius: 12px;
}

.hub-oracle-card__image--crystal {
  max-width: 170px;
  max-height: 170px;
}

.hub-oracle-card__link:hover .hub-oracle-card__image,
.hub-oracle-card__link:focus-visible .hub-oracle-card__image {
  transform: translateY(-5px) scale(1.045);
  filter:
    drop-shadow(0 30px 52px rgba(0, 0, 0, .48))
    drop-shadow(0 0 34px rgba(246, 209, 138, .25));
}

.hub-oracle-card__link:hover .hub-oracle-card__visual::before,
.hub-oracle-card__link:focus-visible .hub-oracle-card__visual::before {
  opacity: 1;
  filter: blur(22px) brightness(1.12);
}

/* Индивидуальные фоны карточек */
.hub-oracle-card--arrow .hub-oracle-card__visual {
  background:
    radial-gradient(circle at 50% 54%, rgba(246, 209, 138, .16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(80, 150, 255, .10), transparent 46%);
}

.hub-oracle-card--taro .hub-oracle-card__visual {
  background:
    radial-gradient(circle at 52% 50%, rgba(246, 209, 138, .16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(185, 124, 255, .16), transparent 48%);
}

.hub-oracle-card--crystal .hub-oracle-card__visual {
  background:
    radial-gradient(circle at 50% 48%, rgba(116, 196, 255, .18), transparent 36%),
    radial-gradient(circle at 50% 96%, rgba(246, 209, 138, .12), transparent 46%);
}

@media (max-width: 767px) {
  .hub-oracle-card__visual {
    min-height: 170px;
  }

  .hub-oracle-card__visual::before {
    width: 142px;
    height: 142px;
  }


  .hub-oracle-card__image {
    max-height: 142px;
  }

  .hub-oracle-card__image--taro {
    max-width: 82px;
    max-height: 148px;
  }

  .hub-oracle-card__image--crystal {
    max-width: 136px;
    max-height: 136px;
  }
}