/* Общие стили для страницы проекта */
.breadcrumbs-section {
    padding: 20px 0;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #6c757d;
}

.breadcrumbs a {
    color: #2c7be5;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #1a5cb0;
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: #495057;
    font-weight: 500;
}

/* Заголовок проекта */
.project-header-section {
    padding: 40px 0;
    background-color: #fff;
}

.project-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #555;
}

.meta-item i {
    margin-right: 8px;
    color: #2c7be5;
    font-size: 1.2rem;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f1f3f5;
    color: #495057;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Галерея проекта */
.project-gallery-section {
    padding: 0 0 40px;
}

.gallery-main {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.thumbnail {
    flex: 0 0 100px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: #2c7be5;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Описание проекта */
.project-description-section {
    padding: 60px 0;
    background-color: #fff;
}

.project-description {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.description-content {
    flex: 1;
    min-width: 0;
}

.description-sidebar {
    flex: 0 0 350px;
}

.description-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.description-content h2 i {
    margin-right: 15px;
    color: #2c7be5;
}

.description-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
}

.description-content h3 i {
    margin-right: 12px;
    color: #2c7be5;
    font-size: 1.1rem;
}

.description-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.styled-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.styled-list i {
    color: #28a745;
    margin-right: 12px;
    margin-top: 3px;
}

/* Боковая панель */
.sidebar-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.sidebar-card h3 i {
    margin-right: 12px;
    color: #2c7be5;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item i {
    font-size: 1.2rem;
    color: #2c7be5;
    width: 30px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

.detail-value {
    display: block;
    font-weight: 500;
    color: #333;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Секция "До и после" */
.before-after-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header i {
    margin-right: 15px;
    color: #2c7be5;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.before-after-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.before-after-item {
    margin-bottom: 40px;
}

.before-after-container {
    display: flex;
    position: relative;
    height: 500px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.before, .after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}

.before {
    left: 0;
}

.after {
    right: 0;
}

.before img, .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label {
    position: absolute;
    top: 20px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.before .label {
    left: 20px;
}

.after .label {
    right: 20px;
}

.before-after-caption {
    text-align: center;
    color: #555;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Планировки */
.plans-section {
    padding: 80px 0;
    background-color: #fff;
}

.plans-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.plan-item {
    flex: 1;
    min-width: 300px;
}

.plan-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.plan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.plan-caption {
    text-align: center;
}

.plan-caption h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.plan-caption p {
    color: #666;
    line-height: 1.6;
}

/* Использованные материалы */
.materials-section {
    padding: 80px 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.material-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
}

.material-icon {
    font-size: 1.5rem;
    color: #2c7be5;
    flex: 0 0 40px;
    height: 40px;
    background-color: #e9f0fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.material-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-content li {
    padding: 5px 0;
    color: #555;
    font-size: 0.95rem;
}

/* Отзыв клиента */
.testimonial-section {
    padding: 80px 0;
    background-color: #fff;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    gap: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-author {
    flex: 0 0 120px;
    text-align: center;
}

.testimonial-author img {
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    color: #555;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    padding-left: 30px;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: #e9ecef;
    position: absolute;
    left: -15px;
    top: -20px;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Похожие проекты */
.related-projects-section {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolio-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img-container img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    padding: 20px;
    color: white;
    text-align: center;
}

.overlay-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.portfolio-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.portfolio-meta i {
    margin-right: 5px;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* Форма заявки */
.estimate-form-section {
    padding: 80px 0;
    background-color: #fff;
}

.estimate-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.form-group i {
    margin-right: 8px;
    color: #2c7be5;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2c7be5;
    outline: none;
}

.form-group textarea {
    min-height: 100px;
}

.full-width {
    flex: 0 0 100%;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-footer i {
    margin-right: 8px;
    color: #28a745;
}

/* Адаптивность */
@media (max-width: 992px) {
    .project-description {
        flex-direction: column;
    }
    
    .description-sidebar {
        flex: 1;
    }
    
    .plans-container {
        flex-direction: column;
    }
    
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author {
        margin-bottom: 25px;
    }
    
    .testimonial-content p {
        padding-left: 0;
    }
    
    .testimonial-content p::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2rem;
    }
    
    .before-after-container {
        height: 400px;
    }
    
    .estimate-form {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .project-header h1 {
        font-size: 1.8rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .before-after-container {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
}