/* Лебедев-стиль: минимализм, типографика, воздух */

.yandex-download-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.yandex-download-message-content {
    background: #1a1a1a;
    padding: 32px 40px;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px rgba(0, 0, 0, 0.5);
    max-width: 680px;
    width: 100%;
    position: relative;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.yandex-download-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    font-weight: 300;
    z-index: 10;
    opacity: 0.6;
}

.yandex-download-close:hover {
    background: transparent;
    color: #ffffff;
    transform: rotate(90deg);
    opacity: 1;
}

/* Секция с браузером */
.yandex-browser-section {
    margin-bottom: 24px;
    text-align: center;
}

.yandex-browser-icon {
    margin: 0 auto 16px;
    animation: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.yandex-browser-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.yandex-download-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 auto 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    max-width: 100%;
}

.yandex-browser-description {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0 auto 24px;
    max-width: 540px;
    font-weight: 400;
    text-align: center;
}

.yandex-features {
    display: block;
    margin: 0 auto 24px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 540px;
}

.yandex-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    transition: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
}

.yandex-feature-item:last-child {
    border-bottom: none;
}

.yandex-feature-item:hover {
    background: transparent;
    transform: none;
}

.yandex-feature-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.8;
}

.yandex-feature-text {
    font-size: 12px;
    line-height: 1.4;
    color: #cccccc;
    font-weight: 400;
}

.yandex-feature-text strong {
    display: block;
    color: #ffffff;
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 13px;
}

.yandex-browser-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    background: #fc3f1d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
    margin: 0 auto 10px;
    letter-spacing: -0.01em;
    text-align: center;
}

.yandex-browser-button::before {
    display: none;
}

.yandex-browser-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yandex-browser-button:hover::after {
    opacity: 0.1;
}

.yandex-browser-button:hover {
    transform: none;
    box-shadow: none;
    color: #ffffff;
    text-decoration: none;
}

.yandex-browser-button:active {
    transform: none;
}

.yandex-browser-button:active::after {
    opacity: 0.15;
}

.button-icon {
    font-size: 18px;
    opacity: 0.9;
}

.button-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.yandex-browser-note {
    font-size: 12px;
    color: #999999;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
}

.button-icon {
    display: none;
}

.button-badge {
    display: none;
}

/* Разделитель */
.yandex-divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.yandex-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.yandex-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 0 16px;
    color: #999999;
    font-size: 13px;
    font-weight: 400;
    text-transform: lowercase;
}

/* Секция с файлом */
.yandex-file-section {
    margin-top: 0;
    text-align: center;
}

.yandex-timer-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 18px;
    margin: 0 auto 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    max-width: 540px;
    text-align: center;
}

.yandex-timer-text {
    font-size: 10px;
    color: #cccccc;
    margin: 0 auto 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.yandex-timer-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.yandex-timer-number {
    font-size: 40px;
    font-weight: 600;
    color: #fc3f1d;
    min-width: 50px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
    animation: none;
    letter-spacing: -0.03em;
}

.yandex-timer-label {
    font-size: 15px;
    color: #cccccc;
    font-weight: 400;
}

.yandex-timer-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.yandex-timer-progress {
    height: 100%;
    background: #fc3f1d;
    border-radius: 0;
    transition: width 1s linear;
    box-shadow: none;
    position: relative;
}

.yandex-timer-progress::after {
    display: none;
}

.yandex-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
    margin: 0 auto;
    letter-spacing: -0.01em;
    text-align: center;
}

.yandex-file-button::before {
    display: none;
}

.yandex-file-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yandex-file-button:hover::after {
    opacity: 0.1;
}

.yandex-file-button:hover {
    transform: none;
    box-shadow: none;
    color: #ffffff;
    text-decoration: none;
}

.yandex-file-button:active {
    transform: none;
}

.yandex-file-button:active::after {
    opacity: 0.15;
}

.yandex-file-button.disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    opacity: 1;
    color: #666666;
}

.yandex-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 12px;
    color: #999999;
    font-weight: 400;
    box-shadow: none;
    text-transform: none;
    text-align: center;
    justify-content: center;
}

/* Подсказка с затемнением и стрелкой */
.yandex-install-hint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000001;
    display: none;
}

.yandex-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.yandex-hint-content {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    padding: 32px 40px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.yandex-hint-arrow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 72px;
    color: #fc3f1d;
    line-height: 1;
    animation: arrowBounce 1.5s ease-in-out infinite;
    text-shadow: 0 4px 16px rgba(252, 63, 29, 0.6);
    font-weight: bold;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.yandex-hint-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 24px 0;
    font-weight: 400;
}

.yandex-hint-text strong {
    font-weight: 600;
    color: #fc3f1d;
}

.yandex-hint-close {
    display: inline-block;
    padding: 12px 32px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: visible;
}

.yandex-hint-close::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.yandex-hint-close:hover::after {
    opacity: 0.1;
}

.yandex-hint-close:active::after {
    opacity: 0.15;
}

/* Адаптивность */
@media (max-width: 768px) {
    .yandex-download-message {
        padding: 16px;
    }
    
    .yandex-download-message-content {
        padding: 28px 20px;
        max-width: 100%;
    }
    
    .yandex-download-close {
        top: 12px;
        right: 12px;
    }
    
    .yandex-feature-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px 0;
    }
    
    .yandex-feature-item:last-child {
        border-bottom: none;
    }
    
    .yandex-hint-content {
        bottom: 80px;
        padding: 24px 32px;
    }
    
    .yandex-hint-arrow {
        font-size: 36px;
        bottom: -30px;
    }
    
    .yandex-download-title {
        font-size: 28px;
    }
    
    .yandex-timer-number {
        font-size: 48px;
    }
    
    .yandex-browser-button,
    .yandex-file-button {
        padding: 18px 40px;
        font-size: 16px;
        width: 100%;
    }
    
    .yandex-timer-wrapper {
        padding: 20px;
    }
    
    .yandex-timer-number {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .yandex-download-message-content {
        padding: 40px 24px;
    }
    
    .yandex-download-title {
        font-size: 24px;
    }
    
    .yandex-browser-description {
        font-size: 16px;
    }
    
    .yandex-timer-number {
        font-size: 40px;
    }
}
