/* Treatment Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles are inherited from sma-fundraising.css */

/* Treatment Hero Section */
.treatment-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.treatment-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.treatment-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.treatment-hero .hero-btn {
    background: white;
    color: #2563eb;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.treatment-hero .hero-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Treatment Sections */
.treatment-section {
    padding: 5rem 0;
    background: white;
}

.treatment-section:nth-child(even) {
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 2px;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.treatment-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #2563eb;
    position: relative;
    overflow: hidden;
}

.treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.treatment-card:hover::before {
    opacity: 1;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.treatment-card.primary {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, white);
}

.treatment-card.primary::before {
    background: linear-gradient(135deg, #10b981, #059669);
}

.treatment-card.secondary {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, white);
}

.treatment-card.secondary::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.treatment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.treatment-card h3 i {
    color: #2563eb;
    font-size: 1.2rem;
}

.treatment-card.primary h3 i {
    color: #10b981;
}

.treatment-card.secondary h3 i {
    color: #f59e0b;
}

.treatment-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.treatment-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.detail-item i {
    color: #2563eb;
    width: 20px;
    text-align: center;
}

.treatment-card.primary .detail-item i {
    color: #10b981;
}

.treatment-card.secondary .detail-item i {
    color: #f59e0b;
}

.treatment-cost {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    border-left: 4px solid #2563eb;
}

.treatment-card.primary .treatment-cost {
    border-left-color: #10b981;
}

.treatment-card.secondary .treatment-cost {
    border-left-color: #f59e0b;
}

.cost-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.treatment-card.primary .cost-value {
    color: #10b981;
}

.treatment-card.secondary .cost-value {
    color: #f59e0b;
}

.cost-note {
    font-size: 0.9rem;
    color: #64748b;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .donate-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-buttons .donate-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer styles are inherited from sma-fundraising.css */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.treatment-card,
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.treatment-card:nth-child(1) { animation-delay: 0.1s; }
.treatment-card:nth-child(2) { animation-delay: 0.2s; }
.treatment-card:nth-child(3) { animation-delay: 0.3s; }
.treatment-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Process Timeline Section */
.process-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.step-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-content h3 i {
    color: #2563eb;
    font-size: 1.1rem;
}

.step-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-details {
    display: grid;
    gap: 0.75rem;
}

.step-details .detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.step-details .detail-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.step-details .detail-item i {
    color: #2563eb;
    width: 20px;
    text-align: center;
}

.step-details .detail-item span {
    color: #475569;
    font-size: 0.9rem;
}

/* Support Services Section */
.support-section {
    padding: 5rem 0;
    background: white;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.support-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1) rotate(5deg);
}

.support-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.support-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-contact,
.support-schedule,
.support-access,
.support-coverage,
.support-training,
.support-consultation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
}

.support-contact .phone,
.support-schedule .schedule,
.support-access .access,
.support-coverage .coverage,
.support-training .training,
.support-consultation .consultation {
    font-weight: 600;
    color: #2563eb;
}

.support-contact .available,
.support-schedule .time {
    color: #10b981;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 1.5rem;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .process-timeline {
        padding: 0 15px;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .step-content {
        text-align: center;
    }

    .support-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .faq-grid {
        padding: 0 15px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        gap: 0.5rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .support-card {
        padding: 1.5rem;
    }

    .support-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .treatment-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .treatment-hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .treatment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .treatment-card {
        padding: 1.5rem;
    }
    
    .treatment-card h3 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .support-card h3 {
        font-size: 1.1rem;
    }
    
    .support-card p {
        font-size: 0.9rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn, .donate-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .treatment-hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .treatment-card {
        padding: 1rem;
    }
    
    .treatment-card h3 {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .support-card {
        padding: 1rem;
    }
    
    .support-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .faq-question {
        padding: 0.75rem;
    }
    
    .faq-answer {
        padding: 0 0.75rem 0.75rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .hero-btn, .donate-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Touch optimizations for mobile */
@media (hover: none) and (pointer: coarse) {
    .treatment-card:hover,
    .support-card:hover,
    .stat-card:hover,
    .faq-item:hover {
        transform: none;
    }
    
    .treatment-card:active,
    .support-card:active,
    .stat-card:active {
        transform: scale(0.98);
    }
    
    .faq-item:active {
        transform: scale(0.98);
    }
    
    .hero-btn:active,
    .donate-btn:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets */
    .hero-btn,
    .donate-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .lang-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .lang-option {
        min-height: 44px;
        padding: 1rem;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .treatment-hero {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        padding: 1rem;
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .treatment-card,
    .support-card,
    .stat-card,
    .faq-item {
        border-width: 1px;
    }
    
    .hero-btn,
    .donate-btn {
        border-width: 1px;
    }
}

/* Form elements optimization */
@media (max-width: 480px) {
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Language switcher mobile optimization */
@media (max-width: 480px) {
    .language-switcher {
        margin-top: 0.5rem;
    }
    
    .lang-dropdown {
        right: -50px;
        min-width: 150px;
    }
}

/* Navigation mobile optimization */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: #1e293b;
    }
    
    /* Улучшение расположения элементов в мобильной навигации */
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        flex: 1;
    }
    
    .language-switcher {
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    .mobile-menu {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    .treatment-details .detail-item {
        padding: 0.5rem 0;
    }
    
    .support-contact,
    .support-schedule,
    .support-access,
    .support-coverage,
    .support-training,
    .support-consultation {
        font-size: 0.85rem;
    }
    
    .process-timeline {
        padding: 0 10px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .treatment-section,
    .support-section,
    .faq-section {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}
