@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #07111f;
  --panel-color: #111F34;
  --panel: rgba(17, 31, 52, .72);
  --line: rgba(132, 174, 225, .17);
  --text: #f4f8ff;
  --muted: #9aacbf;
  --cyan: #20e6d5;
  --success: #20e6d5;
  --primary: #1f9bff;
  --blue: #1f9bff;
  --accent: #7657ff;
  --purple: #7657ff;
  --radius: 16px;
  --button-radius: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(
    circle at 75% 15%,
    #12274b 0,
    #07111f 34%,
    #050d18 100%
  );
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
  pointer-events: none;
}

.glow-a {
  background: #168cff;
  right: -180px;
  top: 130px;
}

.glow-b {
  background: #6c4cff;
  left: -250px;
  bottom: 80px;
}

/* =========================
   TOP BAR
========================= */

.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 6vw, 70px);
  position: relative;
  z-index: 2;
  background: rgba(5, 13, 24, .55);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand b {
  display: block;
  font-size: 22px;
  letter-spacing: .5px;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.telegram-btn,
.primary {
  border: 0;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(110deg, #1299ef, #6d50f6);
  box-shadow: 0 10px 30px rgba(43, 116, 255, .24);
  border-radius: var(--button-radius);
  padding: 13px 19px;
  font-weight: 700;
}

.tg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #168eea;
  margin-right: 7px;
}

/* =========================
   MAIN / HERO
========================= */

main {
  max-width: 1180px;
  margin: auto;
  padding: 62px 24px 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  min-height: 310px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #7f93aa;
  display: flex;
  gap: 8px;
  align-items: center;
}

.eyebrow span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -2.7px;
  margin: 16px 0 18px;
  max-width: 720px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #22a9ff, #7657ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.hero-copy > p {
  font-size: 17px;
  line-height: 1.65;
  color: #b8c7d8;
  max-width: 620px;
}

.benefits {
  display: flex;
  gap: 26px;
  margin-top: 28px;
}

.benefit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 145px;
}

.benefit i {
  font-style: normal;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(32, 230, 213, .25);
  background: rgba(32, 230, 213, .08);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 18px;
}

.benefit b,
.benefit small {
  display: block;
}

.benefit b {
  font-size: 13px;
}

.benefit small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
}

/* =========================
   HERO ART
========================= */

.hero-art {
  height: 330px;
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  width: 150px;
  height: 265px;
  border: 5px solid #42688f;
  border-radius: 25px;
  background: linear-gradient(160deg, #10213a, #050d17);
  box-shadow:
    0 0 45px rgba(40, 155, 255, .32),
    inset 0 0 30px rgba(32, 110, 255, .13);
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.phone-notch {
  position: absolute;
  top: 5px;
  width: 52px;
  height: 8px;
  border-radius: 10px;
  background: #07111f;
}

.shield {
  width: 76px;
  height: 76px;
  border: 4px solid var(--cyan);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 40px;
  border-radius: 22px;
  filter: drop-shadow(0 0 14px rgba(32, 230, 213, .65));
  transform: rotate(0deg);
}

.ring {
  position: absolute;
  border: 2px solid rgba(48, 153, 255, .55);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(48, 153, 255, .3);
}

.r1 {
  width: 330px;
  height: 90px;
  transform: perspective(350px) rotateX(62deg);
  bottom: 20px;
}

.r2 {
  width: 260px;
  height: 70px;
  transform: perspective(350px) rotateX(62deg);
  bottom: 30px;
}

/* =========================
   PAYMENT LAYOUT
========================= */

.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.panel {
  background: linear-gradient(
    145deg,
    rgba(24, 42, 68, .78),
    rgba(12, 25, 43, .72)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}

.panel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--button-radius);
  background: rgba(32, 230, 213, .1);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}

.blue-icon {
  color: #4ca9ff;
  background: rgba(31, 155, 255, .1);
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ghost {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: #dce8f7;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  flex-shrink: 0;
}

.details {
  display: grid;
  gap: 10px;
}

/* =========================
   PAYMENT DETAIL ROW
========================= */

.detail {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(126, 169, 219, .11);
  background: rgba(35, 55, 82, .42);
  border-radius: 12px;
  min-width: 0;
}

.detail > div {
  flex: 1;
  min-width: 0;
}

.detail small,
.detail strong {
  display: block;
}

.detail small {
  color: #879bb2;
  font-size: 11px;
  margin-bottom: 4px;
}

.detail strong {
  font-size: 15px;
  letter-spacing: .2px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  flex-shrink: 0;
}

.cyan {
  color: var(--cyan);
  background: rgba(32, 230, 213, .1);
}

.blue {
  color: #49aaff;
  background: rgba(31, 155, 255, .1);
}

.purple {
  color: #a07aff;
  background: rgba(118, 87, 255, .12);
}

/* =========================
   COPY BUTTON
========================= */

.detail button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: #a9bbcf;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 58px;
  transition:
    border-color .2s ease,
    color .2s ease,
    background .2s ease;
}

.detail button:hover {
  border-color: rgba(32, 230, 213, .45);
  color: #dcefff;
}

.detail button:active {
  transform: scale(.97);
}

.detail button.copied,
.ghost.copied {
  border-color: var(--success);
  color: var(--success);
}

/* =========================
   WARNING
========================= */

.warning {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 15, 27, .28);
  border-radius: 10px;
  padding: 11px 13px;
  color: #9eb1c6;
  font-size: 11px;
  line-height: 1.45;
}

/* =========================
   QR
========================= */

.qr-panel {
  text-align: center;
}

.qr-panel .panel-head {
  text-align: left;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.qr-frame {
  width: 270px;
  height: 270px;
  border-radius: 17px;
  background: #fff;
  padding: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 34px rgba(61, 143, 255, .22);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.qr-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b4c5d8;
  font-size: 12px;
  margin: 12px;
}

.qr-status span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fe1a8;
  box-shadow: 0 0 12px #2fe1a8;
}

.primary {
  width: 100%;
  cursor: pointer;
  font-size: 14px;
}

.primary:disabled {
  opacity: .65;
  cursor: wait;
}

.updated {
  color: #788da5;
  font-size: 11px;
  margin-top: 11px;
}

/* =========================
   TRUST
========================= */

.trust {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 34, 55, .58);
  padding: 18px;
}

.trust > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  column-gap: 12px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
}

.trust > div:last-child {
  border-right: 0;
}

.trust i {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31, 155, 255, .1);
  color: #45a9ff;
  font-style: normal;
}

.trust b,
.trust small {
  display: block;
}

.trust b {
  font-size: 12px;
}

.trust small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}

/* =========================
   FOOTER
========================= */

footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 26px clamp(22px, 6vw, 70px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #91a4b9;
}

.footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand b,
.footer-brand small {
  display: block;
}

.footer-brand b {
  color: #eaf2fb;
}

.footer-brand small {
  font-size: 10px;
}

.footer-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}

.footer-contact a {
  color: #7cc5ff;
  text-decoration: none;
}

.copyright {
  text-align: right;
  display: grid;
  gap: 5px;
  font-size: 11px;
}

.copyright b {
  color: #d7e6f7;
}

/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .trust > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 8px;
  }

  .trust > div:last-child {
    border-bottom: 0;
  }

  .benefits {
    flex-wrap: wrap;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright {
    text-align: left;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 520px) {

  .topbar {
    padding: 0 16px;
    height: 76px;
  }

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

  .brand b {
    font-size: 19px;
  }

  .brand small {
    font-size: 10px;
  }

  .telegram-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .telegram-btn #telegramTopText {
    display: none;
  }

  main {
    padding: 38px 14px 24px;
  }

  h1 {
    letter-spacing: -1.8px;
  }

  .panel {
    padding: 17px;
  }

  /*
     ВАЖНО:
     Не скрываем кнопки копирования.
     Они остаются справа у каждого реквизита.
  */

  .panel-head {
    align-items: flex-start;
  }

  .panel-head h2 {
    font-size: 17px;
  }

  .panel-head p {
    font-size: 11px;
  }

  .ghost {
    font-size: 10px;
    padding: 9px 10px;
  }

  .details {
    gap: 9px;
  }

  .detail {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .detail > div {
    min-width: 0;
  }

  .detail small {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .detail strong {
    font-size: 15px;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /*
     Кнопка COPY на мобильном:
     всегда видима
  */

  .detail button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    min-width: 58px;
    min-height: 40px;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .detail button.copied {
    display: flex !important;
  }

  /*
     Кнопка "Copiar todo"
  */

  .ghost {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /*
     QR
  */

  .qr-frame {
    width: 235px;
    height: 235px;
  }

  .qr-status {
    font-size: 11px;
  }

  .primary {
    min-height: 46px;
  }

  .updated {
    font-size: 10px;
  }
}

/* =========================
   VERY SMALL PHONES
========================= */

@media (max-width: 380px) {

  main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .panel {
    padding: 13px;
  }

  .detail {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .detail-icon {
    width: 34px;
    height: 34px;
  }

  .detail strong {
    font-size: 14px;
  }

  .detail button {
    min-width: 54px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .ghost {
    padding: 8px 9px;
    font-size: 10px;
  }

  .qr-frame {
    width: 210px;
    height: 210px;
  }
}
