/* ═══════════════════════════════════════════════
   AppDown — Main Stylesheet v1.0
   SEO-friendly, fast-loading, mobile-first
═══════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --green:#00b050;--green-dark:#008a3e;--green-600:#009641;
  --green-light:#e8f9f0;--green-mid:#c3efda;
  --bg:#f5f6f8;--white:#fff;--text:#1a1d23;--muted:#6b7280;
  --border:#e4e6eb;--radius:12px;--radius-sm:8px;
  --shadow:0 2px 12px rgba(0,0,0,.08);
  --font:'Plus Jakarta Sans',system-ui,sans-serif;
  --font-display:'Nunito',system-ui,sans-serif;
}
body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:800;line-height:1.25}

/* ── HEADER ── */
body>header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:200}
.header-inner{max-width:1280px;margin:0 auto;padding:0 20px;height:62px;display:flex;align-items:center;gap:16px}
.logo{display:flex;align-items:center;gap:8px;flex-shrink:0}
.logo-icon{width:34px;height:34px;background:var(--green);border-radius:9px;display:flex;align-items:center;justify-content:center}
.logo-icon svg{width:18px;height:18px;fill:#fff}
.logo-text{font-family:var(--font-display);font-weight:800;font-size:19px;color:var(--text)}
.logo-text span{color:var(--green)}
.search-wrap{flex:1;max-width:500px;position:relative}
.search-wrap input{width:100%;padding:9px 14px 9px 40px;border:1.5px solid var(--border);border-radius:22px;font-size:14px;font-family:inherit;background:var(--bg);color:var(--text);outline:none;transition:.18s}
.search-wrap input:focus{border-color:var(--green);background:var(--white)}
.search-wrap .si{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.search-wrap .si svg{width:17px;height:17px}
.plat-btns{display:flex;gap:4px;flex-shrink:0}
.pb{display:flex;align-items:center;gap:5px;padding:6px 13px;border-radius:18px;border:1.5px solid var(--border);background:transparent;font-size:12px;font-family:inherit;cursor:pointer;color:var(--muted);transition:.18s;font-weight:700}
.pb.active{background:var(--green);border-color:var(--green);color:#fff}
.pb:hover:not(.active){border-color:var(--green);color:var(--green)}
.pb svg{width:13px;height:13px}
.hdr-right{display:flex;gap:8px;margin-left:auto;flex-shrink:0}
.btn-ghost{padding:7px 16px;border-radius:18px;border:1.5px solid var(--border);background:transparent;font-size:13px;font-family:inherit;cursor:pointer;color:var(--text);font-weight:700;transition:.18s}
.btn-ghost:hover{border-color:var(--green);color:var(--green)}
.btn-turbo{padding:7px 16px;border-radius:18px;border:none;background:linear-gradient(135deg,#ff6b35,#f7c948);font-size:13px;font-family:inherit;cursor:pointer;color:#fff;font-weight:800}

/* ── SUBNAV ── */
.subnav{background:var(--white);border-bottom:1px solid var(--border)}
.subnav-inner{max-width:1280px;margin:0 auto;padding:0 20px;display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.subnav-inner::-webkit-scrollbar{display:none}
.snl{display:flex;align-items:center;gap:5px;padding:9px 12px;font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap;border-bottom:2.5px solid transparent;transition:.18s}
.snl:hover{color:var(--green)}
.snl.active{color:var(--green);border-bottom-color:var(--green)}

/* ── BREADCRUMBS ── */
.breadcrumb{max-width:1280px;margin:16px auto 0;padding:0 20px;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.breadcrumb a{color:var(--muted);transition:.15s}
.breadcrumb a:hover{color:var(--green)}
.breadcrumb span{color:var(--text);font-weight:600}
.bc-sep{opacity:.5}

/* ── PAGE HERO ── */
.page-hero{background:var(--white);border-bottom:1px solid var(--border);padding:28px 20px}
.page-hero-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;gap:20px}
.page-hero-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0}
.page-hero h1{font-size:clamp(22px,3vw,32px);margin-bottom:6px}
.page-hero p{font-size:14px;color:var(--muted);max-width:600px}

/* ── MAIN LAYOUT ── */
.page-wrap{max-width:1280px;margin:28px auto;padding:0 20px;display:grid;grid-template-columns:1fr 300px;gap:28px}
.page-wrap.full{grid-template-columns:1fr}
.content-area{}
.sidebar{}

/* ── SECTION ── */
.section{margin-bottom:36px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.section-head h2{font-size:19px}
.see-all{display:flex;align-items:center;gap:3px;font-size:13px;font-weight:700;color:var(--green)}
.see-all svg{width:15px;height:15px}

/* ── APP CARDS ── */
.app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.app-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;align-items:center;gap:12px;transition:.18s}
.app-card:hover{box-shadow:var(--shadow);border-color:var(--green);transform:translateY(-1px)}
.app-card-icon{width:54px;height:54px;border-radius:13px;object-fit:cover;flex-shrink:0;background:var(--bg);display:flex;align-items:center;justify-content:center;font-size:26px}
.app-card-info{flex:1;min-width:0}
.app-card-name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-card-desc{font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-card-meta{display:flex;align-items:center;gap:6px;margin-top:5px}
.app-rating{font-size:11px;color:#f7c948;font-weight:700}
.app-size{font-size:10px;color:var(--muted);background:var(--bg);padding:2px 6px;border-radius:4px}
.app-dl{flex-shrink:0;width:32px;height:32px;background:var(--green-light);border:1px solid var(--green-mid);border-radius:8px;display:flex;align-items:center;justify-content:center;transition:.18s}
.app-card:hover .app-dl{background:var(--green)}
.app-card:hover .app-dl svg{fill:#fff}
.app-dl svg{width:15px;height:15px;fill:var(--green)}

/* ── APP HERO (single app page) ── */
.app-hero{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:28px;margin-bottom:24px}
.app-hero-top{display:flex;gap:20px;align-items:flex-start}
.app-hero-img{width:96px;height:96px;border-radius:20px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:50px}
.app-hero-info{flex:1}
.app-hero-name{font-size:26px;margin-bottom:4px}
.app-hero-dev{font-size:13px;color:var(--muted)}
.app-hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700}
.badge-green{background:var(--green-light);color:var(--green-dark)}
.badge-blue{background:#eff6ff;color:#1d4ed8}
.badge-purple{background:#f3e8ff;color:#7c3aed}
.badge-orange{background:#fff7ed;color:#c2410c}
.badge-gray{background:var(--bg);color:var(--muted)}
.app-hero-btns{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.btn-primary{padding:12px 24px;background:var(--green);color:#fff;border-radius:22px;font-weight:800;font-size:14px;border:none;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:7px;transition:.18s}
.btn-primary:hover{background:var(--green-dark)}
.btn-secondary{padding:11px 22px;background:transparent;color:var(--green);border:2px solid var(--green);border-radius:22px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;transition:.18s}
.btn-secondary:hover{background:var(--green-light)}
.app-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}
.stat-item{text-align:center}
.stat-val{font-size:18px;font-weight:800;color:var(--text)}
.stat-label{font-size:11px;color:var(--muted);margin-top:2px}

/* ── SCREENSHOTS ── */
.screenshots{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.screenshots::-webkit-scrollbar{display:none}
.screenshot{flex-shrink:0;width:160px;height:284px;border-radius:12px;overflow:hidden;background:linear-gradient(135deg,var(--bg),var(--border));display:flex;align-items:center;justify-content:center;font-size:40px}

/* ── RICH CONTENT ── */
.rich-content{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:28px}
.rich-content h2{font-size:21px;margin:28px 0 12px}
.rich-content h2:first-child{margin-top:0}
.rich-content h3{font-size:17px;margin:20px 0 8px}
.rich-content p{font-size:15px;line-height:1.75;color:#374151;margin-bottom:14px}
.rich-content ul,.rich-content ol{padding-left:20px;margin-bottom:14px}
.rich-content li{font-size:15px;line-height:1.75;color:#374151;margin-bottom:6px}
.rich-content .highlight-box{background:var(--green-light);border-left:4px solid var(--green);border-radius:0 10px 10px 0;padding:14px 18px;margin:18px 0}
.rich-content .highlight-box p{margin:0;color:var(--green-dark);font-weight:600}
.rich-content table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14px}
.rich-content th{background:var(--bg);padding:10px 14px;text-align:left;font-weight:700;border:1px solid var(--border)}
.rich-content td{padding:9px 14px;border:1px solid var(--border)}
.rich-content tr:nth-child(even) td{background:#fafafa}

/* ── SIDEBAR ── */
.sidebar-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:16px}
.sidebar-card h3{font-size:15px;margin-bottom:12px}
.sidebar-app-mini{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}
.sidebar-app-mini:last-child{border-bottom:none}
.mini-icon{width:38px;height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.mini-name{font-size:13px;font-weight:700}
.mini-cat{font-size:11px;color:var(--muted)}
.sidebar-dl{width:28px;height:28px;background:var(--green-light);border-radius:6px;display:flex;align-items:center;justify-content:center;margin-left:auto;flex-shrink:0}
.sidebar-dl svg{width:13px;height:13px;fill:var(--green)}

/* ── TOP LIST ── */
.top-list{display:flex;flex-direction:column;gap:0}
.top-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.top-item:last-child{border-bottom:none}
.top-num{font-size:18px;font-weight:800;color:var(--muted);min-width:28px;text-align:center;font-family:var(--font-display)}
.top-icon{width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.top-info{flex:1;min-width:0}
.top-name{font-size:14px;font-weight:700}
.top-meta{font-size:12px;color:var(--muted);margin-top:2px}

/* ── BLOG ── */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.blog-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:.18s}
.blog-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.blog-thumb{height:160px;display:flex;align-items:center;justify-content:center;font-size:56px}
.blog-body{padding:18px}
.blog-tag{display:inline-block;padding:3px 8px;border-radius:5px;font-size:10px;font-weight:700;background:var(--green-light);color:var(--green-dark);margin-bottom:8px;text-transform:uppercase}
.blog-title{font-size:16px;font-weight:800;margin-bottom:6px;line-height:1.3}
.blog-excerpt{font-size:13px;color:var(--muted);line-height:1.6}
.blog-meta{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:11px;color:var(--muted)}

/* ── TICKER ── */
.ticker{background:var(--green-light);border-bottom:1px solid var(--green-mid);overflow:hidden;padding:7px 0}
.ticker-track{display:flex;gap:0;animation:ticker 45s linear infinite;width:max-content}
.ticker-item{display:flex;align-items:center;gap:7px;padding:0 20px;font-size:12px;color:var(--green-dark);font-weight:700;white-space:nowrap}
.ticker-item::before{content:'';width:5px;height:5px;background:var(--green);border-radius:50%;flex-shrink:0}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ── CATEGORY GRID ── */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.cat-tile{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:16px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;transition:.18s}
.cat-tile:hover{box-shadow:var(--shadow);border-color:var(--green);transform:translateY(-2px)}
.cat-tile-icon{width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:22px}
.cat-tile-name{font-size:13px;font-weight:700;text-align:center}
.cat-tile-count{font-size:11px;color:var(--muted)}

/* ── FAQ ── */
.faq-item{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:8px;overflow:hidden}
.faq-q{padding:16px 18px;font-weight:700;font-size:15px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;user-select:none}
.faq-q:hover{background:var(--bg)}
.faq-a{padding:0 18px 16px;font-size:14px;color:#374151;line-height:1.7}

/* ── RATING BAR ── */
.rating-bars{margin:12px 0}
.rbar{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.rbar-label{font-size:12px;color:var(--muted);width:14px}
.rbar-track{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.rbar-fill{height:100%;background:var(--green);border-radius:3px}
.rbar-count{font-size:11px;color:var(--muted);width:30px;text-align:right}

/* ── PROMO ── */
.promo-banner{background:linear-gradient(135deg,#003d22,var(--green));border-radius:16px;padding:30px 36px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0}
.promo-banner h2{font-size:22px;color:#fff;margin-bottom:6px}
.promo-banner p{color:rgba(255,255,255,.8);font-size:14px}
.promo-btns{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.promo-btn-w{padding:10px 22px;background:#fff;color:var(--green-dark);border-radius:20px;font-weight:800;font-size:13px;border:none;cursor:pointer;font-family:inherit}
.promo-btn-o{padding:10px 22px;background:rgba(255,255,255,.15);color:#fff;border-radius:20px;font-weight:700;font-size:13px;border:2px solid rgba(255,255,255,.3);cursor:pointer;font-family:inherit}

/* ── FOOTER ── */
footer{background:var(--white);border-top:1px solid var(--border);margin-top:60px}
.footer-inner{max-width:1280px;margin:0 auto;padding:36px 20px 20px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:28px;margin-bottom:28px}
.footer-brand p{font-size:13px;color:var(--muted);line-height:1.7;margin-top:10px;max-width:240px}
.footer-col h4{font-size:13px;font-weight:800;margin-bottom:12px;font-family:var(--font-display)}
.footer-col a{display:block;font-size:13px;color:var(--muted);margin-bottom:7px;transition:.15s}
.footer-col a:hover{color:var(--green)}
.footer-bottom{border-top:1px solid var(--border);padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.footer-langs{display:flex;gap:6px}
.fl{padding:3px 9px;border-radius:5px;border:1px solid var(--border);background:transparent;font-size:11px;cursor:pointer;font-family:inherit;color:var(--muted);transition:.15s}
.fl:hover,.fl.active{border-color:var(--green);color:var(--green)}


/* ── LANGUAGE SWITCHER (header) ── */
.lang-switch{display:flex;gap:0;background:var(--bg);border:1.5px solid var(--border);border-radius:18px;padding:2px;flex-shrink:0;font-family:inherit}
.lang-switch a{padding:5px 12px;border-radius:14px;font-size:12px;font-weight:700;color:var(--muted);transition:.18s;text-decoration:none;display:flex;align-items:center;gap:4px}
.lang-switch a:hover{color:var(--green)}
.lang-switch a.active{background:var(--green);color:#fff}
.lang-switch a.active:hover{color:#fff}
.lang-flag{font-size:13px}

/* ── MOBILE MENU TOGGLE ── */
.menu-toggle{display:none;background:transparent;border:none;cursor:pointer;padding:6px;color:var(--text);align-items:center;justify-content:center}
.menu-toggle svg{width:22px;height:22px}

/* ── SCHEMA / INVISIBLE ── */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .page-wrap{grid-template-columns:1fr}
  .sidebar{display:none}
  .footer-grid{grid-template-columns:1fr 1fr 1fr}
  .header-inner{gap:10px}
  .plat-btns{display:none}
}

@media(max-width:768px){
  .header-inner{height:56px;padding:0 12px;gap:8px}
  .logo-text{display:none}
  .logo-icon{width:32px;height:32px}
  .search-wrap{order:10;flex:1 1 100%;max-width:none;margin-top:8px;display:none}
  .search-wrap.mobile-show{display:block}
  .hdr-right{margin-left:0;gap:6px}
  .btn-ghost,.btn-turbo{display:none}
  .lang-switch{margin-left:auto}
  .lang-switch a{padding:4px 10px;font-size:11px}
  .menu-toggle{display:flex}
  
  .app-stats{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .promo-banner{padding:20px;flex-direction:column;text-align:center}
  .app-hero-top{flex-direction:column;align-items:center;text-align:center}
  .app-hero-img{width:80px;height:80px;font-size:38px}
  .app-hero-btns{justify-content:center}
  .app-hero{padding:20px}
  .rich-content{padding:20px}
  .rich-content h2{font-size:19px}
  .breadcrumb{padding:0 12px;font-size:11px;flex-wrap:wrap}
  .subnav-inner{padding:0 12px}
  .snl{padding:9px 10px;font-size:12px}
  
  /* Tables on mobile - allow horizontal scroll */
  .rich-content{overflow-x:auto}
  .rich-content table{font-size:13px;min-width:520px}
  
  /* Casino hero - stack columns */
  main section[class] table{font-size:12px}
}

@media(max-width:480px){
  .header-inner{padding:0 10px;gap:6px}
  .footer-grid{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:1fr}
  .app-grid{grid-template-columns:1fr}
  .lang-switch a{padding:3px 8px;font-size:10px}
  .lang-flag{display:none}
  .breadcrumb{font-size:10px}
  .app-hero h1,.app-hero-name{font-size:22px!important}
  .page-hero h1{font-size:22px}
  
  /* Big section grids on app pages collapse */
  main section div[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"]{grid-template-columns:1fr!important}
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(280px"]{grid-template-columns:1fr!important}
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(220px"]{grid-template-columns:1fr!important}
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(240px"]{grid-template-columns:1fr!important}
  main section div[style*="grid-template-columns:repeat(auto-fill,minmax(220px"]{grid-template-columns:1fr 1fr!important}
  main section div[style*="grid-template-columns:repeat(auto-fill,minmax(180px"]{grid-template-columns:1fr 1fr!important}
}


/* ── EXTRA MOBILE OVERRIDES ── */
@media(max-width:768px){
  /* Override inline flex gap on app-stats hero */
  .app-stats[style*="flex"]{gap:14px!important;flex-wrap:wrap!important}
  .app-stats[style*="flex"] > div{min-width:calc(50% - 7px)!important;flex:0 0 calc(50% - 7px)!important}
  
  /* Hero with 120px icon + content - stack on mobile */
  section.app-hero[style*="display:flex"],
  main section[style*="display:flex"][style*="gap:24px"][style*="margin-top:24px"]{
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
  }
  main section[style*="display:flex"][style*="gap:24px"][style*="margin-top:24px"] > div:first-child{
    margin:0 auto!important;
  }
  
  /* Casino hero icon shrink on mobile */
  div[style*="width:120px;height:120px"][style*="border-radius:24px"]{
    width:88px!important;height:88px!important;
  }
  div[style*="width:120px;height:120px"][style*="border-radius:24px"] img{
    border-radius:18px!important;
  }
  
  /* Inline grids - 2 cols max */
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(260px"],
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(280px"],
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(240px"],
  main section div[style*="grid-template-columns:repeat(auto-fit,minmax(220px"]{
    grid-template-columns:1fr!important;
  }
  main section div[style*="grid-template-columns:1fr 1fr"]:not([style*="repeat"]){
    grid-template-columns:1fr!important;
  }
  
  /* Tables wrap */
  main section table{font-size:12px!important;display:block!important;overflow-x:auto!important;white-space:nowrap!important}
  main section table td{white-space:normal!important}
  
  /* Download button full width */
  a[style*="background:#"][style*="color:white"][style*="padding:14px 32px"][style*="border-radius:24px"]{
    display:block!important;text-align:center!important;width:auto!important;
  }
  
  /* Screenshot strip - smaller cards */
  div[style*="display:flex;gap:16px;overflow-x:auto"] figure{flex:0 0 auto!important}
}

@media(max-width:480px){
  .app-stats[style*="flex"] > div{min-width:calc(50% - 7px)!important}
  /* Even smaller font on stat values */
  div[style*="font-size:18px;font-weight:700"]{font-size:15px!important}
  
  /* Casino hero name font scale */
  h1[class*="app-hero-name"]{font-size:22px!important;line-height:1.2!important}
  
  /* Section padding tighter */
  main{padding:12px!important}
  section.app-hero{padding:16px!important}
}


/* ── HOMEPAGE STATS FIX ── */
@media(max-width:480px){
  /* Hero stats: 3 columns of metric cards stacked too tight */
  div[style*="display:flex;gap:24px"][style*="margin-top:24px"]{gap:14px!important;flex-wrap:wrap!important}
  div[style*="display:flex;gap:24px"][style*="margin-top:24px"] > div{flex:1 1 30%!important;min-width:80px!important;text-align:center!important}
  
  /* Various inline gap:24px flex containers - reduce gap */
  main div[style*="display:flex;gap:24px"]{gap:12px!important;flex-wrap:wrap!important}
}

@media(max-width:768px){
  /* Hero stats container: 3 cols → fit nicer */
  div[style*="display:flex;gap:24px"][style*="margin-top:24px"]{
    flex-wrap:wrap!important;
    gap:16px!important;
  }
  div[style*="display:flex;gap:24px"][style*="margin-top:24px"] > div{
    flex:1 1 28%!important;
    min-width:90px!important;
  }
  
  /* General inline flex with gap:24px */
  main section div[style*="display:flex"][style*="gap:24px"]{flex-wrap:wrap!important}
}

/* ── HERO CARDS RESPONSIVE ── */
@media(min-width:1025px){
  /* Hero 50/50 layout works as designed */
}
@media(max-width:1024px){
  /* Hero 50/50 → stacked on tablets */
  section[style*="background:var(--white)"][style*="padding:40px 0"] > div[style*="grid-template-columns:1fr 1fr"]{
    grid-template-columns:1fr!important;gap:20px!important
  }
}
@media(max-width:480px){
  /* Hero cards 2x2 stays at 2x2 - already works */
  /* But shrink padding and font */
  section[style*="background:var(--white)"][style*="padding:40px 0"]{padding:24px 0!important}
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (доработка) ===== */
@media(max-width:768px){
  /* 1. Читаемые размеры шрифта */
  body{font-size:16px}
  .rich-content, .rich-content p, .rich-content li{font-size:15px!important;line-height:1.7!important}
  [style*="font-size:10px"],[style*="font-size:11px"],[style*="font-size:12px"],[style*="font-size:13px"]{font-size:13px!important}
  .rich-content h2, .collapse-head{font-size:17px!important}
  .rich-content h3{font-size:15px!important}

  /* 2. Зоны нажатия минимум 44px */
  a[style*="padding:2px"],a[style*="padding:3px"],a[style*="padding:4px"],
  a[style*="padding:5px"],a[style*="padding:6px"]{padding:10px 14px!important;display:inline-block}
  .btn-primary,.app-hero-btns a,.app-hero-btns button{min-height:48px;display:inline-flex!important;align-items:center;justify-content:center}
  .lang-switch a{min-height:36px;display:inline-flex;align-items:center}
  .faq-q{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px}

  /* 3. Сворачиваемые секции */
  .collapse-head{cursor:pointer;position:relative;padding-right:34px!important;
    border-top:1px solid var(--border);padding-top:16px!important;margin-top:8px!important;user-select:none}
  .collapse-head::after{content:"▾";position:absolute;right:6px;top:50%;transform:translateY(-25%);
    font-size:15px;color:var(--muted);transition:transform .18s}
  .collapse-head.open::after{transform:translateY(-25%) rotate(180deg)}
  .collapse-body{display:none}
  .collapse-body.open{display:block;animation:cbin .18s ease}
  @keyframes cbin{from{opacity:.4}to{opacity:1}}

  /* 4. Таблицы — горизонтальный скролл только у самой таблицы */
  .rich-content{overflow-x:visible!important}
  .rich-content table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;
    min-width:0!important;width:100%!important;white-space:normal!important;font-size:13px!important}
  .rich-content table th,.rich-content table td{padding:8px 10px!important}

  /* 5. Отступы и переполнение */
  .rich-content{padding:16px!important}
  main,.page-wrap{overflow-x:hidden}
  img,svg,video,iframe{max-width:100%;height:auto}
  pre,code{white-space:pre-wrap;word-break:break-word}

  /* 6. Сетки в одну колонку */
  [style*="grid-template-columns:repeat(auto-fill"]{grid-template-columns:1fr!important}
  [style*="grid-template-columns:repeat(auto-fit"]{grid-template-columns:repeat(2,1fr)!important}
  [style*="min-width:180px"],[style*="min-width:200px"],[style*="min-width:220px"]{min-width:0!important;width:100%!important}

  /* 7. Блок оценок и вердикта */
  section h2+div[style*="display:flex"][style*="gap:20px"]{flex-direction:column;text-align:center;gap:12px!important}
}

@media(max-width:480px){
  .rich-content h2,.collapse-head{font-size:16px!important}
  .app-hero-name{font-size:21px!important}
  [style*="font-size:40px"]{font-size:32px!important}
  .rich-content{padding:14px!important}
  [style*="grid-template-columns:repeat(auto-fit"]{grid-template-columns:1fr!important}
}


/* ===== ВЫПАДАЮЩИЙ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ===== */
.lang-dd{position:relative;flex-shrink:0;margin-left:auto;font-family:inherit}
.lang-dd-btn{display:flex;align-items:center;gap:7px;background:var(--bg);border:1.5px solid var(--border);
  border-radius:18px;padding:6px 12px;font-size:13px;font-weight:700;color:var(--text);cursor:pointer;
  min-height:38px;transition:.18s;font-family:inherit;line-height:1}
.lang-dd-btn:hover{border-color:var(--green);color:var(--green)}
.lang-dd-btn .lang-flag{font-size:16px;line-height:1}
.lang-dd-btn .caret{font-size:10px;color:var(--muted);transition:transform .18s;margin-left:2px}
.lang-dd.open .lang-dd-btn{border-color:var(--green)}
.lang-dd.open .caret{transform:rotate(180deg)}

.lang-dd-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:190px;background:var(--white);
  border:1.5px solid var(--border);border-radius:14px;padding:6px;z-index:120;
  box-shadow:0 10px 34px rgba(16,20,30,.14);
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s,transform .16s,visibility .16s}
.lang-dd:hover .lang-dd-menu,.lang-dd.open .lang-dd-menu,.lang-dd:focus-within .lang-dd-menu{
  opacity:1;visibility:visible;transform:translateY(0)}
.lang-dd-menu a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;
  font-size:13px;font-weight:600;color:var(--muted);text-decoration:none;transition:.14s;min-height:40px}
.lang-dd-menu a .lang-flag{font-size:17px;line-height:1}
.lang-dd-menu a:hover{background:var(--green-light);color:var(--green)}
.lang-dd-menu a.active{background:var(--green);color:#fff}
.lang-dd-menu a.active:hover{background:var(--green);color:#fff}
.lang-dd-menu a .lang-native{margin-left:auto;font-size:11px;opacity:.65;font-weight:500}
/* мостик, чтобы курсор не терял меню */
.lang-dd::after{content:"";position:absolute;top:100%;right:0;width:100%;height:8px}

@media(max-width:768px){
  .lang-dd-btn{padding:6px 10px;font-size:12px;min-height:40px}
  .lang-dd-menu{min-width:172px;max-height:60vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .lang-dd-menu a{min-height:44px;font-size:13px}
  /* на телефоне только по тапу, не по наведению */
  .lang-dd:hover .lang-dd-menu{opacity:0;visibility:hidden;transform:translateY(-6px)}
  .lang-dd.open .lang-dd-menu{opacity:1;visibility:visible;transform:translateY(0)}
}
@media(max-width:480px){
  .lang-dd-btn .lang-code{display:none}
  .lang-dd-btn{padding:6px 9px}
}
/* RTL-языки */
html[dir="rtl"] .lang-dd{margin-left:0;margin-right:auto}
html[dir="rtl"] .lang-dd-menu{right:auto;left:0}
html[dir="rtl"] .lang-dd-menu a .lang-native{margin-left:0;margin-right:auto}

/* ===== RTL (арабский, урду) ===== */
html[dir="rtl"]{direction:rtl;text-align:right}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .breadcrumb,html[dir="rtl"] .app-hero,html[dir="rtl"] .app-hero-badges,
html[dir="rtl"] .app-stats,html[dir="rtl"] .nav-inner,html[dir="rtl"] .header-inner{direction:rtl}
html[dir="rtl"] .bc-sep{transform:scaleX(-1);display:inline-block}
html[dir="rtl"] ul,html[dir="rtl"] ol{padding-right:22px;padding-left:0}
html[dir="rtl"] table th,html[dir="rtl"] table td{text-align:right}
html[dir="rtl"] .rich-content,html[dir="rtl"] .blog-prose{text-align:right}
html[dir="rtl"] .collapse-head{padding-right:0!important;padding-left:34px!important}
html[dir="rtl"] .collapse-head::after{right:auto;left:6px}
html[dir="rtl"] .faq-q{flex-direction:row-reverse}
html[dir="rtl"] .app-card,html[dir="rtl"] .similar-apps a{flex-direction:row-reverse}
html[dir="rtl"] .app-dl{transform:scaleX(-1)}
html[dir="rtl"] .highlight-box{border-left:none;border-right:4px solid var(--green);padding-right:16px;padding-left:12px}
html[dir="rtl"] .search-wrap input{text-align:right;padding-right:38px;padding-left:14px}
html[dir="rtl"] .search-wrap svg{right:12px;left:auto}
html[dir="rtl"] .ticker-track{animation-direction:reverse}
html[dir="rtl"] .footer-col,html[dir="rtl"] footer{text-align:right}
/* арабский и урду читаются крупнее */
html[lang="ar"] body,html[lang="ur"] body{font-size:17px;line-height:1.85}
html[lang="ar"] .rich-content p,html[lang="ur"] .rich-content p{font-size:16px!important;line-height:1.9!important}
html[lang="ur"]{font-family:"Noto Nastaliq Urdu","Segoe UI",Tahoma,sans-serif}
html[lang="bn"]{font-family:"Noto Sans Bengali","Segoe UI",Tahoma,sans-serif}

/* футер: переключатель языков в одну строку с переносом */
.footer-langs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.footer-langs .fl{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border:1.5px solid var(--border);
  border-radius:14px;font-size:12px;font-weight:700;color:var(--muted);text-decoration:none;
  background:var(--white);transition:.15s;min-height:34px;white-space:nowrap}
.footer-langs .fl:hover{border-color:var(--green);color:var(--green)}
.footer-langs .fl.active{background:var(--green);border-color:var(--green);color:#fff}
@media(max-width:768px){.footer-langs{gap:5px}.footer-langs .fl{padding:6px 9px;font-size:11px;min-height:36px}}


/* вложенные <header> внутри контента не должны прилипать */
main header,article header,section header,.content-area header,aside header{
  position:static!important;top:auto!important;z-index:auto!important}

/* ===== ВЫРАВНИВАНИЕ ШИРИНЫ КОНТЕНТА С КАРТОЧКОЙ ПРИЛОЖЕНИЯ =====
   .rich-content и соседние секции раньше были прямыми детьми <main>
   без ограничения ширины и растягивались во весь экран на широких
   мониторах, в то время как .page-wrap (карточка + сайдбар) имеет
   max-width:1280px. Уравниваем их. */
main.content-area > div:not(.page-wrap),
main.content-area > section,
main.content-area > article{
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
  padding-left:20px;
  padding-right:20px;
}
@media(max-width:768px){
  main.content-area > div:not(.page-wrap),
  main.content-area > section,
  main.content-area > article{
    padding-left:0;
    padding-right:0;
  }
}
