/* Стили для страницы download */
.download-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(15px, 2vw, 30px) clamp(10px, 1.5vw, 20px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Хлебные крошки */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #e84118;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
    font-weight: 600;
}

/* Основной контент на всю ширину */
.download-content-full {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    flex: 1;
}

.download-content-full h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
    border-bottom: 2px solid #e84118;
    padding-bottom: 0.5rem;
}

.download-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.download-intro p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Секция загрузки */
.download-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #e84118;
    text-align: center;
}

.download-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

.download-header p {
    color: #666;
    font-size: 1rem;
    margin: 0 0 2rem 0;
}

/* Кнопки загрузки */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    min-width: 220px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Кнопка App Store */
.download-button.app-store {
    background: linear-gradient(135deg, #000000 0%, #2c3e50 100%);
    color: white;
}

.download-button.app-store:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
}

/* Кнопка Google Play */
.download-button.google-play {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
}

.download-button.google-play:hover {
    background: linear-gradient(135deg, #34A853 0%, #4285F4 100%);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.button-icon {
    font-size: 2rem;
}

.button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.available {
    font-size: 0.8rem;
    opacity: 0.9;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Секция особенностей */
.features-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #e84118;
}

.type-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.type-header {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #e84118;
    margin: 0;
    padding-bottom: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #e84118;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
}

.feature-item p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Секция системных требований */
.requirements-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #e84118;
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.requirement-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.requirement-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e84118;
}

.requirement-item ul {
    margin: 0;
    padding-left: 1.2rem;
}

.requirement-item li {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Навигация */
.page-links.download-navigation {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    width: 100%;
}

.nav-buttons-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 2px solid #e84118;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    min-height: 44px;
}

.prev-button {
    color: #e84118;
    background: white;
    justify-self: start;
}

.home-button {
    color: white;
    background: #e84118;
    border-color: #e84118;
    justify-self: center;
    min-width: 120px;
}

.next-button {
    color: white;
    background: #e84118;
    border-color: #e84118;
    justify-self: end;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 65, 24, 0.3);
}

.prev-button:hover {
    background: #e84118;
    color: white;
}

.next-button:hover {
    background: #c23616;
    border-color: #c23616;
    color: white;
}

.home-button:hover {
    background: #c23616;
    border-color: #c23616;
    color: white;
}

/* АДАПТИВНОСТЬ */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .download-content-full {
        max-width: 900px;
    }

    .download-buttons {
        gap: 1.5rem;
    }

    .download-button {
        min-width: 200px;
        padding: 1rem 1.5rem;
    }
}

/* Большие мобильные */
@media screen and (max-width: 768px) {
    .download-content-full {
        max-width: 100%;
    }

    .download-section {
        padding: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .download-button {
        width: 100%;
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .requirements-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Навигация для планшетов */
    .nav-buttons-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 300px;
    }

    .nav-button {
        width: 100%;
        justify-self: center;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 480px) {
    .download-page {
        padding: 10px;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .download-content-full h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .download-intro {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .download-intro p {
        font-size: 0.9rem;
    }

    .download-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .download-header h2 {
        font-size: 1.4rem;
    }

    .download-header p {
        font-size: 0.9rem;
    }

    .button-content {
        gap: 0.6rem;
    }

    .button-icon {
        font-size: 1.5rem;
    }

    .store-name {
        font-size: 1rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .requirement-item {
        padding: 1rem;
    }

    /* Навигация для мобильных */
    .download-navigation {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .nav-buttons-container {
        gap: 0.6rem;
    }

    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .home-button {
        min-width: 100px;
    }
}

/* Очень маленькие мобильные */
@media screen and (max-width: 360px) {
    .download-content-full h1 {
        font-size: 1.2rem;
    }

    .download-button {
        padding: 0.8rem 1.2rem;
    }

    .button-icon {
        font-size: 1.3rem;
    }

    .store-name {
        font-size: 0.9rem;
    }

    .nav-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Улучшенная поддержка касаний */
@media (hover: none) and (pointer: coarse) {
    .nav-button:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-button:active {
        transform: translateY(-1px);
    }

    .download-button:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .download-button:active {
        transform: translateY(-1px);
    }

    .feature-item:hover {
        transform: none;
        box-shadow: none;
    }

    .feature-item:active {
        transform: translateY(-2px);
    }
}