/* На Кръстопът — premium page design system (shared across landing pages) */

.nk-premium-page {
  position: relative;
  background: #f4f7fc;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

.nk-page-glow {
  isolation: isolate;
}

.nk-page-glow::before,
.nk-page-glow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(42vw, 320px);
  pointer-events: none;
  z-index: 0;
}

.nk-page-glow::before {
  left: 0;
  background: radial-gradient(ellipse 100% 55% at 0% 38%, rgba(37, 99, 235, 0.14), transparent 68%);
}

.nk-page-glow::after {
  right: 0;
  background: radial-gradient(ellipse 100% 55% at 100% 42%, rgba(0, 194, 255, 0.12), transparent 68%);
}

.nk-premium-page > .container,
.nk-premium-page > section > .container,
.nk-premium-page .container {
  position: relative;
  z-index: 1;
}

/* Premium information card */
.nk-premium-card,
.hiw-info-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 48%, #eef6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow:
    0 14px 36px rgba(37, 99, 235, 0.08),
    0 0 0 1px rgba(0, 194, 255, 0.05),
    0 0 28px rgba(30, 136, 255, 0.1);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.nk-premium-card:hover,
.hiw-info-panel:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.11),
    0 0 0 1px rgba(0, 194, 255, 0.08),
    0 0 36px rgba(30, 136, 255, 0.16);
}

/* Larger section shell (services, help blocks, homepage sections) */
.nk-section-card,
.how-it-works-service {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow:
    0 12px 36px rgba(6, 27, 58, 0.06),
    0 0 24px rgba(37, 99, 235, 0.05);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.nk-section-card:hover,
.how-it-works-service:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow:
    0 16px 40px rgba(6, 27, 58, 0.08),
    0 0 32px rgba(37, 99, 235, 0.09);
}

.nk-section-card--flush {
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

/* Legal / long-form content inside premium card */
.nk-premium-card.privacy-policy-card,
.privacy-policy-card.nk-premium-card {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.nk-premium-page .how-it-works-intro {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.15rem, 3vw, 1.5rem);
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07), 0 0 22px rgba(30, 136, 255, 0.08);
}

/* Homepage — statistics (only on index) */
.nk-premium-page .basic-info-section {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nk-premium-page .basic-info-wrapper {
  padding: clamp(1.15rem, 2.5vw, 1.65rem) clamp(1rem, 3vw, 2rem);
  border-radius: 20px;
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 48%, #eef6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  box-shadow:
    0 14px 36px rgba(37, 99, 235, 0.08),
    0 0 28px rgba(30, 136, 255, 0.1) !important;
}

/* Homepage — main content sections */
.nk-premium-page .platform-section > .container,
.nk-premium-page .gallery-section > .container,
.nk-premium-page .nk-community-trust-section > .container,
.nk-premium-page .app-download-section > .container,
.nk-premium-page .testimonial-section > .container {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow:
    0 12px 36px rgba(6, 27, 58, 0.06),
    0 0 24px rgba(37, 99, 235, 0.05);
}

/* Help page contact tiles */
.nk-premium-page .help-contact-card {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f6faff 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07), 0 0 20px rgba(30, 136, 255, 0.08);
}

/* Page hero sits above premium body */
.page-hero-wrap {
  position: relative;
  z-index: 2;
}

.page-hero-wrap.nk-page-glow {
  overflow: visible;
}

.nk-premium-page .platform-section,
.nk-premium-page .gallery-section,
.nk-premium-page .nk-community-trust-section,
.nk-premium-page .app-download-section,
.nk-premium-page .testimonial-section,
.nk-premium-page .basic-info-section {
  margin-bottom: 1.25rem;
}

/* Homepage — app download phone (само устройство, прозрачен PNG + glow) */
.nk-premium-page .app-download-section .nk-app-phone-visual {
  width: 100%;
  max-width: 100%;
}

.nk-app-phone-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 42vw, 520px);
  max-width: 100%;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0 clamp(1rem, 3vw, 1.75rem);
  background: transparent;
  overflow: visible;
}

.nk-app-phone-visual__glow {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 0;
  width: min(78%, 380px);
  height: min(82%, 480px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse 68% 62% at 50% 44%, rgba(37, 99, 235, 0.48) 0%, rgba(0, 194, 255, 0.22) 38%, transparent 70%),
    radial-gradient(ellipse 88% 78% at 50% 50%, rgba(37, 99, 235, 0.14) 0%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.nk-app-phone-visual__shine {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 0;
  width: min(62%, 260px);
  height: 32px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.32) 0%, transparent 72%);
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

.nk-app-phone-visual__device {
  position: relative;
  z-index: 1;
  display: block;
  width: 37%;
  max-width: 37%;
  height: auto;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  filter:
    drop-shadow(0 0 32px rgba(37, 99, 235, 0.38))
    drop-shadow(0 0 14px rgba(0, 194, 255, 0.26))
    drop-shadow(0 24px 40px rgba(37, 99, 235, 0.22))
    drop-shadow(0 12px 22px rgba(11, 18, 32, 0.14));
}

.terms-section.nk-premium-page {
  padding-top: 0 !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.hiw-mission-blocks.nk-premium-page {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.how-it-works-page.nk-premium-page {
  padding-top: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.how-it-works-page--services {
  background: transparent;
}

/* Homepage — community trust (след „Нашите решения“) */
.nk-community-trust-section {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  .nk-community-trust-section {
    overflow-x: hidden;
  }
}

.nk-community-trust-section__header,
.nk-community-trust-rows {
  min-width: 0;
  max-width: 100%;
}

.nk-community-trust-section__lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  color: #475569;
  overflow-wrap: break-word;
}

.nk-community-trust-section .section-title {
  overflow-wrap: break-word;
}

.nk-community-trust-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.5vw, 1.65rem);
}

.nk-community-trust-row {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  border-radius: 20px !important;
  box-shadow:
    0 14px 36px rgba(37, 99, 235, 0.1),
    0 0 0 1px rgba(0, 194, 255, 0.06),
    0 0 32px rgba(30, 136, 255, 0.12) !important;
}

.nk-community-trust-row:hover {
  border-color: rgba(37, 99, 235, 0.34) !important;
  box-shadow:
    0 18px 42px rgba(37, 99, 235, 0.14),
    0 0 0 1px rgba(0, 194, 255, 0.1),
    0 0 40px rgba(30, 136, 255, 0.18) !important;
}

.nk-community-trust-row__inner {
  min-width: 0;
}

.nk-community-trust-row__media,
.nk-community-trust-row__content {
  min-width: 0;
}

.nk-community-trust-row__figure {
  position: relative;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f9ff 100%);
}

.nk-community-trust-row__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
}

.nk-community-trust-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.25rem);
  box-sizing: border-box;
}

.nk-community-trust-row__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: #0b1220;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.nk-community-trust-row__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #00c2ff 100%);
}

.nk-community-trust-row__text {
  margin: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.72;
  color: #334155;
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .nk-community-trust-row__figure {
    min-height: 280px;
  }

  .nk-community-trust-row__img {
    min-height: 280px;
  }

  .nk-community-trust-row__body {
    min-height: 280px;
  }

  .nk-community-trust-row--image-left .nk-community-trust-row__figure {
    border-radius: 20px 0 0 20px;
  }

  .nk-community-trust-row--image-right .nk-community-trust-row__figure {
    border-radius: 0 20px 20px 0;
  }

  .nk-community-trust-row--image-left .nk-community-trust-row__content {
    border-left: 1px solid rgba(37, 99, 235, 0.1);
  }

  .nk-community-trust-row--image-right .nk-community-trust-row__content {
    border-right: 1px solid rgba(37, 99, 235, 0.1);
  }
}

@media (max-width: 575.98px) {
  .nk-premium-card,
  .hiw-info-panel,
  .nk-section-card,
  .how-it-works-service {
    border-radius: 16px;
    padding: 1.1rem 1rem 1.25rem;
  }

  .nk-page-glow::before,
  .nk-page-glow::after {
    width: 55vw;
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nk-premium-card,
  .nk-section-card,
  .hiw-info-panel,
  .how-it-works-service {
    transition: none;
  }
}
