/* MEMEZ v2 — shared layout (grids, cards, sections, video-band, seo, footer)
 * Loaded globally via includes/head.php. Used by home AND catalog landing.
 * Uses --accent etc tokens — they must be declared elsewhere (topbar_v2.css does).
 */

  .v2-page-wrap{ width:1320px; max-width:calc(100% - 64px); margin:0 auto; }

  .v2-section{ padding:56px 40px 28px; }
  .v2-sec-head{ display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:28px; }
  .v2-sec-h{ font-size:30px; font-weight:700; margin:0; letter-spacing:-.8px; line-height:1.1; color:#fff; }
  .v2-sec-sub{ color:#A9A9A9; font-size:14px; margin-top:6px; }
  .v2-link-all{ color:#A9A9A9; font-size:13px; text-decoration:none; }
  .v2-link-all:hover{ color:#FF204E; }

  /* Game card (catalog tile) */
  .v2-gcard{
    position:relative; border-radius:14px; overflow:hidden;
    border:1px solid rgba(255,255,255,.05); cursor:pointer;
    transition:transform .15s, border-color .15s;
    background:#121011;
    display:grid; grid-template-rows:1fr auto;
    text-decoration:none; color:#fff;
  }
  .v2-gcard:hover{ transform:translateY(-2px); border-color:rgba(255,32,78,.35); }
  .v2-gcard .art{ position:relative; aspect-ratio:16/10; overflow:hidden; }
  .v2-gcard .art .bg{ position:absolute; inset:0; background:linear-gradient(160deg, var(--c, #2a3a3a) 0%, #0a0809 100%); }
  .v2-gcard .art .bg::after{
    content:""; position:absolute; inset:0;
    background:radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,.55), transparent 60%),
               repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px);
  }
  .v2-gcard .art .ic{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-58%);
    font-size:32px; font-weight:800; letter-spacing:-1px;
    color:rgba(255,255,255,.18); text-transform:uppercase;
  }
  .v2-gcard.has-img .art .bg{
    background-image: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%), var(--img);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
  }
  .v2-gcard.has-img .art .bg::after{
    background:radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,.45), transparent 65%);
  }
  .v2-gcard .body{
    padding:14px 16px 16px;
    display:flex; justify-content:space-between; align-items:flex-end; gap:14px;
  }
  .v2-gcard .nm{ font-size:15px; font-weight:700; letter-spacing:-.2px; line-height:1.15; color:#fff; }
  .v2-gcard .v2-row{ font-size:12px; color:#A9A9A9; margin-top:4px; }
  .v2-gcard .price{ font-size:13px; font-weight:700; white-space:nowrap; color:#fff; }
  .v2-gcard .price .from{ color:#A9A9A9; font-weight:500; font-size:11px; letter-spacing:.8px; text-transform:uppercase; }

  /* Grid layouts */
  .v2-pop-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
  .v2-pop-grid .v2-gcard .art{ aspect-ratio:16/9; }
  .v2-pop-grid .v2-gcard .nm{ font-size:18px; }

  .v2-cat-grid{ display:grid; grid-template-columns:repeat(6, 1fr); gap:12px; }
  .v2-cat-grid .v2-gcard .art{ aspect-ratio:1/1; }
  .v2-cat-grid .v2-gcard .body{ padding:10px 12px 12px; flex-direction:column; align-items:flex-start; gap:2px; }
  .v2-cat-grid .v2-gcard .row-bot{ width:100%; display:flex; justify-content:space-between; margin-top:6px; font-size:11px; color:#A9A9A9; }
  .v2-cat-grid .v2-gcard .price{ font-size:11.5px; }

  /* Fresh product cards (3-column) */
  .v2-fresh-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
  .v2-fcard{
    background:#121011; border:1px solid rgba(255,255,255,.05);
    border-radius:14px; overflow:hidden; cursor:pointer;
    transition:transform .15s, border-color .15s;
    display:flex; flex-direction:column;
    text-decoration:none; color:#fff;
  }
  .v2-fcard:hover{ transform:translateY(-2px); border-color:rgba(255,32,78,.35); }
  .v2-fcard .img{ aspect-ratio:16/9; position:relative; }
  .v2-fcard .img .badges{ position:absolute; top:12px; left:12px; display:flex; gap:6px; flex-wrap:wrap; max-width:calc(100% - 24px); }
  /* Pill badges over card image (catalog, fresh-products). Mirror home_redesign.css но без body.home-v2 скоупа. */
  .v2-fcard .badges .pill{
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 10px; border-radius:999px;
    background:rgba(20,20,22,.7); backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.08);
    font-size:11px; font-weight:600; letter-spacing:.2px; color:#fff;
    white-space:nowrap;
  }
  .v2-fcard .badges .pill .dot{ width:6px; height:6px; border-radius:50%; }
  .v2-fcard .badges .pill.undetected{ border-color:rgba(44,198,107,.35); color:#7ee2a3; }
  .v2-fcard .badges .pill.undetected .dot{ background:#2cc66b; box-shadow:0 0 8px #2cc66b; }
  .v2-fcard .badges .pill.new{ border-color:rgba(255,32,78,.35); color:#ffb0c0; background:rgba(255,32,78,.12); }
  .v2-fcard .badges .pill.new .dot{ background:#FF204E; }
  .v2-fcard .img .os{
    position:absolute; right:12px; bottom:12px;
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 10px; border-radius:8px;
    background:rgba(8,7,8,.7); backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.09);
    font-size:11px; font-weight:600; color:#fff; letter-spacing:.2px;
  }
  .v2-fcard .img .os svg{ color:#7ab8ff; }
  .v2-fcard .img .os .v{ color:#A9A9A9; font-weight:500; }
  .v2-fcard .body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
  .v2-fcard .nm{ font-size:18px; font-weight:700; letter-spacing:-.3px; color:#fff; }
  .v2-fcard .desc{ color:#A9A9A9; font-size:13px; line-height:1.5; flex:1; }
  .v2-fcard .v2-row{ display:flex; justify-content:space-between; align-items:center; margin-top:6px; }
  .v2-fcard .status{ font-size:11px; color:#7ee2a3; display:inline-flex; align-items:center; gap:5px; }
  .v2-fcard .status .dot{ width:5px; height:5px; border-radius:50%; background:#2cc66b; box-shadow:0 0 6px #2cc66b; }
  /* Status variants (catalog category page mirrors homepage but with more states) */
  .v2-fcard .status.undetected{ color:#7ee2a3; }
  .v2-fcard .status.undetected .dot{ background:#2cc66b; box-shadow:0 0 6px #2cc66b; }
  .v2-fcard .status.risk{ color:#f5c069; }
  .v2-fcard .status.risk .dot{ background:#f5a623; box-shadow:0 0 6px #f5a623; }
  .v2-fcard .status.detected{ color:#ff7676; }
  .v2-fcard .status.detected .dot{ background:#e64545; box-shadow:0 0 6px #e64545; }
  .v2-fcard .status.update{ color:#a6c4ff; }
  .v2-fcard .status.update .dot{ background:#5e8eff; box-shadow:0 0 6px #5e8eff; }
  .v2-fcard .pr{ font-size:14px; font-weight:700; color:#fff; }
  .v2-fcard .pr .from{ color:#A9A9A9; font-weight:500; font-size:11px; letter-spacing:.8px; text-transform:uppercase; margin-right:4px; }

  /* Video band */
  .v2-video-band{
    margin:32px 40px; border-radius:18px; overflow:hidden;
    border:1px solid rgba(255,255,255,.05); background:#121011;
    position:relative;
  }
  .v2-video-band .frame{ aspect-ratio:21/9; position:relative; overflow:hidden; }
  .v2-video-band .frame::before{
    content:""; position:absolute; inset:0; z-index:1;
    background:
      radial-gradient(60% 60% at 50% 50%, transparent, rgba(0,0,0,.55) 80%),
      linear-gradient(180deg, rgba(8,7,8,0) 50%, rgba(8,7,8,.85) 100%);
    pointer-events:none;
  }
  .v2-video-band .v2-vb-video{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    background:#0a0809;
  }
  .v2-video-band .play{
    position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:2;
    width:88px; height:88px; border-radius:50%;
    background:linear-gradient(180deg,#FF204E,#AD1B39);
    display:grid; place-items:center; cursor:pointer; border:none;
    box-shadow:0 20px 40px rgba(255,32,78,.45), 0 0 0 14px rgba(255,32,78,.15);
    transition:transform .15s;
  }
  .v2-video-band .play:hover{ transform:translate(-50%,-50%) scale(1.06); }
  .v2-video-band .play svg{ margin-left:5px; }
  .v2-video-band .caption{
    position:absolute; left:40px; bottom:32px; z-index:2; max-width:60%;
  }
  .v2-video-band .caption .eyebrow{
    font-size:11px; letter-spacing:1.6px; text-transform:uppercase;
    color:#FF204E; font-weight:700; margin-bottom:10px;
  }
  .v2-video-band .caption h2{
    font-size:36px; font-weight:800; margin:0 0 8px; letter-spacing:-.8px; color:#fff;
  }
  .v2-video-band .caption p{ color:#A9A9A9; font-size:14px; margin:0; }

  /* Reviews */
  .v2-rev-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
  .v2-rev{
    background:#121011; border:1px solid rgba(255,255,255,.05);
    border-radius:14px; padding:20px;
  }
  .v2-rev .rh{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; margin-left:0 !important; margin-right:0 !important; }
  .v2-rev .rh .who{ display:flex; align-items:center; gap:10px; }
  /* Защита от Bootstrap .row если где-то вдруг используется */
  .v2-gcard .v2-row, .v2-fcard .v2-row{ margin-left:0; margin-right:0; }
  .v2-rev .av{
    width:36px; height:36px; border-radius:50%;
    background:linear-gradient(135deg,#FF204E,#AD1B39);
    display:grid; place-items:center; font-weight:700; font-size:13px; color:#fff;
  }
  .v2-rev .nm{ font-size:13.5px; font-weight:600; text-transform:lowercase; color:#fff; }
  .v2-rev .dt{ font-size:11.5px; color:#6a6669; }
  .v2-rev .stars{ display:flex; gap:2px; color:#FF204E; }
  .v2-rev .txt{ color:#A9A9A9; font-size:13.5px; line-height:1.55; }
  .v2-rev .txt b{ color:#fff; font-weight:500; }

  /* Articles */
  .v2-art-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
  .v2-acard{
    background:#121011; border:1px solid rgba(255,255,255,.05);
    border-radius:14px; overflow:hidden; cursor:pointer;
    transition:border-color .15s, transform .15s;
    display:flex; flex-direction:column;
    text-decoration:none; color:#fff;
  }
  .v2-acard:hover{ border-color:rgba(255,32,78,.35); transform:translateY(-2px); }
  .v2-acard .img{ aspect-ratio:16/9; }
  .v2-acard .img img{ width:100%; height:100%; object-fit:cover; }
  .v2-acard .body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
  .v2-acard .meta{ font-size:11px; color:#6a6669; letter-spacing:.4px; }
  .v2-acard .t{ font-size:16px; font-weight:700; letter-spacing:-.2px; margin:0; line-height:1.25; color:#fff; }
  .v2-acard .x{ color:#A9A9A9; font-size:12.5px; line-height:1.55; flex:1; }
  .v2-acard .more{ font-size:12px; color:#FF204E; font-weight:600; margin-top:4px; }

  /* SEO 2-column */
  .v2-seo{
    background:#121011; border:1px solid rgba(255,255,255,.05);
    border-radius:18px; padding:40px; margin:40px;
    display:grid; grid-template-columns:1fr 1.4fr; gap:48px;
  }
  .v2-seo h2{ margin:0; font-size:32px; font-weight:700; letter-spacing:-.7px; line-height:1.15; color:#fff; }
  .v2-seo h2 .red{ color:#FF204E; }
  .v2-seo p{ color:#A9A9A9; font-size:14px; line-height:1.7; margin:0 0 14px; }
  .v2-seo p:last-child{ margin-bottom:0; }
  .v2-seo p strong{ color:#fff; font-weight:600; }
  .v2-seo ul{ margin:0 0 14px; padding-left:20px; color:#A9A9A9; font-size:14px; line-height:1.7; }
  .v2-seo a{ color:#FF204E; }

  /* === FOOTER (ported from Home-Desktop.html, 2026-05-17) === */
  .v2-footer{
    margin-top:60px;
    margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
    padding:48px 40px 24px;
    background:#0a0809; border-top:1px solid rgba(255,255,255,.05);
    color:#A9A9A9; font-size:13.5px; line-height:1.55;
    font-family:Inter,system-ui,sans-serif;
  }
  .v2-footer-inner{
    max-width:1240px; margin:0 auto;
    display:grid; grid-template-columns:1.4fr repeat(5, 1fr); gap:40px;
  }
  .v2-footer .v2-footer-logo{
    font-weight:700; font-size:32px; line-height:1; letter-spacing:-.05em;
    background:linear-gradient(180deg,#FF204E,#AD1B39);
    -webkit-background-clip:text; background-clip:text; color:transparent;
    display:inline-block; margin-bottom:14px; text-decoration:none;
  }
  .v2-footer .pitch{ color:#A9A9A9; font-size:13px; line-height:1.6; margin:0 0 18px; max-width:300px; }
  .v2-footer .social{ display:flex; gap:10px; }
  .v2-footer .social a{
    width:36px; height:36px; border-radius:10px;
    border:1px solid rgba(255,255,255,.09); display:grid; place-items:center;
    color:#A9A9A9; transition:color .15s, border-color .15s, background .15s;
    text-decoration:none;
  }
  .v2-footer .social a:hover{ color:#FF204E; border-color:rgba(255,32,78,.4); background:rgba(255,32,78,.10); }
  .v2-footer h4{
    font-size:12px; letter-spacing:1.4px; text-transform:uppercase;
    color:#fff; font-weight:700; margin:0 0 18px;
  }
  .v2-footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
  .v2-footer ul a{ color:#A9A9A9; transition:color .15s; font-size:13.5px; text-decoration:none; }
  .v2-footer ul a:hover{ color:#FF204E; }
  .v2-footer ul .ind{ display:inline-block; width:6px; height:6px; border-radius:50%; background:#2cc66b; box-shadow:0 0 6px #2cc66b; margin-right:6px; vertical-align:middle; }
  .v2-footer-pay{ display:flex; flex-wrap:wrap; gap:6px; }
  .v2-footer-pay .pay{
    padding:5px 10px; border-radius:6px;
    border:1px solid rgba(255,255,255,.09); background:#161213;
    font-size:10.5px; font-weight:700; letter-spacing:.4px; color:#A9A9A9;
    text-transform:uppercase;
  }
  .v2-footer-bottom{
    max-width:1240px; margin:36px auto 0; padding-top:24px;
    border-top:1px solid rgba(255,255,255,.05);
    display:flex; justify-content:space-between; align-items:center; gap:20px;
    color:#A9A9A9; font-size:12.5px;
  }
  .v2-footer-bottom .links{ display:flex; gap:24px; flex-wrap:wrap; }
  .v2-footer-bottom .links a{ color:#A9A9A9; text-decoration:none; font-weight:500; }
  .v2-footer-bottom .links a:hover{ color:#FF204E; }
  .v2-footer-disclaimer{
    max-width:1240px; margin:18px auto 0;
    font-size:11.5px; color:#6a6669; line-height:1.55;
  }
  @media (max-width:1180px){
    .v2-footer-inner{ grid-template-columns:repeat(3, 1fr); gap:32px; }
    .v2-footer .brand{ grid-column:1 / -1; }
    .v2-pop-grid{ grid-template-columns:repeat(3,1fr); }
    .v2-cat-grid{ grid-template-columns:repeat(4,1fr); }
    .v2-fresh-grid,.v2-rev-grid,.v2-art-grid{ grid-template-columns:repeat(2,1fr); }
    .v2-video-band .caption h2{ font-size:28px; }
    .v2-seo{ grid-template-columns:1fr; gap:18px; padding:32px; }
  }
  /* === Wide screens: убираем пустоту по бокам на 2K/4K ===
   * 13"/14" laptops (≤1440) — оставляем дизайн «карточный» с фиксом 1320px.
   * 1500+ — расширяемся до 1600px (для 1920×1080 / 27" QHD).
   * 1900+ — до 1760px (для 2K / 27" 2560px и шире). */
  @media (min-width:1500px){
    body.home-v2 .page,
    .v2-page-wrap{ width:1600px; }
    .v2-footer-inner,
    .v2-footer-bottom,
    .v2-footer-disclaimer{ max-width:1520px; }
    .v2-section{ padding:56px 56px 28px; }
    .v2-video-band{ margin:32px 56px; }
    .v2-seo{ margin:40px 56px; }
  }
  @media (min-width:1900px){
    body.home-v2 .page,
    .v2-page-wrap{ width:1760px; }
    .v2-footer-inner,
    .v2-footer-bottom,
    .v2-footer-disclaimer{ max-width:1680px; }
    .v2-section{ padding:64px 64px 32px; }
    .v2-video-band{ margin:40px 64px; }
    .v2-seo{ margin:48px 64px; padding:56px; }
    .v2-cat-grid{ grid-template-columns:repeat(7, 1fr); } /* 7 колонок на ультра-широких */
  }

  @media (max-width:760px){
    .v2-footer{ padding:36px 20px 20px; }
    .v2-footer-inner{ grid-template-columns:1fr 1fr; gap:28px; }
    .v2-footer-bottom{ flex-direction:column; align-items:flex-start; gap:14px; }
    .v2-pop-grid, .v2-fresh-grid, .v2-rev-grid, .v2-art-grid{ grid-template-columns:1fr; }
    .v2-cat-grid{ grid-template-columns:repeat(2,1fr); }
    .v2-section{ padding:32px 16px 16px; }
    .v2-video-band{ margin:20px 16px; }
    .v2-video-band .frame{ aspect-ratio:16/9; }
    .v2-video-band .caption{ left:20px; bottom:20px; max-width:90%; }
    .v2-video-band .caption h2{ font-size:22px; }
    .v2-video-band .play{ width:64px; height:64px; }
    .v2-seo{ margin:20px 16px; padding:24px; }
    .v2-seo h2{ font-size:22px; }
  }
