/* Контейнер */
.asrt-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Заголовок */
.asrt-header {
    text-align: center;
    margin-bottom: 30px;
}

.asrt-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.asrt-header p {
    color: #666;
    font-size: 16px;
}

/* Вопросы */
.asrt-questions {
    counter-reset: question-counter;
}

.asrt-question {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.asrt-question-text {
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    line-height: 1.5;
}

.asrt-question-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

.asrt-answers {
    display: grid;
    gap: 12px;
}

.asrt-answer-label {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.asrt-answer-label:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
    transform: translateY(-1px);
}

.asrt-answer-input {
    margin-right: 15px;
    margin-top: 2px;
    transform: scale(1.2);
}

.asrt-answer-text {
    flex: 1;
    color: #555;
    font-size: 16px;
    line-height: 1.4;
}

.asrt-answer-input:checked + .asrt-answer-text {
    color: #2E7D32;
    font-weight: bold;
}

.asrt-answer-input:checked ~ .asrt-answer-text {
    color: #2E7D32;
    font-weight: bold;
}

.asrt-answer-label:has(.asrt-answer-input:checked) {
    border-color: #4CAF50;
    background: #e8f5e8;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* Кнопки управления */
.asrt-controls {
    text-align: center;
    margin: 40px 0 30px;
}

.asrt-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 18px 35px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    font-weight: bold;
    min-width: 200px;
}

.asrt-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.asrt-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.asrt-btn:disabled:hover {
    transform: none;
}

/* Результат */
.asrt-result {
    background: white;
    border-radius: 12px;
    padding: 35px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.asrt-result-title {
    color: #333;
    margin-bottom: 25px;
    font-size: 26px;
    text-align: center;
    font-weight: bold;
}

.asrt-result-score {
    margin: 25px 0;
    padding: 0;
}

.asrt-score-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.asrt-score-type {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.asrt-score-type.asrt-score-a {
    background: #ffebee;
    border: 2px solid #f44336;
}

.asrt-score-type.asrt-score-b {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

.asrt-score-type.asrt-score-c {
    background: #e8f5e8;
    border: 2px solid #4CAF50;
}

.asrt-score-type.dominant {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.asrt-score-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.asrt-score-count {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.asrt-score-a .asrt-score-count { color: #f44336; }
.asrt-score-b .asrt-score-count { color: #ff9800; }
.asrt-score-c .asrt-score-count { color: #4CAF50; }

.asrt-result-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.asrt-result-details {
    text-align: left;
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.asrt-result-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.asrt-result-details ul {
    list-style: none;
    padding: 0;
}

.asrt-result-details li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.asrt-result-details li:before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 10px;
    font-size: 18px;
}

/* Кнопки поделиться */
.asrt-share {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.asrt-share h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.asrt-share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.asrt-share-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.asrt-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.asrt-share-vk { background: #4C75A3; }
.asrt-share-tg { background: #0088cc; }
.asrt-share-wa { background: #25D366; }
.asrt-share-copy { background: #ff9800; }

/* Уведомления */
.asrt-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: asrt-fadeInOut 3s ease-in-out;
    display: none;
}

.asrt-notification.error {
    background: #f44336;
}

@keyframes asrt-fadeInOut {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    20% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
    80% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
}

/* Прогресс бар */
.asrt-progress {
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.asrt-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.asrt-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .asrt-container {
        padding: 15px;
    }
    
    .asrt-question {
        padding: 20px;
    }
    
    .asrt-score-breakdown {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .asrt-answers {
        grid-template-columns: 1fr;
    }
    
    .asrt-btn {
        display: block;
        width: 100%;
        margin: 12px 0;
        min-width: auto;
    }
    
    .asrt-controls {
        margin: 30px 0 25px;
    }
    
    .asrt-result {
        padding: 25px 20px;
    }
    
    .asrt-share-buttons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .asrt-container {
        padding: 10px;
    }
    
    .asrt-question {
        padding: 15px;
    }
    
    .asrt-answer-label {
        padding: 12px 15px;
    }
    
    .asrt-question-text {
        font-size: 16px;
    }
    
    .asrt-answer-text {
        font-size: 14px;
    }
    
    .asrt-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .asrt-share-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .asrt-result {
        padding: 20px 15px;
    }
    
    .asrt-notification {
        padding: 20px 25px;
        font-size: 16px;
        margin: 0 10px;
    }
}

@media (max-width: 360px) {
    .asrt-header h2 {
        font-size: 24px;
    }
    
    .asrt-question-text {
        font-size: 15px;
    }
    
    .asrt-question-number {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 14px;
    }
    
    .asrt-share-buttons {
        gap: 10px;
    }
    
    .asrt-share-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* Предотвращение увеличения на мобильных */
.asrt-answer-input, .asrt-btn {
    font-size: 16px !important;
}