/* === ПОДСТРАНИЦА === */
.subpage-main {
    padding-top: 70px;
}

/* === ЗАГЛАВНА СЕКЦИЯ === */
.page-hero {
    background: var(--light);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--orange);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--gray);
    font-size: 1.05rem;
}

.page-desc {
    margin-top: 16px;
    max-width: 620px;
    line-height: 1.75;
}

.page-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-list li {
    color: var(--dark);
    font-size: 0.97rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

/* === ГАЛЕРИЯ === */
.gallery-section {
    padding: 60px 0 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--light);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 1.8rem;
}

/* Празна галерия */
.gallery-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--gray);
}

.gallery-empty i {
    font-size: 3rem;
    color: var(--orange);
    opacity: 0.4;
    margin-bottom: 16px;
    display: block;
}

.gallery-empty p {
    font-size: 0.95rem;
    font-style: italic;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* === CTA СЕКЦИЯ === */
.page-cta {
    background: var(--dark);
    padding: 30px 0;
    text-align: center;
}

.page-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.page-cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 32px;
}

.page-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.page-cta-phone-icon {
    width: 60px;
    height: 60px;
    background: rgba(224, 123, 42, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-cta-phone-icon i {
    font-size: 1.4rem;
    color: var(--orange);
}

.page-cta-phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange);
    transition: color var(--transition);
}

.page-cta-phone:hover .page-cta-phone-number {
    color: var(--orange-dark);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .page-hero {
        padding: 40px 0 36px;
    }
}

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