/* ==========================
   CONTACT POPUP
=========================== */
.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 15, 25, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* OPEN */

.contact-popup.active {
    opacity: 1;
    visibility: visible;
}


/* ==========================
   POPUP CONTENT
=========================== */

.contact-popup-content {
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}


.contact-popup.active .contact-popup-content {
    transform: translateY(0) scale(1);
}


/* ==========================
   HEADER
=========================== */

.contact-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 25px 20px;
    border-bottom: 1px solid var(--border);
}


.contact-popup-title {
    display: flex;
    align-items: center;
    gap: 15px;
}


.contact-popup-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--light);
    color: var(--primary-color);
    font-size: 19px;
}


.contact-popup-title h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    line-height: 1.2;
}


.contact-popup-title p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}


/* ==========================
   CLOSE BUTTON
=========================== */

.contact-popup-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-size: 18px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.contact-popup-close:hover {
    background: var(--light);
    color: #222;
}


/* ==========================
   BODY
=========================== */

.contact-popup-body {
    padding: 25px;
}


/* ==========================
   FORM
=========================== */

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}


/* ==========================
   INPUT
=========================== */

.contact-input {
    position: relative;
}


.contact-input input,
.contact-input textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 45px 16px 16px;
    border: 1px solid #d5d8dd;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 1rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-input textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}



.contact-input label {
    position: absolute;
    left: 13px;
    top: 17px;
    padding: 0 4px;
    color: #777;
    font-size: 1rem;
    pointer-events: none;
    background: #fff;
    transition:
        top 0.2s ease,
        font-size 0.2s ease,
        color 0.2s ease;
}

.contact-input input:focus + label,
.contact-input input:not(:placeholder-shown) + label,
.contact-input textarea:focus + label,
.contact-input textarea:not(:placeholder-shown) + label {
    top: -8px;
    color: var(--primary-color);
    font-size: 0.75rem;
}


.contact-input input:focus,
.contact-input textarea:focus {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.05);
}


.contact-input > i {
    position: absolute;
    top: 17px;
    right: 16px;
    color: #999;
    pointer-events: none;
}


.contact-textarea > i {
    top: 18px;
}


.contact-cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--light);
}


.contact-cart-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--white);
    color: var(--primary-color);
}


.contact-cart-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}


.contact-cart-text strong {
    font-size: 0.9rem;
}


.contact-cart-text span {
    color: #777;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}


.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.contact-btn:active {
    transform: translateY(1px);
}


/* CANCEL */

.contact-btn-cancel {
    border: 1px solid var(--border);
    background: var(--white);
    color: #555;
}


.contact-btn-cancel:hover {
    background: var(--light);
}


/* SEND */

.contact-btn-submit {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.contact-btn-submit span {
    color: var(--white);
}


.contact-btn-submit:hover {
    filter: brightness(0.92);
}


/* ==========================
   BODY LOCK
=========================== */

body.modal-open {
    overflow: hidden;
}






/* ==========================
   SERVICE POPUP
=========================== */

.service-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: rgba(10, 15, 25, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.service-popup.active {
    opacity: 1;
    visibility: visible;
}

.service-popup-content {
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.service-popup.active .service-popup-content {
    transform: translateY(0) scale(1);
}

.service-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 25px 25px 20px;
    border-bottom: 1px solid var(--border);
}

.service-popup-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-popup-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--light);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.service-popup-label {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.service-popup-title h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.service-popup-body {
    padding: 25px;
}

.service-popup-intro {
    margin: 0 0 24px;
    color: #626b78;
    font-size: 1rem;
    line-height: 1.7;
}

.service-popup-section h3 {
    margin: 0 0 13px;
    font-size: 1rem;
}

.service-popup-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-popup-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #4f5967;
    font-size: 0.9rem;
    line-height: 1.45;
}

.service-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.65rem;
}

.service-popup-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 15px;
    border-radius: 11px;
    background: var(--light);
    color: #687280;
}

.service-popup-note > i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

.service-popup-note p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.service-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 25px 25px;
}

/* ==========================
   MOBILE
=========================== */
@media (max-width: 600px) {
    .service-popup-features {
        grid-template-columns: 1fr;
    }

    .service-popup-header,
    .service-popup-body {
        padding: 20px;
    }

    .service-popup-footer {
        padding: 0 20px 20px;
    }

    .service-popup-footer .contact-btn {
        flex: 1;
    }
}





/* ==========================
   IMAGE POPUP
=========================== */

.image-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(10, 15, 25, 0.82);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* ==========================
   OPEN
=========================== */

.image-popup.active {
    opacity: 1;
    visibility: visible;
}


/* ==========================
   CONTENT
=========================== */

.image-popup-content {
    position: relative;

    max-width: 1200px;
    max-height: calc(100vh - 60px);

    transform: translateY(20px) scale(0.96);

    transition:
        transform 0.3s cubic-bezier(.2, .8, .2, 1);
}


.image-popup.active .image-popup-content {
    transform: translateY(0) scale(1);
}


/* ==========================
   IMAGE
=========================== */

.image-popup-content img {
    display: block;

    max-width: 100%;
    max-height: calc(100vh - 60px);

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35);
}


/* ==========================
   CLOSE BUTTON
=========================== */

.image-popup-close {
    position: absolute;

    top: -16px;
    right: -16px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--white);
    color: #555;

    cursor: pointer;

    font-size: 18px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.image-popup-close:hover {
    background: var(--light);
    color: #222;

    transform: scale(1.05);
}


.image-popup-close:active {
    transform: scale(0.95);
}


/* ==========================
   CLICKABLE IMAGES
=========================== */

.image-card img {
    cursor: zoom-in;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.image-card:hover img {
    transform: scale(1.015);
}


/* ==========================
   MOBILE
=========================== */

@media (max-width: 600px) {

    .image-popup {
        padding: 15px;
    }

    .image-popup-content {
        max-width: 100%;
        max-height: calc(100vh - 30px);
    }

    .image-popup-content img {
        max-width: 100%;
        max-height: calc(100vh - 30px);

        border-radius: 10px;
    }

    .image-popup-close {
        top: -10px;
        right: -5px;

        width: 38px;
        height: 38px;

        font-size: 16px;
    }
}
