/* 7HELL: mobile navigation, first screen and account/shop guidance. */
.mobile-nav-bar,
.mobile-nav-toggle,
.mobile-nav-home-label {
  display: none;
}

.steamid-help {
  padding: 14px 16px;
  border: 1px solid #424954;
  border-radius: 12px;
  background: #252a32;
  color: #c0c5cc;
}
.steamid-help summary {
  color: #f4f5f7;
  cursor: pointer;
  font-weight: 800;
}
.steamid-help ol { padding-left: 22px; }
.steamid-help li + li { margin-top: 7px; }
.steamid-help p { font-size: 13px; }
.steamid-help code { color: #ffd39b; overflow-wrap: anywhere; }
.steamid-copy-command { padding: 10px 12px; border-radius: 9px; }
.steamid-help summary:focus-visible,
.mobile-nav-toggle:focus-visible,
.mobile-play-link:focus-visible {
  outline: 2px solid #ff9797;
  outline-offset: 3px;
}

.shop-product-v0103 { scroll-margin-top: 156px; }
.shop-product-v0103.is-selected {
  border-color: #ff8585;
  box-shadow: 0 0 0 2px rgba(255, 133, 133, .18);
}
.shop-selected-label {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(255, 95, 95, .14);
  color: #ffb5b5;
  font-size: 12px;
  font-weight: 800;
}
.ban-sync-note { margin: 12px 0 0; color: #b4bbc6; font-size: 13px; }
.ban-sync-state.is-warning { color: #ffd07d; }

@media (max-width: 980px) {
  .nav-bar .mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 12px;
  }
  .nav-bar.nav-enhanced .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 14px;
    color: #f4f5f7;
    background: #30343d;
    border: 1px solid #454c58;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-nav-toggle[aria-expanded="true"] { border-color: #ff8585; }
  .mobile-play-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    margin-left: auto;
    color: #fff;
    background: #d94950;
    border-radius: 10px;
    font-weight: 800;
  }
  .nav-bar .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 142px);
    max-height: calc(100dvh - 142px);
  }
  .nav-bar.nav-enhanced:not(.mobile-open) .nav-inner { display: none; }
  .nav-bar .nav-home,
  .nav-bar .nav-link,
  .nav-bar .nav-drop-toggle {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 10px 13px;
    margin: 0;
    border-radius: 10px;
    font-size: 14px;
    text-align: left;
    white-space: normal;
  }
  .nav-bar .nav-home { justify-content: flex-start; gap: 12px; }
  .mobile-nav-home-label { display: inline; }
  .nav-bar .nav-drop-toggle { justify-content: space-between; }
  .nav-bar .nav-drop { width: 100%; }
  .nav-bar .nav-drop-menu,
  .nav-bar .nav-drop-menu.wide,
  .nav-bar .nav-drop-menu.right {
    display: block;
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 4px 0 8px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    overflow: visible;
    box-shadow: none;
    transition: none;
  }
  .nav-bar.nav-enhanced .nav-drop:not(.open) > .nav-drop-menu { display: none; }
  .nav-bar .nav-drop-menu:before { display: none; }
  .nav-bar .nav-drop-menu a,
  .nav-bar .nav-logout-form button { min-height: 44px; }
  .nav-bar .nav-inner .live-pill { align-self: flex-start; margin: 8px 0 0; }
  .nav-bar .nav-link:hover,
  .nav-bar .nav-drop-toggle:hover { transform: none; }

  .hero-layout { grid-template-columns: 1fr; }
  .hero-layout .hero-main {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
  }
  .hero-main > .hero-text { order: -1; padding: 28px 26px !important; }
  .hero-main > .hero-weapons.nc05-showcase { order: 0; }
  .hero-text:before { display: none; }
  .hero-text h1 { margin: 18px 0; font-size: clamp(44px, 8vw, 64px) !important; line-height: .98; }
  .hero-text p { font-size: 15px; line-height: 1.55; }
  .hero-proof { margin-top: 14px; }
  .hero-cta { flex-wrap: wrap; margin-top: 20px; }
  .hero-cta > * { min-height: 48px; }
  .hero-cta .ip-btn { min-width: 0; }
}

@media (max-width: 640px) {
  .utility-inner { min-height: 68px; gap: 8px; }
  .utility-inner .brand { gap: 8px; min-width: 0; }
  .utility-inner .logo-mark { width: 38px; height: 38px; flex-shrink: 0; font-size: 25px; }
  .utility-inner .logo-copy b { font-size: 11px; letter-spacing: .03em; }
  .utility-inner .logo-copy small { font-size: 9px; letter-spacing: .08em; }
  .utility-actions { flex-shrink: 0; gap: 6px; }
  .utility-actions .accent-btn.compact { padding: 0 10px; font-size: 11px; }
  .utility-actions .account-btn { width: 36px; height: 36px; }
  .hero-main > .hero-text { padding: 22px 20px !important; }
  .hero-text h1 { font-size: clamp(40px, 12vw, 58px) !important; }
  .hero-text p { font-size: 14px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .hero-proof { gap: 5px; margin-top: 12px; }
  .hero-proof span { padding: 5px 7px; font-size: 10px; }
  .hero-free-link { display: inline-block; margin-top: 14px; }
  .shop-product-v0103 { scroll-margin-top: 136px; }
  .site-footer .footer-panel { display: grid; grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-about { min-width: 0; }
  .site-footer .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* 14.10: tablets / small laptops (981-1120px). style.css sets .nav-inner{overflow-x:auto}
   for <=1120px, which also forces overflow-y and clips the dropdown menus. */
@media (min-width: 981px) and (max-width: 1120px) {
  .nav-bar .nav-inner { overflow: visible; }
  .nav-bar .nav-link,
  .nav-bar .nav-drop-toggle { padding-left: 9px; padding-right: 9px; }
}

/* 14.10: the four home quick tiles are ~90px wide on desktop; titles were cut off. */
@media (min-width: 1121px) {
  .quick-actions .quick-card { padding-left: 9px; padding-right: 9px; }
  .quick-actions .quick-card b { font-size: 12px !important; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .quick-actions .quick-card small { font-size: 10.5px !important; }
}

/* 14.10: links inside the "Почему 7HELL" cards */
small a[href="rules.php"], small a[href="commands.php"] { color: #ff8a8a; text-decoration: underline; text-underline-offset: 2px; }

/* 14.10: equipment gallery on privileges.php */
.r7-equip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.r7-equip-grid article { overflow: hidden; border: 1px solid #454d59; border-radius: 14px; background: #303640; min-width: 0; }
.r7-equip-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1b1d22; }
.r7-equip-grid article > div { padding: 14px 16px 16px; }
.r7-equip-grid h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.r7-equip-grid p { margin: 0 0 8px; color: #c0c5cd; font-size: 13px; line-height: 1.5; }
.r7-equip-grid small { display: block; color: #ffb48a; font-size: 11.5px; line-height: 1.45; }
@media (max-width: 980px) { .r7-equip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .r7-equip-grid { grid-template-columns: minmax(0, 1fr); } }
