.dsrg {
    --dsrg-accent: #d00000;
    --dsrg-ink: #171717;
    --dsrg-muted: #5f5f5f;
    --dsrg-line: #dfdfdf;
    --dsrg-soft: #f7f7f7;
    color: var(--dsrg-ink);
    margin: 0 auto 52px;
    max-width: 980px;
}

.dsrg * {
    box-sizing: border-box;
}

.dsrg__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 28px 0 22px;
}

.dsrg h1,
.dsrg h2,
.dsrg h3,
.dsrg h4 {
    letter-spacing: 0;
}

.dsrg h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
}

.dsrg__shipping-line {
    flex: 0 0 auto;
    margin: 0 0 4px;
    padding: 8px 11px;
    border: 1px solid var(--dsrg-line);
    border-radius: 4px;
    color: var(--dsrg-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.dsrg__story {
    display: grid;
    gap: 18px;
    margin: 0 0 34px;
    padding: 0 0 24px 22px;
    border-top: 1px solid var(--dsrg-line);
    border-bottom: 1px solid var(--dsrg-line);
    border-left: 4px solid var(--dsrg-accent);
    background: #fff;
}

.dsrg__story.dsrg--dark {
    padding: 24px;
    border: 0;
    border-radius: 6px;
    background: #171717;
    color: #fff;
}

.dsrg__story.dsrg--clean {
    border-left-color: var(--dsrg-line);
}

.dsrg__story-copy {
    max-width: 840px;
}

.dsrg__story h2 {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.2;
}

.dsrg__story-text {
    color: var(--dsrg-muted);
    font-size: 15px;
    line-height: 1.72;
}

.dsrg--dark .dsrg__story-text {
    color: #e8e8e8;
}

.dsrg__story-media {
    width: var(--dsrg-story-image-width, 100%);
    max-width: 100%;
    height: var(--dsrg-story-image-height, 220px);
    min-height: 160px;
    margin: 0;
    overflow: hidden;
    border-radius: 0 0 6px 6px;
    background: var(--dsrg-soft);
}

.dsrg__story-media img,
.dsrg__story-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.dsrg__story-media img {
    object-fit: cover;
    object-position: center 28%;
}

.dsrg__story-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cfcfcf;
    color: var(--dsrg-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dsrg__calculator {
    padding-top: 2px;
}

.dsrg__section-heading {
    margin: 0 0 16px;
}

.dsrg__section-heading h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.dsrg__section-heading p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--dsrg-muted);
    font-size: 15px;
    line-height: 1.55;
}

.dsrg__controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 300px);
    gap: 12px;
    margin: 0 0 12px;
}

.dsrg__field span {
    display: block;
    margin: 0 0 7px;
    font-weight: 800;
}

.dsrg__field input,
.dsrg__field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
    color: var(--dsrg-ink);
    font-size: 15px;
}

.dsrg__notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.dsrg__notes p {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--dsrg-accent);
    background: var(--dsrg-soft);
    color: var(--dsrg-muted);
    font-size: 13px;
    line-height: 1.5;
}

.dsrg__empty {
    padding: 15px 17px;
    border-left: 4px solid var(--dsrg-accent);
    background: var(--dsrg-soft);
    line-height: 1.6;
}

.dsrg__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    margin: 0 0 16px;
    color: var(--dsrg-muted);
    font-size: 13px;
}

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

.dsrg-card {
    min-width: 0;
    border: 1px solid var(--dsrg-line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.dsrg-card[hidden] {
    display: none;
}

.dsrg-card__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    background: #fbfbfb;
    border-bottom: 1px solid var(--dsrg-line);
}

.dsrg-card__code {
    margin: 0 0 4px;
    color: var(--dsrg-accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dsrg-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.dsrg-card__from {
    flex: 0 0 auto;
    text-align: right;
}

.dsrg-card__from span {
    display: block;
    color: var(--dsrg-muted);
    font-size: 12px;
}

.dsrg-card__from strong {
    font-size: 17px;
}

.dsrg-service {
    padding: 12px 14px 14px;
}

.dsrg-service + .dsrg-service {
    border-top: 1px solid var(--dsrg-line);
}

.dsrg-service h4 {
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
}

.dsrg-rate-list {
    display: grid;
    gap: 6px;
}

.dsrg-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    color: var(--dsrg-muted);
    font-size: 13px;
}

.dsrg-rate strong {
    color: var(--dsrg-ink);
    font-size: 14px;
}

.dsrg-rate--muted {
    opacity: .28;
}

.dsrg-rate--active {
    margin: 1px -8px;
    padding: 6px 8px;
    border-radius: 4px;
    background: #fff1f1;
    color: var(--dsrg-ink);
}

.dsrg__actions {
    display: flex;
    justify-content: center;
    margin: 22px 0 0;
}

.dsrg__show-all {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--dsrg-ink);
    border-radius: 4px;
    background: var(--dsrg-ink);
    color: #fff;
    font-weight: 900;
}

@media (max-width: 1024px) {
    .dsrg__hero {
        display: block;
    }

    .dsrg__shipping-line {
        display: inline-block;
        margin-top: 14px;
    }

    .dsrg__controls,
    .dsrg__notes {
        grid-template-columns: 1fr;
    }

    .dsrg__story-media {
        width: 100%;
    }

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

@media (max-width: 640px) {
    .dsrg h1 {
        font-size: 34px;
    }

    .dsrg__story {
        padding-left: 16px;
    }

    .dsrg__story h2,
    .dsrg__section-heading h2 {
        font-size: 24px;
    }

    .dsrg__grid {
        grid-template-columns: 1fr;
    }

    .dsrg-card__header {
        align-items: flex-start;
    }
}
