
:root{
  --bg:#0b0f1c;
  --panel:#11182a;
  --card:#121a2e;
  --line:#1f2a44;
  --text:#f6f9ff;
  --muted:#a9b6d0;
  --accent:#ffd54a;
  --accent2:#ffb300;
  --neon1:#5ee7ff;
  --neon2:#7cff96;
  --ok:#2ee08a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:radial-gradient(1200px 700px at 65% -10%, #1a2450 0%, var(--bg) 60%) fixed;color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif}
.container{max-width:1000px;margin:0 auto;padding:16px}
a{color:inherit;text-decoration:none}

/* ===== Header like mock ===== */
.header{position:sticky;top:0;z-index:50;background:linear-gradient(180deg, rgba(11,15,28,.95), rgba(11,15,28,.8));border-bottom:1px solid var(--line);box-shadow:0 8px 30px rgba(0,0,0,.25)}
.header-inner{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 0}
.brand-block{display:flex;align-items:center;gap:12px;background:linear-gradient(160deg, rgba(94,231,255,.08), rgba(124,255,150,.06));border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 10px 26px rgba(10,14,22,.4)}
.brand-icon{width:26px;height:26px;filter:drop-shadow(0 8px 18px rgba(255,213,74,.25))}
.brandname{font-size:22px;font-weight:900;letter-spacing:.4px}
.brandname .accent{color:var(--accent)}
.sub{font-size:12px;color:var(--muted);margin-top:2px}

/* Yellow phone block */
.phone-block{display:block;background:linear-gradient(180deg,var(--accent),var(--accent2));color:#1a1300;padding:14px 18px;border-radius:18px;box-shadow:0 16px 40px rgba(255,179,0,.35);min-width:210px;border:none}
.phone-number{font-size:20px;font-weight:900;line-height:1.2}
.phone-sub{font-size:12px;font-weight:700;margin-top:4px}

/* Mobile header stacking */
@media (max-width:640px){
  .header-inner{flex-direction:column;align-items:stretch}
  .brand-block{width:100%}
  .phone-block{width:100%;text-align:center}
}

/* ===== Tabs ===== */
.tabs{display:flex;gap:12px;margin:14px 0 10px}
.tab{background:linear-gradient(120deg,var(--neon1),var(--neon2));color:#041115;padding:10px 16px;border-radius:14px;font-weight:900;border:none;box-shadow:0 10px 24px rgba(94,231,255,.25)}
.tab.outline{background:#0e1529;color:#cfe7ff;border:1px solid var(--line);box-shadow:none}

/* ===== Product card ===== */
.product{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;background:linear-gradient(160deg, rgba(94,231,255,.06), rgba(124,255,150,.04));border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
@media (max-width:900px){.product{grid-template-columns:1fr}}
.product h2{margin:0 0 6px;font-size:22px}
.product p{margin:0;color:var(--muted);font-size:14px}
.badge{display:inline-flex;align-items:center;gap:8px;margin-top:10px;background:rgba(20,255,153,.1);border:1px solid #2df39f;color:#98f7c9;padding:8px 12px;border-radius:999px;font-weight:900;font-size:12px}
.badge::before{content:'';width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.18)}

/* Image */
.sideimg{display:flex;align-items:flex-end;justify-content:center}
.sideimg .wrap{background:radial-gradient(280px 110px at 50% 110%, rgba(94,231,255,.2), rgba(124,255,150,.18) 60%, transparent 70%);border-radius:16px;padding:12px;display:flex;align-items:flex-end;justify-content:center;min-height:260px}
.sideimg img{height:auto;max-width:100%;max-height:260px;filter:drop-shadow(0 30px 40px rgba(94,231,255,.12));transition:transform .25s ease}
.sideimg img:hover{transform:translateY(-4px)}

/* Controls */
.controls{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.sizes{display:flex;gap:10px;flex-wrap:wrap}
.pill{background:#0d1426;border:1px solid var(--line);border-radius:12px;padding:10px 16px;font-weight:900;color:#e9f3ff;cursor:pointer;box-shadow:inset 0 -6px 18px rgba(94,231,255,.05)}
.pill[aria-pressed="true"]{background:linear-gradient(120deg,#182542,#122037);border-color:#2a3a5f;box-shadow:0 8px 24px rgba(0,0,0,.35)}

.mode{display:flex;gap:10px;flex-wrap:wrap}
.mode .switch{background:#0d1426;border:1px solid var(--line);border-radius:12px;padding:4px;display:flex;gap:6px}
.mode button{background:transparent;border:none;padding:10px 14px;border-radius:10px;font-weight:900;color:#e9f3ff;cursor:pointer}
.mode button[aria-pressed="true"]{background:linear-gradient(120deg,#ff6fb1,#7aa2ff);box-shadow:0 10px 24px rgba(255,111,177,.3);color:#0b0e14}

/* Price & actions */
.price{font-size:24px;font-weight:900;margin:10px 0 6px;background:linear-gradient(120deg,var(--neon1),var(--neon2));-webkit-background-clip:text;background-clip:text;color:transparent}
.subprice{color:var(--muted);font-size:12px}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;background:#0d1426;border:1px solid var(--line);border-radius:12px;padding:12px;text-decoration:none;font-weight:900;color:#e9f3ff}
.btn.primary{background:linear-gradient(120deg,var(--accent),var(--accent2));color:#1a1400;border:none;box-shadow:0 14px 40px rgba(255,179,0,.35)}
.icon{width:18px;height:18px;margin-right:8px;opacity:.9}

/* Bottom sticky bar */
.bottom{position:sticky;bottom:0;background:linear-gradient(180deg, rgba(0,0,0,0), rgba(11,15,28,.92) 30%, rgba(11,15,28,.98) 100%);padding:14px 0;margin-top:18px;border-top:1px solid var(--line)}
.cta{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cta .btn{padding:14px;border-radius:14px}

/* ---- Mobile-first ordering: controls BEFORE text ---- */
@media (max-width: 900px){
  .product-content{display:flex;flex-direction:column}
  .product-content .controls{order:-2;margin-bottom:10px}
  .product-content h2{order:-1;margin-top:2px}
  .product-content p,.product-content .badge{order:0}
}

/* Force description at the bottom of the left column on all screens */
.product-content{display:flex;flex-direction:column}
.product-content .controls{order:0}
.product-content .price{order:1}
.product-content .subprice{order:2}
.product-content .actions{order:3}
.product-content .desc{order:4;margin-top:10px}

/* === FIX: full-width stacked action buttons without changing visual style === */
.actions{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.actions .btn{width:100%}

/* === Exchange banner === */
.exchange-banner{margin:24px auto;max-width:1180px;padding:0 16px}
.exchange-wrap{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:24px;
  background:linear-gradient(180deg,#0f1730,#0b1229);border:1px solid var(--line);
  border-radius:20px;padding:24px;box-shadow:0 16px 40px rgba(124,255,150,.15)}
.ex-text .ex-kicker{display:inline-block;background:rgba(124,255,150,.15);border:1px solid #5be68f;
  color:#d7ffe3;font-weight:800;padding:6px 10px;border-radius:999px;font-size:12px}
.exchange-wrap h2{margin:.4rem 0 0;font-size:28px;line-height:1.15;color:var(--text);font-weight:900}
.exchange-wrap h2 span{color:#7cff96}
.ex-sub{margin:.5rem 0 0;color:var(--muted)}
.ex-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.ex-note{margin-top:8px;color:#8fa1c2;font-size:12px}
.ex-visual{display:flex;align-items:flex-end;justify-content:center;gap:18px}
.ex-col{display:flex;flex-direction:column;align-items:center}
.ex-img{width:112px;height:auto;object-fit:contain;flex:0 0 auto}
.ex-duo .ex-img{width:96px}
.ex-cap{margin-top:6px;color:#9fb2d6;font-size:12px;line-height:1}
.ex-eq{font-weight:900;font-size:40px;line-height:1;color:#fff;flex:0 0 auto}
.ex-badge{position:absolute;transform:translate(42px,-8px);background:#fff;color:#000;
  font-weight:900;font-size:12px;padding:3px 8px;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.ex-duo{position:relative}
.nowrap{white-space:nowrap}

@media (max-width:720px){
  .exchange-wrap{grid-template-columns:1fr;gap:18px;padding:18px}
  .ex-visual{flex-direction:column;gap:8px}
  .ex-img{width:120px}
  .ex-duo .ex-img{width:100px}
  .ex-eq{font-size:28px}
  .ex-badge{transform:translate(32px,-6px)}
}
/* === Accessories === */
.acc{max-width:1180px;margin:28px auto;padding:0 16px}
.acc-head h2{margin:0;color:var(--text);font-size:28px;line-height:1.15;font-weight:900}
.acc-head p{margin:6px 0 14px;color:var(--muted)}
.acc-tabs{display:flex;flex-wrap:wrap;gap:8px}
.acc-tab{background:var(--panel);border:1px solid var(--line);color:var(--text);
  padding:8px 12px;border-radius:999px;font-weight:800;font-size:13px;cursor:pointer}
.acc-tab[aria-pressed="true"]{background:rgba(94,231,255,.12);border-color:var(--neon1)}
.acc-card{margin-top:14px;display:grid;grid-template-columns:360px 1fr;gap:18px;
  background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px}
.acc-media{display:flex;justify-content:center;align-items:center;background:#0c1529;border-radius:12px}
.acc-media img{width:80%;max-width:260px;height:auto;object-fit:contain}
.acc-info h3{margin:.2rem 0;color:var(--text);font-size:22px;font-weight:900}
.acc-price{font-size:26px;font-weight:900;color:#fff;margin:6px 0 12px}
.acc-note{margin-top:8px;color:#8fa1c2;font-size:12px}
@media (max-width:720px){
  .acc-card{grid-template-columns:1fr}
}
/* === фиксы выравнивания на мобилке === */
@media (max-width:720px){
  .ex-visual{
    flex-direction: column;
    align-items: center;      /* центр по оси X */
    justify-content: center;  /* центр по оси Y */
    text-align: center;
  }
  .ex-col,
  .ex-duo{
    align-items: center;
    margin-inline: auto;      /* на всякий случай */
  }
  .ex-img{
    display: block;
    margin: 0 auto;
    width: 128px;             /* можно 120–130 */
  }
  .ex-duo .ex-img{ width: 108px; }
  .ex-eq{ font-size: 28px; margin: 4px 0; }

  /* значок ×2 — фиксируем справа сверху без смещения translate,
     чтобы не «тянуло» композицию вправо визуально */
  .ex-badge{
    position: absolute;
    top: -6px;
    right: 8px;
    transform: none;
  }
}
