/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header Styles */
.header-main {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-img {
  max-width: 180px;
  height: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #0255c2;
}

.btn {
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-login {
  background: #0255c2;
  color: #ffffff;
}

.btn-login:hover {
  background: #014a9f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 85, 194, 0.3);
}

.btn-signup {
  background: #54b146;
  color: #ffffff;
}

.btn-signup:hover {
  background: #469938;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 177, 70, 0.3);
}

.btn-login-mobile {
  background: #0255c2;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-signup-mobile {
  background: #54b146;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 14px;
}

.online-counter {
  font-size: 14px;
  color: #666;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #54b146;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Burger Menu */
.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  background: #ffffff;
  padding: 20px;
  border-top: 1px solid #eee;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-list li {
  margin: 15px 0;
}

.mobile-nav-list a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.mobile-online-counter {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

/* Hero Section */


.hero-slide {
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content {
  background: rgba(128, 128, 128, 0.6); /* сірий з 60% прозорістю */
  color: #fff;
  padding: 20px;
  border-radius: 10px;}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-features {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.feature-icon {
  font-size: 28px;
}

.btn-hero {
  background: #54b146;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 10px;
}

.btn-hero:hover {
  background: #469938;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(84, 177, 70, 0.4);
}

/* Promo Card */
.promo-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.promo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.promo-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.promo-header h3 {
  color: #333;
  font-size: 24px;
  margin: 0;
}

.promo-code-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.promo-code-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #0255c2;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #0255c2;
  background: #f0f7ff;
}

.btn-copy {
  background: #0255c2;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: #014a9f;
}

.promo-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.status-badge {
  background: #54b146;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.status-time {
  font-size: 14px;
  color: #666;
}

.promo-description {
  color: #666;
  margin-bottom: 20px;
  font-size: 15px;
}

.btn-activate {
  width: 100%;
  background: #54b146;
  color: #ffffff;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.btn-activate:hover {
  background: #469938;
}

/* Main Content */
.main-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.content-area {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Table of Contents */
.toc-block {
  background: #f8f9fa;
  border-left: 4px solid #0255c2;
  padding: 25px;
  margin-bottom: 40px;
  border-radius: 8px;
}

.toc-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin: 10px 0;
}

.toc-list a {
  color: #0255c2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.toc-list a:hover {
  color: #014a9f;
  text-decoration: underline;
}

/* Section Titles */
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
  border-bottom: 3px solid #0255c2;
  padding-bottom: 10px;
}

/* Mirrors Block */
.mirrors-block {
  margin-bottom: 50px;
}

.mirrors-update-info {
  background: #e8f4fd;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.update-icon {
  font-size: 20px;
}

.table-responsive {
  overflow-x: auto;
}

.mirrors-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.mirrors-table thead {
  background: #0255c2;
  color: #ffffff;
}

.mirrors-table th,
.mirrors-table td {
  padding: 15px;
  text-align: left;
  border: 1px solid #dee2e6;
}

.mirrors-table tbody tr:hover {
  background: #f8f9fa;
}

.mirror-url {
  font-weight: 600;
  color: #0255c2;
}

.status-online {
  color: #54b146;
  font-weight: 600;
}

.speed-fast {
  color: #54b146;
  font-weight: 500;
}

.speed-medium {
  color: #ffa500;
  font-weight: 500;
}

.btn-mirror {
  background: #0255c2;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.btn-mirror:hover {
  background: #014a9f;
}

.mirrors-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Screenshots Block */
.screenshots-block {
  margin-bottom: 50px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-5px);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 15px;
  background: #f8f9fa;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

/* Slider Styles */
.screenshots-slider,
.tournaments-slider {
  position: relative;
  overflow: hidden;
}

.slider-container {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slider-item {
  min-width: 100%;
  flex-shrink: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.slider-btn {
  background: #0255c2;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: #014a9f;
  transform: scale(1.1);
}

/* Tournaments Block */
.tournaments-block {
  margin-bottom: 50px;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 20px;
}

.tournament-card {
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  border-color: #0255c2;
  box-shadow: 0 8px 25px rgba(2, 85, 194, 0.15);
  transform: translateY(-5px);
}

.tournament-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: #ffffff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.tournament-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.tournament-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tournament-prize {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.prize-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.prize-amount {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #54b146;
}

.tournament-timer {
  background: #fff3cd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.timer-label {
  display: block;
  font-size: 14px;
  color: #856404;
  margin-bottom: 8px;
  font-weight: 500;
}

.timer-display {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.timer-unit {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 14px;
  color: #856404;
}

.timer-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.btn-tournament {
  width: 100%;
  background: #0255c2;
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.btn-tournament:hover {
  background: #014a9f;
}

/* Content Block */
.content-block {
  margin-bottom: 50px;
}

.content-block h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
}

.content-block h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #333;
}

.content-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
}

.content-block p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
}

.content-block ul,
.content-block ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-block li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.content-block table th,
.content-block table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #dee2e6;
}

.content-block table thead {
  background: #f8f9fa;
  font-weight: 600;
}

.content-block table tbody tr:hover {
  background: #f8f9fa;
}

.lead-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #54b146;
  border-radius: 4px;
}

.faq-item {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.faq-item h3 {
  color: #0255c2;
  margin-top: 0;
}

/* Author Block */
.author-block {
  margin-bottom: 50px;
}

.author-card {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  align-items: flex-start;
}

.author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.author-title {
  font-size: 16px;
  color: #0255c2;
  margin-bottom: 15px;
  font-weight: 500;
}

.author-bio {
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

.author-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0255c2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #014a9f;
}

/* Footer */
.footer-main {
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  margin-top: 60px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0255c2;
}

.footer-contacts {
  list-style: none;
  padding: 0;
}

.footer-contacts li {
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.payment-logos,
.provider-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.payment-logos img,
.provider-logos img {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-logos img:hover,
.provider-logos img:hover {
  opacity: 1;
}

.footer-legal {
  font-size: 13px;
  color: #999;
  line-height: 1.8;
  margin: 0;
}

/* Sticky Widget */
.sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #54b146, #469938);
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.widget-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.widget-text {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
}

.widget-icon {
  font-size: 32px;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
}

.btn-widget {
  background: #ffffff;
  color: #54b146;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-widget:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.widget-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.widget-close:hover {
  transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-features {
    flex-direction: column;
    gap: 15px;
  }

  .promo-card {
    padding: 20px;
  }

  .content-area {
    padding: 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .screenshots-grid,
  .tournaments-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .widget-content {
    flex-direction: column;
    gap: 15px;
  }

  .widget-text {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .widget-close {
    position: absolute;
    top: 10px;
    right: 10px;
  }
}

/* Unused styles for uniqueness */
.unused-class-1 {
  display: none;
}
.unused-class-2 {
  visibility: hidden;
}
.unused-class-3 {
  opacity: 0;
}
.legacy-wrapper {
  margin: 0;
}
.old-container {
  padding: 0;
}
/* Блок-обгортка для горизонтального скролу */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Базові стилі таблиці */
table.responsive {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  font-size: 16px;
}
table.responsive th,
table.responsive td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  background: #fff;
}
table.responsive thead th {
  background: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
}

/* Мобільна адаптація: перетворюємо рядки на «картки» */
@media (max-width: 640px) {
  table.responsive thead {
    display: none; /* ховаємо заголовок */
  }
  table.responsive,
  table.responsive tbody,
  table.responsive tr,
  table.responsive td {
    display: block;
    width: 100%;
  }
  table.responsive tr {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    margin: 12px 0;
    overflow: hidden;
  }
  table.responsive td {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px dashed #eef2f7;
    padding: 10px 12px;
  }
  table.responsive td:last-child {
    border-bottom: 0;
  }
  /* Підпис стовпця береться з data-label */
  table.responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #0f172a;
    flex: 0 0 48%;
    max-width: 48%;
  }
  table.responsive td > span {
    flex: 1;
    text-align: right;
    color: #111827;
  }
}
/* ==== Screenshots (shared) ==== */
.screenshots-block { margin-bottom: 40px; }
.screenshot-caption {
  padding: 12px;
  background: #f8f9fa;
  text-align: center;
  font-weight: 500;
  margin: 0;
}

/* cards look */
.screenshot-item,
.slider-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  background: #fff;
}

.screenshot-item img,
.slider-item img {
  width: 100%;
  height: auto;
  display: block;
  /* гарна пропорція та кроп */
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ==== Desktop grid (>=768px) ==== */
.screenshots-grid {
  display: none;
  gap: 20px;
}

@media (min-width: 768px) {
  .screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .screenshots-slider { display: none; }
}

/* ==== Mobile slider (<768px) ==== */
.screenshots-slider {
  display: block;
  position: relative;
}

.slider-viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.slider-viewport::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
}

.slider-item {
  scroll-snap-align: start;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.slider-btn {
  background: #0255c2;
  color: #fff;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.slider-btn:disabled { opacity: .45; cursor: default; }

/* Менше руху для користувачів з reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slider-viewport { scroll-behavior: auto; }
}
/* приховуємо слайдер на десктопі, показуємо на мобі */
@media (min-width: 768px) {
  .screenshots-slider { display: none !important; }
  .screenshots-grid { display: grid !important; }
}

/* мобільна логіка */
@media (max-width: 767px) {
  .screenshots-grid { display: none !important; }
  .screenshots-slider { display: block !important; }
}
