/* ============================================================
   Рождественское оформление (сезон 01.12 – 06.01, см. fk_xmas_active() в includes/boxes/header.php).
   Файл подключается ТОЛЬКО в сезон → вне сезона ни байта лишнего.
   Без картинок и JS: гирлянда = <i>-лампочки + провод data-URI SVG; мерцание — только opacity (композитится, без перерисовки).
   ============================================================ */

/* ---------- Гирлянда под липкой строкой шапки ---------- */
.fk-xmas-garland{
    position:absolute;               /* .fk-hdr__bar — sticky → гирлянда едет вместе с шапкой */
    left:0;
    right:0;
    top:calc(100% - 3px);            /* провод начинается на нижней кромке navy, лампочки свисают ниже */
    height:22px;
    overflow:hidden;
    white-space:nowrap;
    line-height:0;
    pointer-events:none;             /* не перекрывает клики по контенту под шапкой */
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Cpath d='M0 1.5 Q14 12 28 1.5' fill='none' stroke='%232a3340' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 0;
}
.fk-xmas-garland i{
    position:relative;
    display:inline-block;
    width:28px;                      /* = период провода: лампочка висит в нижней точке провиса */
    height:22px;
}
/* лампочка: цоколь (::before) + колба (::after) */
.fk-xmas-garland i::before{
    content:"";
    position:absolute;
    left:11px;
    top:6px;
    width:6px;
    height:4px;
    border-radius:1px;
    background:#2a3340;
}
.fk-xmas-garland i::after{
    content:"";
    position:absolute;
    left:9.5px;
    top:9px;
    width:9px;
    height:12px;
    border-radius:50% 50% 50% 50% / 40% 40% 60% 60%;
    background:var(--fk-bulb);
    box-shadow:0 0 6px 1px var(--fk-bulb), inset -2px -2px 0 rgba(0,0,0,.18);
    animation:fk-xmas-twinkle 2.2s ease-in-out infinite;
}
/* фирменные цвета: жёлтый #FFE800, зелёный #00CC44 + праздничные красный и тёплый белый */
.fk-xmas-garland i:nth-child(4n+1){ --fk-bulb:#FFE800; }
.fk-xmas-garland i:nth-child(4n+2){ --fk-bulb:#00CC44; }
.fk-xmas-garland i:nth-child(4n+3){ --fk-bulb:#ff3b3b; }
.fk-xmas-garland i:nth-child(4n+4){ --fk-bulb:#fff4c2; }
/* разнобой темпа — чтобы мерцали вразнобой, а не строем */
.fk-xmas-garland i:nth-child(3n)::after{ animation-duration:1.7s; animation-delay:-.6s; }
.fk-xmas-garland i:nth-child(5n)::after{ animation-duration:2.9s; animation-delay:-1.3s; }
.fk-xmas-garland i:nth-child(7n)::after{ animation-duration:1.3s; animation-delay:-.2s; }
@keyframes fk-xmas-twinkle{
    0%,100%{ opacity:1; }
    50%    { opacity:.35; }
}
/* телефон: лампочки чуть мельче */
@media (max-width:480px){
    .fk-xmas-garland{ height:18px; }
    .fk-xmas-garland i::after{ width:7px; height:10px; left:10.5px; }
}
/* «уменьшить движение» в ОС → гирлянда горит ровно, без мерцания */
@media (prefers-reduced-motion:reduce){
    .fk-xmas-garland i::after{ animation:none; }
}
@media print{
    .fk-xmas-garland{ display:none; }
}

/* ---------- Бантики на плашках-преимуществах главной ----------
   Бант на правом верхнем углу (поворот 45°), узел — внутри плашки, ~6px от кромок. */
.success-information-points .success-point{ position:relative; }
.success-information-points .success-point::before{
    content:"";
    position:absolute;
    top:-6px;
    right:-6px;
    width:34px;
    height:34px;
    transform:rotate(45deg);
    pointer-events:none;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M19 14l-5 1.5L1.5 31l7-.6 3 7.4L21.5 19z' fill='%23c62828'/%3E%3Cpath d='M21 14l5 1.5L38.5 31l-7-.6-3 7.4L18.5 19z' fill='%23b71c1c'/%3E%3Cpath d='M19.5 16L11.5 37.8 21.5 19zM20.5 16l8 21.8L18.5 19z' fill='%238e1414' opacity='.35'/%3E%3Cpath d='M18 10.5C13.5 8.5 8 5.2 4.6 3.4 3 9 3.2 15.5 5.2 21.2 9.5 18.6 14 16.4 18 15z' fill='%23d32f2f'/%3E%3Cpath d='M22 10.5c4.5-2 10-5.3 13.4-7.1 1.6 5.6 1.4 12.1-.6 17.8-4.3-2.6-8.8-4.8-12.8-6.2z' fill='%23d32f2f'/%3E%3Cpath d='M18 13.2L5.2 21.2C9.5 18.6 14 16.4 18 15zM22 13.2l12.8 8C30.5 18.6 26 16.4 22 15z' fill='%238e1414' opacity='.5'/%3E%3Cpath d='M18 11.5L8 8.2 7 17zM22 11.5l10-3.3 1 8.8z' fill='%23a51d1d' opacity='.35'/%3E%3Cpath d='M5.4 4.6C9 6.6 13.5 9.2 17.4 10.9M34.6 4.6c-3.6 2-8.1 4.6-12 6.3' fill='none' stroke='%23ff7a7a' stroke-width='.8' stroke-linecap='round' opacity='.8'/%3E%3Crect x='17.4' y='9.4' width='5.2' height='6.6' rx='.8' fill='%23c62828' stroke='%238e1414' stroke-width='.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* узкие экраны (плашки 3 в ряд, сверху гирлянда): бант мельче */
@media (max-width:900px){
    .success-information-points .success-point::before{ top:-2px; right:-2px; width:24px; height:24px; }
}
