
/* =====================================
   JPGPAY WEBSITE - MAIN STYLESHEET
   Domain: jpgpay-app.com
===================================== */

:root {
  --primary: #185adb;
  --primary-dark: #1045b2;
  --secondary: #edf4ff;
  --telegram: #229ed9;
  --text: #202b3c;
  --muted: #64748b;
  --background: #f6f8fc;
  --white: #ffffff;
  --border: #e4eaf2;
  --success: #16834a;
  --shadow: 0 5px 22px rgba(22, 48, 90, 0.055);
  --radius: 13px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

button {
  font: inherit;
}

/* HEADER */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
}

.header-container {
  max-width: 1160px;
  min-height: 72px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 9px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-navigation a {
  color: #344256;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}

.main-navigation a:hover,
.main-navigation a.active {
  background: var(--secondary);
  color: var(--primary);
}

/* MOBILE MENU BUTTON */

.menu-toggle {
  width: 43px;
  height: 41px;
  display: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  background: var(--text);
  border-radius: 5px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero-section {
  background: linear-gradient(135deg, #eaf2ff, #f7faff);
  padding: 45px 18px 40px;
  text-align: center;
  border-bottom: 1px solid #e2eaf8;
}

.hero-container {
  max-width: 800px;
  margin: auto;
}

.hero-image {
  display: block;
  width: 125px;
  height: 125px;
  margin: 0 auto 17px;
  object-fit: contain;
  border-radius: 22px;
  background: var(--white);
  padding: 5px;
  box-shadow: var(--shadow);
}

.hero-section h1 {
  max-width: 760px;
  margin: 0 auto 12px;
  color: #172c4c;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.3;
  font-weight: 800;
}

.hero-description {
  max-width: 690px;
  margin: 0 auto 22px;
  color: #586a83;
  font-size: 15px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  max-width: 310px;
  margin: 0 auto;
}

.btn {
  min-height: 47px;
  padding: 11px 19px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-telegram {
  background: var(--telegram);
  color: var(--white);
}

.btn-telegram:hover {
  background: #1687c1;
  color: var(--white);
}

.copy-message {
  min-height: 24px;
  margin-top: 8px;
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.hero-note {
  margin-top: 8px;
  color: #718096;
  font-size: 12px;
}

/* CONTENT */

.content-wrapper {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px;
}

.content-card {
  background: var(--white);
  padding: 27px 29px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: 95px;
}

.section-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.content-card h2 {
  color: #1b2d49;
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 750;
}

.content-card p {
  color: #536176;
  margin-bottom: 13px;
  font-size: 14.5px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card h3 {
  margin: 16px 0 8px;
  color: #263c5c;
  font-size: 17px;
}

.content-list {
  padding-left: 22px;
  color: #536176;
}

.content-list li {
  margin-bottom: 8px;
}

.text-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}

/* REFERRAL */

.referral-box {
  background: #f1f6ff;
  border: 1px dashed #8daee9;
  border-radius: 10px;
  padding: 18px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.referral-label {
  font-size: 12px;
  color: var(--muted);
}

.referral-box strong {
  color: var(--primary);
  font-size: 23px;
  letter-spacing: 2px;
}

.referral-box .btn {
  max-width: 210px;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 17px;
  color: #263c5c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 10px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 17px 15px;
  margin: 0;
  font-size: 14px;
}

/* FINAL CTA */

.final-cta {
  margin: 35px auto;
  padding: 38px 18px;
  background: #eaf2ff;
  text-align: center;
}

.final-cta-content {
  max-width: 650px;
  margin: auto;
}

.final-cta h2 {
  color: #1b3560;
  font-size: 25px;
  margin-bottom: 10px;
}

.final-cta p {
  color: var(--muted);
  margin-bottom: 18px;
}

.final-cta .btn {
  max-width: 260px;
}

/* FOOTER */

.site-footer {
  background: #14233b;
  color: #d5dfed;
  padding: 40px 18px 0;
}

.footer-container {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 13px;
}

.footer-about p,
.footer-disclaimer p {
  font-size: 13px;
  line-height: 1.8;
  color: #aebdd0;
}

.footer-links h3,
.footer-disclaimer h3 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 13px;
}

.footer-links a {
  display: block;
  color: #b9c8dc;
  font-size: 13px;
  margin-bottom: 9px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1120px;
  margin: auto;
  border-top: 1px solid #34435b;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #aebdd0;
  font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .header-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease,
                opacity 0.25s ease,
                visibility 0.25s;
  }

  .main-navigation.is-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0 10px;
  }

  .main-navigation a {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 750px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .header-container {
    min-height: 64px;
    padding: 9px 14px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero-section {
    padding: 30px 15px;
  }

  .hero-image {
    width: 105px;
    height: 105px;
  }

  .hero-section h1 {
    font-size: 25px;
  }

  .hero-description {
    font-size: 14px;
  }

  .content-wrapper {
    margin: 19px auto;
    padding: 0 11px;
  }

  .content-card {
    padding: 20px 17px;
    margin-bottom: 13px;
  }

  .content-card h2 {
    font-size: 19px;
  }

  .content-card p {
    font-size: 14px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* REDUCE MOTION FOR ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
