* {
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #f3f3f3;
    height: 60px;
    padding: 0 20px;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}


.header-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.microsoft-logo {
    height: 24px;
    width: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(240 5.9% 90%);
    height: 36px;
    width: 36px;
    border-radius: 50%;
}

.person-logo {
    height: 16px;
    width: 16px;
}



.app-info-section {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    padding: 130px 130px 30px 130px;
    background-color: #272647;
    color: white;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.app-info-section .app-icon {
    height: 120px;
    width: 120px;
    border-radius: 16px;
}

.app-info-section .app-basic-info {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    gap: 30px;
}

.app-info-section .app-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-info-section .app-title {
    font-size: 40px;
    font-weight: 600;
    margin: -4px 0 0 0;
}

.app-info-section .app-publisher,
.app-info-section .app-category {
    font-size: 18px;
    font-weight: 400;
    color: #4cc2ff;
    cursor: pointer;
}  

.app-info-section .app-summary {
    width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 30px;
}

.get-button {
display: flex;
    align-items: center;
    justify-content: left;
    text-align: center;
    gap: 10px;
    height: 60px;
    width: 280px;
    border: 0;
    border-radius: 6px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    background-color: rgb(0, 95, 184);
    color: white;
}

.get-button img {
    margin-top: -4px;
}
.get-button:hover {
    background-color: rgb(26, 110, 189);
    cursor: pointer;
}

.app-info-section .action-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.app-info-section .action-buttons svg {
    cursor: pointer;
}

.app-info-section .app-rating-info {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

.app-info-section .age-rating-icon {
    height: 60px;
}

.app-info-section .age-text-container {
    display: flex;
    flex-direction: column;
}

.age-text-container .age-rating-text {
    font-weight: 600;
}

.age-text-container .purchase-info {
    color: #a4a4a4;
}

.app-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f9f9f9;
    padding: 30px 130px 10px;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.content-block {
    background-color: #fdfdfd;
    border: 1px solid rgb(228, 228, 231);
    border-radius: 10px;
}

.content-block .section-title {
    font-weight: 500;
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 24px;
}

.app-details-section .section-header {
    padding: 20px 30px 20px;
}

.app-details-section .section-content {
    border-top: 1px solid rgb(228, 228, 231);
    padding: 30px 30px 20px;
    font-size: 20px;
}



        .info-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 24px 32px;
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-height: 24px;
            break-inside: avoid;
        }

        .info-icon {
            width: 16px;
            height: 16px;
            border-radius: 2px;
            flex-shrink: 0;
            margin-top: -4px;
            color: #323130;
        }

        .info-label {
            color: #605e5c;
            font-size: 14px;
            font-weight: 400;
            min-width: 140px;
            flex-shrink: 0;
        }

        .info-value {
            color: #323130;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.4;
        }

        .info-value.company-name {
            color: #0078d4;
            cursor: pointer;
        }

        .info-value.company-name:hover {
            text-decoration: underline;
        }

        .info-link {
            color: #0078d4;
            font-size: 14px;
            text-decoration: none;
            cursor: pointer;
        }

        .info-link:hover {
            text-decoration: underline;
        }

        .info-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .info-list li {
            color: #323130;
            font-size: 14px;
            line-height: 1.4;
        }

        .info-list li a {
            color: #0078d4;
            text-decoration: none;
        }

        .info-list li a:hover {
            text-decoration: underline;
        }

        .info-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
        }

        .info-text-with-link {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
        }

        .category-tags {
            display: flex;
            gap: 4px;
            align-items: center;
        }

        .category-separator {
            color: #605e5c;
        }

        .copyright-text {
            color: #605e5c;
            font-size: 13px;
            margin-top: 2px;
        }

        .installation-text {
            margin-bottom: 4px;
        }

        .permissions-list {
            margin-bottom: 4px;
        }

        /* Адаптивная сетка */
        @media (max-width: 1200px) {
            .info-details {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 20px 24px;
            }
        }

        @media (max-width: 900px) {
            .info-details {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 18px 20px;
            }
        }

        @media (max-width: 650px) {
            .info-details {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            
            .content-block {
                padding: 16px;
            }
            
            .info-label {
                min-width: 120px;
            }
        }

        @media (max-width: 480px) {
            .info-item {
                flex-direction: column;
                gap: 8px;
            }
            
            .info-label {
                min-width: auto;
                font-weight: 500;
            }
            
            .info-icon {
                display: none;
            }
        }

        
/* Show more/less functionality */
.collapsible-content {
    position: relative;
}

.collapsible-content.collapsed {
    max-height: 100px;
    overflow: hidden;
}

.collapsible-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, #fdfdfd);
}

.show-more-btn {
    background: none;
    border: none;
    color: rgb(0, 120, 212);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 10px;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* Discover more section */
.recommended-apps {
    background-color: #fdfdfd;
    border: 1px solid rgb(228, 228, 231);
    border-radius: 10px;
    padding: 0;
    position: relative;
}

.recommended-apps .section-header {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommended-apps .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #323130;
    position: relative;
}

.recommended-apps .section-title::after {
    content: '›';
    color: #8b5cf6;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.recommended-apps .section-header:hover .section-title::after {
    background-color: #8b5cf6;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.expand-arrow {
    display: none;
}

/* Carousel container */
.items-list {
    position: relative;
    padding: 0 30px 30px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 40px;
}

.carousel-container {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    /* overflow-x: auto; */
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* -ms-overflow-style: none; */
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Navigation arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: white;
    border: 1px solid #e4e4e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-arrow:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-arrow.prev {
    left: 0;
}

.nav-arrow.next {
    right: 0;
}

.nav-arrow svg {
    width: 16px;
    height: 16px;
    color: #666;
}

/* App recommendation cards */
.app-recommendation {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 20px;
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.app-recommendation:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d1d5db;
}

.app-recommendation .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-recommendation .app-name {
    font-size: 14px;
    font-weight: 500;
    color: #323130;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Responsive design */
@media (max-width: 1200px) {
    .carousel-wrapper {
        margin: 0 32px;
    }
    
    .app-recommendation {
        min-width: 180px;
        max-width: 180px;
    }
}

@media (max-width: 900px) {
    .items-list {
        padding: 0 20px 20px;
    }
    
    .carousel-wrapper {
        margin: 0 28px;
    }
    
    .app-recommendation {
        min-width: 160px;
        max-width: 160px;
        padding: 16px;
    }
    
    .app-recommendation .app-icon {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 650px) {
    .recommended-apps .section-header {
        padding: 16px 20px;
    }
    
    .items-list {
        padding: 0 16px 16px;
    }
    
    .carousel-wrapper {
        margin: 0 24px;
    }
    
    .app-recommendation {
        min-width: 140px;
        max-width: 140px;
        padding: 12px;
    }
    
    .app-recommendation .app-icon {
        width: 48px;
        height: 48px;
    }
    
    .app-recommendation .app-name {
        font-size: 13px;
    }
}


 /* Карусель скриншотов */
.section-content {
    position: relative;
    overflow: hidden;
}

.section-content .carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    gap: 12px;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 1024px;
    height: 576px;
}

.screenshot-item:last-child {
    margin-right: 20px; /* Отступ справа только у последнего */
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* .screenshot-placeholder::before {
    content: '';
    width: 60px;
    height: 40px;
    background: #d1d1d6;
    border-radius: 4px;
} */

/* Белая подсветка при ховере */
.screenshot-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.screenshot-item:hover .screenshot-placeholder::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Кнопки навигации по краям section-content */
.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav-arrow.prev {
    left: 10px;
}

.carousel-nav-arrow.next {
    right: 10px;
}

.section-content:hover .carousel-nav-arrow {
    opacity: 1;
}

/* Sticky header */
.sticky-app-header {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #e6e6e695;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(228, 228, 231, 0.6);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 50%;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.sticky-app-header.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-app-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.sticky-app-details {
    display: flex;
    flex-direction: column;
}

.sticky-app-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.sticky-app-publisher {
    font-size: 13px;
    color: #131313;
    margin: 0;
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.sticky-get-button {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.sticky-get-button:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}



        .rating-container {
            display: flex;
            align-items: center;
            gap: 30px;
            max-width: 400px;
        }

        .rating-summary {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .rating-score {
            font-size: 66px;
            font-weight: 500;
            color: #131316;
            line-height: 1;
            margin: 0;
        }

        .rating-count {
            font-size: 12px;
            color: #131316;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 5px;
        }

        .rating-breakdown {
            display: flex;
            flex-direction: column;
            gap: 0;
            flex: 1;
        }

        .rating-row {
            display: flex;
            align-items: center;
            gap: 5px;
            height: 16px;
        }

        .star-number {
            font-size: 12px;
            color: #131316;
            width: 10px;
            text-align: right;
        }

        .star-icon {
            color: #ff8c00;
            font-size: 18px;
            width: 16px;
        }

        .progress-container {
            flex: 1;
            height: 8px;
            background-color: rgba(255, 178, 46, 0.2);
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background-color: #ff8c00;
            border-radius: 4px;
            transition: width 0.3s ease;
            box-shadow: rgba(113, 113, 122, 0.12) 0px 1px 2px 0px inset;
        }

        .progress-76 { width: 76%; }
        .progress-10 { width: 10%; }
        .progress-5 { width: 5%; }
        .progress-2 { width: 2%; }
        .progress-7 { width: 7%; }

        /* Review preview styles */
.review-preview {
    margin-top: 30px;
}

.review-item {
    margin-bottom: 20px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
    text-align: center;
}

.review-stars {
    color: #ff8c00;
    font-size: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgb(228, 228, 231);
    margin-top: -4px;
    padding-right: 5px;
    margin-right: 5px;
}

.review-title, .review-rating-count {
    font-weight: 600;
    font-size: 16px;
    color: #323130;
}

.review-text {
    font-size: 16px;
    color: #323130;
    line-height: 1.4;
    margin: 8px 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #605e5c;
    margin-top: 20px;
}

.review-actions {
    display: flex;
    gap: 10px;

}

.helpful-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #605e5c;
    padding: 2px 4px;
    align-items: center;
    display: flex;
    gap: 5px;
}

.read-more-reviews-btn {
    background: none;
    border: none;
    color: #0078d4;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 15px;
}

.read-more-reviews-btn:hover {
    text-decoration: underline;
}

/* Modal styles */
.reviews-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
}

.reviews-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1100px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    border-bottom: 1px solid rgb(228, 228, 231);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    color: #323130;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #605e5c;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #f3f2f1;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 180px);
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(228, 228, 231);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #323130;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

.add-review-btn {
    background: #0078d4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.add-review-btn:hover {
    background: #106ebe;
}

.reviews-list .review-item {
    padding: 20px 0;
    border-bottom: 1px solid rgb(240, 240, 240);
}

.reviews-list .review-item:last-child {
    border-bottom: none;
}

