/* Пресса + FAQ: объединённый блок и фон «графический редактор» */

.site-premium .section-scene--press-faq {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f4f8fc 0%, #eef4f9 42%, #f8fafc 100%) !important;
  padding: clamp(72px, 9vw, 108px) 0;
}

.site-premium .section-scene--press-faq .section-scene__bg {
  display: none;
}

.site-premium .section-scene--press-faq .section-scene__inner {
  position: relative;
  z-index: 2;
}

/* ——— Фон ——— */
.press-faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.press-faq-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(45, 128, 194, 0.14), transparent 58%),
    radial-gradient(ellipse 60% 50% at 88% 75%, rgba(15, 136, 147, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(45, 128, 194, 0.06), transparent 70%);
}

.press-faq-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(45, 128, 194, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 128, 194, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 72%);
}

/* Летающие «призраки» карточек новостей */
.press-faq-bg__ghosts {
  position: absolute;
  inset: 0;
}

.press-faq-bg__ghost {
  position: absolute;
  width: clamp(200px, 22vw, 280px);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 128, 194, 0.2);
  box-shadow: 0 18px 48px rgba(15, 35, 55, 0.1);
  backdrop-filter: blur(6px);
  opacity: 0.42;
  animation: press-faq-ghost-float 22s ease-in-out infinite;
  animation-delay: calc(var(--g-i) * -3.8s);
  transform: rotate(calc(-6deg + var(--g-i) * 3deg));
}

.press-faq-bg__ghost:nth-child(1) { left: 4%; top: 8%; }
.press-faq-bg__ghost:nth-child(2) { left: 72%; top: 6%; animation-duration: 26s; }
.press-faq-bg__ghost:nth-child(3) { left: 58%; top: 62%; animation-duration: 20s; }
.press-faq-bg__ghost:nth-child(4) { left: 8%; top: 68%; animation-duration: 24s; }
.press-faq-bg__ghost:nth-child(5) { left: 38%; top: 38%; animation-duration: 28s; opacity: 0.32; }

.press-faq-bg__ghost time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.press-faq-bg__ghost p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-color);
}

.press-faq-bg__ghost span {
  font-size: 11px;
  font-weight: 700;
  color: var(--info-color);
}

@keyframes press-faq-ghost-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(calc(-6deg + var(--g-i) * 3deg)) scale(1);
  }
  33% {
    transform: translate(18px, -22px) rotate(calc(-2deg + var(--g-i) * 2deg)) scale(1.03);
  }
  66% {
    transform: translate(-14px, 16px) rotate(calc(-10deg + var(--g-i) * 4deg)) scale(0.97);
  }
}

/* SVG: рисование в стиле редактора */
.press-faq-bg__draw {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(72%, 920px);
  height: auto;
  transform: translateY(-48%);
  opacity: 0.34;
}

.press-faq-bg__artboard {
  fill: rgba(255, 255, 255, 0.35);
  stroke: rgba(45, 128, 194, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: press-faq-draw-board 12s ease-in-out infinite;
}

.press-faq-bg__select {
  fill: none;
  stroke: var(--info-color);
  stroke-width: 1.25;
  stroke-dasharray: 5 6;
  opacity: 0.65;
  animation: press-faq-select-pulse 4s ease-in-out infinite;
}

.press-faq-bg__shape {
  fill: rgba(255, 255, 255, 0.5);
  stroke: url(#press-faq-stroke);
  stroke-width: 2;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: press-faq-shape-draw 5s ease forwards infinite;
}

.press-faq-bg__shape--1 { animation-delay: 0s; }
.press-faq-bg__shape--2 { animation-delay: 0.8s; }
.press-faq-bg__shape--3 { animation-delay: 1.6s; }

.press-faq-bg__edge {
  fill: none;
  stroke: url(#press-faq-stroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 10;
  animation: press-faq-edge-flow 4s linear infinite;
}

.press-faq-bg__edge--1 { animation-delay: 2s; }
.press-faq-bg__edge--2 { animation-delay: 2.6s; }
.press-faq-bg__edge--3 { animation-delay: 0s; opacity: 0.7; }

.press-faq-bg__handles rect {
  fill: var(--primary-color);
  opacity: 0.55;
  animation: press-faq-handle-blink 2.5s ease-in-out infinite;
}

.press-faq-bg__handles rect:nth-child(2) { animation-delay: -0.6s; }
.press-faq-bg__handles rect:nth-child(3) { animation-delay: -1.2s; }
.press-faq-bg__handles rect:nth-child(4) { animation-delay: -1.8s; }

@keyframes press-faq-shape-draw {
  0% {
    stroke-dashoffset: 240;
    opacity: 0.35;
  }
  35%,
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}

@keyframes press-faq-edge-flow {
  to {
    stroke-dashoffset: -44;
  }
}

@keyframes press-faq-draw-board {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
  50% {
    stroke-dashoffset: 14;
    opacity: 0.85;
  }
}

@keyframes press-faq-select-pulse {
  0%,
  100% {
    stroke-opacity: 0.45;
  }
  50% {
    stroke-opacity: 1;
  }
}

@keyframes press-faq-handle-blink {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15);
  }
}

.press-faq-bg__cursor {
  position: absolute;
  left: 28%;
  top: 42%;
  filter: drop-shadow(0 4px 12px rgba(45, 128, 194, 0.35));
  animation: press-faq-cursor-move 14s ease-in-out infinite;
  z-index: 1;
}

@keyframes press-faq-cursor-move {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(120px, 40px);
  }
  45% {
    transform: translate(280px, -20px);
  }
  70% {
    transform: translate(420px, 60px);
  }
  88% {
    transform: translate(200px, 100px);
  }
}

/* ——— Контент: hub ——— */
.press-faq-hub {
  position: relative;
  z-index: 1;
}

.press-faq-hub__masthead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

.press-faq-hub__masthead-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(45, 128, 194, 0.1);
  border: 1px solid rgba(45, 128, 194, 0.22);
}

.press-faq-hub__masthead-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.press-faq-hub__masthead-lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--text-muted);
}

.press-faq-hub__split {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 1024px) {
  .press-faq-hub__split {
    grid-template-columns: minmax(0, 1.12fr) 48px minmax(320px, 0.88fr);
    gap: 0 clamp(12px, 2vw, 24px);
  }
}

.press-faq-hub__col-head {
  margin-bottom: clamp(18px, 2.5vw, 24px);
}

.press-faq-hub__col-head h3 {
  margin: 8px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.press-faq-hub__bridge {
  display: none;
}

@media (min-width: 1024px) {
  .press-faq-hub__bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding-top: 80px;
  }

  .press-faq-hub__bridge-line {
    flex: 1;
    width: 2px;
    min-height: 120px;
    background: linear-gradient(
      180deg,
      transparent,
      var(--primary-color) 18%,
      var(--info-color) 82%,
      transparent
    );
    opacity: 0.45;
    position: relative;
    overflow: hidden;
  }

  .press-faq-hub__bridge-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 100%;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    animation: press-faq-bridge-shine 3.5s ease-in-out infinite;
  }

  .press-faq-hub__bridge-dot {
    width: 12px;
    height: 12px;
    margin-top: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    box-shadow: 0 0 0 4px rgba(45, 128, 194, 0.15);
    animation: press-faq-bridge-dot 3.5s ease-in-out infinite;
  }
}

@keyframes press-faq-bridge-shine {
  0% {
    top: -40%;
  }
  100% {
    top: 140%;
  }
}

@keyframes press-faq-bridge-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Пресса в hub */
.press-grid--hub {
  gap: 14px;
}

@media (min-width: 640px) {
  .press-grid--hub {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-premium .press-card--hub {
  position: relative;
  z-index: 1;
  min-height: 128px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.site-premium .press-card--hub:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(45, 128, 194, 0.45);
  box-shadow:
    0 20px 48px rgba(45, 128, 194, 0.16),
    0 0 0 1px rgba(45, 128, 194, 0.08);
  z-index: 3;
}

.press-card--hub h3 {
  font-size: 14px;
  line-height: 1.4;
}

/* FAQ панель */
.press-faq-hub__faq-panel {
  padding: clamp(22px, 3vw, 28px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(45, 128, 194, 0.18);
  box-shadow:
    0 24px 60px rgba(15, 35, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .press-faq-hub__faq-panel {
    position: sticky;
    top: 92px;
  }
}

.site-premium .accordion--hub {
  max-width: none;
  margin: 0;
}

.site-premium .accordion--hub .accordion-item {
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--bg-color);
}

.site-premium .accordion--hub .accordion-item.is-open {
  border-color: rgba(45, 128, 194, 0.4);
  box-shadow: 0 8px 28px rgba(45, 128, 194, 0.1);
}

.site-premium .accordion--hub .accordion-trigger {
  padding: 16px 18px;
  font-size: 14px;
}

.site-premium .accordion--hub .accordion-panel__inner {
  padding: 0 18px 16px;
  font-size: 14px;
}

@media (max-width: 1023px) {
  .press-faq-bg__ghost:nth-child(2),
  .press-faq-bg__ghost:nth-child(5) {
    display: none;
  }

  .press-faq-bg__draw {
    right: -20%;
    opacity: 0.22;
  }

  .press-faq-bg__cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .press-faq-bg__ghost,
  .press-faq-bg__shape,
  .press-faq-bg__edge,
  .press-faq-bg__artboard,
  .press-faq-bg__select,
  .press-faq-bg__handles rect,
  .press-faq-bg__cursor,
  .press-faq-hub__bridge-line::after,
  .press-faq-hub__bridge-dot {
    animation: none;
  }

  .press-faq-bg__shape {
    stroke-dashoffset: 0;
  }
}
