/* Попап «Kontakt» (components/ContactModal.astro + js/contact.js). Самодостаточный: свои цвета, работает на любой странице. */
.cm { --cm-ink: #100F0C; --cm-red: #D43C20; --cm-muted: #6E6A63; position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; font-family: 'Barlow', sans-serif; }
.cm[hidden] { display: none; }
.cm__backdrop { position: absolute; inset: 0; background: rgba(8,8,8,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cm-fade .25s ease; }
.cm__box { position: relative; width: min(480px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: #fff; color: var(--cm-ink); border-radius: 18px; padding: 30px 28px 24px; box-shadow: 0 40px 100px rgba(0,0,0,.35); animation: cm-in .35s cubic-bezier(.2,.9,.25,1.15); cursor: auto; }
.cm__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #F2F2F2; color: var(--cm-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.cm__close:hover { background: var(--cm-red); color: #fff; }
.cm__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-right: 40px; }
.cm__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--cm-red); flex-shrink: 0; }
.cm__kicker { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cm-red); margin-bottom: 4px; }
.cm__title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.75rem; line-height: 1.02; margin: 0; }
.cm__lead { font-size: .95rem; line-height: 1.55; color: var(--cm-muted); margin: 0 0 18px; }
.cm__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cm__opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(16,15,12,.1); text-decoration: none; color: var(--cm-ink); transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; }
.cm__opt:hover, .cm__opt:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16,15,12,.1); outline: none; }
.cm__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.cm__ico svg { width: 24px; height: 24px; fill: #fff; }
.cm__opt--tg .cm__ico { background: #229ED9; } .cm__opt--tg:hover { border-color: #229ED9; }
.cm__opt--wa .cm__ico { background: #25D366; } .cm__opt--wa:hover { border-color: #25D366; }
.cm__opt--mail .cm__ico { background: var(--cm-ink); } .cm__opt--mail:hover { border-color: var(--cm-ink); }
.cm__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm__txt b { font-size: 1.05rem; }
.cm__txt small { font-size: .82rem; color: var(--cm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm__opt i { font-style: normal; color: var(--cm-red); font-size: 1.2rem; transition: transform .2s; }
.cm__opt:hover i { transform: translateX(4px); }
.cm__note { margin: 16px 0 0; font-size: .8rem; color: var(--cm-muted); text-align: center; }
html.cm-open { overflow: hidden; }
@keyframes cm-fade { from { opacity: 0; } }
@keyframes cm-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .cm__backdrop, .cm__box { animation: none; } }
/* Handy: Untertitel darf umbrechen, nichts ragt über den Rand */
@media (max-width: 480px) {
  .cm__box { padding: 26px 18px 20px; }
  .cm__opt { min-width: 0; padding: 12px 14px; gap: 12px; }
  .cm__txt small { white-space: normal; }
  .cm__title { font-size: 1.55rem; }
}
