/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Links */
a {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1976d2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #2196f3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976d2;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #2196f3;
    border: 2px solid #2196f3;
}

.btn-secondary:hover {
    background-color: #2196f3;
    color: white;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #2196f3 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.1);
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a237e;
    font-size: 2.5rem;
}

/* About Section */
.about {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(33, 150, 243, 0.03) 100%);
    transform: skewX(-15deg);
    z-index: 1;
    overflow: hidden;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-main-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-main-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* Features Section */
.features {
    background-color: #f8f9fa;
    position: relative;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 60%;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.02) 0%, transparent 100%);
    transform: skewX(15deg);
    z-index: 1;
    overflow: hidden;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(33, 150, 243, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    fill: #2196f3;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

/* Equipment Section */
.equipment {
    background-color: white;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.equipment-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.equipment-image {
    background-color: #2196f3;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.equipment-icon {
    width: 60px;
    height: 60px;
    fill: white;
}

.equipment-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

/* Products Section */
.products {
    background-color: #f8f9fa;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.03) 0%, transparent 100%);
    z-index: 1;
    overflow: hidden;
}

.products .container {
    position: relative;
    z-index: 2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.product-card.featured {
    border: 2px solid #ff9800;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
}

.product-card.featured::before {
    content: 'Популярний';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff9800;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-header h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #2196f3;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Games Section */
.games {
    background-color: white;
}

.games-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2196f3;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    fill: #2196f3;
}

.category-header h3 {
    color: #1a237e;
}

.game-list {
    list-style: none;
    margin-top: 1rem;
}

.game-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

/* Tournament Section */
.tournaments {
    background-color: #f8f9fa;
    position: relative;
}

.tournaments::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 80%;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.03) 0%, transparent 100%);
    z-index: 1;
    overflow: hidden;
}

.tournaments .container {
    position: relative;
    z-index: 2;
}

.tournament-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tournament-info h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.tournament-schedule {
    margin-top: 2rem;
}

.tournament-inline-image {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tournament-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.tournament-main-image:hover {
    transform: scale(1.02);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.schedule-item:hover {
    transform: translateX(4px);
    border-left-color: #2196f3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.schedule-item .day {
    font-weight: 600;
    color: #1a237e;
}

.schedule-item .event {
    color: #666;
}

/* How it Works Section */
.how-it-works {
    background-color: white;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 30%;
    height: 60%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.02) 0%, transparent 70%);
    z-index: 1;
    overflow: hidden;
}

.how-it-works .container {
    position: relative;
    z-index: 2;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2196f3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.step-content h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.02) 0%, transparent 100%);
    transform: skewY(-2deg);
    z-index: 1;
    overflow: hidden;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left-color: #2196f3;
}

.contact-icon {
    width: 40px;
    height: 40px;
    fill: #2196f3;
}

.contact-details h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.contact-hours {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.contact-hours h3 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.hours-list {
    display: grid;
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.hours-item:hover {
    background-color: rgba(33, 150, 243, 0.02);
    padding-left: 0.5rem;
}

.hours-item:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background-color: #1a237e;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section a {
    color: #bbdefb;
}

.footer-section a:hover {
    color: #fff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo .logo {
    width: 40px;
    height: 40px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3f51b5;
    color: #bbdefb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .tournament-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    section {
        padding: 40px 0;
        overflow-x: hidden;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .product-card {
        padding: 1.5rem;
    }
    
    .games-categories {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}