/* abdubakiyev.uz/work — the English page for Upwork clients.
   Builds on site.css: same tokens, layers, frames and motion; only the
   case-study parts below are new. */

.btn--ghost {
    padding: 16px 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
}

.btn--ghost:hover {
    border-color: #c9ccd2;
    color: var(--ink);
}

/* ---------- Intro ---------- */

.w-intro h1 {
    max-width: 20ch;
}

.w-lede {
    max-width: 620px;
    margin-top: 20px;
    font-size: 19px;
}

.w-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.w-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 720px;
    margin: 48px auto 0;
    border-top: 1px solid var(--line);
}

.w-facts li {
    padding: 18px 12px 0;
}

.w-facts li + li {
    border-left: 1px solid var(--line);
}

.w-facts b {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.w-facts span {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: var(--ink-2);
}

/* ---------- Case studies ---------- */

.w-eyebrow {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.w-case .h2 {
    max-width: 20ch;
    margin-inline: auto;
}

.w-story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px);
    max-width: 1040px;
    margin: 56px auto 0;
    text-align: left;
}

.w-story h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.w-story p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    text-wrap: pretty;
}

.w-list {
    margin-top: 12px;
}

.w-list li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
}

.w-list li + li {
    margin-top: 12px;
}

.w-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
}

.w-list b {
    color: var(--ink-strong);
    font-weight: 600;
}

.w-phone,
.w-shot {
    margin-top: 28px;
}

.w-phone img {
    width: min(260px, 70%);
    height: auto;
    border-radius: 22px;
    box-shadow: var(--hang);
}

.w-shot img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: var(--hang);
}

.w-phone figcaption,
.w-shot figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--ink-3);
}

/* Booking flow: five steps on one line */
.w-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    max-width: 1040px;
    margin: 56px auto 0;
    counter-reset: none;
}

.w-flow li {
    position: relative;
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.w-flow li span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
}

.w-flow li:last-child {
    border-color: rgb(76 154 115 / 0.4);
    background: rgb(76 154 115 / 0.08);
}

.w-flow li:last-child span {
    background: var(--live);
}

.w-case .meta {
    margin-top: 36px;
}

/* ---------- Services ---------- */

/* Short sections: sized by their content, not by the screen */
.layer.w-services,
.layer.w-process {
    min-height: 0;
    padding-block: clamp(64px, 9vh, 104px);
}

.w-services .layer__inner,
.w-process .layer__inner {
    max-width: 1100px;
}

.w-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
    text-align: left;
}

.w-cards li {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
}

.w-cards h3,
.w-steps h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.w-cards p,
.w-steps p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}

/* ---------- Process ---------- */

.w-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
    text-align: left;
}

.w-steps li {
    padding: 24px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 0 0 1px rgb(17 19 24 / 0.06);
}

.w-steps__n {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.w-note {
    margin-top: 28px;
    font-size: 15px;
    color: var(--ink-2);
}

.work .start h2 {
    max-width: 14ch;
    margin-top: 0;
}

.work .site-footer a {
    color: var(--ink-2);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1060px) {
    .w-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 759px) {
    .w-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .w-actions .btn {
        width: 100%;
        padding: 16px;
    }

    .w-facts {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 36px;
        text-align: left;
    }

    .w-facts li {
        display: flex;
        align-items: baseline;
        gap: 10px;
        padding: 14px 0;
    }

    .w-facts li + li {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .w-facts b {
        font-size: 20px;
        white-space: nowrap;
    }

    .w-story {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 36px;
    }

    .w-flow {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 36px;
    }

    .w-flow li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
    }

    .w-flow li span {
        flex: none;
        margin-bottom: 0;
    }

    .w-cards,
    .w-steps {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 28px;
    }
}
