body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0F1B2D;
  color: #fff;
}

header {
  background: #0F1B2D;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}


/* Десктоп-меню */
.desktop-menu {
  display: flex;
}

.desktop-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 0 20px;
}

.desktop-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}

.desktop-menu ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #00b0ff;
  transition: width 0.3s ease;
}

.desktop-menu ul li a:hover {
  color: #00b0ff;
}

.desktop-menu ul li a:hover::after {
  width: 100%;
}

.header-auth {
  display: flex;
  gap: 10px;
}

.btn-login,
.btn-register {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}

.btn-login {
  background: #1f2a3a;
  color: #fff;
}

.btn-register {
  background: #00B067;
  color: #fff;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  z-index: 1001;
}

.burger span {
  height: 3px;
  width: 100%;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Анимация на крестик */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Мобильное меню */
#mobile-menu {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 77px;
}

.main-heading {
  margin: 30px auto 20px;
  text-align: center;
  font-size: 38px;
  max-width: 90%;
  line-height: 1.3;
  font-weight: 800;
  background: linear-gradient(90deg, #00B0FF, #00FFB0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 10px rgba(0, 176, 255, 0.3);
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 900px; /* можно поменять на 600px, 1200px и т.д. */
  margin: 30px auto;
  border-radius: 12px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Кнопки */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 176, 255, 0.8);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.category-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;
  justify-content: center;
  padding: 0 15px;
}

.category-card {
  background: linear-gradient(90deg, #101c32, #0f1b2d);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  width: calc(25% - 20px);
  min-width: 220px;
  transition: transform 0.2s ease, background 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(90deg, #14274a, #13253c);
}

.category-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.category-card p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #B0B7C3;
}

.category-card img {
  height: 40px;
  margin-left: 15px;
}

.live-games {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.live-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #ff00cc;
}

.live-title h2 {
  font-size: 22px;
  font-weight: bold;
}

.live-title span {
  font-size: 14px;
  color: #aaa;
  margin-left: 10px;
}

.live-title a {
  font-size: 14px;
  color: #00B0FF;
  text-decoration: none;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.game-card img {
  width: 100%;
  height: 120px;
  display: block;
  transition: all 0.3s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.05);
  filter: blur(2px) brightness(0.6);
}

.game-card:hover .card-overlay {
  opacity: 1;
}

/* Кнопки */
.card-overlay a {
  background: #00B0FF;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.card-overlay .btn-demo {
  background: #1f2a3a;
}

.card-overlay .btn-play {
  background: #00B067;
}

.card-overlay a:hover {
  background: #0090d0;
}


.social-app-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: #0F1B2D;
  border-radius: 12px;
  padding: 20px;
  margin: 40px auto;
  max-width: 1200px;
  justify-content: space-between;
}

.social-card,
.app-card {
  flex: 1 1 500px;
  background: linear-gradient(135deg, #1b2b42, #0f1b2d);
  padding: 20px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-card h3,
.app-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.social-card p,
.app-card p {
  font-size: 14px;
  color: #B0B7C3;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  transition: transform 0.2s ease;
  background: rgba(255,255,255,0.05);
  padding: 10px;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

.app-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-text {
  max-width: 50%;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  background: #02415d;
  color: #fff;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  gap: 8px;
  transition: background 0.3s ease;
}

.app-btn img {
  height: 18px;
}

.app-btn:hover {
  background: #0090cc;
}

.app-image {
  max-height: 130px;
  object-fit: contain;
}

.site-footer {
  background: #132540;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #B0B7C3;
  margin: 0 0 12px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #1b2b42;
  padding: 8px;
  transition: transform 0.2s ease;
}

.footer-socials a:hover img {
  transform: scale(1.1);
}

.footer-links {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links div h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-links div a {
  display: block;
  color: #B0B7C3;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.footer-links div a:hover {
  color: #00B0FF;
}

.footer-bottom {
  text-align: center;
  color: #768499;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid #1b2b42;
  padding-top: 15px;
}

main {
  padding: 40px 20px;
  background: #0F1B2D;
  color: #ffffff;
  line-height: 1.6;
  font-family: 'Segoe UI', sans-serif;
}

section.article-1win {
  max-width: 1100px;
  margin: 0 auto;
}

.article-1win h2, h3 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #00B0FF;
}

.article-1win p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #E0E6ED;
}

.article-1win ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-1win li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #B0B7C3;
}

.article-1win img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  object-fit: contain;
}

@media (max-width: 992px) {
      .category-card {
    width: calc(50% - 20px);
  }
    .header-container{
        justify-content: space-between;
    }
  .desktop-menu {
    display: none;
  }

  .burger {
    display: flex;
  }

  #mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 90vh;
    background: #0F1B2D;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  }

  #mobile-menu.open {
    left: 0;
  }

  .menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .menu-logo {
    width: 83px;
  }

  .close-btn {
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .menu-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #ffffff11;
  }

  .menu-links a:hover {
    color: #00B0FF;
  }

  .menu-promo {
    width: auto;
    background: #1b2b42;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
  }

  .menu-promo .btn-register {
    margin-top: 10px;
    background: #00B067;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
  }

  .menu-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ffffff0a;
    width: 100%;
  }

  .menu-bottom a {
    display: block;
    color: #B0B7C3;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
  }
}

@media (max-width: 920px) {
.slider-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 30px 10px 30px 10px;
    border-radius: 12px;
}
}

@media (max-width: 768px) {
      .article-1win img[alt*="вертикаль"],
  img[alt*="vertical"] {
    width: auto;
    height: 420px;
  }

  .article-1win img[alt*="горизонталь"],
  img[alt*="horizontal"] {
    width: 100%;
    height: auto;
  }
      main {
    padding: 20px 15px;
  }

  .article-1win h2, h3 {
    font-size: 20px;
  }

  .article-1win p,
  li {
    font-size: 15px;
  }
      .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 25px;
  }

  .footer-links div {
    width: 100%;
  }

  .footer-brand img {
    height: 28px;
  }

  .footer-socials a img {
    width: 32px;
    height: 32px;
  }
     .app-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-text {
    max-width: 100%;
  }

  .app-image {
    margin-top: 15px;
    width: 100%;
    max-height: 180px;
  }

  .social-app-block {
    padding: 15px;
  }

  .social-icons img {
    width: 44px;
    height: 44px;
  }
  .main-heading {
    font-size: 28px;
    margin-top: 20px;
  }
    .slider-prev,
  .slider-next {
    font-size: 24px;
    padding: 6px 10px;
  }
  .game-card img{
    height: auto;
  }
}

@media (max-width: 576px) {
      .card-overlay {
    flex-direction: column;
    gap: 8px;
  }

  .card-overlay a {
    width: 60%;
    text-align: center;
  }
  .category-card {
    width: 100%;
  }

  .category-cards {
    gap: 15px;
  }

  .category-card img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 22px;
    line-height: 1.2;
  }
}

@media (max-width: 390px) {
.btn-login{
    display: none;
}
}
