/* FILE: wp-content/themes/hello-elementor-child-clean/assets/css/po-virtual.css
   Virtual PO Pages (v4 unified, fast + scoped)
   Scope: only inside wrapper with id starting "rea-po-" (e.g. #rea-po-nsk, #rea-po-vladivostok)
*/

:where([id^="rea-po-"]) {
  --rea-po-container: 1140px;

  --rea-po-primary: var(--e-global-color-primary, #2563eb);
  --rea-po-primary-2: #1d4ed8;
  --rea-po-secondary: var(--e-global-color-secondary, #111827);
  --rea-po-text: var(--e-global-color-text, #111827);
  --rea-po-muted: rgba(17, 24, 39, 0.78);
  --rea-po-accent: var(--e-global-color-accent, #16a34a);

  --rea-po-radius: 18px;
  --rea-po-shadow: 0 18px 46px rgba(17, 24, 39, 0.10);
  --rea-po-shadow-sm: 0 10px 26px rgba(17, 24, 39, 0.08);
  --rea-po-border: 1px solid rgba(17, 24, 39, 0.10);
  --rea-po-border-2: 1px solid rgba(37, 99, 235, 0.18);
  --rea-po-gap: 14px;

  color: var(--rea-po-text);
  font-size: 16px;
  line-height: 1.6;

  background:
    radial-gradient(900px 420px at 12% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
    radial-gradient(900px 420px at 88% 0%, rgba(22, 163, 74, 0.08), transparent 55%);

  padding-bottom: 110px;
}

:where([id^="rea-po-"]),
:where([id^="rea-po-"]) * { box-sizing: border-box; }

/* anchors */
:where([id^="rea-po-"]) [id]{ scroll-margin-top: 110px; }

/* ===== Container (fix for "full width") ===== */
:where([id^="rea-po-"]) .rea-po-section{
  max-width: var(--rea-po-container);
  margin: 0 auto 14px;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 1180px){
  :where([id^="rea-po-"]) .rea-po-section{
    padding-left: 0;
    padding-right: 0;
  }
}

/* Headings */
:where([id^="rea-po-"]) h1,
:where([id^="rea-po-"]) h2,
:where([id^="rea-po-"]) h3{
  color: var(--rea-po-secondary);
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0 0 10px;
}

:where([id^="rea-po-"]) h1{ font-size: clamp(24px, 3.6vw, 46px); line-height: 1.10; }
:where([id^="rea-po-"]) h2{ font-size: clamp(22px, 2.4vw, 32px); line-height: 1.18; }
:where([id^="rea-po-"]) h3{ font-size: 18px; line-height: 1.25; }

:where([id^="rea-po-"]) p{ margin: 0 0 10px; color: var(--rea-po-muted) !important; }
:where([id^="rea-po-"]) b,
:where([id^="rea-po-"]) strong{ color: var(--rea-po-secondary); }

:where([id^="rea-po-"]) .rea-po-center{ text-align: center; }
:where([id^="rea-po-"]) .rea-po-small{ font-size: 13px; opacity: 0.88; }
:where([id^="rea-po-"]) .rea-po-note{ opacity: 0.88; }

/* links */
:where([id^="rea-po-"]) a{
  color: var(--rea-po-primary);
  text-decoration: none;
  text-underline-offset: 2px;
}
:where([id^="rea-po-"]) a:hover{ text-decoration: underline; }

/* sections */
:where([id^="rea-po-"]) .rea-po-section{ margin-bottom: 14px; }

/* containers */
:where([id^="rea-po-"]) .rea-po-box{
  border: var(--rea-po-border-2);
  border-radius: var(--rea-po-radius);
  box-shadow: var(--rea-po-shadow);
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  position: relative;
  overflow: hidden;
}
:where([id^="rea-po-"]) .rea-po-box::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 240px at 18% 0%, rgba(37,99,235,.14), transparent 58%),
    radial-gradient(700px 240px at 82% 0%, rgba(22,163,74,.11), transparent 58%);
  pointer-events: none;
}
:where([id^="rea-po-"]) .rea-po-box > *{ position: relative; }

/* section headings */
:where([id^="rea-po-"]) h2{
  position: relative;
  padding-bottom: 10px;
}
:where([id^="rea-po-"]) h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rea-po-primary), var(--rea-po-accent));
  opacity: 0.95;
}

/* Hero polish (works with your ids) */
:where([id^="rea-po-"]) #po-hero #po-title{
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 46ch;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 56px);
}
:where([id^="rea-po-"]) #po-hero .rea-po-lead{
  font-weight: 500;
  line-height: 1.6;
  max-width: 78ch;
  margin: 6px 0 24px;
  font-size: clamp(16px, 1.35vw, 20px);
  color: rgba(17,24,39,.86) !important;
}

/* KPI */
:where([id^="rea-po-"]) .rea-po-kpis{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
:where([id^="rea-po-"]) .rea-po-kpi{
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.10);
  background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(255,255,255,.92));
  padding: 12px 14px;
  box-shadow: var(--rea-po-shadow-sm);
  position: relative;
}
:where([id^="rea-po-"]) .rea-po-kpi::before{
  content: "";
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rea-po-primary), var(--rea-po-accent));
  opacity: 0.9;
}
:where([id^="rea-po-"]) .rea-po-kpi b{
  display: block;
  font-weight: 900;
  margin: 0 0 2px;
  padding-left: 12px;
}
:where([id^="rea-po-"]) .rea-po-kpi span{
  padding-left: 12px;
  color: rgba(17,24,39,.74);
}

/* CTA / buttons */
:where([id^="rea-po-"]) .rea-po-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

:where([id^="rea-po-"]) a.rea-po-btn,
:where([id^="rea-po-"]) a.rea-po-btn:visited{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.95);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .10s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, filter .15s ease;
  text-decoration: none !important;
  color: var(--rea-po-secondary) !important;
}

:where([id^="rea-po-"]) a.rea-po-btn:hover,
:where([id^="rea-po-"]) a.rea-po-btn:focus,
:where([id^="rea-po-"]) a.rea-po-btn:active{
  color: var(--rea-po-secondary) !important;
  background: #fff !important;
  border-color: rgba(37,99,235,.30) !important;
  box-shadow: 0 18px 40px rgba(17,24,39,.12) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Primary */
:where([id^="rea-po-"]) a.rea-po-btn--primary,
:where([id^="rea-po-"]) a.rea-po-btn--primary:visited{
  color: #fff !important;
  background: linear-gradient(135deg, var(--rea-po-primary), var(--rea-po-primary-2)) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 36px rgba(37,99,235,.26);
}
:where([id^="rea-po-"]) a.rea-po-btn--primary:hover,
:where([id^="rea-po-"]) a.rea-po-btn--primary:focus,
:where([id^="rea-po-"]) a.rea-po-btn--primary:active{
  color: #fff !important;
  filter: brightness(1.05);
  box-shadow: 0 22px 44px rgba(37,99,235,.34) !important;
}

/* Ghost */
:where([id^="rea-po-"]) a.rea-po-btn--ghost,
:where([id^="rea-po-"]) a.rea-po-btn--ghost:visited{
  background: rgba(37,99,235,.06) !important;
  border-color: rgba(37,99,235,.22) !important;
  color: var(--rea-po-primary) !important;
}
:where([id^="rea-po-"]) a.rea-po-btn--ghost:hover{
  background: rgba(37,99,235,.10) !important;
  border-color: rgba(37,99,235,.30) !important;
}

/* Grid */
:where([id^="rea-po-"]) .rea-po-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--rea-po-gap);
}
:where([id^="rea-po-"]) .rea-po-col-6{ grid-column: span 6; }
:where([id^="rea-po-"]) .rea-po-col-12{ grid-column: span 12; }

/* Cards */
:where([id^="rea-po-"]) .rea-po-card,
:where([id^="rea-po-"]) .rea-po-price-card,
:where([id^="rea-po-"]) .rea-po-faq-item{
  border-radius: 16px;
  border: 1px solid rgba(37,99,235,.18) !important;
  background: rgba(255,255,255,.98);
  padding: 14px;
  box-shadow: var(--rea-po-shadow-sm);
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}
:where([id^="rea-po-"]) .rea-po-card:hover,
:where([id^="rea-po-"]) .rea-po-price-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17,24,39,.12);
  border-color: rgba(37,99,235,.26) !important;
}

/* Search row */
:where([id^="rea-po-"]) .rea-po-search-row,
:where([id^="rea-po-"]) .rea-po-search{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* Input */
:where([id^="rea-po-"]) .rea-po-input{
  flex: 1 1 340px;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,.16);
  background: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
:where([id^="rea-po-"]) .rea-po-input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Suggest */
:where([id^="rea-po-"]) .rea-po-suggest{
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
:where([id^="rea-po-"]) .rea-po-suggest a{
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.06);
  color: var(--rea-po-secondary) !important;
  text-decoration: none !important;
}
:where([id^="rea-po-"]) .rea-po-suggest a small{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(17,24,39,.62);
}
:where([id^="rea-po-"]) .rea-po-suggest a:hover{
  background: rgba(37,99,235,.10);
  box-shadow: 0 14px 26px rgba(17,24,39,.10);
}

/* Price */
:where([id^="rea-po-"]) .rea-po-price{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 10px;
}
:where([id^="rea-po-"]) .rea-po-price-card{
  grid-column: span 4;
  position: relative;
  overflow: hidden;
}
:where([id^="rea-po-"]) .rea-po-price-card::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:4px;
  background: linear-gradient(90deg, var(--rea-po-primary), var(--rea-po-accent));
  opacity: 0.95;
}
:where([id^="rea-po-"]) .rea-po-price-card .t{ font-weight: 900; color: var(--rea-po-secondary); }
:where([id^="rea-po-"]) .rea-po-price-card .p{ font-size: 22px; font-weight: 900; margin-top: 4px; color: var(--rea-po-secondary); }
:where([id^="rea-po-"]) .rea-po-price-card .d{ margin-top: 2px; color: rgba(17,24,39,.70); }

/* Bullets */
:where([id^="rea-po-"]) ul{ margin: 0; padding-left: 0; }
:where([id^="rea-po-"]) .rea-po-bullets{
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
:where([id^="rea-po-"]) .rea-po-bullets li{
  position: relative;
  padding-left: 28px;
  color: rgba(17,24,39,.76);
}
:where([id^="rea-po-"]) .rea-po-bullets li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--rea-po-accent);
  font-weight: 900;
}

/* FKКО lists */
:where([id^="rea-po-"]) .rea-po-fkko-list{
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
:where([id^="rea-po-"]) .rea-po-fkko-list li{ margin: 0; }

/* FKКО inline chip */
:where([id^="rea-po-"]) .rea-po-fkko-inline{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.28);
  background: rgba(37,99,235,.08);
  font-weight: 900;
  color: var(--rea-po-secondary);
}

/* FKКО rows */
:where([id^="rea-po-"]) a.rea-po-fkko{
  display: block;
  padding: 10px 12px 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.18);
  background: linear-gradient(180deg, rgba(37,99,235,.06), rgba(255,255,255,.96));
  color: var(--rea-po-secondary) !important;
  text-decoration: none !important;
  position: relative;
}
:where([id^="rea-po-"]) a.rea-po-fkko::before{
  content: "";
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rea-po-primary), var(--rea-po-accent));
  opacity: 0.9;
}
:where([id^="rea-po-"]) a.rea-po-fkko:hover{
  background: linear-gradient(180deg, rgba(37,99,235,.10), rgba(255,255,255,.98));
  box-shadow: 0 16px 34px rgba(17,24,39,.10);
  transform: translateY(-1px);
}

/* Steps */
:where([id^="rea-po-"]) .rea-po-steps{
  margin: 10px 0 0;
  padding-left: 20px;
}
:where([id^="rea-po-"]) .rea-po-steps li{
  margin: 8px 0;
  color: rgba(17,24,39,.76);
}

/* Separator */
:where([id^="rea-po-"]) .rea-po-sep{
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,.30), rgba(22,163,74,.22), rgba(37,99,235,.10));
  margin: 14px 0;
  border-radius: 999px;
}

/* FAQ */
:where([id^="rea-po-"]) details{
  border-radius: 16px;
  border: 1px solid rgba(37,99,235,.18) !important;
  background: rgba(255,255,255,.98);
  padding: 10px 12px;
  box-shadow: var(--rea-po-shadow-sm);
}
:where([id^="rea-po-"]) details + details{ margin-top: 10px; }
:where([id^="rea-po-"]) summary{
  cursor: pointer;
  font-weight: 900;
  color: var(--rea-po-secondary);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
:where([id^="rea-po-"]) summary::-webkit-details-marker{ display: none; }
:where([id^="rea-po-"]) summary::after{
  content: "›";
  position: absolute;
  right: 8px;
  top: 0;
  transform: rotate(90deg);
  opacity: 0.55;
  font-size: 22px;
  line-height: 1;
  transition: transform .12s ease, opacity .12s ease;
}
:where([id^="rea-po-"]) details[open] summary::after{
  transform: rotate(270deg);
  opacity: 0.85;
}
:where([id^="rea-po-"]) details[open]{
  border-color: rgba(37,99,235,.26) !important;
  box-shadow: 0 22px 44px rgba(17,24,39,.12);
}
:where([id^="rea-po-"]) .rea-po-faq-body{ margin-top: 10px; }

/* Sticky */
:where([id^="rea-po-"]) .rea-po-sticky{
  position: fixed;
  left: 0; right: 0;
  bottom: 14px;
  z-index: 999;
  pointer-events: none;
}
:where([id^="rea-po-"]) .rea-po-sticky .rea-po-box{
  max-width: var(--rea-po-container);
  margin: 0 auto;
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(37,99,235,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.90), rgba(248,250,252,.88));
  box-shadow: 0 22px 54px rgba(17,24,39,.18);
}
@supports (backdrop-filter: blur(12px)) {
  :where([id^="rea-po-"]) .rea-po-sticky .rea-po-box{
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.78);
  }
}
:where([id^="rea-po-"]) .rea-po-sticky-left b{ display: block; color: var(--rea-po-secondary); }
:where([id^="rea-po-"]) .rea-po-sticky-left span{ display: block; color: rgba(17,24,39,.70); font-size: 13px; }
:where([id^="rea-po-"]) .rea-po-sticky-right{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Flash highlight */
@keyframes rea-po-flash {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0), var(--rea-po-shadow); }
  30%  { box-shadow: 0 0 0 6px rgba(37,99,235,.18), 0 24px 54px rgba(17,24,39,.16); }
  100% { box-shadow: var(--rea-po-shadow); }
}
:where([id^="rea-po-"]) .rea-po-box.rea-po-flash{
  border-color: rgba(37,99,235,.45) !important;
  outline: 3px solid rgba(37,99,235,.35);
  box-shadow: 0 0 0 8px rgba(37,99,235,.12), var(--rea-po-shadow);
  animation: rea-po-flash 1.6s ease-out;
}
:where([id^="rea-po-"]) .rea-po-box.rea-po-flash h1,
:where([id^="rea-po-"]) .rea-po-box.rea-po-flash h2,
:where([id^="rea-po-"]) .rea-po-box.rea-po-flash h3{
  text-shadow: 0 6px 18px rgba(37,99,235,.10);
}

/* Responsive */
@media (max-width: 900px){
  :where([id^="rea-po-"]) .rea-po-col-6{ grid-column: span 12; }
  :where([id^="rea-po-"]) .rea-po-price-card{ grid-column: span 12; }
  :where([id^="rea-po-"]) .rea-po-sticky .rea-po-box{
    flex-direction: column;
    align-items: stretch;
  }
  :where([id^="rea-po-"]) .rea-po-sticky-right{ justify-content: flex-start; }
}
@media (max-width: 768px){
  :where([id^="rea-po-"]) { padding-bottom: 130px; }
  :where([id^="rea-po-"]) [id]{ scroll-margin-top: 130px; }
  :where([id^="rea-po-"]) .rea-po-sticky{ bottom: 8px; }
  :where([id^="rea-po-"]) .rea-po-sticky .rea-po-box{ padding: 12px; }
  :where([id^="rea-po-"]) a.rea-po-btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  :where([id^="rea-po-"]) *{ scroll-behavior: auto !important; transition: none !important; }
  :where([id^="rea-po-"]) .rea-po-box.rea-po-flash{ animation: none !important; }
}
