* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #1e2a32;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    display: block;
}

nav a {
    text-decoration: none;
    margin-left: 30px;
    color: #1e2a32;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #2d6a4f;
}

.phone-header a {
    font-weight: 600;
    color: #1e2a32;
    text-decoration: none;
    font-size: 1.1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.mobile-menu a {
    padding: 10px 0;
    text-decoration: none;
    color: #1e2a32;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/portfolio/garden/project1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.hero h1 span {
    color: #a7c957;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    background: #2d6a4f;
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #1b4d3b;
}

.services {
    padding: 80px 0;
    background: #f8f9fa;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1e2a32;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #2d6a4f;
}

.service-detail {
    padding: 70px 0;
    background: white;
}

.service-detail.alt {
    background: #f8f9fa;
}

.service-detail-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.service-detail-wrapper.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon {
    font-size: 4rem;
    min-width: 100px;
    text-align: center;
}

.service-detail-content h2 {
    text-align: left;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.service-detail-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #2c3e4e;
}

.service-list {
    margin: 20px 0;
    padding-left: 20px;
}

.service-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-list li strong {
    color: #2d6a4f;
}

.btn.small-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
}

.advantages {
    padding: 70px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-item h3 {
    margin-bottom: 10px;
    color: #2d6a4f;
}

.portfolio {
    padding: 70px 0;
    background: #f8f9fa;
}

.portfolio-subtitle {
    text-align: center;
    color: #5a6e7a;
    margin-bottom: 30px;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 1px solid #2d6a4f;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    color: #1e2a32;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2d6a4f;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.contacts {
    padding: 80px 0;
    background: #fff;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details div {
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.contact-details span:first-child {
    font-weight: 600;
    color: #2d6a4f;
    min-width: 140px;
    display: inline-block;
}

.contact-details a {
    color: #1e2a32;
    text-decoration: none;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-note {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 10px;
}

footer {
    background: #1e2a32;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 8px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-content input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.service-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.service-card-link:hover .service-card {
    transform: translateY(-5px);
}

.service-card-link .service-card {
    transition: transform 0.2s;
    height: 100%;
}

/* ===== ЛАЙТБОКС ДЛЯ ФОТО ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    animation: lightboxFade 0.3s ease;
}

@keyframes lightboxFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 300;
    line-height: 1;
}

.lightbox-close:hover {
    color: #a7c957;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    nav, .phone-header {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu.active {
        display: flex;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero {
        padding: 80px 20px;
    }
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    h2 {
        font-size: 1.8rem;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .service-detail-wrapper,
    .service-detail-wrapper.reverse {
        flex-direction: column;
        gap: 20px;
    }
    .service-detail-icon {
        font-size: 3rem;
        text-align: center;
    }
    .service-detail-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    .contact-details span:first-child {
        min-width: 120px;
        font-size: 0.9rem;
    }
    .lightbox {
        padding: 15px;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }
}