/* tax-deduction.css */

.tax-deduction-page {
    padding: 30px 0 50px;
    background: #f8f9fa;
}

.tax-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tax-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.tax-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.tax-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.tax-header .subtitle {
    font-size: 18px;
    opacity: 0.95;
    max-width: 900px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    margin: 0;
}

.tax-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.tax-main {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tax-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

.section-title:first-child {
    margin-top: 0;
}

.info-card {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-card.warning {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.info-card.success {
    border-left-color: #2ecc71;
    background: #f0fff4;
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.card-content {
    color: #34495e;
    line-height: 1.6;
}

.card-content ul, .card-content ol {
    padding-left: 20px;
    margin: 10px 0;
}

.card-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contacts-box {
    background: #f1f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #d1e7ff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e8f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.contact-value {
    color: #3498db;
    font-size: 16px;
    word-break: break-all;
}

/* Центрированная кнопка для скачивания */
.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3498db;
    color: white;
    padding: 18px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
    text-align: center;
    margin: 30px auto; /* Изменено: auto для центрирования */
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}

.download-button:hover {
    background: white;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.download-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: white;
    transition: color 0.3s ease;
}

.download-button:hover svg {
    color: #3498db;
}

/* Для кнопки в сайдбаре - она занимает всю ширину */
.tax-sidebar .download-button {
    max-width: 100%;
    width: 100%;
    margin: 20px 0 0 0;
}

.sidebar-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.sidebar-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.sidebar-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 16px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin: 25px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 17px;
}

.timeline-content {
    color: #34495e;
    line-height: 1.5;
}

.requirements-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #dee2e6;
}

.requirement-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.requirement-icon {
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.requirement-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.requirement-text {
    flex: 1;
    color: #34495e;
    line-height: 1.5;
}

.note-box {
    background: #fff8e1;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.note-title {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.note-content {
    color: #d35400;
    line-height: 1.6;
}

/* Блок с лицензией */
.license-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #9b59b6;
}

.license-info .card-title {
    color: #8e44ad;
}

.license-details {
    margin-top: 15px;
}

.license-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}

.license-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.license-label {
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
    min-width: 100px;
}

.license-value {
    color: #3498db;
    word-break: break-all;
}

.license-value a {
    color: #3498db;
    text-decoration: none;
}

.license-value a:hover {
    text-decoration: underline;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .tax-content {
        grid-template-columns: 1fr;
    }
    
    .tax-sidebar {
        position: static;
    }
    
    .tax-header {
        padding: 25px 20px;
    }
    
    .tax-header .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }
    
    .download-button {
        max-width: 100%;
        width: 100%;
    }
    
    .tax-main, .tax-sidebar {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .license-label {
        min-width: 80px;
        display: block;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .tax-header .subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .tax-deduction-page {
        padding: 20px 0 30px;
    }
    
    .card-title {
        font-size: 17px;
    }
    
    .download-button {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tax-header, .tax-main, .tax-sidebar {
    animation: fadeIn 0.6s ease-out;
}

.tax-main {
    animation-delay: 0.2s;
}

.tax-sidebar {
    animation-delay: 0.4s;
}

/* Убираем отступы у заголовков */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}