/* ===== Reset & base ===== */
* { box-sizing: border-box }
html,body { margin:0; padding:0 }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#e9ecf6; background:#0e1426;
}
a { text-decoration:none; color:inherit }

/* ===== Layout ===== */
.wrap{ max-width:1200px; margin:0 auto; padding:0 16px }
.nav-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px }
.cg-header{
  position:sticky; top:0; z-index:20;
  background:rgba(14,20,38,.6); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08)
}
.brand a{ font-weight:800; font-size:20px; letter-spacing:.3px }
.menu a{ margin:0 10px; opacity:.9 } .menu a:hover{ opacity:1 }
.btn{ display:inline-flex; align-items:center; gap:6px; border-radius:12px; padding:8px 14px; font-weight:600; cursor:pointer }
.btn.ghost{ border:1px solid rgba(255,255,255,.2) } .btn.ghost.mute{ opacity:.55 }
.btn.primary{ background:linear-gradient(180deg,#5c8afc,#3b6af5); color:#fff; box-shadow:0 10px 25px rgba(59,106,245,.35) }
.btn.wide{ width:100%; justify-content:center; padding:14px 18px; border-radius:14px; font-size:16px }

/* ===== Hero ===== */
.hero-cg{ position:relative; padding:54px 0 60px; overflow:hidden }
.hero-cg::before{
  content:''; position:absolute; inset:-20% -10% -10% -10%;
  background:
    radial-gradient(1200px 600px at 60% 10%, rgba(63,104,255,.45), transparent 60%),
    radial-gradient(900px 500px at 30% 50%, rgba(118,61,255,.25), transparent 60%),
    radial-gradient(600px 500px at 80% 70%, rgba(47,188,255,.25), transparent 60%);
  filter: blur(30px); z-index:-1;
}
.hero-grid{ display:grid; grid-template-columns: minmax(0,1fr) 520px; gap:32px; align-items:start }
.hero-title, .hero-exchange { min-width:0 }
.hero-title h1{
  margin:60px 0 20px; line-height:1.05; font-size:clamp(42px,6vw,78px);
  font-weight:800; color:#f0f3ff; text-shadow:0 6px 30px rgba(0,0,0,.35);
  overflow-wrap:anywhere; animation:floaty 6s ease-in-out infinite;
}
@keyframes floaty{ 0%{transform:translateY(0)} 50%{transform:translateY(-6px)} 100%{transform:translateY(0)} }
.hero-exchange{ justify-self:end; width:100%; max-width:520px }

/* ===== Cards ===== */
.cg-card{
  background:rgba(23,31,58,.85);
  border:1px solid rgba(255,255,255,.1);
  border-radius:22px;
  box-shadow:0 30px 60px rgba(0,0,0,.35);
  transition:transform .25s ease, box-shadow .25s ease;
}
.cg-card:hover{ transform:translateY(-2px); box-shadow:0 40px 80px rgba(0,0,0,.35) }

/* ===== Exchange card (светлее) ===== */
.exchange-card{ padding:20px }
.exchange-card.cg-card{
  width:100%; max-width:520px; border-radius:14px; padding:20px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(6px);
}
.row{ display:flex; gap:18px; flex-wrap:wrap }
.col{ flex:1; min-width:240px }
.col.half{ flex:1 }
.mid-eq{ display:flex; align-items:center; justify-content:center; font-size:24px; opacity:.8 }

/* ===== Поля формы (единый внешний вид) ===== */
.exchange-card select,
.exchange-card input[type="number"],
.exchange-card input[type="text"],
.exchange-card input[type="email"]{
  width:100%; height:52px;
  padding:14px 16px; border-radius:14px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  color:#eaf0ff; outline:none; font-size:16px; line-height:1.2;
}
.exchange-card select:focus,
.exchange-card input:focus{ border-color:rgba(130,160,255,.9); background:rgba(255,255,255,.22) }

.label, .small{ color:#bfc7e9; font-size:13px; margin:4px 0 6px }
.hint{ color:#93a0cc; font-size:12px; margin-top:6px } .hint.right{ text-align:right }

/* ===== Иконки у селектов + отступ текста ===== */
.select-row{ position:relative }
#iconFrom, #iconTo{
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2); object-fit:cover; display:block; pointer-events:none;
}
/* место под иконку внутри селекта */
.select-row select{ padding-left:56px !important }
.select-row select option{ background:#0f1733; color:#eaf0ff }

/* ===== Низ формы — шире и читабельнее ===== */
input[name="address"], input[name="email"]{
  height:56px;
}

/* ===== Features / News / Tiers ===== */
.features{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:28px }
.feature.cg-card{ padding:16px; border-radius:12px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12) }
.feature h3{ margin:0 0 6px }

.partner{ margin-top:26px; padding:24px }

.news-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:16px }
.news-item{ display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:12px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12) }
.news-item .icon{ width:44px; height:44px; display:grid; place-items:center; font-size:22px; border-radius:12px; background:rgba(255,255,255,.18) }
.news-item .text h3{ margin:0 0 4px; font-size:16px; line-height:1.2 }
.news-item .text p{ margin:0; opacity:.9; font-size:14px }

.below{ margin:40px auto }
.tiers{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.tier{ padding:18px; text-align:center }
.tier h4{ margin:0 0 6px }

/* ===== Footer ===== */
.cg-footer{ margin-top:60px; background:#0f152a; border-top:1px solid rgba(255,255,255,.08); padding:24px 0 }
.footer-links{ display:flex; gap:12px; margin-bottom:10px }
.pill{ background:rgba(255,255,255,.06); padding:8px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.09) }
.footer-contact{ display:flex; gap:18px; flex-wrap:wrap; color:#b9c3ec }
.copyright{ opacity:.75 }

/* ===== Rules accordion ===== */
.page-title{ font-size:48px; font-weight:800; margin:0 0 18px }
.acc{ margin-top:8px }
.acc details{ border-radius:10px; overflow:hidden; margin:10px 0; background:#2f5ed8 }
.acc summary{ cursor:pointer; padding:14px 16px; color:#fff; font-weight:700; list-style:none }
.acc summary::-webkit-details-marker{ display:none }
.acc details[open] summary{ border-bottom:1px solid rgba(255,255,255,.25) }
.acc .num{ display:inline-block; min-width:26px; text-align:center; margin-right:10px; background:rgba(255,255,255,.18); border-radius:8px; padding:2px 8px }
.acc .body{ background:#0e1426; color:#cfd6f6; padding:16px 18px; line-height:1.65 }
.acc .body p{ margin:8px 0 }
.acc .body ul{ margin:8px 0 8px 20px }

/* ===== Chat button ===== */
.chat-widget{
  position:fixed; right:20px; bottom:24px; width:54px; height:54px; border-radius:50%;
  background:linear-gradient(180deg,#5c8afc,#3b6af5); color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:22px; box-shadow:0 10px 25px rgba(59,106,245,.4); z-index:50;
}
.chat-widget:hover{ transform:translateY(-2px) }

/* ===== Responsive ===== */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr }
  .hero-title h1{ margin-top:30px; text-align:center }
  .hero-exchange{ justify-self:stretch; max-width:none }
  .features{ grid-template-columns:1fr }
}
@media (max-width:940px){
  .news-grid, .tiers{ grid-template-columns:1fr }
}
.adm-input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#e9ecf6;
  outline:none;
}
.adm-input:focus{
  border-color:rgba(130,160,255,.6);
  background:rgba(255,255,255,.10);
}
@media (max-width: 980px){
  /* стекаем в колонку на узких */
  .cg-card [style*="grid-template-columns:90px 1fr 1fr 120px 120px"]{
    grid-template-columns: 1fr;
  }
  .cg-card [style*="grid-template-columns:90px 1fr"]{
    grid-template-columns: 1fr;
  }
}

