/* Страница «Контакты» (views/site/contacts.php), 19.10.2026. Опирается на payment.css (заголовки блоков, значки карточек).
   Карта — картинка 1800×900 без масштабирования (object-fit: none), центр картинки = пункт самовывоза = метка. */

.rp-con .rp2-pageintro { margin-bottom: 26px; }
.rp-con h3 { margin: 0; }

.rp-con .rp-con-pickup { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border: 1px solid #e0e8f4; background: #fff; }

/* Карта */
.rp-con .rp-con-map { position: relative; min-height: 470px; overflow: hidden; background: #eef1f4; }
.rp-con .rp-con-map picture, .rp-con .rp-con-map img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rp-con .rp-con-map img { object-fit: none; object-position: 50% 50%; max-width: none; }
.rp-con .rp-con-pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; text-decoration: none; }
.rp-con .rp-con-pin__marker { position: absolute; left: -24px; top: -54px; width: 48px; height: 54px; display: grid; place-items: start center; color: #fff; }
.rp-con .rp-con-pin__marker::before { content: ""; position: absolute; left: 4px; top: 0; width: 40px; height: 40px; background: var(--rp-color-primary); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 16px rgba(0, 61, 170, .35); }
.rp-con .rp-con-pin__marker svg { position: relative; margin-top: 8px; width: 24px; height: 24px; }
.rp-con .rp-con-pin__pulse { position: absolute; left: -22px; top: -11px; width: 44px; height: 22px; border-radius: 50%; background: rgba(0, 91, 255, .28); }
.rp-con .rp-con-pin__label { position: absolute; left: 30px; top: -62px; white-space: nowrap; background: #fff; border: 1px solid #cfdffb; box-shadow: 0 10px 26px rgba(16, 45, 97, .16); padding: 9px 13px; font: 600 13px/1.35 Inter, Arial, sans-serif; color: #52617a; }
.rp-con .rp-con-pin__label b { display: block; font: 800 15px/1.3 Manrope, Inter, Arial, sans-serif; color: #202b42; }
.rp-con .rp-con-pin:hover .rp-con-pin__label { border-color: var(--rp-color-primary); }
.rp-con .rp-con-pin:focus-visible { outline: none; }
.rp-con .rp-con-pin:focus-visible .rp-con-pin__label { outline: 3px solid var(--rp-color-primary); outline-offset: 2px; }
.rp-con .rp-con-map__copy { position: absolute; right: 0; bottom: 0; z-index: 2; background: rgba(255, 255, 255, .85); padding: 3px 8px; font: 500 11px/1.4 Inter, Arial, sans-serif; color: #52617a; }
.rp-con .rp-con-map__copy a { color: inherit; text-decoration: underline; }

/* Анимация метки: падает, когда карта показалась; волна под ней — пока карта на экране */
.rp-con .rp-con-map.rp-anim-ready .rp-con-pin__marker { opacity: 0; transform: translateY(-40px); transition: opacity .3s ease .2s, transform .6s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.rp-con .rp-con-map.rp-anim-ready .rp-con-pin__label { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease .7s, transform .4s ease .7s; }
.rp-con .rp-con-map.rp-anim-ready.is-in .rp-con-pin__marker, .rp-con .rp-con-map.rp-anim-ready.is-in .rp-con-pin__label { opacity: 1; transform: none; }
.rp-con .rp-con-map.rp-anim-ready.is-visible .rp-con-pin__pulse { animation: rp-con-pulse 2.2s ease-out .8s infinite; }
@keyframes rp-con-pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* Карточка пункта */
.rp-con .rp-con-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.rp-con .rp-con-card .rp2-page-kicker { margin: 0; }
.rp-con .rp-con-card h2 { margin: 0; font: 800 clamp(22px, 2vw, 28px)/1.25 Manrope, Inter, Arial, sans-serif; letter-spacing: -.03em; color: #202b42; }
.rp-con .rp-con-card__place { margin: 0; font: 600 16px/1.5 Inter, Arial, sans-serif; color: #52617a; }
.rp-con .rp-con-facts { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
.rp-con .rp-con-facts li { display: flex; gap: 10px; align-items: flex-start; font: 500 15px/1.45 Inter, Arial, sans-serif; color: #34455f; }
.rp-con .rp-con-facts svg { flex: none; color: var(--rp-color-primary); margin-top: 1px; }
.rp-con .rp-con-facts b { color: #202b42; }
.rp-con .rp-con-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

.rp-con .rp-con-btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid #a6c6f8; background: #fff; color: var(--rp-color-primary); font: 750 15px/1.2 Inter, Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.rp-con .rp-con-btn:hover { background: var(--rp-color-pale); }
.rp-con .rp-con-btn:active { transform: scale(.97); }
.rp-con .rp-con-btn--primary { background: var(--rp-color-primary); border-color: var(--rp-color-primary); color: #fff; }
.rp-con .rp-con-btn--primary:hover { background: var(--rp-color-primary-hover); }
.rp-con .rp-con-actions .rp-con-btn--primary { flex: 1 1 100%; }
.rp-con .rp-con-actions .rp-con-btn:not(.rp-con-btn--primary) { flex: 1 1 0; }

/* Способы связи */
.rp-con .rp-con-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rp-con .rp-con-way { border: 1px solid #e0e8f4; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #fff; }
.rp-con .rp-con-way--accent { background: var(--rp-color-pale); border-color: #cfdffb; }
.rp-con .rp-con-way h3 { margin-top: 6px; font: 750 19px/1.3 Manrope, Inter, Arial, sans-serif; color: #202b42; letter-spacing: -.02em; }
.rp-con .rp-con-way--accent .rp-pay-card__icon { background: var(--rp-color-primary); color: #fff; }
.rp-con .rp-con-way__big { font: 800 20px/1.3 Manrope, Inter, Arial, sans-serif; color: #202b42; text-decoration: none; white-space: nowrap; }
.rp-con .rp-con-way__big:hover, .rp-con .rp-con-way__mail:hover { color: var(--rp-color-primary); }
.rp-con .rp-con-way__mail { font: 700 17px/1.3 Inter, Arial, sans-serif; color: #202b42; text-decoration: none; overflow-wrap: anywhere; }
.rp-con .rp-con-way__note { font: 500 14px/1.5 Inter, Arial, sans-serif; color: #52617a; }
.rp-con .rp-con-way--accent .rp-con-btn { margin-top: auto; }
.rp-con .rp-con-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid #dbe5f4; font: 700 15px/1.2 Inter, Arial, sans-serif; color: #202b42; text-decoration: none; transition: border-color .15s; }
.rp-con .rp-con-chip:hover { border-color: var(--rp-color-primary); }
.rp-con .rp-con-chip i { width: 12px; height: 12px; border-radius: 50%; }
.rp-con .rp-con-chip--max i { background: linear-gradient(45deg, #00c2ff, #3c22fe, #8419ff); }
.rp-con .rp-con-chip--tg i { background: #2aabee; }

/* Продавец */
.rp-con .rp-con-req { margin: 0; border-top: 1px solid #e0e8f4; }
.rp-con .rp-con-req > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid #edf1f7; }
.rp-con .rp-con-req dt { font: 600 14px/1.5 Inter, Arial, sans-serif; color: #66768c; }
.rp-con .rp-con-req dd { margin: 0; font: 500 15px/1.5 Inter, Arial, sans-serif; color: #202b42; }
.rp-con .rp-con-req a { color: var(--rp-color-primary); }
.rp-con .rp-con-seller__note { margin: 14px 0 0; font: 500 14px/1.5 Inter, Arial, sans-serif; color: #66768c; }

@media (max-width: 1100px) {
  .rp-con .rp-con-pickup { grid-template-columns: 1fr; }
  .rp-con .rp-con-map { min-height: 400px; }
  .rp-con .rp-con-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rp-con .rp-con-map { min-height: 320px; }
  .rp-con .rp-con-pin__label { left: -80px; top: -122px; width: 160px; white-space: normal; text-align: center; }
  .rp-con .rp-con-card { padding: 20px; }
  .rp-con .rp-con-actions .rp-con-btn:not(.rp-con-btn--primary) { padding: 10px 10px; font-size: 14px; }
  .rp-con .rp-con-ways { grid-template-columns: 1fr; gap: 12px; }
  .rp-con .rp-con-way { padding: 20px; }
  .rp-con .rp-con-req > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-con .rp-con-btn:active { transform: none; }
}
