/* =========================================
   GROK — HK theme (dark, neon-cold accent)
   ========================================= */

/* --- CSS Vars: HK palette --- */
:root{
  /* Core colors */
  --bg:#0b0f19;                /* page background */
  --surface:#0f1524;           /* cards / panels */
  --surface-2:#121a2b;         /* subtle elevated */
  --border:rgba(255,255,255,.08);

  --text:#e6edf7;              /* primary text */
  --muted:#9aa4b2;             /* secondary text */

  /* Accents */
  --accent:#00e5ff;            /* cyan */
  --accent-2:#8a63ff;          /* violet */
  --grad:linear-gradient(90deg, var(--accent), var(--accent-2));
  --grad-soft:linear-gradient(180deg, rgba(0,229,255,.14), rgba(138,99,255,.10));

  /* Legacy token kept for BGs that used lavender */
  --lav:rgba(138,99,255,.08);

  /* Shadows */
  --shadow-1:0 10px 24px rgba(0,0,0,.35);
  --shadow-2:0 14px 30px rgba(0,0,0,.40);
  --glow:0 0 0 3px rgba(0,229,255,.20);
}

/* --- Base --- */
html, body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3{ font-family:inherit; color:var(--text); }
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* --- Header (dark glass) --- */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,15,25,.65);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.header .container{ height:60px; display:flex; align-items:center; gap:18px; }
.header .brand{ font-weight:900; letter-spacing:.3px; color:#cbd6ff; }
.header .nav a{ color:#c7d0de; padding:8px 10px; }
.header .nav a:hover{ color:#ffffff; }
.header .btn{ color:#e6edf7; }
.header .btn.btn-primary{ background:var(--grad); color:#0b0f19; }

/* --- Buttons / links --- */
.btn-primary{
  display:inline-block; padding:14px 22px; border-radius:12px; font-weight:800;
  background:var(--grad)!important; color:#0b0f19!important;
  box-shadow: var(--shadow-2);
}
.btn-small{
  margin-left:auto; padding:10px 16px; border-radius:10px;
  background:var(--grad); color:#0b0f19!important;
  font-weight:700; text-decoration:none; box-shadow: var(--shadow-1);
}

/* ================================
   HOMEPAGE
   ================================ */

/* --- Hero wrapper --- */
.hero {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(0,229,255,.14), rgba(138,99,255,.10) 50%, transparent 70%),
    var(--bg) !important;
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}

/* Main hero panel */
.hero-panel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14,20,34,.95), rgba(14,20,34,.88));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.08), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  z-index: 2;
}

/* 3-column layout */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 3;
}

.hero-center {
  text-align: center;
}

.hero-center h1 {
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 72px);
  color: #ffffff !important;
  text-shadow: 0 0 24px rgba(100, 140, 255, 0.25);
}

.hero-center .btn-primary {
  display: inline-block;
  padding: 14px 26px;
  background: linear-gradient(90deg, #60aaff, #7b5cff);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(122, 92, 255, 0.35);
  transition: all 0.25s ease;
}

.hero-center .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(122, 92, 255, 0.5);
}

/* Tiles columns */
.hero-col {
  display: grid;
  gap: 22px;
}

.hero-col.left  { justify-items: start; }
.hero-col.right { justify-items: end; }

/* --- Tile (capsule style, dark neon) --- */
.hc {
  position: relative;
  list-style: none;
  width: 220px;
  height: 260px;
  background: #0f1524;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(120, 140, 255, 0.15);
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover effect */
.hc:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 25px rgba(0, 229, 255, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Skin image */
.hc img {
  width: 80%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
  transition: transform .25s ease;
}

.hc:hover img {
  transform: scale(1.04);
}

/* Neon edge glow */
.hc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(120, 90, 255, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
/* Watermark */
.hero-watermark{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  z-index:1; font-weight:900; letter-spacing:6px; pointer-events:none; user-select:none;
  font-size: min(40vw, 620px);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(0,229,255,.25) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(90deg, rgba(0,229,255,.55), rgba(138,99,255,.55));
  -webkit-background-clip:text; background-clip:text; color:transparent; opacity:.35;
}
.hero-watermark::after{
  content:"CS2"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color: rgba(0,229,255,.22); filter: blur(16px); opacity:.28;
}

/* --- Choose Your Skin --- */
.choose{
  max-width:1180px; margin: 28px auto 48px; padding: 24px; background:var(--surface);
  border:1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-1);
}
.choose-header{ display:flex; align-items:center; gap:16px; margin: 8px 0 18px; }
.choose-header h2{ margin:0; font-size:28px; font-weight:900; color:#fff; }
.choose-header .purple{ color:var(--accent); }
.choose .grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }

/* Catalog cards */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:14px; box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card .card-link{ color:inherit; text-decoration:none; }
.card .title-link{ color: var(--text); text-decoration:none; }
.card .title-link:hover{ text-decoration:underline; }
.card .muted{ color: var(--muted); font-size:13px; min-height:32px; }
.card .price{ font-weight:900; margin:.4rem 0 .6rem; color: var(--text); }
.card .thumb{
  width:100%; height:220px; object-fit:contain; display:block;
  background: var(--surface-2); border-radius:12px;
}
.card .btn.btn-primary{
  width:100%; text-align:center; padding:10px 0; border-radius:10px;
  background: var(--grad)!important; color:#0b0f19!important;
}

/* --- How it works --- */
.how{ max-width:1180px; margin:40px auto 32px; padding:0 24px; }
.how__container{ display:grid; grid-template-columns: 1.1fr .9fr; gap:32px; align-items:center; }
.how__left h2{ margin:0 0 16px; font-size:28px; font-weight:800; color:#fff; }
.how__steps{ display:grid; grid-template-columns:1fr; gap:12px; }
.how-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:14px; box-shadow: var(--shadow-1);
}
.how-card__icon{
  width:34px; height:34px; border-radius:10px; background:rgba(0,229,255,.12); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-weight:800; margin-bottom:8px;
}
.how-card h3{ margin:0 0 6px; font-size:16px; font-weight:700; color:#fff; }
.how-card p{ margin:0; color:var(--muted); font-size:13px; }
.how__cta{ margin-top:14px; }
.how__right{ display:flex; justify-content:center; }
.how__image{
  width:100%; max-width:520px; border-radius:16px;
  background: var(--grad-soft);
  border:1px solid var(--border); box-shadow: var(--shadow-1);
}

/* --- Reviews --- */
.trust{ max-width:1180px; margin:12px auto 36px; padding:0 24px; }
.trust h2{ font-size:26px; margin:0 0 14px; font-weight:800; color:#fff; }
.trust__strip{
  background:var(--surface-2); border:1px solid var(--border); border-radius:16px;
  padding:14px; display:grid; grid-template-columns: repeat(3,1fr); gap:12px;
}
.review{
  background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px;
  box-shadow: var(--shadow-1);
}
.review__avatar{
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  margin-bottom:8px;
}
.review__text{ margin:0 0 6px; color:#e6edf7; font-size:14px; line-height:1.35; }
.review__meta{ color:#8aa0b8; font-size:12px; }
.trust__dots{ display:flex; gap:8px; justify-content:center; margin-top:12px; }
.trust .dot{ width:8px; height:8px; border-radius:999px; background:#2c3550; }
.trust .dot.is-active{ background:var(--accent); }

/* --- Stats strip --- */
.stats{
  background:#0e1422; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  margin:24px 0; padding:22px 0;
}
.stats__container{
  max-width:1180px; margin:0 auto; padding:0 24px;
  display:grid; grid-template-columns: repeat(4,1fr); gap:22px;
}
.stat{ display:grid; justify-items:center; text-align:center; gap:4px; }
.stat__icon{ font-size:22px; color:var(--accent); }
.stat__num{ font-size:22px; font-weight:800; color:#ffffff; }
.stat__label{ color:var(--muted); font-size:13px; }

/* --- Big brand band --- */
.brandband{ position:relative; overflow:hidden; margin:24px 0 12px; }
.brandband__inner{
  height:180px; display:flex; align-items:center; justify-content:center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(0,229,255,.10), rgba(138,99,255,.08));
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.brandband h2{
  margin:0; font-size:86px; letter-spacing:4px; font-weight:900;
  color: rgba(0,229,255,.18);
}

/* --- Responsive --- */
@media (max-width:1150px){
  .hc{ width:240px; height:240px; }
}
@media (max-width:1140px){
  .choose .grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width:980px){
  .hero-wrap{ grid-template-columns:1fr; }
  .hero-col.left, .hero-col.right{
    justify-items:center; grid-auto-flow:column; grid-auto-columns:minmax(200px,1fr);
  }
  .hero-col{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-watermark{ font-size: min(48vw, 520px); }
  .trust__strip{ grid-template-columns:1fr; }
  .stats__container{ grid-template-columns: repeat(2,1fr); }
  .how__container{ grid-template-columns:1fr; }
  .how__right{ order:-1; }
}
@media (max-width:860px){
  .choose .grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px){
  .site-nav{display:none}
  .hamburger{display:flex}
}
@media (max-width:560px){
  .hc{ width:200px; height:200px; }
  .hero-center h1{ font-size: clamp(28px, 8vw, 44px); }
  .brandband__inner{ height:120px; }
  .brandband h2{ font-size:56px; }
  .choose .grid{ grid-template-columns:1fr; }
}

/* ================================
   HEADER (refined)
   ================================ */
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1180px; margin: 0 auto; padding: 0 20px; gap: 20px;
}
.header .brand .logo { height: 32px; }
/* Controls */
.header-controls{ display:flex; align-items:center; gap:14px; font-size:14px; font-weight:600; color:var(--text); }
/* Nav */
.nav{ display:flex; gap:18px; flex:1; justify-content:center; }
.nav a{ font-size:14px; font-weight:500; color:#c7d0de; text-decoration:none; }
.nav a:hover{ color:#fff; }
/* Actions */
.header-actions{ display:flex; align-items:center; gap:14px; }
.btn-settings, .btn-cart{ font-size:18px; background:none; border:none; cursor:pointer; color:var(--text); }
.btn-login{
  display:flex; align-items:center; gap:8px; padding:8px 16px; border-radius:8px;
  background:var(--grad); color:#0b0f19!important; font-weight:700; font-size:14px;
  text-decoration:none; box-shadow: var(--shadow-1); transition: transform .15s ease;
}
.btn-login:hover{ transform: translateY(-2px); }
.btn-login .icon{ width:16px; height:16px; }

/* ================================
   SUBPAGES / FAQ / CONTACT / BLOG
   ================================ */
.sub-hero{
  background: radial-gradient(60% 120% at 50% 0%, rgba(0,229,255,.12), rgba(138,99,255,.08));
  padding: 48px 0 12px; border-bottom:1px solid var(--border);
}
.sub-hero__panel{
  max-width:1180px; margin:0 auto; padding:28px 24px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:14px; box-shadow: var(--shadow-1); text-align:center;
}
.sub-hero__panel h1{ margin:0 0 6px; font-weight:900; font-size:36px; color:#fff; }
.sub-hero__lead{ margin:0; color:var(--muted); }

/* FAQ */
.faq-page{ background:var(--bg); }
.faq-hero{
  background: radial-gradient(60% 120% at 50% 0%, rgba(0,229,255,.10), rgba(138,99,255,.06));
  padding:36px 0 24px; text-align:center; border-bottom:1px solid var(--border);
}
.faq-hero h1{
  margin:0 0 8px; font-weight:900; font-size:clamp(28px,4.5vw,36px); color:#fff;
}
.faq-hero .subtitle{ margin:0; color:var(--muted); font-size:14px; }
.faq-list{ padding:24px 0 56px; }
.faq-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width: 900px){ .faq-grid{ grid-template-columns:1fr; } }
.faq-item{
  position:relative; background:var(--surface-2); border-radius:16px; border:1px solid var(--border);
  box-shadow: var(--shadow-1); padding:16px 16px 44px; overflow:hidden;
}
.faq-top{
  display:grid; grid-template-columns:32px 1fr; gap:10px; align-items:start; margin-bottom:8px;
}
.faq-num{
  width:32px; height:32px; border-radius:10px; display:grid; place-items:center;
  font-weight:800; font-size:14px; color:#0b0f19;
  background:var(--grad); box-shadow:0 8px 18px rgba(0,229,255,.20);
}
.faq-q{ margin:0; font-size:16px; font-weight:800; color:#fff; }
.faq-a{ margin:0; color:var(--muted); font-size:13px; line-height:1.35; }
/* stripes */
.faq-stripes{
  position:absolute; left:20px; right:20px; bottom:12px; display:flex; gap:6px; height:12px; pointer-events:none;
}
.faq-stripes span{
  flex:0 0 36px; height:100%; border-radius:10px;
  background:linear-gradient(105deg,var(--accent),var(--accent-2));
  filter: drop-shadow(0 2px 6px rgba(0,229,255,.35));
}

/* CONTACT */
/* Page bg */
.contact-page{ background:var(--bg); }

/* Hero */
.contact-hero{
  background:
    radial-gradient(60% 120% at 50% 0%,
      rgba(0,229,255,.10),
      rgba(138,99,255,.06)
    );
  text-align:center;
  padding:36px 0 24px;
  border-bottom:1px solid var(--border);
}
.contact-hero h1{
  margin:0 0 8px;
  font-weight:900;
  font-size:clamp(28px,4.5vw,36px);
  color:#fff;
}
.contact-hero .subtitle{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* Layout */
.contact-wrap{ padding:24px 0 40px; }
.contact-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
}
@media (max-width:900px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* Card (form container) */
.contact-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow-1);
  display:grid;
  gap:14px;
  box-sizing:border-box;
}

/* Inputs */
.input-group{ display:grid; gap:6px; }
.label{ font-size:13px; color:#d1d8e5; }

.input,
.textarea{
  width:100%;
  box-sizing:border-box;           /* ключ к отсутствию переполнения */
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:#0D111C;             /* тот самый тёмный фон карточек */
  color:var(--text);
  padding:12px 14px;
  font:inherit;
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.textarea{ min-height:120px; resize:vertical; }

.input:focus,
.textarea:focus{
  border-color: rgba(0,229,255,.5);
  box-shadow: var(--glow);
}

/* Submit button */
.contact-submit{
  margin-top:4px;
  align-self:start;
  padding:12px 20px;
  border-radius:10px;
  border:none;
  color:#fff;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow:0 8px 22px rgba(123,92,255,.35);
  font-weight:700;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.contact-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(123,92,255,.5);
}

/* Side (info box) */
.contact-side{ display:grid; align-content:start; }
.side-block{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-1);
  padding:18px;
  box-sizing:border-box;
}
.side-title{ font-weight:800; color:#fff; margin:0 0 6px; }
.side-text{ color:var(--muted); font-size:13px; margin:0 0 10px; }
.side-mail{
  font-weight:700;
  text-decoration:none;
  color:var(--accent);
}
.side-mail:hover{ text-decoration:underline; }

/* FOOTER */
.site-footer{
  margin-top:24px;
  background: linear-gradient(180deg, #0e1422 0%, #0b0f19 100%);
  border-top:1px solid var(--border);
  padding:24px 0 32px;
}
.footer-inner{
  display:grid; grid-template-columns:1.2fr 1fr; gap:28px; align-items:start;
}
@media (max-width: 900px){ .footer-inner{ grid-template-columns:1fr; } }
.footer-left img{ height:22px; display:block; margin-bottom:10px; filter: brightness(1.2); }
.footer-copy{ color:var(--muted); font-size:12px; margin-bottom:8px; }
.footer-note{ max-width:520px; color:var(--muted); font-size:12px; margin:0; }
.footer-right{
  display:grid; grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap:12px 36px; justify-items:start;
}
.footer-col{ display:grid; gap:6px; }
.footer-col a{ color:#c7d0de; font-size:14px; text-decoration:none; }
.footer-col a:hover{ color:#fff; text-decoration:underline; }

/* ===== BLOG ===== */
.blog-list{ display:grid; gap:18px; max-width:860px; margin:8px auto 12px; }
.post-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow: var(--shadow-1); transition: transform .15s ease, box-shadow .15s ease; overflow:hidden;
}
.post-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); }
.post-link{ display:block; padding:14px 16px 16px; color:inherit; text-decoration:none; }
.post-title{ font-size:20px; font-weight:800; margin:0 0 8px; color:#fff; }
.post-cover{
  background:var(--surface-2); border-radius:10px; overflow:hidden; margin:6px 0 10px;
  border:1px solid var(--border);
}
.post-cover img{ width:100%; height:220px; object-fit:cover; display:block; }
.post-excerpt{ color:#c1ccda; margin:0 0 8px; }
.post-actions{ display:flex; align-items:center; gap:10px; }
.btn-read{ background:var(--grad); color:#0b0f19; font-weight:700; padding:8px 12px; border-radius:10px; display:inline-block; }
.post-date{ color:#8aa0b8; font-size:13px; }
.post-h1{ font-size:clamp(28px,4.5vw,40px); font-weight:900; margin:4px 0 12px; color:#fff; }
.post-hero{ border-radius:12px; overflow:hidden; border:1px solid var(--border); background:var(--surface-2); margin:8px 0 14px; }
.post-hero img{ width:100%; height:auto; display:block; }
.post .lead{ font-size:18px; color:#d1d8e5; }
.post-body{ color:#cbd6e4; line-height:1.65; }
.post-body p{ margin:0 0 12px; }
.back-link{ color:var(--accent); text-decoration:none; }
.back-link:hover{ text-decoration:underline; }
.meta-row{ display:flex; align-items:center; gap:16px; }
.meta-row .date{ color:var(--muted); font-size:.9rem; }

/* === Trade Guide === */
body.guidepage{ background:var(--bg); }
.guide__h2{ font-size:22px; font-weight:800; margin:6px 0 12px; color:#fff; }
.guide__grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.guide__grid--2{ grid-template-columns: repeat(2,1fr); }
.step-card, .tip-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px;
  box-shadow: var(--shadow-1);
}
.step-card__num{
  width:32px; height:32px; border-radius:10px;
  background:rgba(0,229,255,.12); color:var(--accent); font-weight:800;
  display:flex; align-items:center; justify-content:center; margin-bottom:8px;
}
.step-card h3, .tip-card h3{ margin:0 0 6px; font-size:16px; font-weight:700; color:#fff; }
.step-card p, .tip-card p{ margin:0 0 8px; color:var(--muted); font-size:14px; }
.bullets{ margin:0; padding-left:18px; color:#c1ccda; font-size:14px; }
.bullets li{ margin:4px 0; }
.tip-card__icon{ font-size:20px; margin-bottom:6px; color:var(--accent); }
.glossary{
  background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:8px; box-shadow: var(--shadow-1);
}
.glossary__row{
  display:grid; grid-template-columns:160px 1fr; gap:12px; padding:10px 8px; border-bottom:1px dashed rgba(255,255,255,.08);
}
.glossary__row:last-child{ border-bottom:0; }
.glossary__term{ font-weight:700; color:#e6edf7; }
.glossary__desc{ color:var(--muted); }
.guide__cta{ display:flex; gap:10px; margin-top:18px; }
.btn-ghost{
  display:inline-block; padding:12px 18px; border-radius:10px;
  background:#121a2b; color:var(--accent); font-weight:700; text-decoration:none; border:1px solid var(--border);
}

/* адаптив */
@media (max-width:980px){
  .guide__grid{ grid-template-columns: 1fr; }
  .guide__grid--2{ grid-template-columns: 1fr; }
  .glossary__row{ grid-template-columns: 1fr; }
}

/* --- Currency / Language pickers --- */
.header .picker { position: relative; }
.header .picker details { display:inline-block; }
.header .picker summary{
  list-style:none; cursor:pointer; user-select:none; padding:6px 8px; border-radius:8px; color:var(--text);
}
.header .picker summary::-webkit-details-marker{ display:none; }
.header .picker[open], .header .picker details[open] summary{ background:rgba(255,255,255,.06); }
.header .picker form{
  min-width:160px; padding:8px; margin-top:6px; border:1px solid var(--border);
  border-radius:10px; background:var(--surface); box-shadow: var(--shadow-2);
  position:absolute; z-index:30;
}
.header .picker .pick{
  width:100%; text-align:left; background:transparent; border:0; padding:8px 10px; border-radius:8px;
  font-weight:600; color:#e6edf7; cursor:pointer;
}
.header .picker .pick:hover{ background:#121a2b; }
.header .picker .sym{ margin-right:2px; }

/* Header dropdowns (generic) */
.dd{position:relative;}
.dd-btn{
  display:flex; align-items:center; gap:8px; padding:8px 12px;
  background: rgba(255,255,255,.06); border:1px solid var(--border);
  border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.25);
  cursor:pointer; line-height:1; font-weight:700; color:#e6edf7;
}
.dd-btn:focus{ outline:2px solid rgba(0,229,255,.45); outline-offset:2px; }
.dd-ico{font-size:14px; opacity:.9;}
.dd-menu{
  position:absolute; top: calc(100% + 8px); left:0; min-width:170px; padding:8px;
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  box-shadow: var(--shadow-2); display:none; z-index:40;
}
.dd.open .dd-menu{ display:block; }
.dd-menu a{
  display:block; padding:10px 12px; border-radius:8px; color: var(--text); text-decoration:none; font-weight:700;
}
.dd-menu a:hover{ background:#121a2b; }
.header-controls, .nav{ list-style:none; }

/* Home tweaks */
body.homepage{ background: var(--bg)!important; }
body.homepage .hero{ margin-bottom:0; }

/* ===== Compact Choose rail ===== */
.choose.choose--compact{
  max-width:1180px; margin:28px auto 40px; padding:0 8px; background:transparent; border:0; box-shadow:none;
}
.choose.choose--compact .choose-header{ display:flex; align-items:center; gap:12px; margin:0 6px 12px; }
.choose.choose--compact .choose-header h2{ margin:0; font-size:28px; font-weight:900; color:#fff; }
.choose.choose--compact .choose-header .purple{ color:var(--accent); }
.choose.choose--compact .rail{
  display:grid; grid-auto-flow:column; grid-auto-columns:220px; gap:16px;
  overflow-x:auto; padding:6px 6px 10px; scroll-snap-type:x mandatory;
}
.choose.choose--compact .rail::-webkit-scrollbar{ height:8px; }
.choose.choose--compact .rail::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.16); border-radius:999px; }

/* ===== Tile (mini card) ===== */
.tile{
  position:relative; background: var(--surface-2); border:1px solid var(--border);
  border-radius:14px; box-shadow: var(--shadow-1); padding:10px 10px 12px;
  scroll-snap-align:start; transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile__link{ position:absolute; inset:0; z-index:1; }
/* stripes */
.tile .stripe{ position:absolute; width:68px; height:12px; }
.tile .stripe.tl{ left:12px; top:8px; }
.tile .stripe.tr{ right:12px; top:8px; transform: scaleX(-1); }
.tile .stripe::before{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(105deg,var(--accent),var(--accent-2)) left/22px 100% no-repeat,
    linear-gradient(105deg,var(--accent),var(--accent-2)) center/22px 100% no-repeat,
    linear-gradient(105deg,var(--accent),var(--accent-2)) right/22px 100% no-repeat;
  border-radius:8px; filter: drop-shadow(0 2px 6px rgba(0,229,255,.35));
}
/* image */
.tile__image{
  height:120px; display:flex; align-items:center; justify-content:center;
  background: #0e1422; border-radius:10px; margin-bottom:8px; overflow:hidden; border:1px solid var(--border);
}
.tile__image img{ max-width:92%; max-height:92%; object-fit:contain; }
/* text */
.tile__meta{ position:relative; z-index:2; }
.tile__type{ color:var(--muted); font-size:12px; margin-bottom:4px; }
.tile__name{
  font-weight:700; font-size:14px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:8px;
}
.tile__bottom{ display:flex; align-items:center; justify-content:space-between; }
.tile__price{ font-weight:800; color:#e6edf7; }
.tile__cta{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:8px; background: var(--grad);
  color:#0b0f19; text-decoration:none; font-size:14px; box-shadow: 0 8px 16px rgba(0,229,255,.25);
}

/* MARKET */
.market-hero{ padding:18px 0 8px; }
.market-hero h1{ font-weight:900; margin:0 0 6px; color:#fff; }
.market-hero .muted{ color: var(--muted); }
.market-toolbar{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:#0e1422; }
.filters{
  display:grid; grid-template-columns: 1fr auto auto auto auto; gap:12px; align-items:center; padding:14px 0;
}
.f-search{ display:flex; gap:8px; }
.f-search input{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#0f1524; color:var(--text);
}
.f-search .btn-primary{ padding:10px 16px; border-radius:12px; }
.f-group.dd .dd-btn{ padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#0f1524; cursor:pointer; }
.f-menu{ padding:10px; min-width:220px; background:#0f1524; border:1px solid var(--border); border-radius:12px; }
.chk{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:8px; color:var(--text); }
.chk:hover{ background:#121a2b; }
.chk input{ accent-color:var(--accent-2); }
.f-actions{ display:flex; justify-content:space-between; gap:8px; margin-top:10px; }
.btn-clear{ background:#0e1422; border:1px solid var(--border); border-radius:10px; padding:8px 10px; color:var(--text); }
.btn-apply{ background:var(--grad); color:#0b0f19; border-radius:10px; padding:8px 12px; border:0; }
.f-price{ background:#0f1524; border:1px solid var(--border); border-radius:12px; padding:10px 12px; color:var(--text); }
.price-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; font-weight:700; }
.price-range{ position:relative; height:28px; display:flex; align-items:center; }
.price-range .track{ position:absolute; left:8px; right:8px; height:6px; border-radius:999px; background:#1b2640; }
.price-range input[type="range"]{
  -webkit-appearance:none; appearance:none; position:absolute; left:0; right:0; width:100%; background:transparent; pointer-events:auto;
}
.price-range input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--accent-2); border:2px solid #0b0f19; box-shadow:0 0 0 2px rgba(138,99,255,.35);
}
.price-range input[type="range"]::-moz-range-thumb{
  width:18px; height:18px; border-radius:50%; background:var(--accent-2); border:2px solid #0b0f19;
}
.f-sort select{ padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#0f1524; color:var(--text); }
.f-submit{ display:none; }
@media (max-width: 980px){
  .filters{ grid-template-columns: 1fr 1fr; }
  .f-submit{ display:block; }
}
.market-grid .meta{ display:flex; justify-content:space-between; align-items:center; padding:14px 0 8px; color:var(--muted); }
.market-grid .grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
@media (max-width: 1140px){ .market-grid .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px){  .market-grid .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){  .market-grid .grid{ grid-template-columns: 1fr; } }
.chips{ padding:6px 0 12px; display:flex; flex-wrap:wrap; gap:8px; }
.chip{ background:#121a2b; color:#d2dcf0; padding:6px 10px; border-radius:999px; font-size:12px; border:1px solid var(--border); }

/* Pagination */
.pagination{ display:flex; justify-content:center; margin:18px 0 28px; }
.page{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:36px; height:36px; border:1px solid var(--border); border-radius:10px;
  margin:0 4px; padding:0 10px; text-decoration:none; color:var(--text); background:#0f1524;
}
.page.current{ background:var(--accent-2); color:#0b0f19; border-color:var(--accent-2); }

/* Cart badge / flashes */
.btn-cart{ position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-badge{
  display:inline-block; min-width:18px; padding:0 6px; font-size:12px; line-height:18px;
  border-radius:9px; background:var(--accent-2); color:#0b0f19; text-align:center;
}
.flash{ position:fixed; top:12px; right:12px; display:flex; flex-direction:column; gap:8px; z-index:1000; }
.flash-item{ padding:10px 12px; border-radius:8px; background:#0e1422; color:#fff; border:1px solid var(--border); }
.flash-item.success{ background:#0f2b1c; }
.flash-item.info{ background:#0f2334; }
.flash-item.error{ background:#2a0f10; }

/* ==== FORCE CLAMP FOR SKIN IMAGES (homepage + market) ==== */

/* 1) Карточки обрезают содержимое по радиусу */
.choose .card,
.market-grid .card,
.choose .tile,
.market-grid .tile {
  overflow: hidden !important;
  border-radius: 16px !important;
}

/* 2) Если IMG лежит сразу в .card/.tile — вписываем как в «окно»  */
.choose .card > img,
.market-grid .card > img,
.choose .tile > img,
.market-grid .tile > img {
  width: 100% !important;
  height: 220px !important;        /* общая высота «окна» под картинку */
  object-fit: contain !important;   /* вписать без обрезки */
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;       /* глушим возможные scale/translate */
  max-width: 100% !important;
  max-height: 100% !important;
}

/* 3) Если IMG всё-таки внутри вложенного контейнера — подстрахуемся */
.choose .card img,
.market-grid .card img,
.choose .tile img,
.market-grid .tile img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* 4) На главной крупные «капсулы» (.hc) — тоже безопасно обрежем */
.hc { overflow: hidden !important; }
.hc img {
  position: absolute !important;    /* как и было, но… */
  inset: 0 !important;
  margin: auto !important;
  width: 82% !important;
  height: 82% !important;
  object-fit: contain !important;   /* …не вылезать */
  transform: none !important;
}

/* 5) Опционально отключаем выпирающие drop-shadow у изображений внутри карточек */
.choose .card img,
.market-grid .card img { filter: none !important; }



.breadcrumbs {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #000;
}

.breadcrumbs span {
  color: #000;
  font-weight: 500;
}

.breadcrumbs .divider {
  margin: 0 6px;
  color: #ccc;
}

.site-header{position:sticky;top:0;z-index:50;background:#0c111b;border-bottom:1px solid rgba(255,255,255,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;max-width:1200px;margin:0 auto}
.logo{font-weight:800;text-decoration:none;color:#eef2ff}

/* ======= HEADER: Desktop ↔ Mobile ======= */

/* Базовые защиты от переполнения */
.header-inner > * { min-width: 0; }
.nav { min-width: 0; }
.hello, .hello-link{
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* По умолчанию (desktop-first): показываем полноценный хедер,
   мобильные элементы скрыты */
.nav{ display:flex; }
.header-controls{ display:flex; }
.hamburger{ display:none; }
.mobile-overlay, .mobile-drawer{ display:none; }

/* ===== MOBILE / TABLET (≤1024px) ===== */
@media (max-width: 1024px){
  /* скрываем центр. навигацию и контролы, показываем бургер */
  .nav{ display:none !important; }
  .header-controls{ display:none !important; }
  .hamburger{ display:flex !important; }
  .header-actions{ margin-left:auto; } /* кнопки/корзина прижимаются вправо */

  /* разрешаем существовать overlay/drawer (они закрыты до класса .open) */
  .mobile-overlay{ display:block !important; }
  .mobile-drawer{ display:flex !important; }

  /* компактнее кнопки справа, чтобы всё «дышало» */
  .header-actions .btn-login,
  .header-actions .btn-primary{
    padding: 8px 12px;
  }

  /* расстояние между Sign up и бургером */
  .hamburger{
    margin-left: 18px;
    flex: 0 0 36px; /* фикс. ширина, не сжимается */
  }
}

/* Очень узкие экраны — можно скрыть приветствие */
@media (max-width: 420px){
  .hello{ display:none; }
}

/* ===== КНОПКА-БУРГЕР ===== */
.hamburger{
  width:36px; height:36px;
  padding:8px;
  border-radius:10px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  display:none;                 /* включаем в @media */
  align-items:center; justify-content:center;
  gap:4px; flex-direction:column;
  cursor:pointer;
}
.hamburger span{
  display:block;
  width:20px; height:2px;
  background:#0b0f19;          /* чёрные полоски */
  border-radius:2px;
}
.hamburger:hover{ filter: brightness(1.05); }
.hamburger:active{ transform: translateY(1px); }

/* Мобильный дровер на всю высоту */
.mobile-drawer{ height:100vh; }

/* ===== ВЕРТИКАЛЬНОЕ МЕНЮ В ДРОВЕРЕ ===== */
.drawer-nav{
  display:flex; flex-direction:column; gap:8px; padding:10px;
}
.drawer-nav a{
  display:block; padding:12px 10px; border-radius:10px;
  color:#dbe4ff; text-decoration:none;
}
.drawer-nav a:hover{ background:rgba(255,255,255,.06); }
