/* Button hover effect styles */
.btn,
.btn-more,
.btn--primary,
.btn--secondary,
button[type="submit"],
input[type="button"],
input[type="submit"] {
    background-color: #7C877F;
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Create a pseudo-element for the fill effect */
.btn::before,
.btn-more::before,
.btn--primary::before,
.btn--secondary::before,
button[type="submit"]::before,
input[type="button"]::before,
input[type="submit"]::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    background-color: #000;
    z-index: -1;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Hover effect to expand the black fill from bottom left */
.btn:hover::before,
.btn-more:hover::before,
.btn--primary:hover::before,
.btn--secondary:hover::before,
button[type="submit"]:hover::before,
input[type="button"]:hover::before,
input[type="submit"]:hover::before {
    width: 100%;
    height: 100%;
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: transparent; /* Keep transparent background */
    color: #fff;
}

.btn--secondary::before {
    z-index: -1;
    opacity: 0.8; /* Make it slightly transparent for secondary buttons */
}

.btn-more {
    background: #7C877F;
    color: #fff;
}

.btn-more:hover {
    background: #7C877F; /* Keep the background the same */
    color: #fff;
}

/* Add specific styles for any button variations if needed */

/* For social buttons and non-rectangular buttons */
.social-link::before,
.hero-slider__dot::before,
.phone-icon::before {
    border-radius: inherit; /* Maintain rounded corners if present */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slider__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4));
}

.hero-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider__content {
    position: relative;
    z-index: 2;
    width: min(90vw, 75rem);
    margin: 25vh auto 0;
    padding: 0 clamp(1.25rem, 2vw, 2rem);
    padding-right: min(40%, 50vh);
    color: #fff;
}

.hero-slider__label {
    display: inline-block;
    font-size: clamp(0.875rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    color: white;
}


.hero-slider__title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: clamp(1rem, 2vh, 1.25rem);
}

.hero-slider__description {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
    opacity: 0.9;
    max-width: 60ch;
}

.hero-slider__buttons {
    display: flex;
    gap: clamp(1rem, 2vw, 1.25rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.75rem, 1.5vh, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 0.25rem;
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    color: #fff;
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-slider__nav {
    position: absolute;
    bottom: max(2rem, 4vh);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: clamp(0.5rem, 1vw, 0.625rem);
    width: min(90vw, 75rem);
    padding: 0 clamp(1.25rem, 2vw, 2rem);
}

.hero-slider__dot {
    width: clamp(0.5rem, 0.8vw, 0.625rem);
    height: clamp(0.5rem, 0.8vw, 0.625rem);
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-slider__dot.active {
    background: #fff;
}

/* Адаптивная верстка для мобильных устройств */
@media (max-width: 48em) { /* 768px */
    .hero-slider__content {
        padding-right: clamp(1.25rem, 2vw, 2rem);
    }

    .hero-slider__buttons {
        flex-direction: column;
    }
}

/* About Section Styles */
.about-section {
    padding: 120px 0;
    background-color: #fff;
    background-image: url('/wp-content/uploads/2025/03/section-bg-shape.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-header {
    margin-bottom: 20px;
}

.about-label {
    color: #7C877F;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.about-title {
    font-size: 43px;
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

.title-secondary {
    color: #7C877F;
    font-weight: 400;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; /* Меняем с start на center */
    gap: 60px;
}

.content-left {
    position: relative;
    width: 100%;
}

.about-image.modern {
    position: relative;
    margin-left: 35%; /* Выравнивание по правому краю */
    margin-top: -10%; /* Отрицательный отступ для перекрытия */
    z-index: 1; /* Чтобы изображение было поверх первого */
}

/* Обновим также стили для historic изображения */
.about-image.historic {
    filter: grayscale(100%);
    position: relative;
    z-index: 0; /* Чтобы было под modern изображением */
}

.image-container {
    position: relative;
    margin-bottom: 24px;
}

.about-image {
    width: 70%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.about-image.historic {
    filter: grayscale(100%);
}

.experience-badge {
    position: absolute;
    bottom: 40%;
    right: 52%;
    width: 140px;
    height: 140px;
    background: #7C877F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.badge-content {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-number {
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
}

.badge-text {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.2;
    text-align: center;
}

.content-right {
    padding-top: 20px;
}

.about-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #333;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7C877F;
}

.cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.btn-more {
    display: inline-block;
    padding: 15px 25px;
    background: #7C877F;
    color: #fff;

    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.help-contact {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.help-contact:hover .phone-circle,
.help-contact-link:hover .phone-circle {
    background-color: #000000;
}

.help-contact:hover .phone-circle svg,
.help-contact-link:hover .phone-circle svg {
    stroke: #FFFFFF;
}

.help-contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 20px;
    transition: transform 0.3s ease;
}

.help-contact span {
    font-size: 14px;
    color: #666;
}

.help-contact a {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-title {
        font-size: 36px;
    }
    .experience-badge {
        right: -20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }

    .about-header {
        margin-bottom: 20px;
    }

    .experience-badge {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: 20px;
    }

    .badge-number {
        font-size: 32px;
    }

    .cta-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* CSS for the arrow before "O nás" */
.heading-with-arrow {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.arrow-line {
    position: relative;
    width: 40px;
    height: 2px;
    background-color: #7C877F;
    margin-right: 15px;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #7C877F;
}

/* Updated Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.feature-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.check-icon {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: #7C877F;
    border-radius: 50%;
}

.check-icon svg {
    width: 15px;
    height: 15px;
    color: white;
}

.sectionx2 {
    display: flex;
    margin: 40px 0;
    gap: 20px;
}

.left-section, .right-section {
    width: 50%;
}

.left-section {
    position: relative;
}

.right-section {
    display: flex;
    align-items: center; /* Vertical centering */
}

/* Vertical line between sections */
.left-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(124, 135, 127, 0.3); /* Using the site's green color with opacity */
}

/* Style for help contact to ensure vertical alignment */

.phone-circle {
    width: 40px;
    height: 40px;
    background-color: #7C877F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.phone-circle svg {
    width: 18px;
    height: 18px;
}

.help-contact-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.help-contact-text span {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.help-contact-text a {
    font-size: 18px;
    color: #6666668a;
    text-decoration: none;
    font-weight: 400;
}

.dots-pattern {
    position: absolute;
    bottom: 80px;
    left: 20px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(#E4E4E4 5px, transparent 2px);
    background-size: 25px 25px;
    transform: rotate(45deg);
    z-index: 5;
}

/* Why Choose Us Section Styles */

.why-choose-section{
    background: #f8f8f8;
}
.why-choose {
    padding: 80px 0 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}


.why-choose-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Вертикальное выравнивание содержимого по центру */
    align-self: center; /* Выравнивание самого контейнера по центру */
    height: 100%; /* Занимает полную высоту родителя */
}

.intro-arrow {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.intro-arrow svg {
    margin-right: 8px;
    stroke: #666;
}

.section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
    color: #222;
    margin: 0 0 30px;
}

.section-heading .subtitle {
    color: #7C877F;
    font-weight: 400;
}

.section-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-top: 0;
}

.features-section {
    padding: 10px 0;
    margin-bottom: 60px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.feature-icon svg {
    transition: fill 0.3s ease;
}

.feature-icon svg path {
    transition: fill 0.3s ease;
}

.feature-item:hover .feature-icon {
    background-color: #000000;
}

.feature-item:hover .feature-icon svg path {
    fill: #FFFFFF;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #222;
}

.feature-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    margin: 0;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 50%;
    gap: 5px;
    height: 100%;
    padding-bottom: 5%;
}

.gallery-grid .gallery-item {
    padding: 2px;
    box-sizing: border-box;
    height: 300px;
}

.gallery-grid .gallery-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(2) {
    margin-bottom: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-heading h2 {
        font-size: 36px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .gallery-grid .gallery-item {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .why-choose-section {
        padding: 60px 0 30px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .feature-item {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .feature-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .gallery-grid {
        flex-direction: column;
    }

    .gallery-grid .gallery-item {
        width: 100% !important;
        height: 200px;
        margin: 10px 0;
    }
}

/* Services Section Styles */
.services-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading2 {
    margin-bottom: 20px;
    width: 60%;
}

.section-content {
    margin-bottom: 20px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.service-item {
    position: relative;
    width: calc(33.333% - 14px);
    height: 550px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arrow-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: rgba(124, 135, 127, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-item:hover .arrow-icon {
    transform: rotate(90deg);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 1;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.service-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 10px;
}

.service-description {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.services-button {
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 15px 30px;
    background-color: #7C877F;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-more::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    background-color: #000;
    z-index: -1;
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-more:hover::before {
    width: 100%;
    height: 100%;
}

.section-description{
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .service-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .service-item {
        width: 100%;
        height: 400px;
    }
}

 .work-process-section {
     background-color: #1C2023;
     color: #fff;
     padding: 100px 0;
     overflow: hidden;
 }

.work-process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.work-process-header {
    margin-bottom: 60px;
}

.work-process-title-wrapper {
    max-width: 700px;
}

.work-process-title {
    font-size: 43px;
    line-height: 1.2;
    font-weight: 500;
    margin: 20px 0 0;
    color: #fff;
}

.title-secondary {
    display: block;
    color: #7C877F;
    font-weight: 400;
}

.work-process-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 100px;
}

.work-process-left {
    flex: 1;
    min-width: 300px;
}

.work-process-right {
    flex: 0 0 300px;
    display: flex;
    align-items: flex-start;
}

.work-process-text {
    padding: 20px;
    background-color: transparent;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

.work-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-number {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px;
    color: #fff;
}

.process-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 30px;
}

.partner-logo {
    max-width: 150px;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .work-process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-process-content {
        flex-direction: column;
    }

    .work-process-right {
        flex: 1;
    }

    .partners-logos {
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .work-process-section {
        padding: 60px 0;
    }

    .work-process-title {
        font-size: 32px;
    }

    .process-step {
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
    }

    .process-step-icon {
        width: 60px;
        height: 60px;
    }

    .process-step-icon svg {
        width: 60px;
        height: 60px;
    }
}

.work-process-section {
    background-color: #1C2023;
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
}

.work-process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.work-process-header {
    margin-bottom: 60px;
}

.work-process-title-wrapper {
    max-width: 700px;
}

.work-process-title {
    font-size: 43px;
    line-height: 1.2;
    font-weight: 500;
    margin: 20px 0 0;
    color: #fff;
}

.title-secondary {
    display: block;
    color: #7C877F;
    font-weight: 400;
}

.work-process-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 100px;
}

.work-process-left {
    flex: 1;
    min-width: 300px;
}

.work-process-right {
    flex: 0 0 300px;
    display: flex;
    align-items: flex-start;
}

.work-process-text {
    padding: 20px;
    background-color: transparent;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-number {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px;
    color: #fff;
}

.process-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 30px;
}

.partner-logo {
    max-width: 150px;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .work-process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .work-process-content {
        flex-direction: column;
    }

    .work-process-right {
        flex: 1;
    }

    .partners-logos {
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .work-process-section {
        padding: 60px 0;
    }

    .work-process-title {
        font-size: 32px;
    }

    .process-step {
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
    }

    .process-step-icon {
        width: 60px;
        height: 60px;
    }

    .process-step-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* Last Projects Section */
.last-project-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
    overflow: hidden;
}

/* Фильтр портфолио */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-filter:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background-color: rgba(124, 135, 127, 0.2);
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    color: #7C877F;
}

.filter-btn.active {
    color: #7C877F;
    font-weight: 600;
}

.filter-btn.active:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #7C877F;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px 0 40px;
    min-height: 400px; /* Минимальная высота для предотвращения прыжков при фильтрации */
}

.project-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: scale(1);
}

.project-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.project-item.visible {
    display: block;
    animation: fadeInScale 0.5s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-item .arrow-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(124, 135, 127, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.3s ease;
}

.project-item:hover .arrow-icon {
    transform: rotate(90deg);
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0;
    color: #fff;
}

.project-category {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    line-height: 1.6;
    max-width: 90%;
}

.projects-button {
    text-align: center;
    margin-top: 40px;
}

.no-projects {
    text-align: center;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
    padding: 40px 0;
}

/* Анимация загрузки */
.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 135, 127, 0.3);
    border-radius: 50%;
    border-top-color: #7C877F;
    animation: spin 1s ease-in-out infinite;
    z-index: 3;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.projects-grid.loading .loading-spinner {
    display: block;
}

.projects-grid.loading .project-item {
    opacity: 0.5;
}

/* Responsive styles */
@media (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 250px;
    }

    .portfolio-filter {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    .filter-btn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 14px;
    }
}