/* Кнопки, версия 2 (28.11): крупные под палец, живой отклик. Подключается последним и только уточняет размеры и поведение,
   цвета под светлые и тёмные кадры остаются в main.css. Правило: любая кнопка не ниже 42 px, на телефоне 44 px. */

/* ---- общий отклик: нажатие чувствуется ---- */
.ghost, .btn, .cta, .lang-btn, .pc-main, .sky-main, .fb-send, .support-give { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ghost:active, .btn:active, .cta:active, .pc-main:active, .sky-main:active, .fb-send:active, .support-give:active { transform: scale(0.96); transition-duration: .08s; }

/* ---- стеклянная кнопка ---- */
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 20px; font-size: 0.84rem; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 22px rgba(40, 50, 90, 0.07); }
.ghost:hover { transform: translateY(-1px); }
.cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; font-size: 0.84rem; font-weight: 500; letter-spacing: 0.04em; box-shadow: 0 6px 22px rgba(35, 42, 61, 0.18); }
.lang-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; font-size: 0.76rem; font-weight: 500; }
.lang { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 22px rgba(40, 50, 90, 0.07); }

/* ---- главная кнопка: по стеклу время от времени проходит блик (не только при наведении) ---- */
.btn { min-height: 52px; padding: 0 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.86rem; }
.btn::after { animation: btn-sheen 6.5s ease-in-out infinite; }
@keyframes btn-sheen { 0%, 72% { transform: translateX(-120%); opacity: 0; } 76% { opacity: 0.55; } 100% { transform: translateX(260%); opacity: 0; } }

/* ---- текстовые ссылки-действия: читаются как ссылки, а не как серая пыль ---- */
.quiet { font-size: 0.9rem; letter-spacing: 0.03em; padding: 10px 2px; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.quiet:hover { text-decoration-color: currentColor; }

/* ---- звук: полоски вместо «вкл/выкл» ---- */
.snd { padding: 0 16px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.eq b { display: block; width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(0.45); opacity: 0.5; transition: transform .4s ease, opacity .4s ease; }
.eq b:nth-child(2) { transform: scaleY(0.9); } .eq b:nth-child(3) { transform: scaleY(0.6); } .eq b:nth-child(4) { transform: scaleY(0.3); }   /* выключен: неподвижные полоски разной высоты (читается как звук, а не как меню) */
.snd[aria-pressed="true"] .eq b { opacity: 1; animation: eq 1.1s ease-in-out infinite; }
.snd[aria-pressed="true"] .eq b:nth-child(2) { animation-duration: 0.8s; animation-delay: -0.3s; }
.snd[aria-pressed="true"] .eq b:nth-child(3) { animation-duration: 1.35s; animation-delay: -0.6s; }
.snd[aria-pressed="true"] .eq b:nth-child(4) { animation-duration: 0.95s; animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

/* ---- действия этапа («Читать дальше», «Отправить открыткой») — кнопки ---- */
.jr-acts { gap: 10px; margin-top: 18px; }
.jr-acts .ghost { text-shadow: none; }
.jr-acts .jr-send { margin-top: 0; }
.jr-p.ink-d .jr-acts .ghost, .jr-p.ink-d .jr-end .ghost { color: #232A3D; border-color: rgba(35, 42, 61, 0.2); background: rgba(255, 255, 255, 0.6); }
.jr-end { gap: 12px; }
.jr-more { display: none; }   /* «Читать дальше» только на телефоне: на широком экране текст и так целиком */

@media (max-width: 640px) {
  .chrome { padding-top: 18px; padding-bottom: 18px; }
  .chrome .ghost, .chrome .cta { min-height: 40px; padding: 0 14px; font-size: 0.8rem; letter-spacing: 0.02em; }
  .chrome .lang-btn { min-height: 38px; padding: 0 10px; font-size: 0.72rem; }
  .chrome .snd { width: 42px; padding: 0; }
  .chrome .snd span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .back { margin-top: 44px; }
}
@media (max-aspect-ratio: 19/20) {
  .ghost { min-height: 44px; }
  .jr-acts { margin-top: 14px; gap: 8px; }
  .jr-acts .ghost { padding: 0 16px; font-size: 0.82rem; letter-spacing: 0.02em; }
  .jr-more { display: inline-flex; }
  .jr-whole .jr-more { display: none; }
  .jr-end .btn { min-height: 48px; padding: 0 22px; font-size: 0.8rem; }
  .jr-end .ghost { padding: 0 16px; }
  .jr-end { margin-top: 12px; gap: 6px 18px; }
  .jr-end .btn { order: -1; flex: 1 1 auto; }   /* последний этап: главная кнопка «Следующая» первой и во всю ширину ряда */
}
@media (prefers-reduced-motion: reduce) {
  .btn::after, .snd[aria-pressed="true"] .eq b { animation: none; }
  .snd[aria-pressed="true"] .eq b { transform: scaleY(0.8); }
  .ghost:active, .btn:active, .cta:active { transform: none; }
}

/* ---- заставка: о чём сайт ---- */
.pl-tag { margin: 16px auto 0; max-width: 22rem; padding: 0 20px; font-size: clamp(0.98rem, 2.6vw, 1.15rem); line-height: 1.5; letter-spacing: 0.01em; color: rgba(26, 29, 36, 0.78); }

/* ---- хаб на телефоне: кнопка «Открыть» по центру, стрелки по краям, подсказка «листайте вбок» ---- */
.hub-arrow, .hub-hint { display: none; }
@media (max-aspect-ratio: 19/20) {
  .hub-info .btn { display: flex; width: min(100%, 300px); margin: 0 auto; }
  body.mode-hub .hub-arrow { display: inline-flex; position: fixed; z-index: 5; top: 30%; width: 46px; min-height: 46px; padding: 0; font-size: 1.05rem; transition: opacity .4s ease, transform .3s, background .3s; }
  .hub-arrow-l { left: 10px; }
  .hub-arrow-r { right: 10px; animation: arrow-nudge 2.6s ease-in-out infinite; }
  .hub-arrow.off { opacity: 0; pointer-events: none; }
  body.mode-hub .hub-hint { display: inline-flex; align-items: center; gap: 10px; position: fixed; z-index: 5; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 72px); transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; white-space: nowrap; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; color: #232A3D; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 22px rgba(40, 50, 90, 0.08); pointer-events: none; transition: opacity .8s ease; }
  .hub-hint i { font-style: normal; animation: arrow-nudge 1.6s ease-in-out infinite; }
  .hub-hint.gone { opacity: 0; }
  body.mode-hub[data-st="islam"] .hub-arrow, body.mode-hub[data-st="islam"] .hub-hint { color: #F6F4EF; border-color: rgba(255, 255, 255, 0.38); background: rgba(40, 52, 120, 0.3); }
  body.support-open .hub-arrow, body.share-open .hub-arrow, body.support-open .hub-hint, body.share-open .hub-hint, body.card-boot .hub-arrow, body.card-boot .hub-hint { display: none; }
}
@keyframes arrow-nudge { 0%, 60%, 100% { translate: 0 0; } 78% { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .hub-arrow-r, .hub-hint i { animation: none; } }
