/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Основной контейнер лендинга */
.main-landing {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('landing-background.png') no-repeat center center;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Логотип Яндекса */
.yandex-logo {
    width: 40px;
    height: 40px;
    margin-top: 20px;
    z-index: 10;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Заголовок */
.title-background {
    width: 100%;
    max-width: 400px;
    min-height: 120px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.title-text {
    text-align: center;
    font-weight: bold;
    color: #0e1425;
}

.main-title {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 20px;
    color: rgba(14, 20, 37, 0.3);
    font-weight: bold;
}

/* Первая задача */
.task-item-background {
    width: 100%;
    max-width: 400px;
    min-height: 160px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.task-description {
    text-align: center;
    color: #0e1425;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}

.task-description p {
    margin-bottom: 4px;
}

.task-button-background {
    background: #0e1425;
    border-radius: 8px;
    padding: 2px;
    margin: 0 20px;
}

.download-button {
    width: 100%;
    background: #0e1425;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: normal;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 20, 37, 0.4);
}

/* Вторая задача */
.task-button-background-second {
    width: 100%;
    max-width: 400px;
    min-height: 160px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.task-description-second {
    text-align: center;
    color: #0e1425;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}

.task-description-second p {
    margin-bottom: 4px;
}

.button-background {
    background: #0e1425;
    border-radius: 8px;
    padding: 2px;
    margin: 0 20px;
}

.download-button-second {
    width: 100%;
    background: #0e1425;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: normal;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica', 'Arial', sans-serif;
}

.download-button-second:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 20, 37, 0.4);
}

/* Копирайт и условия */
.copyrights {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
}

.copyright-text {
    margin-bottom: 15px;
}

.copyright-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 16px;
}

.terms-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    line-height: 16px;
}

.terms-text p {
    margin-bottom: 4px;
}

.highlight {
    color: rgba(255, 255, 255, 0.7);
}

/* Стили для ссылок в футере */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.footer-link:active {
    color: rgba(255, 255, 255, 1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .main-landing {
        padding: 15px;
        gap: 15px;
        background-size: cover;
        background-position: center center;
    }
    
    .title-background,
    .task-item-background,
    .task-button-background-second {
        max-width: 100%;
        padding: 15px;
    }
    
    .task-button-background,
    .button-background {
        margin: 0 15px;
    }
    
    .main-title {
        font-size: 22px;
        line-height: 26px;
        font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
        letter-spacing: -0.02em;
    }
    
    .download-button,
    .download-button-second {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .yandex-logo {
        margin-top: 15px;
    }
    
    .check-button-under {
        padding: 12px 20px;
        font-size: 15px;
        max-width: 280px;
        height: 44px;
    }
    
    .check-button-under .check-button-text {
        font-size: 15px;
    }
    
    .task-success-description {
        font-size: 15px;
        line-height: 20px;
    }
    
    .task-success-description p:first-child {
        font-size: 17px;
    }
}

/* Адаптивность для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .main-landing {
        padding: 30px;
        gap: 25px;
        background-size: cover;
        background-position: center center;
    }
    
    .title-background,
    .task-item-background,
    .task-button-background-second {
        max-width: 500px;
    }
    
    .main-title {
        font-size: 26px;
        line-height: 30px;
        font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
        letter-spacing: -0.02em;
    }
    
    .subtitle {
        font-size: 22px;
    }
    
    .task-description,
    .task-description-second {
        font-size: 16px;
        line-height: 22px;
    }
    
    .download-button,
    .download-button-second {
        font-size: 18px;
        padding: 14px 24px;
    }
    
    .check-button-under {
        font-size: 18px;
        padding: 16px 24px;
        max-width: 320px;
        height: 52px;
    }
    
    .check-button-under .check-button-text {
        font-size: 18px;
    }
    
    .task-success-description {
        font-size: 17px;
        line-height: 22px;
    }
    
    .task-success-description p:first-child {
        font-size: 19px;
    }
}

/* Адаптивность для десктопов */
@media (min-width: 769px) {
    .main-landing {
        padding: 40px;
        gap: 30px;
        background-size: cover;
        background-position: center center;
    }
    
    .title-background,
    .task-item-background,
    .task-button-background-second {
        max-width: 600px;
    }
    
    .main-title {
        font-size: 28px;
        line-height: 32px;
        font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
        letter-spacing: -0.02em;
    }
    
    .subtitle {
        font-size: 24px;
    }
    
    .task-description,
    .task-description-second {
        font-size: 18px;
        line-height: 24px;
    }
    
    .download-button,
    .download-button-second {
        font-size: 20px;
        padding: 16px 28px;
    }
    
    .yandex-logo {
        width: 50px;
        height: 50px;
        margin-top: 30px;
    }
}

/* Адаптивность для больших экранов */
@media (min-width: 1200px) {
    .main-landing {
        padding: 50px;
        gap: 35px;
        background-size: cover;
        background-position: center center;
    }
    
    .title-background,
    .task-item-background,
    .task-button-background-second {
        max-width: 700px;
    }
    
    .main-title {
        font-size: 32px;
        line-height: 36px;
        font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
        letter-spacing: -0.02em;
    }
    
    .subtitle {
        font-size: 26px;
    }
    
    .task-description,
    .task-description-second {
        font-size: 20px;
        line-height: 26px;
    }
    
    .download-button,
    .download-button-second {
        font-size: 22px;
        padding: 18px 32px;
    }
    
    .yandex-logo {
        width: 60px;
        height: 60px;
        margin-top: 40px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-background,
.task-item-background,
.task-button-background-second {
    animation: fadeInUp 0.6s ease-out;
}

.task-item-background {
    animation-delay: 0.2s;
}

.task-button-background-second {
    animation-delay: 0.4s;
}

/* Эффекты наведения для кнопок */
.download-button:active,
.download-button-second:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(14, 20, 37, 0.3);
}

/* Стили для выполненных задач */
.download-button.completed-task,
.download-button-second.completed-task {
    background: #4CAF50 !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.download-button.completed-task:hover,
.download-button-second.completed-task:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3) !important;
}

.download-button.completed-task:active,
.download-button-second.completed-task:active {
    transform: none !important;
}

/* Кнопка "ПРОВЕРИТЬ" под кнопкой скачивания */
.check-button-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.check-button-under {
    background: white;
    border: 2px solid transparent;
    background-clip: padding-box;
    color: transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(90deg, #ffcc00 0%, #ff6b35 50%, #ff4757 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    width: 100%;
    max-width: 320px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.check-button-text {
    background: linear-gradient(90deg, #ffcc00 0%, #ff6b35 50%, #ff4757 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.check-button-under:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.check-button-under:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Состояния кнопки "ПРОВЕРИТЬ" */
.check-button-under.checking {
    background: linear-gradient(90deg, #ffcc00 0%, #ff6b35 50%, #ff4757 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.check-button-under.checking .checking-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.check-button-under.checking .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.check-button-under.success {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.check-button-under.success .success-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.check-button-under.success .success-icon {
    font-size: 20px;
    font-weight: 600;
}

.check-button-under.retry {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
    border: none;
}

.check-button-under.retry .retry-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-weight: bold;
}

.check-button-under.retry .retry-icon {
    font-size: 18px;
    font-weight: bold;
    animation: rotate 2s linear infinite;
}

/* Анимация спиннера */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Анимация вращения для иконки повтора */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Дополнительные стили для лучшего отображения */
.main-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: -1;
}

/* Улучшенная адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .main-landing {
        padding: 10px;
        gap: 12px;
    }
    
    .title-background,
    .task-item-background,
    .task-button-background-second {
        padding: 12px;
    }
    
    .main-title {
        font-size: 20px;
        line-height: 24px;
        font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
        letter-spacing: -0.02em;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .task-description,
    .task-description-second {
        font-size: 13px;
        line-height: 18px;
    }
    
    .download-button,
    .download-button-second {
        font-size: 14px;
        padding: 8px 14px;
    }
    
    .yandex-logo {
        width: 35px;
        height: 35px;
        margin-top: 10px;
    }
    
    .check-button-under {
        padding: 10px 16px;
        font-size: 14px;
        max-width: 260px;
        height: 40px;
    }
    
    .check-button-under .check-button-text {
        font-size: 14px;
    }
}

/* Ландшафтная ориентация для мобильных устройств */
@media (max-height: 500px) and (orientation: landscape) {
    .main-landing {
        padding: 15px;
        gap: 15px;
        min-height: 100vh;
    }
    
    .title-background,
    .task-item-background,
    .task-button-background-second {
        min-height: auto;
        padding: 15px;
    }
    
    .yandex-logo {
        margin-top: 10px;
    }
    
    .copyrights {
        margin-top: 10px;
        padding: 10px 0;
    }
}

/* Стили для уведомления об отсутствии задач */
.no-tasks-notification {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 20px;
    margin: 20px 0;
}

.notification-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    width: 100%;
}

.notification-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.notification-text {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

/* Стили для состояний кнопки "ПРОВЕРИТЬ" */
.warning-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
}

.warning-icon, .error-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.warning-text, .error-text {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.warning-subtext, .error-subtext {
    font-size: 10px;
    opacity: 0.8;
}

.warning-state {
    color: #f59e0b;
}

.error-state {
    color: #ef4444;
}

/* Стили для блока "Выполнено" */
.completed-status-block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.completed-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.completed-icon {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.completed-text {
    font-size: 14px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
