/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #000000;
    color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-link:hover {
    color: #f0f0f0;
}

/* Viber в хедере - без фона */
.contact-link.viber-link {
    background: transparent;
    border: none;
}

.contact-link.viber-link:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

/* Viber в секции контактов - с фиолетовым фоном */
.social-link.viber-link {
    background: linear-gradient(135deg, #7360f2 0%, #8b7ff8 100%);
    border: 2px solid transparent;
}

.social-link.viber-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(115, 96, 242, 0.4);
    background: linear-gradient(135deg, #5a4fd8 0%, #7a6ff0 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #f0f0f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

.product-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.buy-button, .details-button {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.buy-button {
    background-color: #000000;
    color: #ffffff;
}

.buy-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.details-button {
    background-color: #f8f9fa;
    color: #000000;
    border: 2px solid #000000;
}

.details-button:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    color: #000000;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.modal-info {
    display: grid;
    gap: 2rem;
}

.info-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #000000;
}

.info-section h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: #000000;
    flex-shrink: 0;
}

.info-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-section a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
}

.info-section a:hover {
    color: #333333;
}

.games-list, .package-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.games-list li, .package-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.games-list li:before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: absolute;
    left: 0;
}

.package-list li:before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7L9 18L4 13'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: absolute;
    left: 0;
}

.contact-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-top: 0.5rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.about .section-title {
    position: relative;
    z-index: 1;
    color: #000000;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    color: #000000;
    transition: transform 0.3s ease;
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #1a202c;
}

.feature-description {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
    color: #2d3748;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
    font-size: 24px;
    color: #ffffff;
}

.telegram-link {
    background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
    border: 2px solid transparent;
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #0077b3 0%, #0099e6 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header improvements */
    .header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
        text-align: center;
    }
    
    /* Navigation improvements */
    .nav {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    /* Contact improvements */
    .header-contacts {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
        width: 100%;
    }
    
    .contact-item {
        font-size: 0.75rem;
        flex-direction: row;
        text-align: center;
        gap: 0.25rem;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.25rem 0.5rem;
        border-radius: 15px;
    }
    
    .contact-icon {
        font-size: 18px;
    }
    
    .contact-link {
        font-size: 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Hero section improvements */
    .hero {
        padding: 80px 0 50px;
        min-height: 60vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        border-radius: 25px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Product improvements */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .product-card {
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .product-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .product-price {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .buy-button, .details-button {
        width: 100%;
        padding: 0.7rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Feature improvements */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 0.75rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Social improvements */
    .social-links {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .social-icon {
        font-size: 18px;
    }
    
    /* Modal improvements */
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 96vh;
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-body h2 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .info-section {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
    }
    
    .info-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .info-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .games-list li, .package-list li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
        padding-left: 1.25rem;
    }
    
    .close {
        font-size: 24px;
        right: 15px;
        top: 10px;
    }
    
    /* Focus states for accessibility */
    .buy-button:focus, .details-button:focus, .cta-button:focus, .nav a:focus {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }
}
