/* project-detail.css — стили детальной страницы проекта */

.project-hero-detail {
    padding: 6rem 0 4rem;
    text-align: left;
}

.project-hero__back {
    margin-bottom: 2rem;
}

.project-hero__main {
    max-width: 780px;
    margin: 0 auto 0 0;
    text-align: left;
}

.project-hero-detail h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 1.3rem;
}

.project-lead {
    font-size: clamp(1.18rem, 2.4vw, 1.45rem);
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 720px;
}

.badge--primary {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(126, 162, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}

.project-content {
    padding: 2rem 0 6rem;
}

.project-section {
    margin-bottom: 5rem;
}

.project-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 820px;
}

/* Галерея */
.gallery-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background: var(--card-bg);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--card-bg);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.25s;
}

.gallery-arrow.prev { left: 20px; }
.gallery-arrow.next { right: 20px; }

.gallery-arrow:hover {
    background: var(--primary);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 1.4rem 0;
    background: var(--card-bg);
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-soft);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

.single-preview-image img {
    width: 100%;
    max-height: 820px;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

.features-list {
    list-style: none;
    padding: 0;
    font-size: 1.07rem;
    line-height: 1.9;
}

.features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.features-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0.3rem;
    font-size: 1.8rem;
    line-height: 1;
}

/* Адаптив */
@media (max-width: 960px) {
    .project-hero-detail { padding: 5rem 0 3rem; }
    .project-section     { margin-bottom: 4rem; }
}

@media (max-width: 640px) {
    .project-hero-detail h1 { font-size: 2.7rem; }
    .project-lead           { font-size: 1.12rem; }
    .gallery-arrow          { width: 44px; height: 44px; font-size: 1.4rem; }
}