.download-container {
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 25px 0;
    background: #ffffff;
}

.telegram-recommended {
    position: relative;
}

.telegram-recommended::after {
    content: "Рекомендуем";
    position: absolute;
    top: -8px;
    right: -6px;
    background: linear-gradient(135deg, #ff9800, #ff7043);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.3px;
    transform: rotate(5deg);
    z-index: 10;
    box-shadow: 
        0 2px 4px rgba(255, 152, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: all 0.2s ease;
    text-transform: uppercase;
    animation: recommendedPulse 2s infinite;
}

@keyframes recommendedPulse {
    0% {
        transform: rotate(5deg) scale(1);
    }
    50% {
        transform: rotate(5deg) scale(1.03);
    }
    100% {
        transform: rotate(5deg) scale(1);
    }
}

.telegram-recommended:hover::after {
    transform: rotate(5deg) scale(1.05);
}

.download-container ul {
    margin: 0;
    padding: 0;
}

h2.download-title {
    text-transform: uppercase;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 4vw, 35px);
    margin: -15px -15px 20px -15px;
    text-align: center;
    line-height: 1.4;
    color: white;
    background-color: #8b5cf6;
    font-size: clamp(22px, 2.8vw, 25px);
    font-weight: 500;
    border-left: 4px solid #4c1d95;
}

.download-version {
    margin-top: 30px;
}

h3.version-title {
    text-transform: uppercase;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 4vw, 35px);
    margin: clamp(20px, 3vw, 25px) 0;
    text-align: center;
    line-height: 1.4;
    color: #1f2937;
    background-color: #f3f4f6;
    font-size: clamp(20px, 2.5vw, 22px);
    font-weight: 400;
    border-left: 4px solid #10b981;
    width: 100%;
    box-sizing: border-box;
}

.download-link {
    background: #131ed2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 30, 210, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 30, 210, 0.4);
    background: #1029c8;
    cursor: pointer;
}

.mirror-links-container, 
.requirements {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
    width: 100%;
}

.mirror-links-title, 
.requirements-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    grid-column: 1 / -1;
}

.mirror-link-item,
.requirement-item {
    width: 100%;
}

.mirror-link,
.requirement {
    background: #91f091;
    color: #1a472a;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(145, 240, 145, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    min-height: 36px;
    letter-spacing: 0.2px;
}

.mirror-link:hover,
.requirement:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 240, 145, 0.4);
    background: #7ed87e;
    font-weight: 700;
}

.mirror-link img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.mirror-link:hover img {
    transform: scale(1.1);
}

.text {
    margin-top: 15px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    font-style: italic;
    padding: 12px;
    border-radius: 8px;
    color: #4b5563;
    line-height: 1.5;
}

.big-file-warning {
    position: relative;
    margin: 35px 0;
    padding: 20px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(251, 146, 60, 0.05);
    overflow: hidden;
}

.big-file-warning::after {
    content: "⚠️";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(15deg);
    pointer-events: none;
}

.big-file-warning strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #dc2626;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.big-file-warning p {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.big-file-warning p:last-child {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #fecaca;
    color: #7f1d1d;
    font-size: 0.95em;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .mirror-links-container,
    .requirements {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .mirror-links-container,
    .requirements {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 380px) {
    .mirror-links-container,
    .requirements {
        grid-template-columns: 1fr;
    }
    
    h2.download-title,
    h3.version-title {
        padding: 8px 12px;
        margin-bottom: 15px;
    }
    
    .download-link {
        width: 100%;
        margin-bottom: 15px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.modal-content p {
    font-size: 16px;
    color: #666;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-actions .btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
}

.modal-actions .btn-secondary {
    background-color: #ccc;
    color: #333;
}

.modal-actions .btn-secondary:hover {
    background-color: #bbb;
}

.modal-actions .btn-primary {
    background-color: #007bff;
    color: #fff;
}

.modal-actions .btn-primary:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn {
        font-size: 14px;
        padding: 8px 15px;
    }
}

.modal-warning-title {
    text-transform: uppercase;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 4vw, 35px);
    margin: -15px -15px 20px -15px;
    text-align: center;
    line-height: 1.4;
    font-size: clamp(22px, 2.8vw, 25px);
    font-weight: 700;
}