.adp-card[hidden], .an-flat-price[hidden] { display: none !important; }
.adp-card {
    margin: 12px 0 18px; padding: 14px 16px; border-radius: 12px;
    background: linear-gradient(115deg, #741b17, #a02a16); color: #fff6df;
}
.adp-card-label { color: #ffe14d; font-weight: 700; }
.adp-card p { margin: 6px 0 12px; color: inherit; }
.adp-card strong { font-size: 1.4em; }
.adp-card del { margin: 0 4px; }
.adp-card a, .adp-page .adp-action {
    display: inline-block; padding: 10px 15px; border-radius: 8px;
    background: #ffe14d; color: #311a0d; font-weight: 750; text-decoration: none;
}
/* The native price label supplies the opacity, size and position. */
#found_variants .cardBodyPrice .adp-home-old-price {
    color: inherit;
    font: inherit;
    text-decoration: line-through;
    white-space: nowrap;
}
#found_variants .cardBodyPrice .adp-home-new-price {
    color: #ffe14d;
    font-size: 1.2em;
    font-weight: 800;
    white-space: nowrap;
}
.adp-card { font: 15px/1.4 system-ui, sans-serif; }
.adp-card a { color: #311a0d !important; font-size: 14px; }
.adp-page {
    box-sizing: border-box;
    min-width: 0;
    container: adp-page / inline-size;
    margin: 16px auto 24px;
    color: #211715;
    font: 16px/1.5 system-ui, sans-serif;
}
.adp-page p, .adp-page a { font-size: 1em; }
.adp-page .adp-back { display: inline-block; margin-bottom: 10px; color: #79233f; }
.adp-page .adp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 0 16px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(115deg, #581613, #a22a16 50%, #ef761a);
}
.adp-page .adp-intro { padding: clamp(18px, 3vw, 32px); }
.adp-page .adp-intro h1 {
    margin: 11px 0 0;
    color: inherit;
    font-size: clamp(27px, 3.7vw, 40px);
    line-height: 1.1;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.adp-page .adp-intro h1 span {
    display: block;
    margin-top: 8px;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 650;
    line-height: 1.3;
}
.adp-page .adp-label {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 5px;
    background: #ffe14d;
    color: #391708;
    font-weight: 800;
}
.adp-page .adp-prices {
    margin: 18px 22px 18px 0;
    padding: clamp(16px, 2.2vw, 24px);
    background: #fff0ca;
    color: #211715;
    border-radius: 12px;
}
.adp-page .adp-prices strong {
    display: block;
    font-size: clamp(36px, 5.4vw, 62px);
    line-height: 1.06;
    letter-spacing: -.04em;
}
.adp-page .adp-prices p { margin: 6px 0 0; }
.adp-page .adp-prices del { margin-right: 8px; }
.adp-page .adp-prices b {
    padding: 3px 6px;
    border-radius: 5px;
    background: #ab271b;
    color: #fff;
}
.adp-page .adp-contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px clamp(18px, 3vw, 32px);
    background: linear-gradient(110deg, #122942, #173e5a);
}
.adp-page .adp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.adp-page .adp-contact .adp-action,
.adp-page .adp-contact .adp-request {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    font-weight: 750;
    text-decoration: none;
}
.adp-page .adp-contact .adp-action { color: #311a0d !important; }
.adp-page .adp-contact .adp-request {
    border: 1px solid #e4eef6;
    border-radius: 8px;
    color: #fff !important;
}
.adp-page .adp-agent { display: flex; align-items: center; gap: 10px; }
.adp-page .adp-agent img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 32%;
}
.adp-page .adp-agent a { color: #ffe14d !important; font-weight: 750; white-space: nowrap; }
.adp-page .adp-agent span { display: block; }
.adp-page .adp-note { margin: 10px 0 0; }
/* The equivalent action is inside the offer. Keep the form and its scripts mounted. */
html:has(.adp-page .adp-request) #zayavka #sendzayav { display: none !important; }

@media (max-width: 959px) {
    .adp-page { margin-top: 10px; }
}

@container adp-page (max-width: 650px) {
    .adp-page .adp-hero { grid-template-columns: minmax(0, 1fr); }
    .adp-page .adp-prices { margin: 0 16px 14px; }
    .adp-page .adp-actions { flex: 1 1 100%; }
}

@container adp-page (max-width: 390px) {
    .adp-page .adp-actions > a { flex: 1 1 100%; }
    .adp-page .adp-agent { flex: 1 1 100%; }
}
