/* ===== IMPROVED CSS STYLES ===== */
/* Простий, гарний і зручний дизайн */

/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #34495e;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #495057;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #6c757d;
}

/* Шапка сайту */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    border-radius: 4px;
}

.logo h1,
.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.logo span .home-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo span .home-link:hover {
    opacity: 0.8;
}

/* Навігація */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Мобільне меню */


.hamburger-menu span {
    background: white;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Основний контент */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Секція переваг і недоліків */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.pros, .cons {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pros:hover, .cons:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pros h3 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8f5e8;
}

.cons h3 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #fdeaea;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros li, .cons li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.pros li .icon {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

.cons li .icon {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

/* FAQ секція */
.faq-section {
    margin: 3rem 0;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 2rem;
    border-bottom: none;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    padding: 1.25rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    display: none;
    padding: 1.25rem;
    background: white;
    color: #6c757d;
    line-height: 1.6;
    border-top: 1px solid #e9ecef;
}

.faq-answer.open {
    display: block;
}

/* Підвал */
footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-top h4 {
    color: #adb5bd;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.responsible-gaming-logos img {
    margin: 0 1rem;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.responsible-gaming-logos img:hover {
    opacity: 1;
}

.help-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    margin: 1.5rem 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #ffcd39;
}

.contact {
    font-size: 1.1rem;
    margin: 1rem 0;
    color: #adb5bd;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Адаптивний дизайн */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(102, 126, 234, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.open {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .pros, .cons {
        padding: 1.5rem;
    }
    
    .faq-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }
    
    main {
        padding: 0 0.75rem;
    }
    
    .pros, .cons {
        padding: 1.25rem;
    }
    
    .faq-section {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Додаткові утиліти */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }


/* Styles for tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 8px;
}

thead {
  background-color: #2c3e50;
  color: #ffffff;
}

thead tr th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f5f5f5;
}

tbody tr td {
  padding: 15px;
  font-size: 14px;
  color: #333;
}

tbody tr td:first-child {
  font-weight: 600;
  color: #2c3e50;
}

/* Responsive table */
@media screen and (max-width: 768px) {
  table {
    font-size: 12px;
  }
  
  thead tr th,
  tbody tr td {
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  tbody tr {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
  }
  
  tbody tr td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  
  tbody tr td:before {
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 600;
    content: attr(data-label);
  }
}

/* Styles for step-by-step instructions */
p strong {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  margin-right: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

p strong:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Alternative style - numbered circles */
p strong[style*="Krok"] {
  background: #2c3e50;
  color: #ffffff;
  width: 80px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  margin-right: 12px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

/* Step paragraphs styling */
h2 + p strong:first-child,
p:has(strong:first-child) {
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Container for step content */
p:has(strong) {
  padding: 15px 20px;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  margin: 12px 0;
  line-height: 1.8;
  transition: all 0.3s ease;
}

p:has(strong):hover {
  background: #ffffff;
  border-left-color: #764ba2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(5px);
}

/* Responsive adjustments for steps */
@media screen and (max-width: 768px) {
  p strong {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 8px;
  }
  
  p:has(strong) {
    padding: 12px 15px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  p strong {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
  }
  
  p:has(strong) {
    padding: 10px 12px;
  }
}

/* Додайте цей CSS код в ваш файл стилів */

.top-brands {
    padding: 60px 20px;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.brands-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1.5fr;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    padding: 20px;
    gap: 20px;
}
.table-header-menu {
    max-width: 936px;
    margin: 0 auto;
    box-shadow: none;
    background: none;  
}
.table-header-menu a{
 color:#e74c3c;
 text-decoration: none;
 font-size: 1.2rem;
 text-transform:uppercase;
}
.table-footer-menu {
    max-width: 936px;
    margin: 0 auto;
    box-shadow: none;
    background: none;  
}
.table-footer-menu a{
 color: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 text-decoration: none;
 font-size: 1rem;
  text-transform:uppercase;
}
.header-item {
    text-align: center;
    font-size: 16px;
}

.brand-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 1.5fr;
    padding: 25px 20px;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.brand-row:hover {
    background: #f9f9f9;
}

.brand-row:last-child {
    border-bottom: none;
}

.brand-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.rating-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 24px;
    color: #ddd;
}

.star.active {
    color: #ffd700;
}

.rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.bonus-cell {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 5px;
}

.bonus-cell strong {
    font-size: 16px;
    color: #333;
}

.bonus-detail {
    font-size: 14px;
    color: #666;
}

.action-cell {
    display: flex;
    justify-content: center;
}

.play-button {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.play-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Мобільна версія */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .table-header {
        display: none;
    }
    
    .brand-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .brand-cell {
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .brand-logo {
        max-width: 120px;
        max-height: 50px;
    }
    
    .rating-cell {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .rating-cell::before {
        content: "Hodnotenie: ";
        font-weight: 600;
        color: #666;
    }
    
    .bonus-cell::before {
        content: "Uvítací Bonus:";
        font-weight: 600;
        color: #666;
        display: block;
        margin-bottom: 8px;
    }
    
    .play-button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .top-brands {
        padding: 40px 10px;
    }
    
    .star {
        font-size: 20px;
    }
}
  /* чтобы блок со ссылками был скрыт */

  }
/* ===== CLEAN MOBILE BURGER MENU ===== */

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* DESKTOP */
.header__nav {
    display: flex;
}

/* MOBILE */
@media (max-width: 768px) {

    .burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: #050814;
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.35s ease;
        z-index: 999;
    }

    .header__nav.show {
        right: 0;
    }

    .header__nav ul {
        flex-direction: column;
        gap: 24px;
        padding-left: 24px;
    }

    .header__nav ul li a {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
    }
}
@media (max-width: 768px) {
    .header__nav.show ul {
        display: flex !important;
    }
}
