/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    padding: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
    padding-left: 25px;
}

.breadcrumbs a {
    color: #dcc2aa;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #201f1e;
}

.breadcrumbs span {
    color: #666;
    margin: 0 10px;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 600;
}

/* ===== ГЕРОЙ ПРОЕКТА ===== */
.project-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    cursor: pointer;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-hero:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
    padding: 60px 50px 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
}

/* ===== СТАТИСТИКА ПРОЕКТА ===== */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 50px 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== ОПИСАНИЕ ПРОЕКТА ===== */
.project-description {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #303030;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    border-radius: 2px;
}

.description-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin-bottom: 20px;
}

/* ===== СРАВНЕНИЕ ДО/ПОСЛЕ ===== */
.comparison-section {
    margin: 80px 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-header .section-title {
    text-align: center;
}

.comparison-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.comparison-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: #f8f9fa;
    max-width: 1200px;
    margin: 0 auto;
}

.before-image, .after-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    background: #f8f9fa;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

@media (min-aspect-ratio: 4/3) {
    .before-image, .after-image {
        width: 100%;
        height: auto;
    }
}

@media (max-aspect-ratio: 3/4) {
    .before-image, .after-image {
        width: auto;
        height: 100%;
    }
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    cursor: grab;
    z-index: 11;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.slider-handle:active {
    cursor: grabbing;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.label-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.label-before, .label-after {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    margin-right: 12px;
}

.label-before {
    background: #6c757d;
}

.label-after {
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
}

@media (min-height: 800px) {
    .comparison-container { height: 700px; }
}
@media (max-height: 700px) {
    .comparison-container { height: 500px; }
}
@media (max-width: 768px) {
    .comparison-container { height: 400px; max-width: 95%; }
    .slider-handle { width: 50px; height: 50px; font-size: 1.1rem; }
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-section {
    margin: 80px 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

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

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

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}

.gallery-item:hover .gallery-label {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ОТЗЫВ КЛИЕНТА ===== */
.testimonial-section {
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    color: white;
    padding: 70px 40px;
    border-radius: 20px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.testimonial-section::before {
    content: '"';
    position: absolute;
    top: 30px;
    left: 50px;
    font-size: 15rem;
    font-family: Georgia, serif;
    color: rgba(255,255,255,0.1);
    line-height: 1;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

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

.testimonial-quote {
    font-size: 1.4rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-author {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== ПОХОЖИЕ ПРОЕКТЫ ===== */
.related-section {
    margin: 80px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 220px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.related-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-meta i {
    color: #dcc2aa;
}

/* ===== КНОПКА НАЗАД ===== */
.back-button-container {
    text-align: center;
    margin: 60px 0 0 0;
    padding-bottom: 40px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: linear-gradient(135deg, #dcc2aa 0%, #201f1e 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.btn-back:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1002;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #dcc2aa;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    z-index: 1001;
}

.modal-nav:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-counter {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 1001;
}

.modal-caption {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.1rem;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1001;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .project-hero { height: 400px; }
    .hero-title { font-size: 2.5rem; }
    .hero-overlay { padding: 40px 30px 30px; }
    .modal-nav { width: 50px; height: 50px; font-size: 20px; }
    .modal-prev { left: 15px; }
    .modal-next { right: 15px; }
}

@media (max-width: 768px) {
    .project-hero { height: 350px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1.1rem; }
    .project-stats { grid-template-columns: repeat(2, 1fr); padding: 30px; gap: 20px; }
    .gallery-grid, .related-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .project-description { padding: 30px; }
    .testimonial-section { padding: 50px 25px; }
}

@media (max-width: 576px) {
    .project-hero { height: 300px; }
    .hero-title { font-size: 1.8rem; }
    .project-stats { grid-template-columns: 1fr; }
    .gallery-grid, .related-grid { grid-template-columns: 1fr; }
    .testimonial-section { padding: 40px 20px; }
    .testimonial-quote { font-size: 1.2rem; }
    .modal-nav { width: 40px; height: 40px; font-size: 18px; }
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}
