/* =========================================================
   MIRIDEA · «Новогоднее оформление сайта» v1
   Основа — dorabotka.css (m-dr-*), здесь только своё (m-ny-*).
   ========================================================= */
.m-ny { --grad: linear-gradient(120deg,#f93c3c 0%,#cd0973 100%); }
.m-dr-hero__btns { flex-wrap: wrap; }

/* кнопка «снег на странице» */
.m-ny-snowbtn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 10px 22px 10px 22px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; }
.m-ny-snowbtn svg { width: 20px; height: 20px; fill: none; stroke: #4c7bff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s; }
.m-ny-snowbtn:hover { border-color: #4c7bff; transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(76,123,255,.7); }
.m-ny-snowbtn[aria-pressed="true"] { border-color: #4c7bff; background: #eef3ff; }
.m-ny-snowbtn[aria-pressed="true"] svg { transform: rotate(180deg); }
.m-ny-pagesnow { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* демо-окно */
.m-ny-demo { max-width: 500px; margin-inline: auto; width: 100%; }
.m-ny-win { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -46px rgba(24,78,174,.55); }
.m-ny-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f3f8; }
.m-ny-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbe7; }
.m-ny-win__bar i:nth-child(1) { background: #ff6b6b; } .m-ny-win__bar i:nth-child(2) { background: #ffc84d; } .m-ny-win__bar i:nth-child(3) { background: #3ed39b; }
.m-ny-win__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--mute); }
.m-ny-win__body { position: relative; background: linear-gradient(180deg,#24317e 0%,#4a3fbf 100%); }
.m-ny-win__snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; transition: opacity .4s; }
.m-ny-site { position: relative; padding: 16px 20px 22px; min-height: 270px; }
.m-ny-site__head { display: flex; align-items: center; justify-content: space-between; }
.m-ny-site__logo { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; }
.m-ny-site__logo b { position: relative; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg,#ffe17a,#f3a21f); }
.m-ny-hat { position: absolute; left: -5px; top: -16px; width: 34px; height: 27px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); transform: rotate(-14deg); transform-origin: 30% 90%; transition: opacity .35s, transform .35s; }
.m-ny-site__nav { display: flex; gap: 8px; }
.m-ny-site__nav i { width: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); }
.m-ny-lights { display: flex; justify-content: space-between; margin: 10px -20px 0; padding: 0 12px 4px; height: 22px;
  background: radial-gradient(120% 30px at 50% -14px, transparent 0 18px, rgba(10,14,40,.9) 19px 20px, transparent 21px) 0 0/48px 22px repeat-x; transition: opacity .35s; }
.m-ny-lights i { width: 8px; height: 11px; margin-top: 7px; border-radius: 50% 50% 50% 50%/40% 40% 60% 60%; background: #ffd84d; box-shadow: 0 0 10px 2px currentColor; color: #ffd84d; animation: nyblink 1.4s ease-in-out infinite; }
.m-ny-lights i:nth-child(4n+2) { background: #ff5a8a; color: #ff5a8a; animation-delay: -.35s; }
.m-ny-lights i:nth-child(4n+3) { background: #3ee0b5; color: #3ee0b5; animation-delay: -.7s; }
.m-ny-lights i:nth-child(4n+4) { background: #8fb2ff; color: #8fb2ff; animation-delay: -1.05s; }
.m-ny-lights i:nth-child(odd) { margin-top: 10px; }
@keyframes nyblink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.m-ny-site__hero { margin-top: 26px; }
.m-ny-site__hero b { display: block; font-size: 22px; font-weight: 700; color: #fff; }
.m-ny-site__hero i { display: block; height: 8px; margin-top: 12px; border-radius: 4px; background: rgba(255,255,255,.35); width: 70%; }
.m-ny-site__hero i + i { width: 52%; margin-top: 8px; }
.m-ny-site__hero span { display: block; width: 120px; height: 30px; margin-top: 18px; border-radius: 15px; background: var(--grad); }
.m-ny-plate { position: absolute; left: 20px; right: 20px; bottom: 14px; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); transition: opacity .35s, transform .35s; }
.m-ny-plate::before { content: "🎄 "; }
.m-ny-tg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.m-ny-tg button { padding: 8px 14px 8px 34px; position: relative; border-radius: 20px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; transition: all .25s; }
.m-ny-tg button::before { content: ""; position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid #c9d0de; background: #fff; transition: all .25s; }
.m-ny-tg button.is-on { color: var(--ink); border-color: #f6c3d8; background: #fff5f9; }
.m-ny-tg button.is-on::before { border-color: transparent; background: var(--grad); box-shadow: inset 0 0 0 3px #fff5f9; }
.m-ny-demo.no-snow .m-ny-win__snow { opacity: 0; }
.m-ny-demo.no-lights .m-ny-lights { opacity: 0; }
.m-ny-demo.no-hat .m-ny-hat { opacity: 0; transform: rotate(-14deg) translateY(-8px); }
.m-ny-demo.no-plate .m-ny-plate { opacity: 0; transform: translateY(10px); }
@media (max-width: 992px) { .m-ny-demo { margin-top: 30px; } }
@media (prefers-reduced-motion: reduce) { .m-ny-lights i { animation: none; opacity: 1; } }

/* плашка «что входит» */
.m-ny .m-ny-offer { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 26px 46px; align-items: center; padding: 34px 40px; border-radius: 14px 32px 14px 32px; background: var(--grad); color: #fff; }
.m-ny-offer__price b { display: block; font-size: clamp(44px,5vw,64px); line-height: 1; font-weight: 700; white-space: nowrap; }
.m-ny-offer__price span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.m-ny-offer h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; text-transform: uppercase; color: #fff; }
.m-ny-offer__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.m-ny-offer__list li { padding: 8px 14px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 14px; }
.m-ny-offer__btn { display: inline-flex; padding: 17px 30px; border-radius: 40px; background: #fff; color: var(--pink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .25s, box-shadow .25s; }
.m-ny-offer__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); color: var(--pink); }
@media (max-width: 1000px) { .m-ny .m-ny-offer { grid-template-columns: 1fr; padding: 28px 24px; } .m-ny-offer__btn { justify-self: start; } }

.m-ny-grid4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 1100px) { .m-ny-grid4 { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .m-ny-grid4 { grid-template-columns: 1fr; } }

/* безопасность */
.m-ny-safe { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 26px 50px; align-items: center; padding: 40px 46px; border-radius: 14px 32px 14px 32px;
  background: linear-gradient(115deg,#eef3ff 0%,#f3f0ff 55%,#fff1f6 100%); box-shadow: 0 0 0 1px #e3e8f6; }
.m-ny-safe h2 { margin: 0 0 12px; font-size: clamp(24px,2.6vw,34px); line-height: 1.15; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.m-ny-safe h2 span { color: var(--pink); }
.m-ny-safe p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mute); }
.m-ny-safe ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-ny-safe li { position: relative; padding: 14px 16px 14px 44px; border-radius: 10px 20px 10px 20px; background: #fff; font-size: 15px; line-height: 1.45; color: var(--ink); }
.m-ny-safe li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,#4c7bff,#7a5cff); }
.m-ny-safe li::after { content: ""; position: absolute; left: 21px; top: 19px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .m-ny-safe { grid-template-columns: 1fr; padding: 30px 22px; } .m-ny-safe ul { grid-template-columns: 1fr; } }

.m-ny .m-dr-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 1000px) { .m-ny .m-dr-steps { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .m-ny .m-dr-steps { grid-template-columns: 1fr; } }

/* ===== Праздничное оформление самой страницы (файл подключён только здесь) ===== */
.m-ny .m-dr-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 1000px) { .m-ny .m-dr-steps { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .m-ny .m-dr-steps { grid-template-columns: 1fr; } }

/* шапка Деда Мороза — надета на знак логотипа */
.header__logo { position: relative; }
.header__logo::after { content: ""; position: absolute; left: .5%; top: -29%; width: 26.2%; aspect-ratio: 100/80; transform: rotate(-8deg); transform-origin: 50% 85%; pointer-events: none; z-index: 2;
  background: url("/img/ny/hat.svg") no-repeat center/contain; filter: drop-shadow(0 2px 2px rgba(30,40,90,.25)); }
@media (max-width: 768px) { .header__logo::after { left: 0; top: -31%; width: 107%; } }

/* снег падает от шапки до сугробов под первым экраном */
.m-ny-hsnow { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 5; }
.m-ny .m-dr-hero { position: relative; padding-bottom: 90px; }
.m-ny-drifts { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; }
.m-ny-drifts svg { display: block; width: 100%; height: 100%; -webkit-mask: linear-gradient(180deg,#000 35%,transparent 100%); mask: linear-gradient(180deg,#000 35%,transparent 100%); }
.m-ny .m-dr-hero { background: linear-gradient(180deg,rgba(236,242,255,.95) 0%,rgba(236,242,255,.75) 65%,rgba(236,242,255,0) 100%); }
@media (max-width: 768px) { .m-ny-drifts { height: 50px; } .m-ny .m-dr-hero { padding-bottom: 56px; } }

/* гирлянда под шапкой на всю ширину экрана */
.m-ny-garland { position: absolute; left: 0; right: 0; height: 36px; pointer-events: none; z-index: 2; transition: top .3s; }
.header._header-scroll { padding-bottom: 38px; }
@media (max-width: 1100px) { .header { padding-bottom: 38px; } }
.m-ny-garland svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.m-ny-bulb { animation: nyblink 1.4s ease-in-out infinite; }
.m-ny-bulb.b2 { animation-delay: -.35s; } .m-ny-bulb.b3 { animation-delay: -.7s; } .m-ny-bulb.b4 { animation-delay: -1.05s; }
@media (prefers-reduced-motion: reduce) { .m-ny-bulb { animation: none; } }
.m-ny .m-about-hero__crumbs { margin-top: 26px; }
@media (max-width: 768px) { .m-ny .m-about-hero__crumbs { margin-top: 30px; } }

/* красные блоки: снег сверху, сосульки, шары */
.m-ny .m-ny-offer, .m-ny .m-dr-cta { position: relative; overflow: hidden; padding-top: 74px; }
.m-ny .m-ny-offer::before, .m-ny .m-dr-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h200v5c-6 0-8 4-13 4s-6-3-11-3-7 6-12 6-6-5-11-5-7 3-12 3-6-4-11-4-7 7-12 7-6-5-11-5-7 3-12 3-6-4-11-4-7 5-12 5-6-4-11-4-7 6-12 6-6-5-11-5-7 3-12 3-6-3-11-3S4 5 0 5z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0/100% 100%; filter: drop-shadow(0 2px 2px rgba(120,0,40,.25)); z-index: 1; }
.m-ny .m-ny-offer::after, .m-ny .m-dr-cta::after { content: ""; position: absolute; left: 4%; right: 40%; top: 12px; height: 34px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34'%3E%3Cdefs%3E%3ClinearGradient id='i' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23cfe3ff' stop-opacity='.6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23i)'%3E%3Cpath d='M4 0h12l-6 26z'/%3E%3Cpath d='M22 0h8l-4 15z'/%3E%3Cpath d='M36 0h14l-7 33z'/%3E%3Cpath d='M58 0h8l-4 12z'/%3E%3Cpath d='M72 0h12l-6 22z'/%3E%3Cpath d='M92 0h8l-4 16z'/%3E%3Cpath d='M106 0h12l-6 29z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0/120px 34px; opacity: .9; }
.m-ny-balls { position: absolute; right: 40px; top: 12px; height: 70px; width: 160px; pointer-events: none; z-index: 0; }
.m-ny-ball { position: absolute; top: 0; display: block; transform-origin: 50% 0; animation: nysway 3.4s ease-in-out infinite; }
.m-ny-ball::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: var(--l); background: rgba(255,255,255,.7); }
.m-ny-ball::after { content: ""; position: absolute; left: 50%; top: var(--l); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--c1) 20%, var(--c2) 100%); box-shadow: 0 8px 18px -6px rgba(0,0,0,.35); }
.m-ny-ball:nth-child(1) { left: 10px; --l: 16px; --s: 28px; --c1: #ffe17a; --c2: #e39a12; }
.m-ny-ball:nth-child(2) { left: 66px; --l: 8px; --s: 22px; --c1: #ffffff; --c2: #c9d7f3; animation-delay: -1.2s; }
.m-ny-ball:nth-child(3) { left: 116px; --l: 22px; --s: 24px; --c1: #8fe9d0; --c2: #119b7f; animation-delay: -2.1s; }
@keyframes nysway { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.m-ny .m-ny-offer > *:not(.m-ny-balls), .m-ny .m-dr-cta > *:not(.m-ny-balls) { position: relative; z-index: 2; }
@media (max-width: 1000px) { .m-ny-balls { right: 6px; width: 120px; opacity: .55; } .m-ny-ball:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .m-ny-ball { animation: none; } }

/* карточки: снег лежит сверху */
.m-ny .m-ny-grid4 .m-dr-card { position: relative; overflow: visible; }
.m-ny .m-ny-grid4 .m-dr-card::before { content: ""; position: absolute; left: 14px; right: 14px; top: -7px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0h200v5c-6 0-8 4-13 4s-6-3-11-3-7 6-12 6-6-5-11-5-7 3-12 3-6-4-11-4-7 7-12 7-6-5-11-5-7 3-12 3-6-4-11-4-7 5-12 5-6-4-11-4-7 6-12 6-6-5-11-5-7 3-12 3-6-3-11-3S4 5 0 5z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0/100% 100%; filter: drop-shadow(0 2px 2px rgba(80,110,190,.28)); }

/* шаги: сосульки сверху */
.m-ny .m-dr-steps li { position: relative; overflow: hidden; padding-top: 40px; }
.m-ny .m-dr-steps li::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34'%3E%3Cdefs%3E%3ClinearGradient id='i' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23cfe3ff' stop-opacity='.6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23i)'%3E%3Cpath d='M4 0h12l-6 26z'/%3E%3Cpath d='M22 0h8l-4 15z'/%3E%3Cpath d='M36 0h14l-7 33z'/%3E%3Cpath d='M58 0h8l-4 12z'/%3E%3Cpath d='M72 0h12l-6 22z'/%3E%3Cpath d='M92 0h8l-4 16z'/%3E%3Cpath d='M106 0h12l-6 29z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0/90px 26px; filter: drop-shadow(0 1px 1px rgba(80,120,200,.35)); }

/* ёлка в блоке «без риска» */
.m-ny-safe { position: relative; overflow: hidden; }
.m-ny-safe__tree { position: absolute; left: 26px; bottom: -6px; width: 120px; opacity: .95; pointer-events: none; }
.m-ny-safe > div:first-of-type { padding-bottom: 120px; }
@media (max-width: 900px) { .m-ny-safe__tree { display: none; } .m-ny-safe > div:first-of-type { padding-bottom: 0; } }

/* обратный отсчёт до Нового года */
.m-ny-count { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.m-ny-count > span { font-size: 14px; font-weight: 600; color: var(--mute); }
.m-ny-count__t { display: flex; gap: 8px; }
.m-ny-count__t b { min-width: 58px; padding: 8px 10px 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(24,78,174,.5); text-align: center; font-size: 22px; line-height: 1; font-weight: 700; color: var(--ink); }
.m-ny-count__t b small { display: block; margin-top: 4px; font-size: 10px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }

/* снежинки у заголовков */
.m-ny .m-title-duo::after { content: " ❄"; color: #8fb2ff; font-size: .7em; vertical-align: .15em; }
