/* Sticky footer: прижимаем footer к низу окна, если контента мало */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
    background-color: #F1EFE8;
}

.uk-heading-xsmall {
    font-size:1.5rem!important;
}
.gap70 {
    gap: 70px;
}

.gap41 {
    gap: 41px;
}

.ms-madi-sign {
    font-family: "Ms Madi", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
}

.ms-madi-sign img {
    position: absolute;
    pointer-events: none;
}

.ms-madi-sign img.sign-desc {
    transform: translate(-30px, 10px);
}

.ms-madi-sign img.sign-mobile {
    transform: translate(-60px, -25px)
}

.about-ava-decor {
    position: absolute;
    transform: translate(-90%, -12%)
}


.border-none {
    border: none !important;
}

.ocean-button-decor {
    line-height: 56px;
}

.ocean-button-decor,
.ocean-button-decor:hover {
    box-shadow: 0px 0px 4px 0px #00000040;
    border-bottom: 6px solid #9CD9D3;
    border-right:transparent;
    border-left:transparent;
}

.coral-button-decor,
.coral-button-decor:hover {
    box-shadow: 0px 0px 4px 0px #00000040;
    border-bottom: 6px solid #E86E41;
    border-right:transparent;
    border-left:transparent;
}

.ocean-button-decor:hover {
    border-bottom: 3px solid #9CD9D3;
    line-height: 53px;
}

.coral-button-decor:hover {
    border-bottom: 3px solid #E86E41;
}

.ocean-button-decor:active {
    background-color: #ADEBE5;
    border-bottom: 1px solid #9CD9D3;
}

.coral-button-decor:active {
    background-color: #FF7F50;
    border-bottom: 1px solid #E86E41;
}



.view-my-work {
    line-height: 108px !important;
    width: 440px;
}

.view-my-work:hover {
    line-height: 105px !important;
}


.margin-top-30 {
    margin-top: 30px;
}

.heading-404 {
    font-weight: 250;
    font-size: 128px;
}

.margin-bottom-404 {
    margin-bottom: 90px;
}

.font-w-500 {
    font-weight: 500;
}

/* Author photo decor (hero / about me) */
.ava-decor-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    aspect-ratio: 550 / 527;
}

.ava-decor-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ava-decor-blob {
    width: 83.9%;
    height: 91.96%;
    top: 0.46%;
    left: 0.5%;
}

.ava-decor-shadow {
    width: 82.9%;
    height: 81.97%;
    top: 10.24%;
    left: 6.73%;
}

.ava-decor-ring {
    width: 58.5%;
    height: 61.1%;
    top: 18.96%;
    left: 15.64%;
}

.ava-decor-stars {
    width: 96.2%;
    height: 94.3%;
    top: 5.68%;
    left: 3.8%;
    pointer-events: none;
}

.ava-photo-wrap {
    width: 53.8%;
    height: 56.2%;
    top: 21.43%;
    left: 18%;
    border-radius: 50%;
    overflow: hidden;
}

.ava-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Me page decor */
.contact-me {
    position: relative;
    overflow: hidden;
}

.contact-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("./img/pages/contact-bg-pattern.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: -1;
}

.contact-info-wrap {
    position: relative;
}

.contact-link {
    color: #000;
}

.contact-link:hover {
    color: #000;
}

.contact-stars {
    position: absolute;
    top: -55px;
    left: -30px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 959px) {
    #projects {
        margin-top:60px!important;
    }
    .mobile-padding-rl {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-bg-pattern {
        background: url("./img/pages/contact-bg-pattern-mobile.svg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: top center;
    }

    .contact-stars-mobile {
        position: absolute;
        top: 15px;
        left: 30px;
        pointer-events: none;
    }

}

/* Contact form */
.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form .uk-input {
    resize: none;
}
.contact-form .uk-textarea {
    resize:vertical;
    min-height:49px;
}
/* ==========================================================================
   Projects section (main page)
   ========================================================================== */

.js-view-work {
    gap: 10px;
}

#projects {
    position: relative;
    margin-top: 500px;
}

#projects .uk-accordion>:nth-child(n+2) {
    margin-top: 100px;
}




/* sticky nav: fixed, vertically centered in viewport, only visible while
   scrolled inside the #projects section (toggled via JS with .is-visible) */
.projects-nav-wrap {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.projects-nav-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.projects-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.projects-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #828282;
    font-size: 16px;
    white-space: nowrap;
}

.projects-nav li a::before {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #828282;
    background: transparent;
    flex-shrink: 0;
}

.projects-nav li:last-child a::before {
    content: "";
    width: 15px;
    height: 15px;
    border: none;
    background: transparent;
    flex-shrink: 0;
}

.projects-nav li.uk-active>a,
.projects-nav li a.uk-active {
    color: #000;
    font-weight: 600;
}

.projects-nav li.uk-active>a::before,
.projects-nav li a.uk-active::before {
    background: #000;
    border-color: #000;
}

.projects-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.projects-accordion li.project-item {
    border-bottom: 10px solid;
    box-shadow: 0px 4px 4px 0px #00000040;
}

/* full-bleed project card: stretches to full viewport width regardless
   of any parent max-width container */
.project-item {
    position: relative;
    border-top: 1px solid #E4E4E4;
    border-bottom: 1px solid #E4E4E4;
    transform: scale(1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor:pointer;
}

.project-item:not(.uk-open):hover {
    position: relative;
    z-index: 2;
    transform: scale(1.03);
    background-color: var(--project-hover-bg, transparent);
}

.project-item+.project-item {
    border-top: none;
}

.project-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 32px 12px;
}

.project-garden {
    background: #CADACA;
}

.project-puzzlecrm {
    background: #E4F4FF;
}

.project-avtolux {
    background: #E2D4BC;
}

.project-rivet {
    background: #E9F6F5;
}

.project-ibrew {
    background: #DACEC0;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 64px;
    font-weight: 500;
    /* color: #000; */
    cursor: pointer;
    color: inherit !important;
    text-decoration: none !important;
}

.project-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: #fff;
}

.project-item.uk-open .project-toggle-icon {
    transform: rotate(180deg);
}

/* preview: slider + tags, always visible (both collapsed and expanded state) */
.project-preview {
    margin-top: 40px;
}

.project-slider-wrap {
    margin-bottom: 40px;
}

.project-slides {
    align-items: center;
    gap: 40px;
}

.project-slides li {
    position:relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slides div {
    position:absolute;
    z-index:-1;
    width:100%;
    height:100%;
    border-radius: 30px;
    box-shadow: 0px 7px 10px 2px rgba(0, 0, 0, 0.3);
    /* box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.30); */
}

.project-inner .uk-slider-container {
    padding:20px 15px;
}

.project-slides img {
    max-height: 454px;
    width: auto;
}

.project-slides-phone img {
    max-height: 452px;
}

.project-tags {
    display: flex;
    align-items: flex-end;
    gap: 37px;
    flex-wrap: wrap;
}

/* Цвет/градиент тега передаётся через CSS-переменную --tag-bg инлайн-стилем
   в HTML (удобно для вывода из БД/движка), напр.:
   style="--tag-bg: linear-gradient(90deg, #EBC8A0 0%, #966E42 100%)" */
.project-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 60px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 26px;
    border: 2px solid transparent;
    background: var(--tag-bg, #000);
}

/* expanded content: about / extra blocks / cta */
.project-item .uk-accordion-content {
    margin: 0;
    padding-top: 60px;
}

.project-about h3,
.project-block h3,
.project-cta h3 {
    font-family: Poppins, sans-serif;
    font-size: 40px;
    font-weight: 600;
    margin: 0 0 40px;
}

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

.heading-arrow::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    margin-left: 20px;
    background: url("./img/heading-arrow.svg") no-repeat center / contain;
}

.project-about p,
.project-block p {
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.project-about b,
.project-block b {
    font-weight: 600;
}

.project-block {
    margin-top: 100px;
}

.project-extra-img {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.project-extra-img img {
    max-width: 100%;
    border: 5px solid #000;
    border-radius: 20px;
}

/* about page mockups: 2x2 grid of phone screens */
.project-about-screens {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    justify-items: center;
    gap: 40px;
}

.project-about-screens img {
    width: auto;
    max-width: 100%;
    height: auto;
    /* border-radius: 20px; */
}

@media (max-width: 639px) {
    .project-about-screens {
        grid-template-columns: 1fr;
    }
}

/* modifier: single-column vertical stack (e.g. wide desktop screenshots) */
.project-about-screens--vertical {
    grid-template-columns: 1fr;
}

.project-about-screens--vertical img {
    max-width: 100%;
}

/* row inside vertical stack: desktop mockup + mobile mockup side by side */
.project-about-screens-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.project-about-screens-row img {
    max-width: 100%;
    height: auto;
    /* border-radius: 20px; */
}

/* interface elements: small separate pieces that wrap nicely on mobile */
/* .interface-elements {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(30px, 5vw, 71px);
} */

.interface-elements-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.interface-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
}

.interface-element-label {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    color: #000;
    text-align: center;
}

.interface-element img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
}

/* color circles: single color-swatch list, color passed via inline style */
/* .color-circles {
    display: flex;
   
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 76px);
} */

.color-circle {
    display: inline-block;
    flex-shrink: 0;
    width: clamp(40px, 8vw, 80px);
    height: clamp(40px, 8vw, 80px);
    border-radius: 50%;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
}

.project-cta {
    margin-top: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
    border-radius: 20px;
    background-image: url(./img/stars-lets-talk.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.project-cta h3 {
    margin-bottom: 0;
}

/* see more work */
.see-more-work {
    gap: 20px;
    padding: 31px 31px;
    background: linear-gradient(180deg, #ADEBE5 0%, #ADEBE5 50%, #9CD9D3 42%, #9CD9D3 100%);
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
    font-size: 30px;
    color: #000;
    z-index: 1;
    font-weight:500;
}

.see-more-work-stars {
    position: absolute;
    top: -90px;
    left: -110px;
    width: calc(100% + 220px);
    height: calc(100% + 180px);
    max-width: none;
    object-fit: contain;
    pointer-events: none;
    z-index: -1;
}

.contacts-social {
    gap:10px
}

.contacts-social .c-icon {
    width:25px;
    heigt:25px;
}

@media (max-width: 959px) {
    .projects-nav-wrap {
        display: none;
    }

    .project-inner {
        padding: 24px 20px;
    }

    .project-header {
        font-size: 32px;
    }

    .project-preview {
        margin-top: 24px;
    }

    .project-item .uk-accordion-content {
        padding-top: 40px;
    }

    .project-slides img {
        max-height: 260px;
        border-radius: 1px;
    }

    .project-tags {
        gap: 15px;
    }

    .project-tag {
        padding: 10px 16px;
        font-size: 16px;
    }

    .project-about h3,
    .project-block h3,
    .project-cta h3 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .project-about p,
    .project-block p {
        font-size: 16px;
    }

    .project-block,
    .project-cta {
        margin-top: 60px;
    }

    .project-cta {
        background-image: none;
    }

    .see-more-work {
        padding: 20px 30px;
        font-size: 14px;
        text-align: center;
        flex-wrap: wrap;
    }

    .see-more-work-stars {
        top: -50px;
        left: -50px;
        width: calc(100% + 85px);
        height: calc(100% + 100px);
    }
}

@media (max-width: 375px) {
    .see-more-work-stars {
        display:none;
    }
}
