@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1024px;
    margin-bottom: 20px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: black;
    font-size: 20px;
}

.logo img {
    height: 60px;
}

.logo-text {
    font-size: 30px;
    font-weight: bold;
    color: black;
    transition: color 0.3s;
}



nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Header Phone */
.header-phone {
    margin-left: auto;
    letter-spacing: 1.5px;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.phone-number:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    /* margin-bottom: 30px; */
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
}

.edit-project-link {
    background: #28a745;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.edit-project-link:hover {
    background: #218838 !important;
    text-decoration: none !important;
}

/* Hero Section */
.hero {
    /* padding: 20px 0; */
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blocks */
.block {
    padding: 20px 0;

    border-top: 1px solid #ddd;

}


.block h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    /* margin-bottom: 20px; */
}

.block-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.block-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Clients Section */
.clients-image {
    text-align: center;
    margin-top: 20px;
}

.clients-logo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.clients-logo:hover {
    transform: scale(1.02);
}

/* Latest Projects */
.latest-projects {
    margin-top: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.view-all-projects {
    text-align: center;
    margin-top: 30px;
}

.project-preview {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.project-preview .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,1));
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s;
}

.project-preview .admin-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-preview:hover .admin-controls {
    opacity: 1;
}

.edit-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.edit-btn:hover {
    background: rgba(40, 167, 69, 1);
    color: white;
    text-decoration: none;
}

/* Contact Button */
.contact-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #0056b3;
}

/* Call Button */
.call-button-wrapper {
    margin-top: 30px;
    text-align: center;
}

.call-button {
    background: #28a745;
    font-size: 1.1rem;
    padding: 18px 35px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.call-button:hover {
    background: #218838;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

/* Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 10px;
    transform: translateY(0);
    transition: transform 0.3s;
}



.portfolio-item h3 {
    font-weight: 600;
    margin: 0;
}

/* Project Detail Page */
.project-detail {
    margin-bottom: 20px;
}

.project-detail h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 3.5rem;
}

.project-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
}

.project-images {
    display: grid;
    gap: 30px;
}

.project-image {
    text-align: center;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-photo {
    width: 100%;
    max-width: 768px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image p {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* Fixed Call-to-Action Banner */
.fixed-cta-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #3a3a3a 0%, #000000 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideUp 0.5s ease-out;
}

.cta-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.fixed-cta-banner .contact-button {
    background: #28a745;
    margin: 0;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.fixed-cta-banner .contact-button:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add bottom padding to body when banner is visible to prevent content overlap */
body.with-fixed-banner {
    padding-bottom: 80px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .fixed-cta-banner .contact-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    body.with-fixed-banner {
        padding-bottom: 90px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .header-phone {
        margin-left: 0;
    }
    
    .phone-number {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    /* На главной странице используем горизонтальный скроллинг */
    .home .projects-grid {
        grid-template-columns: 1fr;
        overflow-x: auto;
        display: flex;
        gap: 15px;
        padding-bottom: 10px;
    }
    
    .home .project-preview {
        min-width: 250px;
        flex-shrink: 0;
        height: 300px;
    }
    
    /* На странице портфолио используем обычную сетку */
    .portfolio .projects-grid {
        grid-template-columns: 1fr;
        display: grid;
        gap: 20px;
    }
    
    .portfolio .project-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .block h2 {
        font-size: 2rem;
    }
    
    .project-detail h1 {
        font-size: 2rem;
    }
    
    .project-photo {
        max-width: 100%;
        width: 100%;
    }
    
    .project-images {
        gap: 20px;
    }
    
    .clients-logo {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-phone {
        margin-left: 0;
    }
    
    .phone-number {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .block {
        padding: 20px 0;
    }
    
    .project-photo {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .project-detail {
        padding: 20px 0;
    }
    
    .project-description {
        margin-bottom: 30px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .project-photo {
        max-width: 600px;
    }
}
