/* photos.css - стили для страницы Идей фотосессий */

:root {
    --card-border-radius: 24px;
    --hero-gradient-start: #4158D0;
    --hero-gradient-mid: #C850C0;
    --hero-gradient-end: #FFCC70;
}

/* Hero Section - НОВЫЙ ЖИВОЙ ДИЗАЙН */
.photo-hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
}

/* Анимированный фон */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatSphere 20s ease-in-out infinite;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(65, 88, 208, 0.3), rgba(200, 80, 192, 0.3));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(200, 80, 192, 0.3), rgba(255, 204, 112, 0.3));
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 204, 112, 0.3), rgba(65, 88, 208, 0.3));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatSphere {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Парящие фото */
.floating-photos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-photo {
    position: absolute;
    width: 200px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    opacity: 0.3;
    animation: floatPhoto 15s ease-in-out infinite;
}

.float-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-1 {
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.photo-2 {
    top: 20%;
    right: 5%;
    transform: rotate(10deg);
    animation-delay: -3s;
}

.photo-3 {
    bottom: 15%;
    left: 10%;
    transform: rotate(5deg);
    animation-delay: -6s;
}

.photo-4 {
    bottom: 20%;
    right: 8%;
    transform: rotate(-10deg);
    animation-delay: -9s;
}

@keyframes floatPhoto {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(5deg) translateY(-20px);
    }
    50% {
        transform: rotate(-5deg) translateY(20px);
    }
    75% {
        transform: rotate(-10deg) translateY(-10px);
    }
}

.photo-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    color: var(--primary);
    font-size: 16px;
}

.hero-badge span {
    font-weight: 600;
    color: var(--text-primary);
}

.photo-hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-highlight {
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
    z-index: -1;
}

.photo-hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-buttons-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    opacity: 0.5;
    filter: blur(10px);
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        filter: blur(15px);
    }
}

.btn-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--success);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.hero-stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
}

.hero-stats-wrapper .stat-item {
    text-align: center;
}

.hero-stats-wrapper .stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.hero-stats-wrapper .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.hero-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Бесконечный слайдер */
.photo-showcase {
    padding: 40px 0 80px;
    background: var(--bg-primary);
    overflow: hidden;
}

.infinite-slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.infinite-slider {
    display: flex;
    animation: scroll 40s linear infinite;
}

.infinite-slider:hover {
    animation-play-state: paused;
}

.slider-track {
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

.slide-item {
    flex: 0 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.slide-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Trends Section - НОВЫЙ СТИЛЬНЫЙ ДИЗАЙН */
.photo-trends {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.trend-card {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.trend-card:hover {
    transform: translateY(-10px);
}

.trend-image {
    position: relative;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
}

.trend-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.trend-card:hover .trend-img {
    transform: scale(1.1);
}

.trend-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trend-card:hover .trend-overlay {
    opacity: 1;
}

.trend-stats {
    display: flex;
    gap: 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.trend-stats i {
    margin-right: 5px;
    color: var(--primary);
}

.trend-info {
    text-align: left;
}

.trend-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.trends-cta {
    text-align: center;
    margin-top: 50px;
}

/* Packages Section */
.photo-packages {
    padding: 80px 0;
    background: var(--bg-primary);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.package-card {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.package-card:hover {
    transform: translateY(-10px);
}

.package-image {
    position: relative;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
}

.package-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.package-card:hover .package-img {
    transform: scale(1.1);
}

.package-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover .package-overlay {
    opacity: 1;
}

.package-count {
    color: white;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.package-info {
    text-align: left;
}

.package-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Ideas Section */
.photo-ideas {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.ideas-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    aspect-ratio: 3/4;
}

.ideas-img-container {
    width: 100%;
    height: 100%;
}

.ideas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.ideas-card:hover .ideas-img {
    transform: scale(1.08);
}

.ideas-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.ideas-card:hover .ideas-overlay {
    transform: translateY(0);
}

.ideas-overlay p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: white;
}

.ideas-cta {
    text-align: center;
    margin-top: 50px;
}

/* How it works */
.how-it-works-photo {
    padding: 80px 0;
    background: var(--bg-primary);
}

.photo-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.photo-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.photo-step.reverse {
    direction: rtl;
}

.photo-step.reverse .step-content {
    direction: ltr;
}

.step-number {
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 120px;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.1);
    line-height: 1;
    z-index: 0;
}

.photo-step .step-content {
    position: relative;
    z-index: 1;
}

.photo-step .step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 24px;
}

.photo-step h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.photo-step p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-illustration img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Any Style Section */
.any-style {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.any-style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.style-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    aspect-ratio: 3/4;
}

.style-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Testimonials */
.photo-testimonials {
    padding: 80px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.photo-testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition-normal);
}

.photo-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.photo-testimonial-card .testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.photo-testimonial-card .testimonial-header i {
    color: var(--primary);
    font-size: 24px;
    opacity: 0.5;
}

.photo-testimonial-card h4 {
    margin: 0;
    font-size: 18px;
}

.photo-testimonial-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* More Features */
.more-features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.more-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.more-feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    transition: all var(--transition-normal);
    text-align: center;
}

.more-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.more-feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 24px;
}

.more-feature-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.more-feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 13px;
}

/* Photo FAQ */
.photo-faq {
    padding: 80px 0;
    background: var(--bg-primary);
}

.photo-faq .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.photo-faq .faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.photo-faq .faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.photo-faq .faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.photo-faq .faq-question:hover {
    background: var(--bg-tertiary);
}

.photo-faq .faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.photo-faq .faq-question i {
    color: var(--primary);
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.photo-faq .faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.photo-faq .faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
}

.photo-faq .faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

.photo-faq .faq-answer p {
    margin: 20px 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-more {
    text-align: center;
    margin-top: 40px;
}

/* Photo CTA */
.photo-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.photo-cta .cta-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

.photo-cta .cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1200px) {
    .trends-grid,
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ideas-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .more-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .photo-hero-title {
        font-size: 48px;
    }

    .trends-grid,
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ideas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .any-style-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-step,
    .photo-step.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .hero-stats-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .photo-hero-title {
        font-size: 36px;
    }

    .trends-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .ideas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .any-style-grid {
        grid-template-columns: 1fr;
    }

    .more-features-grid {
        grid-template-columns: 1fr;
    }

    .photo-step h3 {
        font-size: 20px;
    }

    .hero-stats-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .glass-card {
        width: 100%;
        max-width: 300px;
    }

    .floating-photos {
        display: none;
    }
}

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