/* Contact modal — общие стили */
#contact-modal { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .22s ease; }
#contact-modal.open { opacity: 1; pointer-events: auto; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(11, 8, 6, 0.55); backdrop-filter: blur(4px); }
.cm-window { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.96); transition: transform .26s cubic-bezier(.2,.8,.3,1); width: min(560px, 92vw); max-height: 92vh; overflow: auto; background: var(--bg, #FAF6F0); border: 1px solid var(--line, rgba(0,0,0,0.1)); padding: 36px 36px 28px; box-shadow: 0 22px 64px rgba(0,0,0,.18); }
#contact-modal.open .cm-window { transform: translate(-50%, -50%) scale(1); }
.cm-close { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border: 1px solid var(--line, rgba(0,0,0,0.1)); background: transparent; cursor: pointer; color: var(--ink-2, #444); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.cm-close:hover { background: var(--ink, #1a1410); color: var(--bg, #FAF6F0); border-color: var(--ink, #1a1410); }
.cm-head { padding-right: 32px; margin-bottom: 24px; }
.cm-eyebrow { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3, #999); margin-bottom: 12px; }
.cm-window h3 { font-family: var(--font-display, "Cormorant Garamond", serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 12px; }
.cm-window h3 em { color: var(--red, #C8392E); font-style: italic; }
.cm-lede { font-size: 14px; line-height: 1.55; color: var(--ink-2, #555); margin: 0; }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.cm-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line, rgba(0,0,0,0.1)); background: var(--bg-2, #fff); color: inherit; text-decoration: none; transition: all .15s; }
.cm-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.cm-btn.tg { color: #0088cc; }
.cm-btn.tg:hover { background: #0088cc; color: white; border-color: #0088cc; }
.cm-btn.wa { color: #25D366; }
.cm-btn.wa:hover { background: #25D366; color: white; border-color: #25D366; }
.cm-btn.max { color: #5C49E0; }
.cm-btn.max:hover { background: #5C49E0; color: white; border-color: #5C49E0; }
.cm-btn.yandex { color: #FC3F1D; }
.cm-btn.yandex:hover { background: #FC3F1D; color: white; border-color: #FC3F1D; }
.cm-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink, #1a1410); }
.cm-btn:hover .cm-lbl, .cm-btn:hover .cm-lbl-s { color: inherit; }
.cm-lbl-t { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.cm-lbl-s { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--ink-3, #888); letter-spacing: .03em; }
.cm-call { margin: 8px 0 18px; }
.cm-btn-call { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: var(--red, #C8392E); color: white; text-decoration: none; font-size: 15px; letter-spacing: .005em; transition: all .15s; border: 1px solid var(--red, #C8392E); }
.cm-btn-call:hover { background: var(--ink, #1a1410); border-color: var(--ink, #1a1410); }
.cm-btn-call b { font-weight: 600; }
.cm-foot { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--ink-3, #888); letter-spacing: .03em; text-align: center; padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,0.08)); }
.cm-foot a { color: var(--ink-2, #555); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cm-foot a:hover { color: var(--red, #C8392E); }

@media (max-width: 480px) {
  .cm-window { padding: 24px 20px 20px; width: 95vw; }
  .cm-grid { grid-template-columns: 1fr; }
  .cm-head { padding-right: 36px; }
}
