/* ═══ «Поделиться» (share.js) ═══ */
.shr-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; color: #2563eb; background: #eff6ff; box-shadow: inset 0 0 0 1px #dbeafe; transition: transform .15s, background .15s; flex: none; }
.shr-btn:hover { transform: translateY(-1px); background: #dbeafe; }
.shr-btn--sm { width: 30px; height: 30px; border-radius: 10px; margin-left: auto; }
.section-header.has-shr { position: relative; }
.shr-btn--sec { position: absolute; top: 0; right: 0; }
.shr-btn--hero { position: absolute; top: 14px; right: 14px; z-index: 2; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.shr-btn--hero:hover { background: rgba(255, 255, 255, .26); }
.lgs-shr { display: inline-grid; place-items: center; min-width: 46px; }
.pgd-head .shr-btn { align-self: flex-start; }
.club-news-top .shr-btn--sm { margin-left: 6px; }
.shr { position: fixed; inset: 0; z-index: 15000; display: grid; place-items: end center; padding: 0; background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; }
@media (min-width: 640px) { .shr { place-items: center; padding: 20px; } }
.shr.on { opacity: 1; }
.shr-b { width: min(460px, 100%); padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -20px 60px -20px rgba(15, 23, 42, .5); transform: translateY(20px); transition: transform .22s cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 640px) { .shr-b { border-radius: 26px; } }
.shr.on .shr-b { transform: none; }
.shr-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.shr-h b { font: 800 1.15rem var(--font-display, inherit); color: #0f172a; }
.shr-x { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #f1f5f9; font-size: 1.3rem; cursor: pointer; color: #475569; }
.shr-prev { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #eff6ff, #fff7ed); margin-bottom: 14px; }
.shr-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, #fb923c, #2563eb); flex: none; }
.shr-prev b { display: block; font: 800 .95rem var(--font-body, inherit); color: #0f172a; }
.shr-prev small { color: #64748b; font-size: .78rem; word-break: break-all; }
.shr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.shr-grid button { display: grid; justify-items: center; gap: 5px; padding: 10px 4px; border: 0; border-radius: 16px; background: #f8fafc; cursor: pointer; font: inherit; }
.shr-grid button:hover { background: #eff6ff; }
.shr-grid span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; background: #fff; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .35); }
.shr-grid small { font: 700 .72rem var(--font-body, inherit); color: #334155; }
.shr-copy { display: flex; gap: 8px; }
.shr-copy input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 12px; padding: 0 12px; background: #f1f5f9; font: 500 .85rem var(--font-body, inherit); color: #334155; }
.shr-copy button { border: 0; border-radius: 12px; padding: 0 16px; font: 800 .88rem var(--font-body, inherit); color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); cursor: pointer; }
.shr-b, .shr-b * { box-sizing: border-box; }
.shr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shr-grid small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr { grid-template-columns: minmax(0, 1fr); }
.shr-b { width: 100%; max-width: 460px; justify-self: center; }

/* одинаковая квадратная кнопка «поделиться» везде; нажимается вся рамка, а не только значок */
.shr-btn svg { pointer-events: none; }
.shr-btn:not(.shr-btn--hero):not(.shr-btn--sec) { position: relative; z-index: 3; }
.shr-btn--hero { z-index: 6 !important; }
.shr-btn--plate { width: 48px; height: 48px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .32); align-self: center; }
.shr-btn--plate:hover { background: rgba(255, 255, 255, .24); }
.sea-autumn .shr-btn--plate { background: rgba(80, 28, 6, .42); box-shadow: inset 0 0 0 1.5px rgba(255, 228, 180, .42); }
.shr-btn--act { width: 38px; height: 38px; align-self: center; }

/* ═══ лист «Поделиться» — как системный на iPhone ═══ */
.shr-b { background: #f2f2f7 !important; padding: 14px 0 calc(16px + env(safe-area-inset-bottom)) !important; border-radius: 22px 22px 0 0; }
@media (min-width: 640px) { .shr-b { border-radius: 22px !important; max-width: 420px !important; } }
.shr-top { display: flex; align-items: center; gap: 12px; padding: 0 16px 14px; border-bottom: 1px solid #e3e3e8; }
.shr-top .shr-logo { width: 48px; height: 48px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e5e7eb; font-size: 1.5rem; display: grid; place-items: center; flex: none; }
.shr-tt { flex: 1; min-width: 0; }
.shr-tt b { display: block; font: 700 1rem/1.25 var(--font-body, inherit); color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr-tt small { display: block; margin-top: 2px; font-size: .82rem; color: #8e8e93; }
.shr-top .shr-x { width: 30px; height: 30px; border-radius: 50%; background: #e3e3e8; color: #6b7280; display: grid; place-items: center; flex: none; }
.shr-apps { display: flex; gap: 14px; overflow-x: auto; padding: 16px 16px 14px; border-bottom: 1px solid #e3e3e8; scrollbar-width: none; }
.shr-apps::-webkit-scrollbar { display: none; }
.shr-apps button { flex: 0 0 auto; width: 66px; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.shr-apps span { width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: transform .15s; }
.shr-apps button:hover span { transform: scale(1.05); }
.shr-apps button:active span { transform: scale(.95); }
.shr-apps small { font: 500 .72rem var(--font-body, inherit); color: #1f2937; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr-list { margin: 14px 16px 0; border-radius: 14px; background: #fff; overflow: hidden; }
.shr-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border: 0; background: #fff; cursor: pointer; font: 500 1rem var(--font-body, inherit); color: #111827; text-align: left; }
.shr-list button + button { border-top: 1px solid #e5e5ea; }
.shr-list button:hover { background: #f8f8fa; }
.shr-list svg { color: #111827; flex: none; }
/* кнопка у заголовка раздела не наезжает на текст: заголовок оставляет ей место справа */
.section-header.has-shr .section-title { padding-right: 52px; }
.shr-btn svg.luc-ic, .shr-btn svg { width: 20px; height: 20px; }
