/* Основные стили для страницы портфолио */
.portfolio-hero {
    padding: 120px 0;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.portfolio-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.portfolio-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-icon {
    margin-right: 15px;
}

/* Секция фильтра */
.portfolio-filter-section {
    padding: 40px 0 20px;
    background-color: #f8f9fa;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-header {
    margin-bottom: 20px;
    text-align: center;
}

.filter-header h3 {
    font-size: 1.5rem;
    color: #333;
    display: inline-flex;
    align-items: center;
}

.filter-header i {
    margin-right: 10px;
    color: #2c7be5;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.filter-btn i {
    margin-right: 8px;
}

.filter-btn:hover {
    background-color: #dee2e6;
    color: #212529;
}

.filter-btn.active {
    background-color: #2c7be5;
    color: white;
}

/* Основная секция портфолио */
.portfolio-section {
    padding: 60px 0;
}

.portfolio-category {
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.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;
}

/* Сетка портфолио */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block;
    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 {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.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;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: #2c7be5;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #1a5cb0;
    color: white;
}

.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;
}

.tag {
    background-color: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Кнопки */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background-color: #2c7be5;
    color: white;
}

.btn-primary:hover {
    background-color: #1a5cb0;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

.btn i {
    margin-right: 8px;
}

/* CTA секция */
.cta-section {
    padding: 80px 0;
    background-color: #2c7be5;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-call {
    background-color: #28a745;
    color: white;
}

.btn-call:hover {
    background-color: #218838;
    color: white;
}

/* Форма оценки */
.estimate-form-section {
    padding: 80px 0;
}

.gray-bg {
    background-color: #f8f9fa;
}

.estimate-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    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) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 80px 0;
    }
    
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .portfolio-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-img-container {
        height: 200px;
    }
}