* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

header {
    text-align: center;
    padding: 30px 20px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.lang-switch {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.3);
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.counter-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.limits-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.limits-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.limit-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.platform {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.limit {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.progress.warning {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
}

.progress.danger {
    background: #e74c3c;
}

.info-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.info-section h2 {
    color: #333;
    margin: 20px 0 15px;
}

.info-section h2:first-child {
    margin-top: 0;
}

.info-section p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding-left: 10px;
}

.info-section li {
    padding: 8px 0;
    color: #555;
    line-height: 1.6;
}

.ad-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.ad-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.8);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .counter-container, .limits-section, .info-section {
        padding: 20px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
