/* Themed heroes + icons — Navy Glass */

.pg-hero__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pg-hero--pricing::before {
  opacity: 0.55;
  background:
    radial-gradient(ellipse 55% 45% at 78% 18%, rgba(0, 108, 179, 0.22), transparent 58%),
    radial-gradient(ellipse 35% 35% at 12% 88%, rgba(125, 211, 252, 0.08), transparent 52%);
}

.pg-hero--plain::before,
.pg-hero--contacts::before {
  opacity: 0.5;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(0, 108, 179, 0.2), transparent 55%);
}

/* Visio: two diagram layers + soft flow */
.pg-hero--visio .pg-hero__fx::before,
.pg-hero--visio .pg-hero__fx::after {
  content: "";
  position: absolute;
  width: min(480px, 56vw);
  height: min(300px, 42vw);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 16px;
  background-color: rgba(8, 36, 58, 0.55);
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.14), rgba(125, 211, 252, 0.14)),
    linear-gradient(rgba(125, 211, 252, 0.14), rgba(125, 211, 252, 0.14)),
    linear-gradient(rgba(125, 211, 252, 0.14), rgba(125, 211, 252, 0.14)),
    linear-gradient(rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0.22)),
    linear-gradient(rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0.22)),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size:
    72px 36px,
    72px 36px,
    96px 36px,
    2px 48px,
    2px 48px,
    28px 28px,
    28px 28px;
  background-position:
    36px 40px,
    160px 40px,
    90px 140px,
    70px 76px,
    194px 76px,
    0 0,
    0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pg-hero--visio .pg-hero__fx::before {
  right: -2%;
  top: 16%;
  transform: rotate(-7deg);
  animation: pg-fx-drift-a 18s ease-in-out infinite;
}

.pg-hero--visio .pg-hero__fx::after {
  right: 10%;
  top: 36%;
  opacity: 0.72;
  transform: rotate(5deg);
  animation: pg-fx-drift-b 22s ease-in-out infinite;
}

.pg-hero--visio .pg-hero__fx {
  background:
    radial-gradient(circle at 74% 40%, rgba(125, 211, 252, 0.14), transparent 30%),
    linear-gradient(105deg, transparent 42%, rgba(125, 211, 252, 0.09) 52%, transparent 62%);
  background-size: auto, 220% 100%;
  animation: pg-fx-flow 14s linear infinite;
}

/* Product: blueprint grid */
.pg-hero--product .pg-hero__fx {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.12) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: radial-gradient(ellipse 70% 70% at 78% 40%, #000 20%, transparent 75%);
  animation: pg-fx-grid 40s linear infinite;
}

/* Partner: network nodes */
.pg-hero--partner .pg-hero__fx::before {
  content: "";
  position: absolute;
  inset: -10% -5% 0 40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='320' fill='none'%3E%3Cpath stroke='%237DD3FC' stroke-opacity='.28' d='M80 80h120l60 90H140zM260 70h100v70H260zM200 210h90v70h-90z'/%3E%3Ccircle cx='80' cy='80' r='6' fill='%237DD3FC' fill-opacity='.45'/%3E%3Ccircle cx='200' cy='80' r='5' fill='%237DD3FC' fill-opacity='.35'/%3E%3Ccircle cx='260' cy='170' r='6' fill='%237DD3FC' fill-opacity='.4'/%3E%3Ccircle cx='360' cy='105' r='5' fill='%237DD3FC' fill-opacity='.35'/%3E%3Ccircle cx='245' cy='245' r='5' fill='%237DD3FC' fill-opacity='.4'/%3E%3Cpath stroke='%237DD3FC' stroke-opacity='.22' d='M200 80l60 90M360 105l-55 40M260 140v70'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 70% 40%;
  background-size: min(520px, 55vw) auto;
  opacity: 0.85;
  animation: pg-fx-pulse 8s ease-in-out infinite;
}

/* KB: soft dots only */
.pg-hero--kb .pg-hero__fx {
  background-image: radial-gradient(rgba(125, 211, 252, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 60% 55% at 80% 35%, #000 10%, transparent 70%);
}

@keyframes pg-fx-drift-a {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  50% { transform: rotate(-4deg) translate(-12px, 10px); }
}

@keyframes pg-fx-drift-b {
  0%, 100% { transform: rotate(4deg) translate(0, 0); }
  50% { transform: rotate(6deg) translate(10px, -8px); }
}

@keyframes pg-fx-flow {
  0% { background-position: 0 0, 0% 0; }
  100% { background-position: 0 0, 220% 0; }
}

@keyframes pg-fx-grid {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
}

@keyframes pg-fx-pulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero__fx,
  .pg-hero__fx::before,
  .pg-hero__fx::after {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .pg-hero--visio .pg-hero__fx::before,
  .pg-hero--visio .pg-hero__fx::after,
  .pg-hero--partner .pg-hero__fx::before {
    opacity: 0.35;
  }
}

/* Icons */
.pg-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0, 108, 179, 0.08);
  color: var(--blue-main);
  flex: none;
  flex-shrink: 0;
}

.pg-ico--sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.pg-ico--lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.pg-ico__svg {
  width: 22px;
  height: 22px;
}

.pg-ico--sm .pg-ico__svg {
  width: 18px;
  height: 18px;
}

.pg-ico--lg .pg-ico__svg {
  width: 26px;
  height: 26px;
}

.pg-card--featured .pg-ico {
  background: rgba(125, 211, 252, 0.2);
  color: #e8f7ff;
}

.pg-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pg-card__head > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.pg-card__head h3 {
  margin: 0;
}

.pg-kb-cats__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pg-kb-cats__btn .pg-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 108, 179, 0.07);
  flex-shrink: 0;
}

.pg-kb-cats__btn .pg-ico__svg {
  width: 15px;
  height: 15px;
}

.pg-kb-cats__btn.is-active .pg-ico {
  background: rgba(0, 108, 179, 0.14);
}

.pg-docs__card {
  position: relative;
}

.pg-docs__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.pg-docs__topline .pg-ico {
  margin-bottom: 0;
}

.pg-docs__card .pg-ico {
  margin-bottom: 0;
}

.pg-tariff-card .pg-ico {
  margin-bottom: 4px;
}

.pg-tariff-card:has(.pg-tariff-card__badge) {
  padding-top: 40px;
}

.pg-tariff-card ul li {
  padding-left: 26px;
}

.pg-tariff-card ul li::before {
  width: 14px;
  height: 14px;
  top: 0.3em;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23006CB3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat,
    rgba(0, 108, 179, 0.1);
}

.pg-card--featured.pg-tariff-card ul li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230B263A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat,
    #7dd3fc;
}

.pg-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg-marker .pg-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.pg-marker .pg-ico__svg {
  width: 12px;
  height: 12px;
}

.pg-review-card__excerpt .pg-marker {
  display: inline-flex;
  vertical-align: -3px;
  margin-right: 4px;
}

.pg-contacts-grid > .pg-contact-card {
  height: 100%;
}

.pg-contact-row .pg-ico {
  grid-column: 1;
  align-self: start;
}
