/* Праздничное оформление РОССТАЛ. Everything is scoped to html[data-rsh] — without a holiday nothing applies. */

/* ---------- palette per holiday ---------- */
html[data-rsh="newyear"]     { --rsh-btn: #d42f3c; --rsh-btn-h: #b8222e; --rsh-btn-t: #fff; --rsh-r1: #0d2740; --rsh-r2: #1c4f7c; --rsh-rt: #fff; --rsh-acc: #ffd36b; }
html[data-rsh="feb23"]       { --rsh-btn: #4a6a2f; --rsh-btn-h: #3b5625; --rsh-btn-t: #fff; --rsh-r1: #2f4420; --rsh-r2: #4a6a2f; --rsh-rt: #fff; --rsh-acc: #e9c46a; }
html[data-rsh="mar8"]        { --rsh-btn: #e2457a; --rsh-btn-h: #c93366; --rsh-btn-t: #fff; --rsh-r1: #f6c3d5; --rsh-r2: #fbe3ec; --rsh-rt: #8a1f45; --rsh-acc: #e2457a; }
html[data-rsh="easter"]      { --rsh-btn: #7b4fb0; --rsh-btn-h: #643d96; --rsh-btn-t: #fff; --rsh-r1: #fff2c2; --rsh-r2: #e6f4d8; --rsh-rt: #3f5f22; --rsh-acc: #d0473a; }
html[data-rsh="may1"]        { --rsh-btn: #2f9e58; --rsh-btn-h: #258549; --rsh-btn-t: #fff; --rsh-r1: #dff3e5; --rsh-r2: #f1faf3; --rsh-rt: #1d6b3b; --rsh-acc: #2f9e58; }
html[data-rsh="may9"]        { --rsh-btn: #b3261e; --rsh-btn-h: #931d17; --rsh-btn-t: #fff; --rsh-r1: #2b1b17; --rsh-r2: #4a2a20; --rsh-rt: #f4d38a; --rsh-acc: #e0a63a; }
html[data-rsh="june12"]      { --rsh-btn: #1f5fbf; --rsh-btn-h: #184da0; --rsh-btn-t: #fff; --rsh-r1: #ffffff; --rsh-r2: #eef3fb; --rsh-rt: #0d2740; --rsh-acc: #d52b1e; }
html[data-rsh="season"]      { --rsh-btn: #e8551b; --rsh-btn-h: #c94512; --rsh-btn-t: #fff; --rsh-r1: #3a1406; --rsh-r2: #7a2a0c; --rsh-rt: #ffe1c4; --rsh-acc: #ffb347; }
html[data-rsh="blackfriday"] { --rsh-btn: #111111; --rsh-btn-h: #000000; --rsh-btn-t: #ffd400; --rsh-r1: #000000; --rsh-r2: #1b1b1b; --rsh-rt: #ffd400; --rsh-acc: #ffd400; }

/* ---------- greeting ribbon above the header ---------- */
.rsh-ribbon { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 6px 44px; box-sizing: border-box; background: linear-gradient(90deg, var(--rsh-r1), var(--rsh-r2), var(--rsh-r1)); color: var(--rsh-rt); font: 600 14px/1.3 Montserrat, Arial, sans-serif; text-align: center; overflow: hidden; }
.rsh-ribbon a { color: inherit !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 10px; }
.rsh-ribbon a:hover span { text-decoration: underline; }
.rsh-ribbon svg { flex: 0 0 auto; color: var(--rsh-acc); }
.rsh-ribbon__tail { font-style: normal; }
.rsh-ribbon__x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .6; font-size: 20px; line-height: 1; cursor: pointer; }
.rsh-ribbon__x:hover { opacity: 1; background: rgba(127, 127, 127, .18); }
html[data-rsh="blackfriday"] .rsh-ribbon { letter-spacing: .06em; text-transform: uppercase; }
html[data-rsh="june12"] .rsh-ribbon { border-bottom: 1px solid #dfe6f1; }

/* ---------- buttons: only the colour changes ---------- */
html[data-rsh].rsh-btns .rh-btn--primary,
html[data-rsh].rsh-btns .rh-hx__call,
html[data-rsh].rsh-btns .rh-brands-btn,
html[data-rsh].rsh-btns .header-top .rh-topnav a.rh-brands-btn,
html[data-rsh].rsh-btns .rh-service__cta,
html[data-rsh].rsh-btns .rh-mbtn,
html[data-rsh].rsh-btns .add2cart-button:not(.disabled),
html[data-rsh].rsh-btns .rsc-btn-main,
html[data-rsh].rsh-btns .rsc-thx__ok,
html[data-rsh].rsh-btns .header-cart__count { background: var(--rsh-btn) !important; background-image: none !important; color: var(--rsh-btn-t) !important; border-color: var(--rsh-btn) !important; }
html[data-rsh].rsh-btns .rh-btn--primary:hover,
html[data-rsh].rsh-btns .rh-hx__call:hover,
html[data-rsh].rsh-btns .add2cart-button:not(.disabled):hover,
html[data-rsh].rsh-btns .rsc-btn-main:hover,
html[data-rsh].rsh-btns .rh-mbtn:hover { background: var(--rsh-btn-h) !important; }
html[data-rsh].rsh-btns .rsc-oneclick { border-color: var(--rsh-btn) !important; color: var(--rsh-btn) !important; }
html[data-rsh].rsh-btns .rh-btn--primary,
html[data-rsh].rsh-btns .add2cart-button:not(.disabled),
html[data-rsh].rsh-btns .rsc-btn-main,
html[data-rsh].rsh-btns .rh-hx__call { box-shadow: 0 6px 18px color-mix(in srgb, var(--rsh-btn) 35%, transparent) !important; }
/* ---------- decoration line under the header ---------- */
.rsh-deco { position: absolute; left: 0; right: 0; top: 100%; height: 0; z-index: 5; pointer-events: none; }
.rsh-deco.is-flow { position: relative; top: auto; height: auto; z-index: 50; }
.rsh-deco.is-flow::before { position: relative; display: block; top: 0; }
html[data-rsh].rsh-has-deco .rsh-deco.is-flow ~ * #main-content, html.rsh-has-deco body.touch #main-content { padding-top: 0; }
.rsh-deco::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; }
html[data-rsh="newyear"] .rsh-deco::before { /* garland of our goods: radiator, flame, water drop, ball valve, pressure gauge, snowflake */
  top: 0; height: 30px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="264" height="38" viewBox="0 0 264 38"%3E%3Cpath d="M0 3Q22 15 44 3Q66 15 88 3Q110 15 132 3Q154 15 176 3Q198 15 220 3Q242 15 264 3" stroke="%232c3e50" stroke-width="1.4" fill="none"/%3E%3Cpath d="M22 9V14" stroke="%232c3e50" stroke-width="1"/%3E%3Cg transform="translate(22 14) scale(1.15)"%3E%3Crect x="-6.5" y="0.5" width="13" height="2" rx="1" fill="%23b8222e"/%3E%3Crect x="-6.0" y="1" width="2.6" height="13" rx="1.3" fill="%23d42f3c"/%3E%3Crect x="-2.8" y="1" width="2.6" height="13" rx="1.3" fill="%23d42f3c"/%3E%3Crect x="0.4" y="1" width="2.6" height="13" rx="1.3" fill="%23d42f3c"/%3E%3Crect x="3.6" y="1" width="2.6" height="13" rx="1.3" fill="%23d42f3c"/%3E%3Crect x="-6.5" y="12.5" width="13" height="2" rx="1" fill="%23b8222e"/%3E%3Crect x="-5.4" y="3" width="0.8" height="8" rx=".4" fill="%23fff" opacity=".55"/%3E%3C/g%3E%3Cpath d="M66 9V14" stroke="%232c3e50" stroke-width="1"/%3E%3Cg transform="translate(66 14) scale(1.15)"%3E%3Cpath d="M0 0C5 5 6.5 8 6.5 10.5A6.5 6.5 0 0 1-6.5 10.5C-6.5 7-3.5 5-1.5 2.5C-1 5 0 6 .8 6C1.2 4 .6 2 0 0Z" fill="%23ff7a1a"/%3E%3Cpath d="M0 7.5C2.4 9.2 3.2 10.6 3.2 12A3.2 3.2 0 0 1-3.2 12C-3.2 10.5-1.6 9 0 7.5Z" fill="%23ffd36b"/%3E%3C/g%3E%3Cpath d="M110 9V14" stroke="%232c3e50" stroke-width="1"/%3E%3Cg transform="translate(110 14) scale(1.15)"%3E%3Cpath d="M0 0C3 5 6.2 8 6.2 11.2A6.2 6.2 0 0 1-6.2 11.2C-6.2 8-3 5 0 0Z" fill="%233aa0f0"/%3E%3Cellipse cx="-2.3" cy="11" rx="1.1" ry="2.2" fill="%23fff" opacity=".7"/%3E%3C/g%3E%3Cpath d="M154 9V14" stroke="%232c3e50" stroke-width="1"/%3E%3Cg transform="translate(154 14) scale(1.15)"%3E%3Cpath d="M0 3L-6.5 0V5.5ZM0 3L6.5 0V5.5Z" fill="%23e23b3b"/%3E%3Crect x="-1" y="3" width="2" height="3.5" fill="%238a8f96"/%3E%3Crect x="-8.5" y="7.5" width="2.8" height="6" rx=".6" fill="%23c08a2a"/%3E%3Crect x="5.7" y="7.5" width="2.8" height="6" rx=".6" fill="%23c08a2a"/%3E%3Crect x="-6" y="6.5" width="12" height="8" rx="2" fill="%23d9a441"/%3E%3Ccircle cx="0" cy="10.5" r="2.6" fill="%23f0c66a"/%3E%3C/g%3E%3Cpath d="M198 9V14" stroke="%232c3e50" stroke-width="1"/%3E%3Cg transform="translate(198 14) scale(1.15)"%3E%3Crect x="-1.3" y="0" width="2.6" height="3.5" fill="%23c08a2a"/%3E%3Ccircle cx="0" cy="9.5" r="6.2" fill="%23fff" stroke="%232c3e50" stroke-width="1.4"/%3E%3Cpath d="M0 9.5L3.2 6.3" stroke="%23d42f3c" stroke-width="1.3" stroke-linecap="round"/%3E%3Ccircle cx="0" cy="9.5" r="1" fill="%232c3e50"/%3E%3C/g%3E%3Cpath d="M242 9V14" stroke="%232c3e50" stroke-width="1"/%3E%3Cg transform="translate(242 14) scale(1.15)"%3E%3Cg stroke="%235ab8f0" stroke-width="1.4" stroke-linecap="round"%3E%3Cpath d="M0 2V15M-5.6 5.2L5.6 11.8M-5.6 11.8L5.6 5.2"/%3E%3Cpath d="M-1.8 3.4L0 5L1.8 3.4M-1.8 13.6L0 12L1.8 13.6"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') 50% 0 / 208px 30px repeat-x;
  animation: rshTwinkle 2.4s ease-in-out infinite;
}
/* room for the garland so it hangs fully visible and covers nothing at the top of the page */
html[data-rsh="newyear"].rsh-has-deco #main-content { padding-top: 14px; }
@keyframes rshTwinkle { 50% { filter: brightness(1.15) saturate(1.15); } }
html[data-rsh="feb23"] .rsh-deco::before,
html[data-rsh="may9"] .rsh-deco::before { height: 6px; background: repeating-linear-gradient(90deg, var(--rsh-btn) 0 40px, var(--rsh-acc) 40px 48px); }
html[data-rsh="mar8"] .rsh-deco::before { height: 16px; background: radial-gradient(circle at 50% 0, #f7a8c4 7px, transparent 8px) 0 0 / 34px 16px repeat-x, radial-gradient(circle at 50% 0, #e2457a 3px, transparent 4px) 0 0 / 34px 16px repeat-x; }
html[data-rsh="easter"] .rsh-deco::before { /* a row of painted eggs */
  top: 2px; height: 22px; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="156" height="22" viewBox="0 0 156 22"%3E%3Cg transform="translate(13 4)"%3E%3Cpath d="M0 0C4 0 6.5 6 6.5 10A6.5 6.5 0 0 1-6.5 10C-6.5 6-4 0 0 0Z" fill="%23f4b6c6"/%3E%3Cpath d="M-6.1 8.6l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6" stroke="%23fff" stroke-width="1.3" fill="none" stroke-linejoin="round"/%3E%3Ccircle cx="-2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Ccircle cx="0" cy="13.4" r=".9" fill="%23fff"/%3E%3Ccircle cx="2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Cellipse cx="-2.6" cy="4.5" rx="1.1" ry="2" fill="%23fff" opacity=".45"/%3E%3C/g%3E%3Cg transform="translate(39 4)"%3E%3Cpath d="M0 0C4 0 6.5 6 6.5 10A6.5 6.5 0 0 1-6.5 10C-6.5 6-4 0 0 0Z" fill="%23ffd66b"/%3E%3Cpath d="M-6.1 8.6l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6" stroke="%23d0473a" stroke-width="1.3" fill="none" stroke-linejoin="round"/%3E%3Ccircle cx="-2.4" cy="12.6" r=".9" fill="%23d0473a"/%3E%3Ccircle cx="0" cy="13.4" r=".9" fill="%23d0473a"/%3E%3Ccircle cx="2.4" cy="12.6" r=".9" fill="%23d0473a"/%3E%3Cellipse cx="-2.6" cy="4.5" rx="1.1" ry="2" fill="%23fff" opacity=".45"/%3E%3C/g%3E%3Cg transform="translate(65 4)"%3E%3Cpath d="M0 0C4 0 6.5 6 6.5 10A6.5 6.5 0 0 1-6.5 10C-6.5 6-4 0 0 0Z" fill="%23a8d4f2"/%3E%3Cpath d="M-6.1 8.6l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6" stroke="%23fff" stroke-width="1.3" fill="none" stroke-linejoin="round"/%3E%3Ccircle cx="-2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Ccircle cx="0" cy="13.4" r=".9" fill="%23fff"/%3E%3Ccircle cx="2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Cellipse cx="-2.6" cy="4.5" rx="1.1" ry="2" fill="%23fff" opacity=".45"/%3E%3C/g%3E%3Cg transform="translate(91 4)"%3E%3Cpath d="M0 0C4 0 6.5 6 6.5 10A6.5 6.5 0 0 1-6.5 10C-6.5 6-4 0 0 0Z" fill="%23b9e3a1"/%3E%3Cpath d="M-6.1 8.6l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6" stroke="%23fff" stroke-width="1.3" fill="none" stroke-linejoin="round"/%3E%3Ccircle cx="-2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Ccircle cx="0" cy="13.4" r=".9" fill="%23fff"/%3E%3Ccircle cx="2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Cellipse cx="-2.6" cy="4.5" rx="1.1" ry="2" fill="%23fff" opacity=".45"/%3E%3C/g%3E%3Cg transform="translate(117 4)"%3E%3Cpath d="M0 0C4 0 6.5 6 6.5 10A6.5 6.5 0 0 1-6.5 10C-6.5 6-4 0 0 0Z" fill="%23d4b6f0"/%3E%3Cpath d="M-6.1 8.6l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6" stroke="%23fff" stroke-width="1.3" fill="none" stroke-linejoin="round"/%3E%3Ccircle cx="-2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Ccircle cx="0" cy="13.4" r=".9" fill="%23fff"/%3E%3Ccircle cx="2.4" cy="12.6" r=".9" fill="%23fff"/%3E%3Cellipse cx="-2.6" cy="4.5" rx="1.1" ry="2" fill="%23fff" opacity=".45"/%3E%3C/g%3E%3Cg transform="translate(143 4)"%3E%3Cpath d="M0 0C4 0 6.5 6 6.5 10A6.5 6.5 0 0 1-6.5 10C-6.5 6-4 0 0 0Z" fill="%23d0473a"/%3E%3Cpath d="M-6.1 8.6l2-1.6 2 1.6 2-1.6 2 1.6 2-1.6 2 1.6" stroke="%23ffd66b" stroke-width="1.3" fill="none" stroke-linejoin="round"/%3E%3Ccircle cx="-2.4" cy="12.6" r=".9" fill="%23ffd66b"/%3E%3Ccircle cx="0" cy="13.4" r=".9" fill="%23ffd66b"/%3E%3Ccircle cx="2.4" cy="12.6" r=".9" fill="%23ffd66b"/%3E%3Cellipse cx="-2.6" cy="4.5" rx="1.1" ry="2" fill="%23fff" opacity=".45"/%3E%3C/g%3E%3C/svg%3E') 50% 0 / 156px 22px repeat-x;
}
html[data-rsh="easter"].rsh-has-deco #main-content { padding-top: 12px; }
html[data-rsh="may1"] .rsh-deco::before { height: 6px; background: repeating-linear-gradient(90deg, #2f9e58 0 30px, #8fd19e 30px 60px, #f7d046 60px 70px); }
html[data-rsh="june12"] .rsh-deco::before { height: 6px; background: linear-gradient(#fff 0 2px, #1f5fbf 2px 4px, #d52b1e 4px 6px); box-shadow: 0 1px 0 #dfe6f1; }
html[data-rsh="season"] .rsh-deco::before { height: 5px; background: linear-gradient(90deg, #ffb347, #e8551b, #b8320d, #e8551b, #ffb347); background-size: 200% 100%; animation: rshFlow 6s linear infinite; }
@keyframes rshFlow { to { background-position: -200% 0; } }
html[data-rsh="blackfriday"] .rsh-deco::before { height: 10px; background: repeating-linear-gradient(-45deg, #111 0 12px, #ffd400 12px 24px); }

/* ---------- Black Friday note at «Купить» ---------- */
.rsh-bf-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #111; color: #fff; font: 500 13px/1.35 Montserrat, Arial, sans-serif; }
.rsh-bf-note svg { color: #ffd400; flex: 0 0 auto; }
.rsh-bf-note b { color: #ffd400; font-weight: 800; }

/* ---------- snow / petals ---------- */
.rsh-fx { position: fixed; inset: 0; z-index: 9990; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .rsh-fx { display: none; } html[data-rsh] .rsh-deco::before { animation: none !important; } }

@media (max-width: 760px) {
  .rsh-ribbon { font-size: 12.5px; min-height: 32px; padding: 5px 38px 5px 14px; gap: 8px; }
  .rsh-ribbon > svg:last-of-type, .rsh-ribbon a > svg:last-of-type { display: none; }
  .rsh-ribbon__tail { display: none; }
  html[data-rsh="blackfriday"] .rsh-ribbon { text-transform: none; letter-spacing: 0; }
}
