* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    padding: 20px;
}

/* Анимированный фон */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
}

.pulse-1, .pulse-2, .pulse-3 {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
}

.pulse-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.pulse-2 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}

.pulse-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.pulse-4 {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 20%;
    right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144, 19, 254, 0.1) 0%, transparent 70%);
    animation: pulseGlow2 7s ease-in-out infinite;
    animation-delay: 1s;
}

.pulse-5 {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.08) 0%, transparent 70%);
    animation: pulseGlow3 9s ease-in-out infinite;
    animation-delay: 3s;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-particle.glow {
    width: 6px;
    height: 6px;
    background: rgba(144, 19, 254, 0.8);
    box-shadow: 0 0 10px rgba(144, 19, 254, 0.5);
    animation: floatGlow 10s ease-in-out infinite;
}

.floating-particle.glow2 {
    width: 3px;
    height: 3px;
    background: rgba(0, 210, 106, 0.7);
    box-shadow: 0 0 8px rgba(0, 210, 106, 0.4);
    animation: floatGlow2 12s ease-in-out infinite;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    animation: waveMove 15s linear infinite;
}

.wave-2 {
    bottom: 20px;
    animation: waveMove 12s linear infinite reverse;
    opacity: 0.6;
}

.energy-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.5), transparent);
    animation: energyFlow 6s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.6; 
    }
}

@keyframes pulseGlow2 {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.2; 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        opacity: 0.4; 
    }
}

@keyframes pulseGlow3 {
    0%, 100% { 
        transform: scale(1) translateX(0); 
        opacity: 0.15; 
    }
    50% { 
        transform: scale(1.05) translateX(20px); 
        opacity: 0.3; 
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) translateX(25px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) translateX(-10px);
        opacity: 0.7;
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translateY(-40px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-20px) translateX(-15px) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes floatGlow2 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-25px) translateX(30px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-35px) translateX(10px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes waveMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes energyFlow {
    0% {
        transform: translateX(-100%) scaleX(0);
        opacity: 0;
    }
    50% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scaleX(0);
        opacity: 0;
    }
}

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

.header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.logo {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

.logo-med, .logo-ai {
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo:hover .logo-med {
    animation: bounceMed 0.8s ease-in-out;
}

.logo:hover .logo-ai {
    animation: bounceAi 0.8s ease-in-out 0.1s;
}

@keyframes bounceMed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
    75% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes bounceAi {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-12px) rotate(2deg); }
}

.tagline {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-weight: 300;
    transition: all 0.4s ease;
}

.logo:hover ~ .tagline {
    color: #ffffff;
    transform: translateY(5px);
}

/* Карточка загрузки */
.upload-section {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.upload-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.upload-icon {
    color: #4a90e2;
    margin-bottom: 30px;
}

.upload-icon svg {
    stroke-width: 1.5;
}

.upload-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.file-types {
    color: #888;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

/* Форма загрузки */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.file-input-wrapper {
    position: relative;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    width: 100%;
    min-height: 70px;
    gap: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.file-input-label:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.15);
}

.file-input-label.drag-over {
    background: rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
    transform: scale(1.02);
}

.file-input-text {
    color: #e0e0e0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

.file-input-label:hover .file-input-text {
    color: #ffffff;
}

.file-input-button {
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    margin-left: auto;
}

.file-input-label:hover .file-input-button {
    background: linear-gradient(135deg, #357abd, #7a0fd4);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Стили для полного имени файла при наведении */
.file-input-text[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: normal;
    max-width: 350px;
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для выбора типа анализа */
.analysis-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.type-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    text-align: left;
}

.type-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.type-option.selected {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.type-option[data-type="premium"].selected {
    border-color: #9013fe;
    background: rgba(144, 19, 254, 0.1);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.type-header h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
    flex: 1;
    text-align: left;
}

.price-tag {
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.type-option[data-type="free"] .price-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.type-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    text-align: left;
}

.feature {
    font-size: 0.8rem;
    color: #b0b0b0;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.feature:before {
    content: "•";
    color: #4a90e2;
    font-weight: bold;
    flex-shrink: 0;
}

.type-option[data-type="premium"] .feature:before {
    color: #9013fe;
}

.premium-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: linear-gradient(135deg, #9013fe, #4a90e2);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.payment-status-indicator {
    background: rgba(0, 210, 106, 0.2);
    border: 1px solid rgba(0, 210, 106, 0.5);
    color: #00d26a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

.analysis-type-badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.analysis-type-badge.premium {
    background: linear-gradient(135deg, rgba(144, 19, 254, 0.2), rgba(74, 144, 226, 0.2));
    border: 2px solid rgba(144, 19, 254, 0.5);
    color: #9013fe;
}

.analysis-type-badge.free {
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid rgba(74, 144, 226, 0.5);
    color: #4a90e2;
}

/* Кнопка анализа */
.analyze-btn {
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.analyze-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    justify-content: center;
    align-items: center;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для статуса обработки */
.status-info {
    background: rgba(255, 217, 61, 0.1);
    border: 2px solid rgba(255, 217, 61, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    display: none;
}

.status-processing {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.status-completed {
    background: rgba(0, 210, 106, 0.1);
    border: 2px solid rgba(0, 210, 106, 0.3);
}

.status-error {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
}

/* Особенности */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.5;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

#analysisResult {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Анимированные рамки для разделов */
.analysis-section {
    margin: 25px 0;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.analysis-section:nth-child(1) { animation-delay: 0.1s; }
.analysis-section:nth-child(2) { animation-delay: 0.2s; }
.analysis-section:nth-child(3) { animation-delay: 0.3s; }
.analysis-section:nth-child(4) { animation-delay: 0.4s; }
.analysis-section:nth-child(5) { animation-delay: 0.5s; }

.section-overview {
    border-color: #4a90e2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(255, 255, 255, 0.03));
}

.section-indicators {
    border-color: #9013fe;
    background: linear-gradient(135deg, rgba(144, 19, 254, 0.1), rgba(255, 255, 255, 0.03));
}

.section-deviations {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 255, 255, 0.03));
}

.section-recommendations {
    border-color: #ffd93d;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.1), rgba(255, 255, 255, 0.03));
}

.section-conclusion {
    border-color: #00d26a;
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.1), rgba(255, 255, 255, 0.03));
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
    font-size: 2rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.section-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.section-overview .section-title {
    color: #4a90e2;
}

.section-indicators .section-title {
    color: #9013fe;
}

.section-deviations .section-title {
    color: #ff6b6b;
}

.section-recommendations .section-title {
    color: #ffd93d;
}

.section-conclusion .section-title {
    color: #00d26a;
}

.section-subtitle {
    color: #b0b0b0;
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 400;
}

.section-content {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.1rem;
}

.section-content strong {
    color: #4a90e2;
    font-weight: 600;
}

.section-content br {
    margin-bottom: 8px;
}

/* Элементы внутри разделов */
.content-item {
    margin: 12px 0;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid;
    transition: all 0.3s ease;
}

.content-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.section-overview .content-item {
    border-left-color: #4a90e2;
}

.section-indicators .content-item {
    border-left-color: #9013fe;
}

.section-deviations .content-item {
    border-left-color: #ff6b6b;
}

.section-recommendations .content-item {
    border-left-color: #ffd93d;
}

.section-conclusion .content-item {
    border-left-color: #00d26a;
}

/* Стили для предупреждения */
.consultation-warning {
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    padding: 25px;
    border-radius: 16px;
    margin: 30px 0 15px 0;
    text-align: center;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.warning-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.error-section {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.error-title {
    color: #ff6b6b;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-text {
    color: #ff6b6b;
    font-size: 1.2rem;
}

.api-info {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.analysis-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

.analysis-content b {
    color: #4a90e2;
    font-weight: 600;
}

.modal-footer {
    padding: 0 30px 30px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
}

#newAnalysisBtn, #saveBtn {
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

#saveBtn {
    background: linear-gradient(135deg, #00d26a, #00b359);
}

#newAnalysisBtn:hover, #saveBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

#saveBtn:hover {
    box-shadow: 0 10px 25px rgba(0, 210, 106, 0.3);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 210, 106, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: none;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: rgba(255, 107, 107, 0.9);
}

/* Стили для модального окна оплаты */
.payment-info {
    text-align: center;
}

.price-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

.price-description {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.features-list {
    text-align: left;
    margin: 25px 0;
}

.feature-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.payment-warning {
    background: rgba(255, 217, 61, 0.1);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.payment-warning p {
    margin: 0;
    color: #ffd93d;
    font-size: 0.9rem;
}

/* Стили для скроллбара */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #357abd, #7a0fd4);
}

/* Копирайт */
.copyright {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.copyright p {
    margin: 5px 0;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .upload-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .file-input-label {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .file-input-text {
        order: 2;
    }
    
    .file-input-button {
        order: 1;
        margin-left: 0;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .analysis-section {
        padding: 20px;
        margin: 20px 0;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    #newAnalysisBtn, #saveBtn {
        max-width: none;
    }

    .consultation-warning {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .notification {
        left: 20px;
        right: 20px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }

    .analysis-type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .type-option {
        min-height: 160px;
        padding: 15px;
    }

    .type-header h3 {
        font-size: 1rem;
    }

    .price-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .feature {
        font-size: 0.75rem;
    }

    /* Скрываем некоторые анимации на мобильных */
    .pulse-4, .pulse-5, .wave, .energy-line {
        display: none;
    }
}
/* Навигационное меню */
.main-nav {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo .logo-link {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: linear-gradient(135deg, #4a90e2, #9013fe);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Адаптивность меню */
@media (max-width: 768px) {
    .main-nav {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 20px;
        width: 80%;
        text-align: center;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Сдвигаем основной контент вниз из-за фиксированного меню */
    .main-content {
        margin-top: 80px;
    }
    
    .header {
        padding-top: 20px;
    }
}

/* Для десктопов - добавляем отступ для фиксированного меню */
@media (min-width: 769px) {
    .main-content {
        margin-top: 80px;
    }
}

#sendEmailBtn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

#sendEmailBtn:hover {
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}


/* Убираем подсветку разделов в мобильной версии */
@media (max-width: 768px) {
    body .main-nav .nav-menu .nav-link:hover,
    body .main-nav .nav-menu .nav-link.active,
    body .main-nav .nav-menu .nav-link.active:hover {
        background: transparent !important;
        color: #e0e0e0 !important;
    }
    
    body .main-nav .nav-menu .nav-link.active::after {
        display: none !important;
    }
    
    body .main-nav .nav-menu .nav-link {
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: none !important;
    }
    
    /* Убираем любые эффекты при наведении на мобильных */
    body .main-nav .nav-menu .nav-link:hover {
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    /* Делаем текст более контрастным для лучшей читаемости */
    body .main-nav .nav-menu .nav-link {
        color: #ffffff !important;
        font-weight: 600;
    }
    
    /* Дополнительные упрощения для мобильного меню */
    body .main-nav .nav-menu {
        background: rgba(10, 10, 20, 0.98) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    body .main-nav .nav-menu .nav-link {
        padding: 18px 20px !important;
        font-size: 1.1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        margin: 0 !important;
    }
    
    /* Убираем все эффекты при нажатии */
    body .main-nav .nav-menu .nav-link:active {
        background: rgba(255, 255, 255, 0.02) !important;
    }
}


/* Стили для страницы примера расшифровки */
.page-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.analysis-result-demo {
    max-width: 1000px;
    margin: 0 auto;
}

.content-group {
    margin-bottom: 25px;
}

.content-group h4 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-left: 3px solid #4a90e2;
    padding-left: 12px;
}

.content-item {
    margin: 10px 0;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.content-item.highlight-warning {
    border-left-color: #ffd93d;
    background: rgba(255, 217, 61, 0.05);
}

.content-item.highlight-alert {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.content-item strong {
    color: #e0e0e0;
}

/* Стили для отклонений */
.deviation-item {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.deviation-item h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.deviation-details {
    margin-left: 10px;
}

.detail-item {
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 2px solid rgba(255, 107, 107, 0.5);
}

/* Стили для рекомендаций */
.recommendation-category {
    margin: 20px 0;
}

.recommendation-category h4 {
    color: #ffd93d;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.recommendation-item {
    margin: 8px 0;
    padding: 10px 15px;
    background: rgba(255, 217, 61, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 217, 61, 0.5);
}

/* Стили для заключения */
.conclusion-item {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 210, 106, 0.05);
    border-radius: 10px;
    border-left: 3px solid rgba(0, 210, 106, 0.5);
}

.conclusion-item strong {
    color: #00d26a;
}

/* CTA секция */
.demo-cta {
    text-align: center;
    margin: 50px 0 30px;
    padding: 30px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.demo-cta h3 {
    color: #4a90e2;
    margin-bottom: 10px;
}

.demo-cta p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

/* Анимации */
.analysis-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-group h4 {
        font-size: 1.1rem;
    }
    
    .content-item {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .deviation-item {
        padding: 12px;
    }
    
    .recommendation-item {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
    
    .demo-cta {
        padding: 20px;
        margin: 30px 0 20px;
    }
}


/* Стили для контейнера подсказки */
.file-types-container {
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 40px !important;
}

.file-types {
    color: #888 !important;
    font-size: 0.9rem !important;
    cursor: help !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.file-types:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.info-icon {
    font-size: 0.8rem !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease !important;
}

.file-types:hover .info-icon {
    opacity: 1 !important;
}

/* Стили для всплывающей подсказки */
.tooltip-content {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    width: 320px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

.file-types-container:hover .tooltip-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.tooltip-header {
    color: #ffd93d !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    font-size: 1rem !important;
}

.tooltip-section {
    margin-bottom: 15px !important;
}

.tooltip-section strong {
    color: #e0e0e0 !important;
    font-size: 0.9rem !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.tooltip-item {
    color: #b0b0b0 !important;
    font-size: 0.85rem !important;
    padding: 2px 0 !important;
    padding-left: 10px !important;
    line-height: 1.3 !important;
}

/* Стрелка подсказки */
.tooltip-content::before {
    content: '' !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 8px solid transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}