.home-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.page-content{
  justify-content: center; 
}

.home-hero {
    margin-top: 20px;
}

.home-hero-wrapper {
    display: flex;
    position: relative;
    overflow: hidden;
}

.home-hero-container {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 30px;
    align-items: stretch;
}

.home-featured {
    position: absolute;
    gap: 5px;
    left: 60px;
    top: 35px;
    width: 500px;
    z-index: 100;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    padding: 20px;
}

.home-featured .heritage-location {
    font-size: 13px;
    margin-top: 10px;
}


.home-featured-hero img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 8px;
}

.featured-menu img {
    width: 24px;
    opacity: .6;
}

.featured-footer {
    margin-top: auto;
    padding-top: 5px;
    text-align: center;
}

.home-map {
    position: relative;
    margin-left: 200px;
    max-height: 550px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.home-map img {   
    object-fit: cover;
    display: block;
}

.home-map::after {
    content: "";
    position: absolute;
    border-radius: 15px;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.05) 35%,
        rgba(0, 0, 0, 0.00) 60%
    );
    pointer-events: none;
}

.map-button {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 14px 24px;
}

.map-marker {
    position: absolute;
    cursor: pointer;
    transition: transform .2s;
}

.map-marker:hover {
    transform: scale(1.15);
}

.map-marker img {
    width: 54px;
    height: auto;
}


.marker1 {
    left: 28%;
    top: 48%;
}

.marker2 {
    left: 48%;
    top: 22%;
}

.marker3 {

    left: 61%;

    top: 12%;

}


/* Кнопки поверх карты */
.map-action-buttons {
    position: absolute;
    left: 24px;
    bottom: 30px;
    display: flex;
    gap: 15px;

}

.map-action-button {
    flex: 1 1 auto;
    background: white;
    color: #173451;
    text-align: center;
    padding: 5px 20px;
    border-radius: 6px;

    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap; 
    z-index: 99;
}

.home-services {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin: 0 auto;
    margin-top: -15px;
}

.home-service {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    text-decoration: none;
    color: inherit;
}

.service-content {
    position: relative;
    z-index: 2;
}


/* Цветная декоративная волна */

.service-background {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    opacity: .25;
}


/* Цвета */

.service-blue {
    background: linear-gradient(135deg,#4FA3E3,#87C7F2);
}

.service-green {
    background: linear-gradient(135deg,#7EC46F,#B9E7A4);
}

.service-yellow {
    background: linear-gradient(135deg,#F1C95A,#F6E6A9);
}

.service-cyan {
    background: linear-gradient(135deg,#55C8D8,#A3E6EE);
}

.extra-section {
 margin: 20px;
}

@media (max-width: 1200px) {
    .home-services {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2,1fr);
        row-gap: 20px;
        column-gap: 0px;
        padding: 0px 0px;
        margin: 10px 0px;
    }

    .home-service {
        margin: 0px 20px;
    }

    .home-map {
        margin-left: 0px;
        width: 100%;
		overflow: hidden;
		min-height: 500px;
		box-sizing: border-box;
        box-shadow: 0 10px 35px rgba(0,0,0,.08);
    }

    .home-featured {
        position: absolute;
        top: 35px;
        justify-content: center; 
        width: 500px;
        z-index: 100;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.18);
        padding: 10px;

    }
}


@media (max-width: 768px) {
    .home-page {
		display: flex;
		flex-direction: column;
    }


    .home-services {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(1,1fr);
        gap: 20px;
        padding: 0px 0px;
        margin: 20px 0px;
    }

    .home-service {
        position: relative;
        overflow: hidden;
        min-height: 170px;
        text-decoration: none;
        color: inherit;
        margin: 0px 20px;
    }

    .home-featured {
        top: 35px;
        justify-content: center; 
        width: 90%;
        z-index: 100;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.18);
        padding: 10px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);        
    }

   .home-map {
        margin-left: 0px;
		max-width: 100%;
		box-shadow: 0 10px 35px rgba(0,0,0,.08);
    }

    .home-map img {   
        height: 100%;    
		width: 100%;
    }

    .map-action-buttons {
        display: none;
    }


   .home-hero-wrapper {
        justify-content: center; 
    }
}
}