@media (max-width: 993px) {
  .topPanel {
    height: 60px;
  }

  .topPanel .topPanel-left {
    border-bottom: 0;
    transition: 0.3s;
    width: 300px;
    height: 100vh;
    left: -300px;
    top: 0;
    position: fixed;
    max-height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 11;
    display: block;
    padding-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--dark-border);
  }

  .topPanel .topPanel-left.active {
    left: 0;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .topPanel-right {
    width: auto;
  }

  .logo-mini {
    display: block;
    margin-right: 15px;
    position: absolute;
    left: 20px;
    top: 15px;
  }

  .nav-menu li a {
    padding: 15px 25px;
    height: auto;
    line-height: 1.4;
    font-size: 15px;
  }

  .nav-menu li ul {
    position: relative;
    left: auto;
    top: auto;
    opacity: 1;
    visibility: visible;
    transition: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-menu li ul li a {
    font-size: 14px;
    padding: 12px 25px 12px 40px;
  }

  .nav-menu .sub-menu a {
    padding: 15px 25px;
  }

  .sub-menu.active .btn-dropdown {
    color: var(--gold);
  }

  .btn {
    width: 44px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    background: transparent;
  }

  .btn .btn-wrap {
    width: 100%;
    height: max-content;
  }

  .btn.active .btn-wrap {
    height: 20px;
  }

  .btn.active {
    left: 260px;
  }
}

@media screen and (max-width: 768px) {
  body {
    background-position: center top;
    background-size: cover;
  }

  .wrapper {
    width: 100%;
    padding: 0 15px;
  }

  header {
    height: auto;
    min-height: 280px;
  }

  .logo {
    padding-top: 70px;
  }

  .logo img {
    max-width: 180px;
  }

  .toggle-panel-btn {
    position: fixed;
    top: 70px;
    right: 15px;
    z-index: 10;
    background-color: var(--dark-card);
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
    padding: 8px 12px;
    font-size: 18px;
    border-radius: var(--radius);
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease;
  }

  .toggle-panel-btn:hover {
    background-color: var(--dark-card-alt);
  }

  .mainHomeBlockPlugin {
    gap: 15px;
    grid-template-columns: 1fr;
  }

  .blockHomePlugin {
    width: 100%;
  }

  .mainHomeBlock > div {
    height: auto;
  }

  .bottom-block {
    width: 100%;
    flex-direction: column;
  }

  .mainHomeBlock {
    gap: 15px;
  }

  .mainHomeBlock .blockHome {
    width: 100%;
    max-width: none;
  }

  .events-list {
    width: auto;
    height: auto;
    max-height: 350px;
  }

  .socHome {
    max-width: 100%;
    margin: 0 auto;
  }

  .toTop span {
    display: block;
  }

  .rankings.blockHome {
    width: 100%;
    max-width: none;
  }

  .ghallfame .bottom-block {
    flex-direction: column;
  }

  .footerMenu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    left: 0;
  }

  .footerMenu > div {
    width: 100%;
  }

  .footerInfo {
    text-align: center;
  }

  .footerInfo-block {
    justify-content: center;
  }

  .copy {
    margin: 0;
  }

  .topHomeBlocks {
    flex-direction: column;
    gap: 20px;
  }

  .section-title {
    font-size: 22px;
  }

  .onlinetop {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
  }

  .download {
    display: none;
  }

  .castle-siege {
    height: 300px;
  }

  .cs-result {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  #cs-owner, #cs-master {
    width: 140px;
    padding: 15px;
  }
}

@media screen and (max-width: 992px) {
  header {
    height: auto;
    min-height: 320px;
    padding-bottom: 20px;
  }

  .onlinetop,
  .logo,
  .download,
  .countdowns {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .countdowns {
    margin: 20px auto;
  }

  aside {
    display: none;
  }

  .content {
    width: 100%;
  }

  .mainHomeBlock .bottom-block {
    flex-wrap: wrap;
  }

  .mainHomeBlock .bottom-block > div {
    width: 100%;
    max-width: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .mainHomeBlockPlugin .blockHomePlugin,
  .mainHomeBlock .bottom-block {
    flex: 1;
  }

  .bottom-block .rankings.blockHome {
    flex: 1;
    width: 48%;
  }

  .mainHomeBlock {
    gap: 15px;
  }

  .socHome {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .socHome .socButton {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
  }

  .ghallfame .rankings.blockHome {
    flex: 1;
    min-width: 300px;
  }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
  .bottom-block > div {
    max-width: none;
  }

  .mainHomeBlock .bottom-block {
    gap: 15px;
  }

  .mainHomeBlockPlugin {
    gap: 15px;
  }

  .socHome {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .socHome .socButton {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
  }

  .bottom-block .rankings.blockHome {
    flex: 1;
  }

  .events-list,
  .list-i {
    width: 100%;
  }
}

/* Mostrar botão toggle apenas no mobile */
@media (max-width: 768px) {
  .toggle-panel-btn {
    display: block;
  }

  .rightBodyLinks {
    transition: right 0.4s ease;
    right: -150px;
  }

  .rightBodyLinks.active {
    right: 0;
  }
}

@media screen and (max-width: 376px) {
  .rankings.blockHome {
    margin: 0;
  }

  .socHome {
    width: 100%;
  }

  .socHome .socButton,
  .socHome .socBlock {
    width: 100%;
  }

  .newsLink-info a {
    width: 100%;
  }
}
