/* =========================================================
   СТОРІНКА НАШІ РОБОТИ
   ========================================================= */

.works-page {
    background: #f1f0eb;
}

.works-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 145px 0 90px;
    background:
            radial-gradient(circle at 82% 20%, rgba(201,111,69,.19), transparent 28%),
            linear-gradient(135deg, #172019 0%, #2d4234 58%, #213129 100%);
    color: #fff;
}

.works-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
            linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 68px 68px;
    animation: worksGrid 25s linear infinite;
}

.works-hero__circle {
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.works-hero__circle--one {
    top: -240px;
    right: -130px;
    width: 650px;
    height: 650px;
    animation: worksOrbit 30s linear infinite;
}

.works-hero__circle--two {
    left: -280px;
    bottom: -410px;
    width: 790px;
    height: 790px;
    animation: worksOrbitReverse 38s linear infinite;
}

.works-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
}

.works-hero__content {
    max-width: 940px;
}

.works-kicker,
.works-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.works-kicker::before,
.works-section-label::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.works-hero h1 {
    margin-bottom: 26px;
    font-size: clamp(60px, 7.4vw, 108px);
    line-height: 1.08;
    letter-spacing: -4.8px;
}

.works-hero h1 span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.42);
}

.works-hero__content > p {
    max-width: 760px;
    color: rgba(255,255,255,.66);
    font-size: 18px;
    line-height: 1.78;
}

.works-hero__counter {
    min-width: 210px;
    display: grid;
    justify-items: end;
    gap: 4px;
    padding: 21px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(15px);
}

.works-hero__counter strong {
    color: var(--accent-light);
    font-size: 58px;
    line-height: 1;
}

.works-hero__counter span {
    max-width: 160px;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    text-align: right;
}

/* Map section */

.works-map-section {
    padding: 110px 0;
}

.works-map-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(300px,470px);
    align-items: end;
    gap: 50px;
    margin-bottom: 38px;
}

.works-map-heading h2,
.works-gallery-heading h2 {
    font-size: clamp(42px,5.2vw,70px);
    line-height: .98;
    letter-spacing: -2.8px;
}

.works-map-heading > p {
    color: #747771;
    line-height: 1.75;
}

.works-map-layout {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(360px,.65fr);
    gap: 18px;
}

.works-map-panel {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-radius: 30px;
    background:
            radial-gradient(circle at 50% 50%, rgba(201,111,69,.12), transparent 38%),
            #17231c;
    box-shadow: 0 25px 65px rgba(24,34,28,.16);
}

.works-map-panel__grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
            linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 88%, transparent);
}

.works-map-shape {
    position: absolute;
    inset: 10% 6% 8%;
    opacity: .8;
    filter: drop-shadow(0 32px 55px rgba(0,0,0,.24));
}

.works-map-shape::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(
            3% 48%, 8% 37%, 15% 31%, 20% 21%, 31% 19%,
            39% 11%, 49% 18%, 57% 10%, 67% 17%, 76% 14%,
            84% 23%, 94% 26%, 99% 39%, 93% 49%, 98% 59%,
            90% 69%, 78% 69%, 70% 80%, 58% 77%, 49% 88%,
            39% 80%, 29% 89%, 19% 76%, 7% 72%, 0 60%
    );
    border: 1px solid rgba(255,255,255,.18);
    background:
            linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.035)),
            rgba(255,255,255,.035);
    backdrop-filter: blur(8px);
}

.works-map-shape::after {
    content: "";
    position: absolute;
    inset: 7%;
    clip-path: inherit;
    background:
            repeating-linear-gradient(
                    135deg,
                    rgba(255,255,255,.035) 0 2px,
                    transparent 2px 11px
            );
}

.works-map-shape__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.works-map-shape__title {
    color: rgba(255,255,255,.13);
    font-size: clamp(54px,8vw,118px);
    font-weight: 900;
    letter-spacing: -4px;
    text-transform: uppercase;
}

.works-map-shape__subtitle {
    margin-top: -8px;
    color: rgba(255,255,255,.23);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.works-markers {
    position: absolute;
    inset: 10% 6% 8%;
    z-index: 5;
}











.works-marker:hover .works-marker__label,
.works-marker.is-active

.works-marker:hover .works-marker__core,
.works-marker.is-active

.works-map-instruction {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.52);
    font-size: 10px;
    backdrop-filter: blur(10px);
}



/* Project card */

.works-project-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 25px 65px rgba(24,34,28,.12);
    transition: opacity .25s ease, transform .25s ease;
}

.works-project-card.is-changing {
    opacity: .25;
    transform: translateY(8px);
}

.works-project-card__image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.works-project-card__image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
    transition: transform .75s ease;
}

.works-project-card:hover .works-project-card__image img {
    transform: scale(1.05);
}

.works-project-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,14,11,.02), rgba(10,14,11,.66));
}

.works-project-card__number {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #fff;
}

.works-project-card__number span {
    font-size: 38px;
    font-weight: 900;
}

.works-project-card__number small {
    color: rgba(255,255,255,.55);
}

.works-project-card__badge {
    position: absolute;
    top: 17px;
    right: 17px;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: rgba(20,29,23,.45);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.works-project-card__content {
    padding: 27px;
}

.works-project-card__region {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.works-project-card h3 {
    margin-bottom: 12px;
    font-size: 39px;
    line-height: 1;
    letter-spacing: -1.3px;
}

.works-project-card__content > p {
    margin-bottom: 22px;
    color: #777a75;
    font-size: 13px;
    line-height: 1.72;
}

.works-project-card__specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(32,35,31,.1);
    border-radius: 14px;
}

.works-project-card__specs > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
}

.works-project-card__specs > div + div {
    border-top: 1px solid rgba(32,35,31,.09);
}

.works-project-card__specs span {
    color: #939690;
    font-size: 10px;
    text-transform: uppercase;
}

.works-project-card__specs strong {
    font-size: 12px;
    text-align: right;
}

.works-project-card__button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.works-project-card__button:hover {
    transform: translateY(-3px);
    background: var(--accent-light);
    box-shadow: 0 13px 28px rgba(201,111,69,.24);
}

/* City chips */

.works-cities {
    margin-top: 23px;
    padding: 22px;
    border: 1px solid rgba(32,35,31,.1);
    border-radius: 22px;
    background: #fff;
}

.works-cities > span {
    display: block;
    margin-bottom: 14px;
    color: #999c96;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.works-cities__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.works-city-chip {
    padding: 9px 12px;
    border: 1px solid rgba(32,35,31,.1);
    border-radius: 100px;
    background: #f6f5f1;
    color: #646762;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.works-city-chip:hover,
.works-city-chip.is-active {
    transform: translateY(-2px);
    background: #1d2a22;
    color: #fff;
}

/* Gallery carousel */

.works-gallery-section {
    padding: 110px 0;
    overflow: hidden;
    background: #fff;
}

.works-gallery-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.works-gallery-heading {
    max-width: 850px;
    margin-bottom: 0;
}

.works-gallery-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    padding-bottom: 5px;
}

.works-gallery-control {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(32,35,31,.11);
    border-radius: 50%;
    background: #f5f4ef;
    color: #252b27;
    cursor: pointer;
    font-size: 20px;
    transition:
            transform .22s ease,
            background .22s ease,
            color .22s ease,
            border-color .22s ease;
}

.works-gallery-control:hover {
    transform: translateY(-2px);
    border-color: #1d2a22;
    background: #1d2a22;
    color: #fff;
}

.works-carousel {
    --works-carousel-visible: 6;
    --works-carousel-gap: 14px;
    position: relative;
    width: 100%;
}

.works-carousel__viewport {
    width: 100%;
    overflow: hidden;
}

.works-carousel__track {
    display: flex;
    gap: var(--works-carousel-gap);
    will-change: transform;
    transform: translate3d(0,0,0);
}

.works-carousel.is-animated .works-carousel__track {
    transition:
            transform .65s cubic-bezier(.22,.72,.2,1);
}

.works-carousel-card {
    position: relative;
    flex:
            0 0
            calc(
                    (
                    100% -
                    (var(--works-carousel-visible) - 1) *
                    var(--works-carousel-gap)
                    ) /
                    var(--works-carousel-visible)
            );
    min-width: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 22px;
    background: #e8e7e2;
    cursor: pointer;
}

.works-carousel-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
            transform .8s cubic-bezier(.2,.7,.2,1),
            filter .35s ease;
}

.works-carousel-card__overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    180deg,
                    rgba(12,16,13,.02) 30%,
                    rgba(12,16,13,.78) 100%
            );
    transition: background .35s ease;
}

.works-carousel-card__content {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 17px;
    color: #fff;
}

.works-carousel-card__content span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.works-carousel-card__content h3 {
    margin: 0;
    font-size: clamp(20px,1.7vw,28px);
    line-height: 1;
    letter-spacing: -.7px;
}

.works-carousel-card__content small {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: rgba(255,255,255,.68);
    font-size: 10px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition:
            max-height .35s ease,
            margin-top .35s ease,
            opacity .35s ease,
            transform .35s ease;
}

.works-carousel-card:hover img {
    transform: scale(1.055);
}

.works-carousel-card:hover .works-carousel-card__overlay {
    background:
            linear-gradient(
                    180deg,
                    rgba(12,16,13,.04) 18%,
                    rgba(12,16,13,.9) 100%
            );
}

.works-carousel-card:hover .works-carousel-card__content small {
    max-height: 44px;
    margin-top: 7px;
    opacity: 1;
    transform: translateY(0);
}

.works-carousel__progress {
    width: min(360px, calc(100% - 40px));
    height: 2px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 100px;
    background: rgba(32,35,31,.09);
}

.works-carousel__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.works-carousel.is-running .works-carousel__progress span {
    animation: worksCarouselProgress 1.7s linear forwards;
}

.works-carousel.is-paused .works-carousel__progress span {
    animation-play-state: paused;
}

@keyframes worksCarouselProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 1280px) {
    .works-carousel {
        --works-carousel-visible: 5;
    }
}

@media (max-width: 1080px) {
    .works-carousel {
        --works-carousel-visible: 4;
    }
}

@media (max-width: 860px) {
    .works-carousel {
        --works-carousel-visible: 3;
    }
}

@media (max-width: 620px) {
    .works-gallery-heading-row {
        align-items: flex-start;
    }

    .works-gallery-controls {
        padding-top: 4px;
    }

    .works-gallery-control {
        width: 43px;
        height: 43px;
    }

    .works-carousel {
        --works-carousel-visible: 1.18;
        --works-carousel-gap: 10px;
    }

    .works-carousel-card {
        aspect-ratio: 4 / 5;
        border-radius: 18px;
    }

    .works-carousel-card__content {
        left: 16px;
        right: 16px;
        bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-carousel.is-animated .works-carousel__track {
        transition: none;
    }

    .works-carousel.is-running .works-carousel__progress span {
        animation: none;
    }
}

/* Final */

.works-final {
    padding: 0 0 110px;
    background: #fff;
}

.works-final__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 45px;
    border-radius: 30px;
    background:
            radial-gradient(circle at 90% 10%, rgba(201,111,69,.2), transparent 28%),
            #19251e;
    color: #fff;
}

.works-final__inner > div {
    max-width: 760px;
}

.works-final__inner > div > span {
    display: block;
    margin-bottom: 9px;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.works-final h2 {
    font-size: clamp(32px,4.4vw,58px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.works-final__button {
    flex: 0 0 auto;
    min-width: 235px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 20px;
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.works-final__button:hover {
    transform: translateY(-4px);
    background: var(--accent-light);
    box-shadow: 0 16px 34px rgba(201,111,69,.25);
}

/* Reveal */

.works-reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity .85s ease, transform .85s cubic-bezier(.2,.75,.2,1);
}

.works-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes worksGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 68px 68px, 68px 68px; }
}

@keyframes worksOrbit {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

@keyframes worksOrbitReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0); }
}

@keyframes worksMarkerPulse {
    0% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(.45);
    }
    75% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(1.65);
    }
    100% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(1.65);
    }
}

@media (max-width: 1080px) {
    .works-map-layout {
        grid-template-columns: 1fr;
    }

    .works-map-panel {
        min-height: 700px;
    }

    .works-project-card {
        display: grid;
        grid-template-columns: .9fr 1.1fr;
    }

    .works-project-card__image,
    .works-project-card__image img {
        min-height: 430px;
    }
}

@media (max-width: 760px) {
    .works-hero {
        min-height: auto;
        padding: 125px 0 75px;
    }

    .works-hero__container {
        align-items: flex-start;
        flex-direction: column;
    }

    .works-hero h1 {
        font-size: 54px;
        letter-spacing: -2.6px;
    }

    .works-hero__counter {
        justify-items: start;
    }

    .works-hero__counter span {
        text-align: left;
    }

    .works-map-section,
    .works-gallery-section {
        padding: 80px 0;
    }

    .works-map-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .works-map-panel {
        min-height: 520px;
        border-radius: 24px;
    }

    .works-map-shape {
        inset: 13% 3% 10%;
    }

    .works-markers {
        inset: 13% 3% 10%;
    }



    .works-project-card {
        grid-template-columns: 1fr;
    }

    .works-project-card__image,
    .works-project-card__image img {
        min-height: 330px;
    }
    .works-final__inner {
        align-items: stretch;
        flex-direction: column;
        padding: 30px 22px;
    }

    .works-final__button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .works-hero h1 {
        font-size: 44px;
    }

    .works-map-panel {
        min-height: 430px;
    }

    .works-map-shape__title {
        font-size: 44px;
    }





    .works-project-card h3 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-hero__grid,
    .works-hero__circle,


    .works-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   СПРАВЖНЯ КАРТА УКРАЇНИ — Images/ukraine.png
   ========================================================= */

.works-map-panel {
    min-height: 760px;
    background:
            radial-gradient(circle at 50% 45%, rgba(201, 111, 69, 0.12), transparent 42%),
            linear-gradient(145deg, #152019 0%, #203229 55%, #17241d 100%);
}

.works-map-reference {
    position: absolute;
    inset: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    pointer-events: none;
}

.works-map-reference::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            radial-gradient(circle at 50% 50%, transparent 46%, rgba(15, 22, 17, 0.22) 100%);
    pointer-events: none;
}

.works-map-reference img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    opacity: 0.72;
    filter:
            grayscale(0.16)
            saturate(0.82)
            contrast(1.06)
            brightness(0.92)
            drop-shadow(0 30px 55px rgba(0, 0, 0, 0.28));
    transform: scale(1.08);
    transition:
            opacity 0.35s ease,
            filter 0.35s ease,
            transform 0.7s ease;
}

.works-map-panel:hover .works-map-reference img {
    opacity: 0.88;
    filter:
            grayscale(0)
            saturate(0.95)
            contrast(1.08)
            brightness(0.98)
            drop-shadow(0 34px 62px rgba(0, 0, 0, 0.34));
    transform: scale(1.11);
}

/*
  Мітки розміщуються поверх справжньої карти.
  Після візуальної перевірки координати --x та --y можна
  точно підкоригувати під міста на зображенні.
*/

.works-markers {
    inset: 18px;
    z-index: 5;
}

.works-map-panel__grid {
    z-index: 1;
}

.works-map-instruction {
    z-index: 8;
}

/* Старий умовний силует більше не використовується */

.works-map-shape,
.works-map-shape__inner,
.works-map-shape__title,
.works-map-shape__subtitle {
    display: none !important;
}

@media (max-width: 760px) {
    .works-map-panel {
        min-height: 540px;
    }

    .works-map-reference,
    .works-markers {
        inset: 10px;
    }

    .works-map-reference img {
        transform: scale(1.03);
    }

    .works-map-panel:hover .works-map-reference img {
        transform: scale(1.05);
    }
}

@media (max-width: 460px) {
    .works-map-panel {
        min-height: 450px;
    }

    .works-map-reference {
        border-radius: 18px;
    }
}

/* =========================================================
   FULL-SCREEN MAP SECTION — ДИНАМІЧНІ ПРОЄКТИ
   ========================================================= */

.works-map-section {
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 96px 0;
}

.works-map-section__inner {
    width: min(1600px, calc(100% - 48px));
    margin: 0 auto;
}

.works-map-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
    align-items: start;
    gap: 22px;
}

.works-map-panel {
    min-height: 0;
    padding: 18px;
}

.works-map-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.works-map-stage__image {
    width: 100%;
    height: auto;
    display: block;
    opacity: .82;
    filter:
            grayscale(.08)
            saturate(.9)
            contrast(1.06)
            brightness(.96)
            drop-shadow(0 30px 55px rgba(0, 0, 0, .28));
    transition: opacity .35s ease, filter .35s ease, transform .7s ease;
}

.works-map-panel:hover .works-map-stage__image {
    opacity: .96;
    filter:
            grayscale(0)
            saturate(1)
            contrast(1.08)
            brightness(1)
            drop-shadow(0 34px 62px rgba(0, 0, 0, .34));
}

.works-markers {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.works-map-reference {
    display: none !important;
}

.works-project-card {
    position: sticky;
    top: 96px;
}

.works-project-card__image {
    min-height: 390px;
}

.works-project-card__image img {
    min-height: 390px;
}

.works-project-card__gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #1d2a22;
    cursor: pointer;
    font-size: 18px;
    transform: translateY(-50%);
    transition: transform .2s ease, background .2s ease;
}

.works-project-card__gallery-arrow:hover {
    background: var(--accent-light);
    transform: translateY(-50%) scale(1.06);
}

.works-project-card__gallery-arrow--prev {
    left: 14px;
}

.works-project-card__gallery-arrow--next {
    right: 14px;
}

.works-project-card__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 10px 12px 0;
    background: #fff;
}

.works-project-card__thumb {
    aspect-ratio: 1.45 / 1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #ecebe6;
    cursor: pointer;
}

.works-project-card__thumb.is-active {
    border-color: var(--accent);
}

.works-project-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.works-map-empty {
    padding: 40px;
    border-radius: 24px;
    background: #fff;
    color: #747771;
    text-align: center;
}

@media (max-width: 1080px) {
    .works-map-section {
        min-height: auto;
    }

    .works-map-section__inner {
        width: min(1220px, calc(100% - 36px));
    }

    .works-project-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .works-map-section {
        padding: 76px 0;
    }

    .works-map-section__inner {
        width: min(100% - 24px, 1220px);
    }

    .works-map-panel {
        padding: 10px;
    }

    .works-map-stage {
        border-radius: 18px;
    }



    .works-project-card__image,
    .works-project-card__image img {
        min-height: 330px;
    }
}

@media (max-width: 460px) {
    .works-project-card__thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .works-project-card__gallery-arrow {
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   INLINE SVG-КАРТА УКРАЇНИ
   ========================================================= */

.works-map-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 612.47321 / 408.0199;
}

.works-map-stage__svg {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .28));
}

.works-map-stage__svg path {
    fill: rgba(238, 240, 234, .72);
    stroke: rgba(23, 32, 25, .62);
    stroke-width: .85;
    vector-effect: non-scaling-stroke;
    transition:
            fill .25s ease,
            opacity .25s ease,
            filter .25s ease;
}

.works-map-stage__svg path:hover {
    fill: var(--accent-light);
    filter: brightness(1.04);
}

.works-map-stage__image {
    display: none !important;
}

.works-markers {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}



@media (max-width: 760px) {
    .works-map-stage__svg path {
        stroke-width: .65;
    }
}

/* =========================================================
   ЗОЛОТИСТІ ІКОНКИ-БУДИНОЧКИ НА КАРТІ
   ========================================================= */

.works-marker {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 6;
    width: 46px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -82%);
    transform-origin: 50% 82%;
    transition:
            transform 0.24s ease,
            filter 0.24s ease;
}

.works-marker:hover,
.works-marker:focus-visible,
.works-marker.is-active {
    z-index: 12;
    transform: translate(-50%, -82%) scale(1.12);
}

/* М'яке кільце навколо будиночка */

.works-marker__pulse {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 35px;
    height: 35px;
    display: block;
    border: 1.5px solid rgba(216, 178, 70, 0.78);
    border-radius: 50%;
    background: rgba(216, 178, 70, 0.12);
    box-shadow: 0 0 20px rgba(216, 178, 70, 0.26);
    transform: translate(-50%, -50%);
    animation: worksHousePulse 2.3s ease-out infinite;
}

/* Біла зовнішня форма будиночка */

.works-marker__core {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 31px;
    height: 29px;
    display: block;
    background: #ffffff;
    clip-path: polygon(
            50% 0%,
            100% 38%,
            88% 38%,
            88% 100%,
            59% 100%,
            59% 70%,
            41% 70%,
            41% 100%,
            12% 100%,
            12% 38%,
            0% 38%
    );
    filter:
            drop-shadow(0 7px 10px rgba(17, 25, 20, 0.34))
            drop-shadow(0 0 11px rgba(237, 202, 104, 0.50));
    transform: translate(-50%, -50%);
    transition:
            transform 0.24s ease,
            filter 0.24s ease;
}

/* Золота внутрішня форма */

.works-marker__core::after {
    content: "";
    position: absolute;
    inset: 3px;
    display: block;
    background:
            linear-gradient(
                    145deg,
                    #fff1b6 0%,
                    #e8c766 38%,
                    #c99b2d 72%,
                    #9d7118 100%
            );
    clip-path: inherit;
}

/* Маленьке темне віконце */

.works-marker__core::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 56%;
    width: 7px;
    height: 7px;
    border-radius: 2px 2px 0 0;
    background: rgba(28, 39, 31, 0.78);
    transform: translateX(-50%);
}

.works-marker:hover .works-marker__core,
.works-marker:focus-visible .works-marker__core,
.works-marker.is-active .works-marker__core {
    transform: translate(-50%, -50%) scale(1.10);
    filter:
            drop-shadow(0 9px 13px rgba(17, 25, 20, 0.42))
            drop-shadow(0 0 18px rgba(245, 212, 112, 0.92));
}

.works-marker.is-active {
    animation: worksHouseFloat 1.8s ease-in-out infinite;
}

.works-marker.is-active .works-marker__pulse {
    border-color: rgba(247, 215, 119, 0.98);
    background: rgba(247, 215, 119, 0.20);
    animation-duration: 1.65s;
}

/* Підпис міста */

.works-marker__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    z-index: 20;
    min-width: max-content;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(18, 27, 21, 0.96);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.30);
    transform: translate(-50%, 7px);
    transition:
            opacity 0.20s ease,
            visibility 0.20s ease,
            transform 0.20s ease;
}

.works-marker:hover .works-marker__label,
.works-marker:focus-visible .works-marker__label,
.works-marker.is-active .works-marker__label {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.works-marker:focus-visible {
    outline: 2px solid #efd16f;
    outline-offset: 4px;
    border-radius: 12px;
}

/* Позначка у підказці секції */

.works-map-instruction__dot {
    position: relative;
    width: 16px;
    height: 15px;
    flex: 0 0 auto;
    background: #ffffff;
    clip-path: polygon(
            50% 0%,
            100% 38%,
            87% 38%,
            87% 100%,
            13% 100%,
            13% 38%,
            0% 38%
    );
    filter: drop-shadow(0 0 7px rgba(231, 198, 100, 0.58));
}

.works-map-instruction__dot::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, #f7df91, #bd8c23);
    clip-path: inherit;
}

/* Анімації */

@keyframes worksHousePulse {
    0% {
        opacity: 0.92;
        transform: translate(-50%, -50%) scale(0.46);
    }

    72% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.75);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.75);
    }
}

@keyframes worksHouseFloat {
    0%,
    100% {
        transform: translate(-50%, -82%) scale(1.08) translateY(0);
    }

    50% {
        transform: translate(-50%, -82%) scale(1.08) translateY(-5px);
    }
}

/* Адаптивність */

@media (max-width: 760px) {
    .works-marker {
        width: 40px;
        height: 46px;
    }

    .works-marker__core {
        width: 27px;
        height: 25px;
    }

    .works-marker__pulse {
        width: 31px;
        height: 31px;
    }

    .works-marker__core::before {
        width: 6px;
        height: 6px;
    }

    .works-marker__label {
        display: none;
    }
}

@media (max-width: 460px) {
    .works-marker {
        width: 36px;
        height: 42px;
    }

    .works-marker__core {
        width: 24px;
        height: 23px;
    }

    .works-marker__pulse {
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-marker,
    .works-marker__core,
    .works-marker__label {
        transition: none;
    }

    .works-marker,
    .works-marker__pulse {
        animation: none !important;
    }
}


/* =========================================================
   PROJECT IMAGE LOADER
   ========================================================= */

.works-project-card__image {
    isolation: isolate;
}

.works-project-loader {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #252c27;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .14s ease, visibility .14s ease;
}

.works-project-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.works-project-loader__skeleton {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    100deg,
                    rgba(255,255,255,.025) 20%,
                    rgba(255,255,255,.11) 38%,
                    rgba(255,255,255,.025) 56%
            ),
            #252c27;
    background-size: 220% 100%;
    animation: worksProjectSkeleton 1.25s linear infinite;
}

.works-project-loader__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(18,24,20,.48);
    color: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.works-project-loader__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,.18);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: worksProjectSpinner .75s linear infinite;
}

@keyframes worksProjectSkeleton {
    from {
        background-position: 120% 0;
    }

    to {
        background-position: -120% 0;
    }
}

@keyframes worksProjectSpinner {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .works-project-loader__skeleton,
    .works-project-loader__spinner {
        animation: none;
    }
}