/* 语言切换器样式 */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 10px;
        gap: 5px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Сброс и базовые стили */
* {
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили заголовка */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: -1;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-img {
    width: auto;
    height: 45px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.support-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.support-btn:hover::before {
    left: 100%;
}

.support-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.support-icon {
    font-size: 1.3rem;
    color: #00ff88;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.support-btn:hover .support-icon {
    transform: scale(1.1) rotate(5deg);
    color: #00ffaa;
}

/* 头部装饰元素 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* 头部背景装饰 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* 头部动画效果 */
@keyframes headerGlow {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    }
    50% { 
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.3); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.header {
    animation: headerGlow 3s ease-in-out infinite;
}

.support-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* 语言切换器特殊效果 */
.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00ffaa);
    border-radius: 1px;
    animation: pulse 2s ease-in-out infinite;
}

/* 头部悬停效果增强 */
.header:hover {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* 支持按钮特殊效果 */
.support-btn:hover .support-icon {
    animation: none;
    transform: scale(1.2) rotate(10deg);
}

/* 响应式动画调整 */
@media (prefers-reduced-motion: reduce) {
    .header,
    .logo-img,
    .support-icon,
    .lang-btn.active::after {
        animation: none;
    }
    
    .lang-btn:hover,
    .support-btn:hover {
        transform: none;
    }
}

/* Стили основного контента */
.main-content {
    padding: 2rem 0;
}

/* Секция героя */
.hero-section {
    text-align: center;
    padding: 2rem 0;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.main-title {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}

/* Секция шагов */
.steps-section {
    margin: 1.5rem 0;
}

.steps-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.step:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.step-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Секция цен */
.pricing-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.energy-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

/* Секция адреса */
.address-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.address-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.address {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
    word-break: break-all;
    text-align: center;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #5a6fd8;
}

.qr-code {
    text-align: center;
    margin: 2rem 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #f0f0f0;
    object-fit: contain;
    background: white;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #999;
    font-size: 0.9rem;
}

.important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 8px;
    color: #856404;
    margin-top: 1.5rem;
}

/* Секция FAQ */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.faq-question {
    color: #667eea;
    margin-bottom: 0;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #5a6fd8;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-wrapper.active {
    max-height: 1000px;
}

.faq-answer {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
    padding-top: 1rem;
}

.faq-answer code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #667eea;
    border: 1px solid #e9ecef;
}

.faq-answer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
    color: #5a6fd8;
}

.faq-answer strong {
    color: #333;
    font-weight: 600;
}

.faq-item ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-item li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Подвал */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-keywords {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-keywords .separator {
    color: #666;
    margin: 0 0.5rem;
}

.copyright {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .header-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .language-switcher {
        margin: 0;
        justify-content: center;
        width: 100%;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
    
    .support-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
        margin: 0 0 1rem 0;
    }
    
    .steps {
        gap: 0.8rem;
    }
    
    .step {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.9rem;
    }
    
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .address-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .address {
        min-width: auto;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .footer-keywords {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .footer-keywords .separator {
        margin: 0 0.3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .header .container {
        gap: 0.8rem;
    }
    
    .language-switcher {
        gap: 4px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .step, .pricing-card, .faq-item {
        padding: 1rem;
    }
    
    .energy-amount {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .energy-amount {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
    
    .qr-image {
        width: 160px;
        height: 160px;
    }
    
    .faq-question {
        font-size: 1.1rem;
        gap: 0.3rem;
    }
    
    .faq-toggle {
        font-size: 1.3rem;
    }
} 