


.downloads-page {
    background: #F3F5F9;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


.viewport {
    width: 1920px;
    margin: 0 auto;
    position: relative;
    background: #F3F5F9;
}

.downloads-container {
    width: 1920px;
    margin: 0 auto;
    padding-top: 78px; 
    position: relative;
}


.detected-device-section {
    width: 100vw;
    margin-left: calc(-50vw + 960px); 
    background: linear-gradient(135deg, #000000 0%, #2A2A2A 100%);
    padding: 80px 0;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}


@media screen and (max-width: 1920px) {
    .detected-device-section {
        width: 1920px;
        margin-left: 0;
    }
}

.detected-device-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.device-info {
    flex: 1;
    color: white;
}

.device-title {
    font-family: 'TT Firs Neue';
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.device-title span {
    color: #FFCC63;
}

.device-description {
    font-family: 'TT Firs Neue';
    font-size: 18px;
    line-height: 1.6;
    color: #B8B8B8;
    margin-bottom: 32px;
}

.device-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.device-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-feature img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(85%) sepia(31%) saturate(751%) hue-rotate(356deg) brightness(101%) contrast(101%);
}

.device-feature span {
    font-family: 'TT Firs Neue';
    font-size: 16px;
    color: #E0E0E0;
}

.download-buttons {
    display: flex;
    gap: 16px;
}

.btn-download-primary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #FFCC63;
    border: none;
    border-radius: 12px;
    font-family: 'TT Firs Neue';
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download-primary:hover {
    background: #FFD788;
    transform: translateY(-2px);
}

.btn-download-primary img {
    width: 24px;
    height: 24px;
}

.device-image {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}


.other-devices-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.section-title {
    font-family: 'TT Firs Neue';
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    color: #000000;
    margin-bottom: 48px;
}

.device-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.device-card {
    background: linear-gradient(135deg, #F8F9FA 0%, #E8EAED 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border: 0px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: transform;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    perspective: 1000px;
}

.device-card * {
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.device-card:hover {
    transform: translateZ(0) scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    background: linear-gradient(135deg, #FAFBFC 0%, #EAECEF 100%);
}

.device-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.device-card-icon img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1); 
}

.device-card-title {
    font-family: 'TT Firs Neue';
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.device-card-description {
    font-family: 'TT Firs Neue';
    font-size: 14px;
    color: #7F8082;
    margin-bottom: 20px;
}

.device-card-btn {
    width: 100%;
    padding: 12px 24px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'TT Firs Neue';
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-card-btn:hover {
    background: #333333;
}


.installation-steps-section {
    position: relative;
    width: 1920px;
    height: 1080px;
    background: #F3F5F9;
    margin: 104px 0 0 auto;
    display: block;
    overflow: visible;
}

.guide-topmark {
    position: absolute;
    width: 501px;
    height: auto;
    left: 1335px;
    top: -4px;
    z-index: 0;
    pointer-events: none;
}

.guide-bottommark {
    position: absolute;
    width: 327px;
    height: auto;
    left: 42px;
    top: 648px;
    z-index: 0;
    pointer-events: none;
}

.installation-steps-section .section-title {
    position: absolute;
    width: 1200px;
    height: 65px;
    left: calc(50% - 1200px/2);
    top: 156px;
    font-family: 'TT Firs Neue';
    font-style: normal;
    font-weight: 600;
    font-size: 50px;
    line-height: 64px;
    color: #000000;
    text-align: center;
    z-index: 2;
}

.steps-container {
    position: absolute;
    width: 1393px;
    left: calc(50% - 1393px/2);
    top: 496px;
    display: flex;
    justify-content: center;
    gap: 48px;
}

.step-card {
    position: relative;
    width: 384px;
    height: 264px;
    padding: 0;
    text-align: center;
    background: linear-gradient(180deg, #F3F5F9 0%, #E1E5ED 100%);
    border-radius: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


.step-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 5px;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    background: #000000;
    border-radius: 25px;
}


.steps-reflection {
    position: absolute;
    width: 1393px;
    height: auto;
    left: calc(50% - 1393px/2);
    top: 760px;
    z-index: 1;
    pointer-events: none;
}

.step-number {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #000000;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'TT Firs Neue';
    font-size: 18px;
    font-weight: 600;
    line-height: 23px;
    color: #FFFFFF;
    z-index: 10;
}

.step-icon {
    position: absolute;
    width: 132px;
    height: 132px;
    left: 50%;
    top: -66px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 165px;
    z-index: 5;
}

.step-icon .icon-back {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    z-index: 1;
}

.step-icon .icon-front {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 31%;
    max-height: 100%;
    z-index: 2;
}

.step-title {
    position: absolute;
    width: 323px;
    left: 50%;
    transform: translateX(-50%);
    top: 111.6px;
    font-family: 'TT Firs Neue';
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 31px;
    color: #000000;
    margin: 0;
}

.step-description {
    position: absolute;
    width: 273px;
    left: 50%;
    transform: translateX(-50%);
    top: 159.6px;
    font-family: 'TT Firs Neue';
    font-style: normal;
    font-weight: 500;
    font-size: 14.4px;
    line-height: 19px;
    text-align: center;
    color: #7F8082;
    margin: 0;
}


@media (max-width: 1023px) {
    body.downloads-page .header #hamburgerBtn,
    body.downloads-page .header .hamburger-btn {
        position: absolute !important;
        right: -4px !important;
        top: 28px !important;
        transform: translateY(-50%) !important;
        width: 30px !important;
        height: 30px !important;
        z-index: 10002 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    body.downloads-page .header #hamburgerBtn.active,
    body.downloads-page .header .hamburger-btn.active {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 30px !important;
        height: 30px !important;
    }
}


@media (max-width: 1023px) {
    .downloads-container {
        padding-top: 80px;
    }

    .detected-device-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .detected-device-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 40px;
    }

    .device-title {
        font-size: 32px;
    }

    .device-description {
        font-size: 16px;
    }

    .device-image {
        flex: 1;
        max-width: 100%;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .device-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 20px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .step-card::after {
        display: none;
    }

    .installation-steps-section {
        padding: 83px 0 80px 0;
        margin-top: 83px;
    }
}

@media (max-width: 480px) {
    .device-cards {
        grid-template-columns: 1fr;
    }

    .device-title {
        font-size: 24px;
    }

    .btn-download-primary {
        padding: 14px 24px;
        font-size: 16px;
    }

    .step-title {
        font-size: 20px;
    }
}


body[data-device="windows"] .device-card[data-device="windows"],
body[data-device="macos"] .device-card[data-device="macos"],
body[data-device="ios"] .device-card[data-device="ios"],
body[data-device="android"] .device-card[data-device="android"] {
    opacity: 0.5;
    pointer-events: none;
}


.device-feature img[src*="check-circle"] {
    content: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23FFCC63' stroke-width='2'/%3E%3Cpath d='M6 10L9 13L14 7' stroke='%23FFCC63' stroke-width='2'/%3E%3C/svg%3E");
}

.btn-download-primary img[src*="download"] {
    content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2v10m0 0l4-4m-4 4l-4-4' stroke='%23000000' stroke-width='2'/%3E%3Cpath d='M3 16v3a2 2 0 002 2h14a2 2 0 002-2v-3' stroke='%23000000' stroke-width='2'/%3E%3C/svg%3E");
}

