/* Стили для страниц кейсов */

/* Основные стили для страницы кейса */
.case-page {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
}

/* Секция Top */
.case-page .top {
    padding: 80px 0 0;
}

.case-page .top__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.case-page .top__content {
    width: 100%;
}

.case-page .top__title,
.case-page .title,
.case-page .top-title-case {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-page .top__text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.case-page .together {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Статистика кейса */
.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
}


/* Секция обзора проекта */
.case-overview {
    padding: 100px 0 0 0;
}

.case-overview__title,
.case-overview .title_h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.case-overview__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.case-overview__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.case-overview__tasks {
    margin-top: 25px;
}

.case-overview__tasks h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 15px;
}

.tasks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.task-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.task-text {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.case-overview__image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Секция решения */
.case-solution {
    padding: 100px 0 0 0;
}

.case-solution__title,
.case-solution .title_h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.case-solution__list {
    max-width: 800px;
    margin: 0 auto;
}

.solution-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.solution-list-item:last-child {
    border-bottom: none;
}

.solution-list-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 25px 15px;
    margin: 0 -15px;
}

.solution-list-item__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-list-item__icon img {
    width: 24px;
    height: 24px;
}

.solution-list-item__content {
    flex: 1;
}

.solution-list-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.solution-list-item p {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Секция галереи */
.case-gallery {
    padding: 100px 0 0 0;
}

.case-gallery__title,
.case-gallery .title_h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.case-gallery__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.case-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.case-gallery__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.case-gallery__arrow--left {
    left: -25px;
}

.case-gallery__arrow--right {
    right: -25px;
}

.case-gallery__grid {
    display: flex;
    gap: 20px;
    height: 500px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.case-gallery__grid::-webkit-scrollbar {
    height: 6px;
}

.case-gallery__grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.case-gallery__grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.case-gallery__grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 400px;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item--large {
    flex: 0 0 500px;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
    padding: 15px;
    color: white;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item__overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.gallery-item__overlay p {
    font-size: 0.8rem;
    color: #f0f0f0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Секция результатов */
.case-results {
    padding: 100px 0 0 0;
}

.case-results__title,
.case-results .title_h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.case-results__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.result-stat {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
}

.result-stat__label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.result-stat p {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.5;
}

.results-testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.results-testimonial blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #4CAF50;
    position: absolute;
    top: -30px;
    left: -30px;
    font-family: serif;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4CAF50;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.author-position {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Секция технологий */
.case-technologies {
    padding: 100px 0 0 0;
}

.case-technologies__title,
.case-technologies .title_h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.technologies-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.technology-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.technology-list-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.technology-list-item__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.technology-list-item__icon img {
    width: 32px;
    height: 32px;
}

.technology-list-item__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.technology-list-item__content p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Секция других кейсов */
.case-other-cases {
    padding: 100px 0 0 0;
}

.case-other-cases__title,
.case-other-cases .title_h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.other-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.other-case-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.other-case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.other-case-item__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.other-case-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.other-case-item:hover .other-case-item__image img {
    transform: scale(1.05);
}

.other-case-item__content {
    padding: 25px;
}

.other-case-item__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.other-case-item__content p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.other-case-item__category {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.other-cases-cta {
    text-align: center;
    margin-bottom: 60px;
}

.other-cases-cta .btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
}

.other-cases-cta .btn:hover {
    background: transparent;
    color: #4CAF50;
    border-color: #4CAF50;
    transform: translateY(-2px);
}


/* Адаптивность */
@media (max-width: 768px) {
    .case-page .top__title {
        font-size: 2rem;
    }
    
    .case-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-overview__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-results__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .case-gallery__wrapper {
        gap: 10px;
    }
    
    .case-gallery__grid {
        height: 350px;
        gap: 15px;
    }
    
    .gallery-item {
        flex: 0 0 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-item--large {
        flex: 0 0 350px;
    }
    
    .case-gallery__arrow {
        width: 40px;
        height: 40px;
    }
    
    .case-gallery__arrow--left {
        left: -20px;
    }
    
    .case-gallery__arrow--right {
        right: -20px;
    }
    
    .gallery-item__overlay {
        height: 50px;
        padding: 10px;
    }
    
    .case-overview__title,
    .case-solution__title,
    .case-gallery__title,
    .case-results__title,
    .case-technologies__title,
    .case-other-cases__title {
        font-size: 1.8rem;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .gallery-item__overlay h3 {
        font-size: 0.9rem;
    }
    
    .gallery-item__overlay p {
        font-size: 0.75rem;
    }
    
    .solution-list-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .solution-list-item__icon {
        margin: 0 auto;
    }
    
    .technologies-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .technology-list-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .technology-list-item__icon {
        margin: 0 auto;
    }
    
    .other-cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .other-cases-cta {
        margin-bottom: 40px;
    }
    
    .tasks-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .case-page .top {
        padding: 80px 0 0;
    }
    
    .case-page .top__title,
    .case-page .top-title-case {
        font-size: 1.5rem;
        margin-top: 60px !important;
    }
    
    .case-page .top__text {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .case-stats {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .case-overview__title,
    .case-solution__title,
    .case-gallery__title,
    .case-results__title,
    .case-technologies__title,
    .case-other-cases__title {
        font-size: 1.6rem !important;
        margin: 0 !important;
    }
    
    .title_h2 {
        font-size: 1.6rem !important;
        margin: 0 !important;
    }
    
    .case-overview,
    .case-solution,
    .case-gallery,
    .case-results,
    .case-technologies,
    .case-other-cases {
        padding: 40px 0 0 0 !important;
    }
    
    .other-case-item__content {
        padding: 20px;
    }
    
    .other-case-item__content h3 {
        font-size: 1.1rem;
    }
    
    .other-cases-cta {
        margin-bottom: 30px;
    }
    
    .case-gallery__wrapper {
        gap: 5px;
    }
    
    .case-gallery__grid {
        height: 250px;
        gap: 10px;
        padding: 0 5px;
    }
    
    .gallery-item {
        flex: 0 0 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-item--large {
        flex: 0 0 250px;
    }
    
    .case-gallery__arrow {
        width: 35px;
        height: 35px;
        display: none; /* Скрываем стрелки на мобильных */
    }
    
    .gallery-item__overlay {
        height: 45px;
        padding: 8px;
    }
    
    .gallery-item__overlay h3 {
        font-size: 0.85rem;
    }
    
    .gallery-item__overlay p {
        font-size: 0.7rem;
    }
    
    .technology-list-item__content h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .technology-list-item__content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .case-overview__title,
    .case-solution__title,
    .case-gallery__title,
    .case-results__title,
    .case-technologies__title,
    .case-other-cases__title {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }
    
    .title_h2 {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }
    
    .case-overview,
    .case-solution,
    .case-gallery,
    .case-results,
    .case-technologies,
    .case-other-cases {
        padding: 30px 0 0 0 !important;
    }
}
