﻿/* Общие стили шапки */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

/* Стили названия сайта */
.site-title {
    margin: 0;
    line-height: 1;
}

.site-title a {
    color: transparent;
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ff3333, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Стили для слогана */
.site-slogan {
    color: white !important;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.site-slogan:before {
    display: none;
}

/* Эффекты при наведении */
.site-slogan:hover {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

/* Стили кнопки */
.buy-button {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Стили подвала */
.site-footer {
    background-color: #1a1a2e;
    color: white;
    padding: 15px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.copyright {
    font-size: 14px;
    margin: 0;
}

.footer-menu {
    display: flex;
    gap: 15px;
}

/* Стили кнопок в подвале */
.footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #4a4a6a;
    transition: all 0.3s;
}

.footer-menu a:hover {
    background-color: #27ae60;
    color: white;
}

/* Стили для страницы успешной оплаты */
.payment-success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background-color: #f8f9fa;
}

.payment-success-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    font-size: 80px;
    color: #27ae60;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.payment-success-card h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
}

.payment-success-card p {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.return-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.return-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.success-details {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.success-details p {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 10px auto;
}

.success-details span:first-child {
    font-weight: bold;
    color: #2c3e50;
}

/* Стили для пиксельной сетки */
.pixel-grid-container {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    padding: 20px;
    overflow: auto;
}

.pixel-grid {
    position: relative;
    background: #f9f9f9;
    border: 1px solid #eee;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.pixel {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.pixel:hover {
    transform: scale(1.8);
    z-index: 100;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.pixel img {
    width: 100%;
    height: 100%;
    display: block;
}

.pixel::after {
    content: attr(data-description) " (Кликов: " attr(data-clicks) ")";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    margin-top: 5px;
    min-width: 200px;
    text-align: center;
}

.pixel:hover::after {
    opacity: 1;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    /* Шапка */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .site-branding {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .site-title a,
    .site-slogan {
        font-size: 22px;
    }
    
    .buy-button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }
    
    /* Подвал */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }
    
    .footer-menu a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Пиксельная сетка */
    .pixel-grid-container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .pixel-grid {
        transform: scale(0.9);
        transform-origin: center;
    }
    
    .pixel:hover {
        transform: scale(1.5);
    }
    
    /* Страница успешной оплаты */
    .payment-success-card {
        padding: 25px;
        margin: 20px;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .payment-success-card h1 {
        font-size: 1.4rem;
    }
    
    .payment-success-card p {
        font-size: 1rem;
    }
    
    .return-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .site-title a,
    .site-slogan {
        font-size: 20px;
    }
    
    .pixel-grid {
        transform: scale(0.8);
    }
    
    .payment-success-card {
        padding: 20px 15px;
    }
    
    .success-details p {
        flex-direction: column;
        text-align: left;
        gap: 5px;
    }
    
    .success-details span:first-child {
        margin-bottom: 3px;
    }
    
    .pixel::after {
        min-width: 150px;
        font-size: 10px;
    }
}
