/* Shared sale styling for every public template. */
.wp-site-blocks > main, .wp-site-blocks > .wp-block-template-part { margin-block-start: 0; }
.as-single, .as-page, .as-listing { margin-block-start: 0 !important; background: radial-gradient(ellipse at 90% 0,#54207899,transparent 700px),#150d26; padding-bottom: 56px; }
.as-article-header, .as-page-header, .as-listing-header, .as-not-found { box-sizing: border-box; position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px,4vw,44px); border: 1px solid #a15cbb; border-radius: 24px; background: radial-gradient(ellipse at 95% 95%,#cf319253,transparent 65%),linear-gradient(110deg,#371653,#64228b); box-shadow: 0 14px 40px #08031033; }
.as-article-header::before, .as-page-header::before, .as-listing-header::before, .as-not-found::before { content: ''; position: absolute; z-index: -1; right: -30px; bottom: -30px; width: 240px; height: 220px; background: url('gift-party.svg') center/contain no-repeat; opacity: .13; pointer-events: none; }
.as-article-header .as-article-title, .as-page-header .as-article-title, .as-listing-header h1, .as-not-found h1 { color: #fff; text-shadow: 0 2px 20px #270d4b55; }
.as-article-header .as-article-category { position: relative; margin-bottom: 22px; font-size: .72rem; line-height: 2.8; color: #d8bce9; }
.as-article-header .as-article-category a { background: #ffdf72; color: #38114d; border-color: #ffedaf; padding: 7px 11px; }
.as-article-meta { color: #e4cff1; font-size: .85rem; }
.as-article-cover { margin-top: 24px !important; border-color: #9855b9; box-shadow: 0 12px 40px #08031030; }
.as-article-content { border-color: #d8bce8; box-shadow: 0 12px 36px #08031025; }
.as-article-content > h2 { position: relative; padding-left: 18px; border-left: 5px solid #d7228b; }
.as-article-content > h3 { color: #542071; }
.as-article-content a { text-underline-offset: 4px; }
.as-article-content a.as-retired-link { color:#796b80 !important; font-weight:400 !important; text-decoration:line-through; cursor:default; }
.as-article-content a.as-retired-link::after { content:' — старое предложение'; color:#796b80; font-size:.8em; text-decoration:none; }
.as-article-content .as-legacy-accent { color: #a30e69; }
.as-article-content a.as-offer-link:not(:has(img)):not(.wp-block-button__link):not(.promo-shop-link):not(.category-item):not(.alisale-benefit-button) { color: #9b1164; font-weight: 700; text-decoration-thickness: 1px; text-decoration-color: #e597c6; }
.as-article-content .wp-block-button__link, .as-listing .wp-block-search__button { border: 1px solid #ffeaa0; border-bottom: 3px solid #d9a62b; border-radius: 10px; background: linear-gradient(#ffe990,#ffcc4f); color: #381340; font-weight: 750; box-shadow: 0 5px 15px #9f64151a; }
.as-article-content .wp-block-button__link:hover, .as-listing .wp-block-search__button:hover { background: #fff0ae; color: #381340; }
.as-article-content blockquote { border-left-color: #d7228b; background: #fff0f9; color: #532a67; }
.as-article-content .wp-block-table, .as-article-content > table { max-width: 100%; overflow-x: auto; }
.as-article-content > table { display: block; }
.as-article-content th { border-color: #dfcce9; background: #f1e5fa; color: #49205f; }
.as-article-content td { border-color: #e7daef; }
.as-article-content tbody tr:nth-child(even) td { background: #fcf8ff; }
.as-article-content .as-table-of-contents { border-color: #ddb2e7; background: linear-gradient(120deg,#f8eaff,#fff4df); }
.as-table-of-contents summary { color: #56206d; }
.as-table-of-contents a { color: #782674; }
.as-article-tags { color: #d7bce7; }
.as-article-tags a { border-color: #8f5aab; background: #42205e; color: #ffe28a; }
.as-editorial-note { border-color: #70498a; background: #2a173e; color: #d9c6e6; }
.as-listing-header { margin-bottom: 28px !important; }
.as-listing-header .wp-block-term-description, .as-listing-header .wp-block-term-description p { color: #ead7f7; font-size: 1rem; line-height: 1.65; }
.as-listing .wp-block-search__inside-wrapper { gap: 10px; padding: 0; border: 0; }
.as-listing .wp-block-search__input { min-width: 0; border: 1px solid #d4b8e8; border-radius: 10px; background: #fff; color: #281735; padding: 12px 15px; font-size: 16px; }
.as-listing .wp-block-search__button { margin-left: 0; padding: 12px 18px; font-size: .95rem; }
.as-listing .as-home-grid > .wp-block-query-no-results { padding: 22px; border: 1px solid #9d62b9; border-radius: 14px; background: #38204d; color: #f7e8ff; }
.as-listing .as-home-grid > .wp-block-query-no-results a { color: #ffe28a; }
.as-listing .as-empty-listing { padding: 22px; border: 1px solid #9d62b9; border-radius: 14px; background: #38204d; color: #f7e8ff; }
.as-listing .as-empty-listing a { color: #ffe28a; }
.as-listing .wp-block-query-pagination { gap: 10px; color: #f2dfff; }
.as-listing .wp-block-query-pagination a, .as-listing .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; box-sizing: border-box; margin: 3px; padding: 8px 13px; border: 1px solid #82549e; border-radius: 9px; background: #38204d; color: #f7e7ff; text-decoration: none; }
.as-listing .wp-block-query-pagination .current { border-color: #ffe28a; background: #ffdc61; color: #381340; font-weight: 750; }
.as-not-found { max-width: 850px; margin-block: 16px 36px; }
.as-not-found .as-eyebrow { color: #ffe28a; }
.as-not-found p { color: #ead7f7; }
.as-not-found ul { padding-left: 24px; line-height: 2; }
.as-not-found a { color: #ffe28a; }
.as-campaign-banner { box-sizing: border-box; display: grid; grid-template-columns: 130px minmax(0,1fr) auto; align-items: center; gap: 22px; width: 100%; margin-top: 32px !important; padding: 24px; border: 1px solid #ad65cd; border-radius: 20px; background: radial-gradient(ellipse at 10% 100%,#c7209550,transparent 60%),linear-gradient(110deg,#4a1e70,#712d8e); color: #fff; box-shadow: 0 12px 35px #08031025; }
.wp-block-template-part:has(> .as-campaign-banner) { max-width: 1180px; margin: 36px auto 0; }
.as-campaign-banner img { display: block; width: 140px; height: auto; }
.as-campaign-banner .as-eyebrow { margin: 0 0 9px; color: #ffe28a; font-size: .64rem; }
.as-campaign-banner h2 { margin: 0; color: #fff; font-size: clamp(1.35rem,2.5vw,1.8rem); line-height: 1.2; letter-spacing: -.035em; }
.as-campaign-banner p:not(.as-eyebrow) { margin: 10px 0 0; color: #ebd5f7; font-size: .85rem; line-height: 1.6; }
.as-campaign-banner__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.as-campaign-banner .as-action { gap: 8px; font-size: .85rem; white-space: nowrap; }
.as-campaign-banner .as-text-link { color: #f5e5ff; font-size: .8rem; }
.as-directory-guides section { background: linear-gradient(135deg,#f9f0ff,#fff); }
.as-shopping-actions { box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:center; width:100%; padding:24px; border:1px solid #ad65cd; border-radius:20px; background:radial-gradient(ellipse at 0 100%,#c7209550,transparent 65%),linear-gradient(110deg,#4a1e70,#712d8e); color:#fff; }
.wp-block-template-part:has(> .as-shopping-actions) { max-width:1180px; width:100%; margin:24px auto; }
.as-shopping-actions { margin-block:24px !important; }
.as-shopping-actions .as-eyebrow { margin:0 0 8px; color:#ffe28a; font-size:.65rem; }
.as-shopping-actions h2 { margin:0; color:#fff; font-size:clamp(1.25rem,2.3vw,1.7rem); line-height:1.2; }
.as-shopping-actions p:not(.as-eyebrow) { margin:10px 0; color:#f6e7ff; font-size:.9rem; }
.as-shopping-actions small, .as-home-shopping-note, .as-campaign-banner small { color:#ebd5f7; font-size:.72rem; }
.as-shopping-actions__buttons { display:flex; flex-direction:column; gap:12px; }
.as-shopping-actions .as-action, .as-campaign-banner .as-action { justify-content:center; text-align:center; gap:8px; font-size:.85rem; }
.as-action.as-action--secondary { background:#542073; border-color:#c996df; border-bottom-color:#a965cb; color:#fff; box-shadow:none; }
.as-action.as-action--secondary:hover { background:#713394; color:#fff; }
.as-shopping-guides { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; }
.as-home-shopping-note { margin:12px 0 0; }
.as-action:focus-visible { outline:3px solid #ffec9f; outline-offset:4px; }
.as-directory-guides section:nth-child(2) { background: linear-gradient(135deg,#fff4de,#fff); }
.as-directory-topics > a { border-color: #d9bce8; box-shadow: 0 3px 12px #7f215408; }
.as-directory-topics > a:hover { border-color: #cc318c; }
/* Calculator and live exchange rates use the same campaign palette. */
.as-article-content .ali-duty-page { --as-orange:#ad126c; --as-orange-dark:#851052; --as-bg:#f8edff; --as-soft:#fff4d5; --as-border:#dfbde9; --as-shadow:0 8px 25px #64246b10; --as-muted:#685270; }
.as-article-content .ali-duty-hero { border-color: #b16dc9; background: linear-gradient(120deg,#442065,#822d9b); color: #fff; }
.as-article-content .ali-duty-hero h1, .as-article-content .ali-duty-hero h2 { color: #fff; }
.as-article-content .ali-duty-lead { color: #f1dfff; }
.as-article-content .ali-duty-kicker { background: #ffdc61; border-color: #ffedac; color: #3f194c; }
.as-article-content .ali-duty-point { background: #ffffff14; border-color: #b784d0; color: #fff; }
.as-article-content .ali-duty-notice { border-left-color: #ffda61; background: #fff5d8; color: #4e3654; }
.as-article-content .ali-duty-field input, .as-article-content .ali-duty-field select { border-color: #c8a7dd; }
.as-article-content .ali-duty-field input:focus-visible, .as-article-content .ali-duty-field select:focus-visible { outline: 3px solid #a62aaf; outline-offset: 3px; }
.as-article-content .ali-duty-button, .as-article-content .ali-duty-bottom-cta a { border: 1px solid #ffe99a; border-bottom: 3px solid #d9a62b; background: linear-gradient(#ffe990,#ffcc4f); color: #381340; }
.as-article-content .ali-duty-button:hover, .as-article-content .ali-duty-bottom-cta a:hover { background: #ffefaa; color: #381340; }
.as-article-content .alisale-rate-card { background: #f5e9fd; border-color: #d9b5e8; }
.as-article-content .alisale-rate-card span, .as-article-content .alisale-rate-card small { color: #664273; }
.as-article-content .alisale-rate-card strong { color: #5a1b79; }
.as-article-content .alisale-benefit-button.is-primary { border-color: #ffedac; background: #ffdc61; color: #381340; }
.as-article-content .alisale-sales-calendar tbody th { background: #f4e7fc; color: #5b2475; }
@media (max-width: 900px) {
 .as-campaign-banner { grid-template-columns: 100px minmax(0,1fr); gap: 16px; }
 .as-campaign-banner img { width: 110px; }
 .as-campaign-banner__actions { grid-column: 1 / -1; flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 782px) {
 .as-shopping-actions { grid-template-columns:1fr; gap:18px; padding:20px 16px; }
 .as-shopping-actions__buttons .as-action { width:100%; box-sizing:border-box; }
 .as-home-intro__actions .as-action { width:100%; box-sizing:border-box; justify-content:center; text-align:center; }
 .as-article-header, .as-page-header, .as-listing-header, .as-not-found { border-radius: 18px; padding: 24px 18px; }
 .as-article-header .as-article-category { font-size: .63rem; letter-spacing: .05em; }
 .as-article-header::before, .as-page-header::before, .as-listing-header::before { width: 170px; height: 160px; }
 .as-article-meta { font-size: .75rem; gap: 7px; }
 .as-listing { padding-inline: 12px; }
 .as-listing .wp-block-search__inside-wrapper { flex-wrap: wrap; }
 .as-listing .wp-block-search__input { flex: 1 1 130px; width: 100%; }
 .as-campaign-banner { padding: 20px 16px; gap: 10px; grid-template-columns: 66px minmax(0,1fr); }
 .as-campaign-banner img { width: 80px; margin-left: -10px; }
 .as-campaign-banner .as-eyebrow { font-size: .51rem; }
 .as-campaign-banner h2 { font-size: 1.25rem; }
 .as-campaign-banner__actions { margin-top: 12px; }
 .as-campaign-banner .as-action { width: 100%; box-sizing: border-box; justify-content: center; }
}
