/* BRITVA · новогодний баннер сертификатов в мобильном меню (на месте .mobile-sert-menu). Все классы с префиксом nym-.
   Три сцены листаются свайпом влево-вправо (обычная горизонтальная прокрутка с доводкой) и кнопками внизу.
   Каждая сцена — ссылка на свои сертификаты: BRITVA, SODA, Massage by SODA. */
.nym{--ink:#f6ecd9;--on:#103c24;--shc:6,22,12;position:relative;display:none;height:420px;margin-bottom:50px;overflow:hidden;background:#0b2a1b;color:var(--ink);transition:color .4s;-webkit-tap-highlight-color:transparent}
@media (max-width:992px){.nym{display:block}}
.nym *{box-sizing:border-box}
.nym.s-her{--on:#5a0d14;--shc:24,0,5}
.nym.s-all{--ink:#543a1a;--on:#fff;--shc:92,66,36}

/* лента сцен: обычная горизонтальная прокрутка, сцена доводится до края; полосы прокрутки не видно */
.nym-track{position:absolute;inset:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.nym-track::-webkit-scrollbar{display:none}
.nym-sl{position:relative;flex:0 0 100%;height:100%;overflow:hidden;scroll-snap-align:center;scroll-snap-stop:always;color:#f6ecd9;text-decoration:none;--shc:6,22,12}
.nym-sl--her{--shc:24,0,5}
.nym-sl--all{color:#543a1a;--shc:92,66,36}
.nym-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
/* затемнение сверху и снизу: заголовок и кнопки читаются на фоне */
.nym-sl::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(var(--shc),.78),rgba(var(--shc),0) 30%,rgba(var(--shc),0) 60%,rgba(var(--shc),.62));pointer-events:none}
.nym-sl--all::after{background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,0) 28%,rgba(255,255,255,0) 62%,rgba(255,255,255,.45))}

/* пара карт; --h — высота карты */
.nym-pair{position:absolute;left:0;right:0;top:82px;z-index:1;display:flex;justify-content:center;gap:calc(var(--h)*.05);--h:188px}
.nym-pair.is-free{--h:158px;top:98px}
.nym-pair::after{content:"";position:absolute;left:50%;width:calc(var(--h)*1.5);margin-left:calc(var(--h)*-.75);bottom:calc(var(--h)*-.13);height:calc(var(--h)*.12);background:radial-gradient(closest-side,rgba(var(--shc),.6),rgba(var(--shc),0));z-index:-1}
.nym-pair.is-free::after{bottom:calc(var(--h)*-.28)}
.nym-cd{position:relative;flex:none;height:var(--h);width:calc(var(--h)*var(--ar,.6667));border-radius:6%/4%}
.nym-cd img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.nym-pair.is-free .nym-cd img{position:absolute;left:-29.8%;top:-19.7%;width:169.8%;height:154.5%;max-width:none;object-fit:fill;border-radius:0}
.nym-cd:first-child{transform:rotate(-5deg);z-index:1}
.nym-cd:last-child{transform:rotate(4deg) translateY(-4%)}

/* подпись под картами */
.nym-cap{position:absolute;left:0;right:0;bottom:72px;z-index:1;text-align:center;text-shadow:0 1px 10px rgba(var(--shc),.75)}
.nym-sl--all .nym-cap{text-shadow:0 0 10px rgba(255,255,255,.85)}
.nym-cap b{display:block;font-family:AkzidenzGroteskProEx-britva,sans-serif;font-weight:500;font-size:18px;line-height:1.15;text-transform:uppercase}
.nym-cap i{display:block;margin-top:4px;font-family:AkzidenzGroteskPro-britva,sans-serif;font-style:normal;font-weight:400;font-size:13px;line-height:1.3;opacity:.92}

/* заголовок и кнопки лежат поверх ленты и не едут вместе с ней */
.nym-h{position:absolute;left:0;right:0;top:26px;z-index:2;margin:0;padding:0 20px;text-align:center;font-family:AkzidenzGroteskProEx-britva,sans-serif;font-weight:500;font-size:16px;line-height:1.2;text-transform:uppercase;pointer-events:none}
.nym-tabs{position:absolute;left:12px;right:12px;bottom:14px;z-index:2;display:flex;gap:6px}
.nym-tabs button{flex:1;height:40px;padding:0;border-radius:999px;border:1px solid currentColor;background:rgba(var(--shc),.3);color:inherit;font-family:AkzidenzGroteskPro-britva,sans-serif;font-size:13px;cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.nym.s-all .nym-tabs button{background:rgba(255,255,255,.6)}
.nym .nym-tabs button.on{background:var(--ink);border-color:var(--ink);color:var(--on)}

.nym a:focus-visible,.nym button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}

/* ── BRITVA: кегль заголовка со шрифтом сайта ──
   «Что подарить на Новый год» в Extended 500 при 16px — 323px, на 375px места 310px (баннер 350 минус поля 2×20):
   15px — в одну строку на 375 и шире; уже 375 — 13px и поля по 12px, тоже в одну строку (до 320) */
.nym .nym-h{font-size:15px}
@media (max-width:374px){.nym .nym-h{font-size:13px;padding:0 12px}}

/* BRITVA · пункт «Подарочные сертификаты» в мобильном меню — новогодний вид. Только до 992px, на десктопе пункт не меняется.
   Добавляется в конец ny-menu.css (он подключён на всех страницах с меню и стоит после стилей сайта).
   Разметку меню менять не нужно: пункт сертификатов стоит в ней первым, «Главная» и «Услуги» — вторым и третьим. */
@media screen and (max-width:992px){
  /* порядок: Главная, Услуги, Подарочные сертификаты, дальше как было.
     На сайте у всех пунктов order:1, у первого (сертификаты) order:3 — поэтому он уезжал в конец */
  .menu-pannel .main-menu li:nth-child(2),.menu-pannel .main-menu li:nth-child(3){order:0}
  .menu-pannel .main-menu li:first-child{order:1}

  /* кнопка: красный рождественский градиент, золотые буквы, по кнопке раз в три секунды проходит блик */
  .menu-pannel .main-menu li a.js__s_certificates,
  .menu-pannel .main-menu li a.js__s_certificates:hover,
  .is-prime .menu-pannel .main-menu li a.js__s_certificates:hover{
    max-width:none;margin:12px 0 12px 58px;padding:11px 18px;border:1px solid rgba(255,214,140,.6);border-radius:999px;
    color:#ffe7a8;font-size:13px;line-height:15px;letter-spacing:.03em;white-space:nowrap;
    background:
      linear-gradient(110deg,rgba(255,238,196,0) 42%,rgba(255,238,196,.62) 50%,rgba(255,238,196,0) 58%) 100% 0/260% 100% no-repeat,
      linear-gradient(120deg,#7a0915,#c4102b 30%,#e8402f 52%,#b00e22 76%,#7a0915) 0 0/220% 100%;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 0 rgba(232,64,47,0);
    animation:nyl-sweep 6.4s linear infinite,nyl-glow 2.4s ease-in-out infinite alternate;
  }
  /* иконка подарка: красная коробка с золотой лентой, по-прежнему покачивается (анимация сайта skew-x-shake) */
  .menu-pannel .main-menu li a.js__s_certificates:before,
  .is-prime .menu-pannel .main-menu li a.js__s_certificates:before{
    left:-40px;width:30px;height:30px;margin-top:-16px;
    background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 28 28%22%3E%3Cdefs%3E%3ClinearGradient id=%22r%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23ff5b4a%22/%3E%3Cstop offset=%22.55%22 stop-color=%22%23d3162b%22/%3E%3Cstop offset=%221%22 stop-color=%22%238f0c1c%22/%3E%3C/linearGradient%3E%3ClinearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23fff0b8%22/%3E%3Cstop offset=%221%22 stop-color=%22%23e0aa3e%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x=%224%22 y=%2212.5%22 width=%2220%22 height=%2212.5%22 rx=%222%22 fill=%22url(%23r)%22/%3E%3Crect x=%222.5%22 y=%228%22 width=%2223%22 height=%225.6%22 rx=%221.6%22 fill=%22url(%23r)%22/%3E%3Crect x=%222.5%22 y=%2212.4%22 width=%2223%22 height=%221.2%22 fill=%22%236e0814%22 opacity=%22.45%22/%3E%3Crect x=%2212.2%22 y=%228%22 width=%223.6%22 height=%2217%22 fill=%22url(%23g)%22/%3E%3Cpath d=%22M14 8.2C12.9 4.4 10 2.2 7.8 3.2 5.6 4.3 6.6 7.6 14 8.2Z%22 fill=%22url(%23g)%22/%3E%3Cpath d=%22M14 8.2c1.1-3.8 4-6 6.2-5 2.2 1.1 1.2 4.4-6.2 5Z%22 fill=%22url(%23g)%22/%3E%3Ccircle cx=%2214%22 cy=%228%22 r=%221.7%22 fill=%22%23fff3c6%22/%3E%3C/svg%3E") center/contain no-repeat;
    filter:drop-shadow(0 0 6px rgba(255,96,72,.55));
  }
}
/* блик проходит слева направо дважды за цикл, градиент под ним медленно перетекает туда и обратно */
@keyframes nyl-sweep{
  0%{background-position:100% 0,0 0}
  22%{background-position:0 0,44% 0}
  50%{background-position:0 0,100% 0}
  50.01%{background-position:100% 0,100% 0}
  72%{background-position:0 0,56% 0}
  100%{background-position:0 0,0 0}
}
@keyframes nyl-glow{
  from{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 0 rgba(232,64,47,0)}
  to{box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 16px rgba(240,72,52,.6)}
}
@media (prefers-reduced-motion:reduce){
  .menu-pannel .main-menu li a.js__s_certificates{animation:none}
}
/* BRITVA, v4 на сайте (05.12.2026): у ссылок меню на мобилке правило сайта width:100% (прежнюю кнопку держал max-width:215px);
   в копии стилей из демо его не было. Без width:auto кнопка растягивалась на всю ширину меню плюс отступ 58px и уходила за правый край. */
@media screen and (max-width:992px){.menu-pannel .main-menu li a.js__s_certificates{width:auto}}
