/*
 * SIBSOKNSK — Homepage Production V1
 */

.home-process,
.home-preview-section,
.home-works-section,
.home-about-section,
.home-promotions-section,
.home-faq-section {
    position: relative;
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.home-process-item {
    min-height: 300px;
    padding: 34px 28px 38px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.home-process-item:last-child {
    border-right: 0;
}

.home-process-item > span {
    display: block;
    margin-bottom: 74px;
    color: rgba(214, 165, 104, 0.88);
    font-size: 12px;
    letter-spacing: 0.18em;
}

.home-process-item h3 {
    margin: 0 0 18px;
    font-size: clamp(22px, 2vw, 30px);
}

.home-process-item p {
    max-width: 260px;
    margin: 0;
    color: rgba(235, 232, 224, 0.62);
    line-height: 1.7;
}

.home-preview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 46px;
}

.home-preview-head h2 {
    margin-bottom: 0;
}

.home-empty-state {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    min-height: 210px;
    padding: 34px 36px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0)
        );
}

.home-empty-index {
    color: rgba(214, 165, 104, 0.84);
    font-size: 12px;
    letter-spacing: 0.18em;
}

.home-empty-state h3 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 38px);
}

.home-empty-state p {
    max-width: 630px;
    margin: 0;
    color: rgba(235, 232, 224, 0.62);
    line-height: 1.7;
}

.home-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-catalog-card,
.home-project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(
            145deg,
            rgba(214, 165, 104, 0.13),
            rgba(255, 255, 255, 0.035)
        );
}

.home-card-media img,
.home-project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 500ms ease,
        filter 500ms ease;
}

.home-card-media > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(214, 165, 104, 0.24);
    font-size: clamp(60px, 8vw, 130px);
}

.home-card-copy {
    padding: 22px 2px 0;
}

.home-card-copy h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.home-card-copy p {
    margin: 0 0 18px;
    color: rgba(235, 232, 224, 0.58);
    line-height: 1.65;
}

.home-card-copy > span {
    color: rgba(214, 165, 104, 0.9);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-catalog-card:hover img,
.home-project-card:hover img {
    transform: scale(1.025);
    filter: brightness(1.04);
}

.home-works-section {
    background: rgba(255, 255, 255, 0.018);
}

.home-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-project-media {
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.05),
            rgba(214, 165, 104, 0.08)
        );
}

.home-project-copy {
    padding: 24px 0 4px;
}

.home-project-copy > span {
    display: block;
    margin-bottom: 10px;
    color: rgba(214, 165, 104, 0.82);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.home-project-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.2vw, 32px);
}

.home-project-copy p {
    margin: 0;
    color: rgba(235, 232, 224, 0.6);
    line-height: 1.65;
}

.home-about-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
    gap: clamp(50px, 8vw, 140px);
    padding-top: clamp(70px, 9vw, 130px);
    padding-bottom: clamp(70px, 9vw, 130px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.home-about-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 70px;
}

.home-about-region {
    color: rgba(235, 232, 224, 0.48);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-about-copy h2 {
    max-width: 930px;
    margin: 0 0 34px;
    font-size: clamp(38px, 5.5vw, 76px);
    line-height: 1.03;
}

.home-about-copy p {
    max-width: 720px;
    margin: 0 0 34px;
    color: rgba(235, 232, 224, 0.65);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.7;
}

.home-promotion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-promotion-card {
    min-height: 310px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(
            145deg,
            rgba(214, 165, 104, 0.07),
            rgba(255, 255, 255, 0.018)
        );
}

.home-promotion-card > span {
    color: rgba(214, 165, 104, 0.86);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.home-promotion-card h3 {
    margin: 78px 0 18px;
    font-size: clamp(28px, 3vw, 44px);
}

.home-promotion-card p {
    max-width: 540px;
    color: rgba(235, 232, 224, 0.62);
    line-height: 1.65;
}

.home-promotion-card strong {
    display: inline-block;
    margin-top: 26px;
    color: rgba(214, 165, 104, 0.9);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.home-faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
    gap: clamp(50px, 8vw, 130px);
}

.home-faq-intro h2 {
    max-width: 400px;
    margin: 18px 0 22px;
    font-size: clamp(36px, 4.2vw, 62px);
    line-height: 1.06;
}

.home-faq-intro p {
    max-width: 420px;
    margin-bottom: 28px;
    color: rgba(235, 232, 224, 0.6);
    line-height: 1.7;
}

.home-faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.home-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 25px 40px 25px 0;
    font-size: clamp(18px, 2vw, 24px);
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item > div {
    max-width: 700px;
    padding: 0 40px 26px 0;
    color: rgba(235, 232, 224, 0.62);
    line-height: 1.7;
}

.home-empty-faq {
    min-height: 230px;
    padding: 34px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.home-empty-faq span {
    color: rgba(214, 165, 104, 0.82);
    font-size: 11px;
    letter-spacing: 0.18em;
}

.home-empty-faq p {
    max-width: 500px;
    margin: 64px 0 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.25;
}

.home-final-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 11vw, 170px) 0;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(193, 139, 74, 0.18),
            transparent 34%
        ),
        #101112;
}

.home-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            transparent 0 62%,
            rgba(255, 255, 255, 0.025) 62% 63%,
            transparent 63% 100%
        );
}

.home-final-cta-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    align-items: end;
    gap: clamp(50px, 8vw, 130px);
}

.home-final-cta h2 {
    max-width: 930px;
    margin: 20px 0 0;
    font-size: clamp(42px, 6.5vw, 94px);
    line-height: 0.98;
}

.home-final-cta-actions p {
    margin: 0 0 28px;
    color: rgba(235, 232, 224, 0.62);
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .home-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-process-item:nth-child(2) {
        border-right: 0;
    }

    .home-process-item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .home-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-preview-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .home-process-grid {
        grid-template-columns: 1fr;
    }

    .home-process-item {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .home-process-item:last-child {
        border-bottom: 0;
    }

    .home-process-item > span {
        margin-bottom: 42px;
    }

    .home-empty-state {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
        padding: 28px 24px;
    }

    .home-catalog-grid,
    .home-project-grid,
    .home-promotion-grid {
        grid-template-columns: 1fr;
    }

    .home-about-grid,
    .home-faq-layout,
    .home-final-cta-grid {
        grid-template-columns: 1fr;
    }

    .home-about-grid {
        gap: 48px;
    }

    .home-about-aside {
        gap: 24px;
    }

    .home-final-cta-grid {
        align-items: start;
        gap: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-card-media img,
    .home-project-media img {
        transition: none;
    }
}
