/* Dispatch-style homepage layer for o-podpiskah.vercel.app */
.ops-image-hero {
    position: relative;
    min-height: 660px;
    padding: 72px 0 58px;
    text-align: left;
    background: #10070a;
    overflow: hidden;
}

.ops-hero-bg-photo {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.ops-hero-bg-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 3, 5, 0.96) 0%, rgba(8, 3, 5, 0.84) 34%, rgba(23, 7, 11, 0.36) 63%, rgba(23, 7, 11, 0.18) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.42));
}

.ops-hero-bg-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.ops-image-hero .pb-hp-hero-inner {
    position: relative;
    z-index: 1;
    display: block;
}

.ops-image-hero .ops-hero-copy {
    max-width: 560px;
}

.ops-image-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.55rem, 5vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.ops-image-hero .pb-hp-hero-desc {
    max-width: 520px;
    margin: 0 0 30px;
    color: #f3bfce;
    font-size: 1.08rem;
}

.ops-image-hero .pb-hp-hero-search {
    max-width: 520px;
    margin: 0 0 22px;
}

.ops-image-hero .pb-search-box input {
    min-height: 58px;
    padding: 15px 18px;
    border-radius: 8px;
    background: rgba(24, 12, 17, 0.72);
    border-color: rgba(255,255,255,0.24);
    color: #fff;
    backdrop-filter: blur(8px);
}

.ops-image-hero .pb-search-box input::placeholder {
    color: #efb3c4;
}

.ops-image-hero .ops-hero-checks {
    grid-template-columns: 1fr;
}

.ops-dispatch-hero {
    min-height: 760px;
    padding: 52px 0 42px;
    text-align: left;
    background:
        linear-gradient(115deg, rgba(10, 4, 6, 0.98), rgba(38, 12, 19, 0.96) 54%, rgba(123, 51, 71, 0.82)),
        #12070b;
}

.ops-dispatch-hero .pb-hp-hero-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.45;
}

.pb-hp-hero-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1fr) minmax(210px, 0.48fr);
    gap: 28px;
    align-items: start;
}

.ops-hero-copy,
.ops-ledger,
.ops-actions {
    position: relative;
    z-index: 1;
}

.ops-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #f1c46a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ops-eyebrow span {
    width: 24px;
    height: 2px;
    background: currentColor;
}

.ops-dispatch-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 4.2vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.ops-dispatch-hero .pb-hp-hero-desc {
    max-width: 520px;
    margin-left: 0;
    margin-right: 0;
    color: #edb7c6;
}

.ops-dispatch-hero .pb-hp-hero-search {
    max-width: 520px;
    margin: 28px 0 22px;
}

.ops-dispatch-hero .pb-search-box input {
    min-height: 56px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

.ops-dispatch-hero .pb-search-box input::placeholder {
    color: #e2a7b8;
}

.ops-hero-checks {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

.ops-hero-checks a {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    min-height: 50px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    background: rgba(24, 12, 17, 0.62);
    border: 1px solid rgba(255,255,255,0.16);
}

.ops-hero-checks b {
    color: #f1c46a;
    font-size: 0.78rem;
}

.ops-hero-checks span {
    font-size: 0.92rem;
    font-weight: 700;
}

.ops-ledger {
    min-height: 650px;
    padding: 24px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,248,241,0.98));
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 28px 80px rgba(0,0,0,0.42);
    color: #241419;
}

.ops-ledger::before,
.ops-ledger::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.ops-ledger::before {
    width: 128px;
    height: 128px;
    right: -24px;
    top: 72px;
    background: rgba(212, 162, 78, 0.18);
}

.ops-ledger::after {
    width: 96px;
    height: 96px;
    left: -18px;
    bottom: 94px;
    background: rgba(123, 51, 71, 0.12);
}

.ops-ledger-top,
.ops-ledger-summary,
.ops-ledger-footer {
    position: relative;
    z-index: 1;
}

.ops-ledger-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ead9dd;
}

.ops-ledger-top small,
.ops-ledger-summary small {
    display: block;
    color: #8b6470;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ops-ledger-top strong {
    display: block;
    margin-top: 4px;
    font-size: 1.28rem;
    line-height: 1.2;
}

.ops-ledger-top > span {
    align-self: flex-start;
    padding: 7px 10px;
    border: 2px solid rgba(123,51,71,0.45);
    border-radius: 8px;
    color: var(--pb-primary-dark);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(3deg);
}

.ops-ledger-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.ops-ledger-summary div {
    padding: 14px 12px;
    border-radius: 8px;
    background: #f6ecef;
    border: 1px solid #ead9dd;
}

.ops-ledger-summary b {
    display: block;
    color: var(--pb-primary-dark);
    font-size: 1.7rem;
    line-height: 1.1;
}

.ops-ledger-summary span {
    color: #5c3d46;
    font-size: 0.78rem;
}

.ops-ledger-table {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    border: 1px solid #e3ced4;
    border-radius: 8px;
    overflow: hidden;
}

.ops-ledger-row {
    display: grid;
    grid-template-columns: 1.25fr 0.72fr 0.76fr;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid #ead9dd;
    font-size: 0.9rem;
}

.ops-ledger-row:last-child {
    border-bottom: none;
}

.ops-ledger-head {
    min-height: 42px;
    background: #4f212e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ops-ledger-row b {
    justify-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(212,162,78,0.2);
    color: #653313;
    font-size: 0.76rem;
}

.ops-ledger-footer {
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    padding: 16px;
    border-radius: 8px;
    background: #281119;
    color: #fff;
    font-size: 0.88rem;
}

.ops-ledger-footer i {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, #fff 3px, transparent 3px) 8px 8px / 10px 10px,
        #d4a24e;
}

.ops-actions {
    display: grid;
    gap: 12px;
    padding-top: 36px;
}

.ops-actions p {
    margin: 0 0 2px;
    color: #f1c46a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ops-actions a {
    display: grid;
    grid-template-columns: 42px 1fr 18px;
    gap: 10px;
    align-items: center;
    min-height: 76px;
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.ops-actions span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d4a24e;
    color: #281119;
    font-size: 0.78rem;
    font-weight: 900;
}

.ops-actions strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

.ops-actions b {
    color: #f1c46a;
}

.ops-dispatch-route {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
    align-items: start;
    padding-top: 34px;
}

.ops-section-title {
    padding: 26px;
    border-radius: 8px;
    background: #281119;
    color: #fff;
}

.ops-section-title h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.05;
}

.ops-section-title p:last-child {
    margin: 0;
    color: #e8bbc7;
    font-size: 0.94rem;
    line-height: 1.65;
}

.ops-route-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ops-route-list li {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--pb-border);
    border-radius: 8px;
    background: var(--pb-bg-card);
}

.ops-route-list li > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f6ecef;
    color: var(--pb-primary-dark);
    font-weight: 900;
}

.ops-route-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pb-text);
}

.ops-route-list p {
    margin: 0;
    color: var(--pb-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ops-route-list a {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--pb-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 1040px) {
    .pb-hp-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    }

    .ops-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        padding-top: 0;
    }

    .ops-actions p {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .ops-image-hero {
        min-height: 0;
        padding: 42px 0 34px;
    }

    .ops-hero-bg-photo::after {
        background:
            linear-gradient(180deg, rgba(8, 3, 5, 0.96) 0%, rgba(8, 3, 5, 0.82) 54%, rgba(8, 3, 5, 0.76) 100%),
            linear-gradient(90deg, rgba(0,0,0,0.28), rgba(0,0,0,0.1));
    }

    .ops-hero-bg-photo img {
        object-position: 62% center;
        opacity: 0.62;
    }

    .ops-dispatch-hero {
        min-height: 0;
        padding: 34px 0 28px;
    }

    .pb-hp-hero-inner,
    .ops-dispatch-route {
        grid-template-columns: 1fr;
    }

    .ops-ledger {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .ops-image-hero {
        padding: 34px 0 28px;
    }

    .ops-image-hero h1 {
        font-size: 2.34rem;
    }

    .ops-image-hero .pb-hp-hero-desc {
        font-size: 1rem;
    }

    .ops-dispatch-hero {
        text-align: left;
    }

    .ops-dispatch-hero h1 {
        font-size: 2.18rem;
    }

    .ops-ledger,
    .ops-section-title {
        padding: 18px;
    }

    .ops-ledger-table,
    .ops-ledger-footer,
    .ops-actions {
        display: none;
    }

    .ops-ledger-top {
        padding-bottom: 12px;
    }

    .ops-ledger-top strong {
        font-size: 1.08rem;
    }

    .ops-ledger-summary,
    .ops-actions {
        grid-template-columns: 1fr;
    }

    .ops-ledger-row {
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: 0;
    }

    .ops-ledger-head {
        display: none;
    }

    .ops-ledger-footer {
        grid-template-columns: 1fr;
    }

    .ops-ledger-footer i {
        display: none;
    }

    .ops-route-list li {
        grid-template-columns: 48px 1fr;
    }

    .ops-route-list a {
        grid-column: 2;
        width: fit-content;
    }
}
