/* ============================================================
   Анонс-бар «продажа бизнеса» над шапкой + модальное окно (handoff-5 7.1).
   Источник: design-new handoff-5 «Анонс-бар 7.1.html» (.annbar / .rm*).
   ============================================================ */

/* ---------------- announcement bar ---------------- */
.annbar {
  /* z-index ВЫШЕ mega-overlay (#cwt-mega-overlay z-index:90): иначе при открытом
     мегаменю overlay (fixed; inset:0; top:0) накрывает баннер и перехватывает
     события — мегаменю залипало раскрытым и блокировало клики по странице. */
  position: relative; z-index: 101; width: 100%;
  border: 0; display: block; cursor: pointer; text-align: left;
  color: #EAF6FB; font-family: inherit;
  background:
    radial-gradient(620px 120px at 18% -40%, rgba(42,155,196,0.55), transparent 70%),
    radial-gradient(520px 120px at 86% 140%, rgba(190,159,99,0.40), transparent 72%),
    linear-gradient(90deg, #0F1217 0%, #14181F 50%, #0F1217 100%);
  overflow: hidden;
}
.annbar::after { /* moving sheen */
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: skewX(-18deg);
  animation: annSheen 6.5s var(--ease-out) infinite;
}
@keyframes annSheen { 0% { left: -30%; } 38%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .annbar::after { animation: none; display: none; } }

.annbar .wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px; height: 44px;
}
.annbar .ver {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 4px 11px 4px 8px; border-radius: var(--r-pill);
  background: rgba(42,155,196,0.16); border: 1px solid rgba(42,155,196,0.45);
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
  color: #9DD8EE;
}
.annbar .ver .d { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(42,155,196,0.22); }
.annbar .msg { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: #DCE7EE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.annbar .msg b { color: #fff; font-weight: 700; }
.annbar .msg .acc { color: var(--bronze); font-weight: 700; }
.annbar .more {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #fff;
  padding: 6px 6px 6px 14px;
}
.annbar .more .pl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); color: #fff; transition: transform 200ms var(--ease-out), background 150ms;
}
.annbar:hover .more .pl { transform: translateX(3px); background: var(--cyan-700); }
.annbar .close {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); transition: background 130ms, color 130ms; margin-right: -6px;
  background: transparent; border: 0; cursor: pointer;
}
.annbar .close:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* sale pill in the announcement bar */
.annbar .sale {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(190,159,99,0.18); border: 1px solid rgba(190,159,99,0.55);
  font-size: 12px; font-weight: 700; color: #E8D3A6; white-space: nowrap;
}
.annbar .sale .tg { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze);
  box-shadow: 0 0 0 3px rgba(190,159,99,0.25); }

/* dismissed → бар скрыт */
.annbar[hidden] { display: none; }

/* ============================================================
   RELEASE / SALE MODAL
   ============================================================ */
.rm-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(19,22,29,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 56px 24px;
  overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out);
}
.rm-scrim.show { opacity: 1; pointer-events: auto; }
.rm {
  width: min(760px, 100%); background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--el-pop); overflow: hidden;
  transform: translateY(14px) scale(0.985); transition: transform 240ms var(--ease-out);
}
.rm-scrim.show .rm { transform: none; }

/* dark hero */
.rm-hero {
  position: relative; padding: 30px 34px 28px; color: #EAF1F6;
  background:
    radial-gradient(560px 320px at 88% -20%, rgba(42,155,196,0.30), transparent 62%),
    radial-gradient(440px 280px at 4% 120%, rgba(190,159,99,0.22), transparent 60%),
    linear-gradient(150deg, #14181F 0%, #0F1217 60%, #0B0D12 100%);
}
.rm-hero .x {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); transition: background 130ms, color 130ms;
  border: 0; cursor: pointer;
}
.rm-hero .x:hover { background: rgba(255,255,255,0.14); color: #fff; }
.rm-hero .eyb { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze); }
.rm-hero h2, .rm-hero .rm-h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; margin: 12px 0 10px;
}
.rm-hero h2 .v, .rm-hero .rm-h2 .v { color: var(--cyan); }
.rm-hero p { font-size: 15px; line-height: 1.5; color: #B9C4CE; max-width: 560px; margin: 0; }
.rm-hero p b { color: #fff; font-weight: 600; }
.rm-stats { display: flex; gap: 28px; margin-top: 22px; }
.rm-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; line-height: 1; }
.rm-stat .n .u { font-size: 14px; color: var(--cyan); font-weight: 700; margin-left: 2px; }
.rm-stat .l { font-size: 12px; color: #8B97A3; margin-top: 5px; }

/* body */
.rm-body { padding: 26px 34px 30px; }
.rm-sec-h { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cyan-700); margin-bottom: 14px; }
.rm-sec-h::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); }

.rm-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-feat { display: flex; gap: 13px; padding: 16px; border-radius: var(--r-md); background: var(--soft); }
.rm-feat .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--cyan-50); color: var(--cyan); }
.rm-feat.bz .ic { background: rgba(190,159,99,0.16); color: var(--bronze-700); }
.rm-feat .tx b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--masla-navy); }
.rm-feat .tx span { display: block; font-size: 13px; line-height: 1.42; color: var(--neutral-500); margin-top: 3px; }

.rm-divider { height: 1px; background: var(--neutral-200); margin: 26px 0; }

.rm-log { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.rm-log li { display: grid; grid-template-columns: 96px 1fr; align-items: start; gap: 12px; font-size: 14px; color: var(--masla-navy); line-height: 1.45; }
.rm-log li .tag {
  justify-self: start; margin-top: 1px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--r-pill); line-height: 1.5;
}
.rm-log li .tag.fix { background: var(--success-bg); color: var(--success); }
.rm-log li .tag.new { background: var(--cyan-50); color: var(--cyan-700); }
.rm-log li .tag.up  { background: rgba(190,159,99,0.16); color: var(--bronze-700); }

/* business-for-sale block */
.rm-sale {
  position: relative; overflow: hidden;
  margin-top: 24px; border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 20px;
  color: #2A2113;
  background:
    radial-gradient(380px 200px at 90% -30%, rgba(255,255,255,0.5), transparent 70%),
    linear-gradient(105deg, #F2EADA 0%, #E7D6B4 55%, #DCC79A 100%);
  box-shadow: inset 0 0 0 1px rgba(190,159,99,0.5);
}
.rm-sale .glyph {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--bronze); color: #fff; box-shadow: 0 4px 14px rgba(158,131,72,0.4);
}
.rm-sale .tx { flex: 1; min-width: 0; }
.rm-sale .eyb { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-700); }
.rm-sale h4 { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.25; color: #2A2113; margin: 4px 0 3px; }
.rm-sale p { font-size: 13px; line-height: 1.45; color: #5C4F30; margin: 0; }
.rm-sale .right { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.rm-sale .price { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; color: #2A2113; white-space: nowrap; }
.rm-sale .price span { font-size: 15px; color: var(--bronze-700); }
.rm-sale .btn-bronze:hover { background: #2A2113; }

.rm-foot { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.rm-foot .note { font-size: 12.5px; color: var(--neutral-400); margin-left: auto; }

/* mobile */
@media (max-width: 820px) {
  .annbar .wrap { gap: 10px; }
  .annbar .ver { font-size: 11px; padding: 4px 9px 4px 7px; }
  .annbar .msg { font-size: 12.5px; }
  .annbar .sale { display: none; }
  .annbar .more .lbl { display: none; }
  .rm-feats { grid-template-columns: 1fr; }
  .rm-hero h2, .rm-hero .rm-h2 { font-size: 27px; }
  .rm-stats { gap: 18px; flex-wrap: wrap; }
  .rm-foot .btn { flex: 1; }
  .rm-foot .note { width: 100%; margin-left: 0; text-align: center; }
  .rm-sale { flex-wrap: wrap; gap: 14px; }
  .rm-sale .right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 540px) {
  .annbar .msg .hide-sm { display: none; }
}
