/* =========================
   SERVICE HUB — ЧИСТА ОСНОВА
   ========================= */

   html {
    scroll-behavior: smooth;
}


.service-hub-page {
    width: min(
        1180px,
        calc(100% - 32px)
    );

    margin: 0 auto;
    padding: 34px 0 70px;
}


.service-hub-back-link {
    display: inline-flex;
    margin-bottom: 24px;

    color: #e8c56a;
    font-weight: 700;
    text-decoration: none;
}


.service-hub-back-link:hover {
    text-decoration: underline;
}


.service-hub-label {
    margin: 0 0 10px;

    color: #e8c56a;

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}


.service-hub-hero {
    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 28px;
    align-items: stretch;

    padding: 36px;

    border:
        1px solid
        rgba(232, 197, 106, 0.28);

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(10, 32, 65, 0.98),
            rgba(4, 18, 39, 0.98)
        );

    box-shadow:
        0 24px 60px
        rgba(0, 0, 0, 0.24);
}


.service-hub-hero-content
> p:not(.service-hub-label) {
    max-width: 680px;

    color:
        rgba(
            255,
            255,
            255,
            0.8
        );

    font-size: 1.05rem;
    line-height: 1.75;
}


.service-hub-hero h1,
.service-hub-section h2,
.service-hub-contact-section h2 {
    margin-top: 0;
}


.service-hub-hero h1 {
    margin-bottom: 16px;

    font-size:
        clamp(
            2.2rem,
            5vw,
            4.5rem
        );

    line-height: 1;
}


.service-hub-actions,
.service-hub-contact-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 26px;
}


.service-hub-primary-button,
.service-hub-secondary-button,
.service-hub-contact-buttons a {
    display: inline-flex;

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

    min-height: 46px;

    padding: 0 20px;

    border-radius: 12px;

    font-weight: 800;
    text-decoration: none;
}


.service-hub-primary-button,
.service-hub-contact-buttons a {
    color: #06162c;
    background: #e8c56a;
}


.service-hub-secondary-button {
    color: #ffffff;

    border:
        1px solid
        rgba(232, 197, 106, 0.55);
}


.service-hub-primary-button:hover,
.service-hub-contact-buttons a:hover {
    filter: brightness(1.08);
}


.service-hub-secondary-button:hover {
    background:
        rgba(
            232,
            197,
            106,
            0.1
        );
}


.service-hub-hero-photo {
    min-height: 360px;

    overflow: hidden;

    border-radius: 18px;

    background: #000;
}


.service-hub-main-image {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 360px;
    max-height: 420px;

    object-fit: contain;

    padding: 24px;
}


.service-hub-section {
    margin-top: 34px;
    padding: 34px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 22px;

    background:
        rgba(
            7,
            25,
            52,
            0.78
        );
}


.service-hub-section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}


.service-hub-section-heading
> p:not(.service-hub-label) {
    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    line-height: 1.65;
}


.service-hub-services-grid,
.service-hub-gallery {
    display: grid;
    gap: 16px;
}


.service-hub-services-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}


.service-hub-gallery {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


.service-hub-empty {
    grid-column: 1 / -1;

    margin: 0;
    padding: 24px;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    text-align: center;

    border:
        1px dashed
        rgba(232, 197, 106, 0.35);

    border-radius: 16px;
}


.service-hub-contact-section {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 24px;
    align-items: center;

    margin-top: 34px;
    padding: 34px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(232, 197, 106, 0.16),
            rgba(7, 25, 52, 0.95)
        );
}


.service-hub-contact-section
> div:first-child {
    max-width: 720px;
}


.service-hub-contact-section
p:not(.service-hub-label) {
    color:
        rgba(
            255,
            255,
            255,
            0.76
        );

    line-height: 1.65;
}


/* =========================
   ПЛАВАЮЧІ КНОПКИ
   ========================= */

.service-hub-contact-float {
    position: fixed;
    z-index: 99999;

    display: flex;

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

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.service-hub-contact-float {
    right: 22px;
    bottom: 82px;

    padding: 12px 18px;

    color: #071a3d;
    background: #f3dfaa;

    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;

    transform: translateY(12px);
}




.service-hub-contact-float.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .service-hub-hero,
    .service-hub-contact-section {
        grid-template-columns: 1fr;
    }

    .service-hub-services-grid,
    .service-hub-gallery {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


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

@media (max-width: 620px) {

    .service-hub-page {
        width:
            min(
                100% - 20px,
                1180px
            );

        padding-top: 20px;
    }

    .service-hub-hero,
    .service-hub-section,
    .service-hub-contact-section {
        padding: 22px;
        border-radius: 17px;
    }

    .service-hub-services-grid,
    .service-hub-gallery {
        grid-template-columns: 1fr;
    }

    .service-hub-hero-photo,
    .service-hub-main-image {
        min-height: 250px;
    }

    .service-hub-actions,
    .service-hub-contact-buttons {
        flex-direction: column;
    }

    .service-hub-primary-button,
    .service-hub-secondary-button,
    .service-hub-contact-buttons a {
        width: 100%;
    }

    .service-hub-hero h1 {
        font-size: 2.3rem;
    }

    .service-hub-contact-float {
        right: 14px;
        bottom: 72px;

        padding: 10px 14px;

        font-size: 14px;
    }


}

.service-hub-service-card {
    padding: 22px;

    border:
        1px solid
        rgba(232, 197, 106, 0.18);

    border-radius: 16px;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );
}


.service-hub-service-card h3 {
    margin: 0;

    color: #f2d47f;
}


.service-hub-gallery-item {
    overflow: hidden;

    aspect-ratio: 4 / 3;

    border:
        1px solid
        rgba(232, 197, 106, 0.22);

    border-radius: 16px;
}


.service-hub-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.service-hub-service-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
    margin-top: 18px;
}


.service-hub-service-actions button {
    min-height: 40px;

    padding: 0 14px;

    border-radius: 10px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}


.service-hub-delete-button {
    color: #ffffff;

    border:
        1px solid
        rgba(255, 110, 110, 0.45);

    background:
        rgba(160, 35, 35, 0.35);
}


.service-hub-delete-button:hover {
    background:
        rgba(190, 45, 45, 0.5);
}


@media (max-width: 620px) {

    .service-hub-service-actions {
        flex-direction: column;
    }

    .service-hub-service-actions button {
        width: 100%;
    }
}