/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --text-dark: #f7fafc;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="3" fill="url(%23a)"/><circle cx="800" cy="300" r="2" fill="url(%23a)"/><circle cx="400" cy="600" r="2" fill="url(%23a)"/><circle cx="900" cy="800" r="3" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rating Section */
.rating-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.rating-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sites-rating {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Site Card */
.site-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    min-height: 90px;
}

.site-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Медали для призовых мест */
.site-card.gold-medal {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 223, 0, 0.05) 100%);
    position: relative;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: goldGlow 3s ease-in-out infinite alternate;
}

@keyframes goldGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
}

.site-card.gold-medal::before {
    content: '🥇';
    position: absolute;
    top: -8px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #b45309;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.site-card.gold-medal .site-position {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #b45309;
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.site-card.silver-medal {
    border: 2px solid #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(211, 211, 211, 0.05) 100%);
    position: relative;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
    animation: silverGlow 4s ease-in-out infinite alternate;
}

@keyframes silverGlow {
    0% { box-shadow: 0 0 15px rgba(192, 192, 192, 0.3); }
    100% { box-shadow: 0 0 25px rgba(192, 192, 192, 0.5); }
}

.site-card.silver-medal::before {
    content: '🥈';
    position: absolute;
    top: -8px;
    left: 15px;
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    color: #64748b;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.5);
}

.site-card.silver-medal .site-position {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    color: #64748b;
    border: 1px solid #c0c0c0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.site-card.bronze-medal {
    border: 2px solid #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, rgba(218, 165, 32, 0.05) 100%);
    position: relative;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
    animation: bronzeGlow 5s ease-in-out infinite alternate;
}

@keyframes bronzeGlow {
    0% { box-shadow: 0 0 15px rgba(205, 127, 50, 0.3); }
    100% { box-shadow: 0 0 25px rgba(205, 127, 50, 0.5); }
}

.site-card.bronze-medal::before {
    content: '🥉';
    position: absolute;
    top: -8px;
    left: 15px;
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.5);
}

.site-card.bronze-medal .site-position {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
    border: 1px solid #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.site-position {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.site-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.site-info {
    min-width: 0;
}

.site-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-color);
    padding: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-year {
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 0;
}

.site-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.site-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    font-size: 0.9rem;
}

.star.full {
    color: #ffd700;
}

.star.half {
    color: #ffd700;
    opacity: 0.6;
}

.star.empty {
    color: #ddd;
}

.rating-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.8rem;
}

/* Promocodes */
.site-promocodes {
    background: rgba(255, 107, 53, 0.03);
    border-radius: 6px;
    padding: 8px;
    margin-top: 6px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.site-promocodes h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-code-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.promo-code-item:last-child {
    border-bottom: none;
}

.promo-code {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.promo-code:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: scale(1.02);
}

.promo-code-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn-small {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}

.copy-btn-small:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.copy-btn-small:active {
    background: #e55a2b;
    transform: scale(0.95);
}

.promo-description {
    font-size: 0.6rem;
    color: var(--text-light);
}

.promo-type {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.promo-type.reusable {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.promo-type.single {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}



/* Features */

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.feature-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.feature-tag::before {
    content: '✓';
    font-size: 0.7rem;
    font-weight: 700;
}

/* Site Actions */
.site-actions {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How to Section */
.how-to-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.how-to-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-card);
    color: var(--text-color);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9rem;
    font-style: italic;
}

/* Rating Widget */
.rating-widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.rating-widget h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-star:hover,
.rating-star.active {
    color: #fbbf24;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-info {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.current-rating {
    font-weight: 600;
    color: var(--text-dark);
}

.rating-thanks {
    color: #10b981;
    font-weight: 600;
    margin-top: 10px;
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    border: 1px solid #059669;
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Fallback notification styles */
.fallback-notification {
    background: #f59e0b;
    border-color: #d97706;
    max-width: 300px;
    padding: 16px 20px;
    position: relative;
}

.fallback-notification .notification-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.fallback-notification .notification-content span {
    text-align: center;
    font-size: 0.9rem;
}

.manual-copy-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    word-break: break-all;
}

.close-notification {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-notification:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .site-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    
    .site-position {
        grid-row: 1 / 3;
    }
    
    .site-actions {
        grid-column: 1 / 3;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .promo-code-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }
    
    .features-list {
        justify-content: center;
    }
    
    .copy-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .rating-section,
    .about-section,
    .how-to-section,  
    .faq-section {
        padding: 60px 0;
    }
    
    .site-card {
        padding: 20px;
    }
    
    .faq-question,
    .faq-answer p {
        padding-left: 20px;
        padding-right: 20px;
    }
} 