@import url("illustration_tilt.css");
/* Страница «Ачивки»: тёмный hero с Легендой → Старт/Онбординг → паки наград → подарки →
   коллекция значков → Telegram. Цвета — токены сайта + акценты раздела и цвета металлов уровней. */
.ach-page {
  --ach-gold: #F2B63B;
  --ach-gold-text: #A86F00;
  --ach-gold-soft: rgba(242, 182, 59, 0.16);
  --ach-mint-soft: rgba(77, 178, 136, 0.14);
  --ach-tile: var(--surface-secondary);
  --ach-shadow: 0 18px 40px rgba(16, 48, 38, 0.10);
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
/* Цвета металлов уровней — и на странице, и в окне подробностей (оно вне .ach-page) */
.ach-page, #achDetailModal {
  --ach-bronze: linear-gradient(135deg, #E3A36A, #B06A33);
  --ach-silver: linear-gradient(135deg, #B9C3CC, #7D8A96);
  --ach-gold-metal: linear-gradient(135deg, #FFD978, #E0A21E);
}
/* Тёмная тема сайта — класс html.dark-theme (как в styles_new/00_foundations.css) */
html.dark-theme .ach-page { --ach-gold-text: #F2B63B; --ach-shadow: 0 18px 40px rgba(0,0,0,0.35); }
html.dark-theme .ach-item--complete .ach-item__art::before { display: none; }

/* Карточки профиля внутри раздела всегда на всю ширину колонки */
.ach-page .profile-card { width: 100%; max-width: none; margin: 0; box-sizing: border-box; gap: 16px; }
.ach-card-head { display: flex; flex-direction: column; gap: 4px; }
.ach-card-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: var(--ls-20); }
.ach-card-sub { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.45; }
/* Скелет: страница не «прыгает», пока грузится состояние */
.ach-skeleton { display: flex; flex-direction: column; gap: 16px; }
.ach-skeleton__block { border-radius: 24px; background: linear-gradient(90deg, var(--surface-primary) 25%, var(--surface-secondary) 50%, var(--surface-primary) 75%); background-size: 200% 100%; animation: ach-shimmer 1.3s linear infinite; }
.ach-skeleton__block--hero { height: 220px; }
.ach-skeleton__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ach-skeleton__grid .ach-skeleton__block { height: 290px; }
@keyframes ach-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Пилюли */
.ach-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ach-tag svg { width: 14px; height: 14px; flex: none; }
.ach-tag--accent { background: var(--ach-mint-soft); color: var(--accent-color); }
.ach-tag--muted { background: var(--surface-secondary); color: var(--text-muted); }
.ach-tag--gold { background: var(--surface-secondary); color: var(--text-primary); }
.ach-tag--solid { background: var(--accent-color); color: #fff; }

/* Hero: тёмно-зелёный градиент; шкала Легенды — три сегмента, по одному на ступень */
.ach-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 32px; color: #fff; background: radial-gradient(130% 150% at 100% 0%, #36A07A 0%, #17513F 42%, #0C2A22 100%); display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 32px; align-items: center; }
.ach-hero::before { content: ''; position: absolute; z-index: -1; right: -60px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(242,182,59,0.32) 0%, rgba(242,182,59,0) 62%); }
/* Все ступени Легенды закрыты — атласное серебро: мягкие светлые полосы медленно плывут, кромка как у металлической карты */
.ach-hero--complete { color: #14171C;
  background: linear-gradient(100deg, #F6F7F9 0%, #E6E9EE 18%, #FCFCFD 34%, #E1E4EA 52%, #F8F9FB 68%, #E8EAEF 84%, #F6F7F9 100%);
  background-size: 300% 100%;
  animation: ach-hero-satin 22s ease-in-out infinite; }
.ach-hero--complete::before { display: none; }
/* Кромка: conic-градиент только на рамке (mask-composite вырезает середину); угол крутится — блики бегут по кругу */
.ach-hero--complete::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ach-rim, 0deg), #7C838E 0%, #FFFFFF 8%, #C3C8D0 16%, #858C97 28%, #F5F6F9 38%, #FFFFFF 42%, #A3A9B3 52%, #7C838E 60%, #FFFFFF 70%, #CBD0D7 78%, #858C97 88%, #FFFFFF 95%, #7C838E 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: ach-hero-rim 8s linear infinite; }
@property --ach-rim { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ach-hero-rim { to { --ach-rim: 360deg; } }
@keyframes ach-hero-satin { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ach-hero--complete .ach-hero__of, .ach-hero--complete .ach-seg__name span, .ach-hero--complete .ach-seg--locked .ach-seg__name { color: rgba(20, 23, 28, 0.62); }
.ach-hero--complete .ach-hero__next { color: rgba(20, 23, 28, 0.82); }
.ach-hero--complete .ach-seg__bar { background: rgba(20, 23, 28, 0.14); }
.ach-hero--complete .ach-seg__bar i { background: linear-gradient(90deg, #FFE08A 0%, #E0A42B 100%); }
.ach-hero--complete .ach-hero__art { filter: drop-shadow(0 18px 22px rgba(20, 23, 28, 0.3)); }
.ach-hero__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ach-hero__numbers { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ach-hero__big { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: var(--ls-40); }
.ach-hero__of { font-size: 16px; color: rgba(255,255,255,0.72); }
.ach-hero__next { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,0.85); }
.ach-hero__next b { color: #FFD66B; font-weight: 700; }
.ach-hero__segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ach-seg { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ach-seg__bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; }
.ach-seg__bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #6FD1A6; transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.ach-seg__label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ach-seg__label img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.ach-seg--locked .ach-seg__label img { filter: grayscale(1) brightness(1.6); opacity: 0.45; }
.ach-seg__name { display: flex; flex-direction: column; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.25; }
.ach-seg__name span { font-weight: 400; color: rgba(255,255,255,0.65); font-size: 12px; }
.ach-seg--locked .ach-seg__name { color: rgba(255,255,255,0.7); }
.ach-hero__art { width: 150px; height: 150px; justify-self: end; filter: drop-shadow(0 18px 22px rgba(0,0,0,0.35)); }

/* Наборы: Старт / Онбординг */
.ach-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ach-set { display: flex; flex-direction: column; gap: 16px; }
.ach-set__head { display: flex; align-items: center; gap: 14px; }
.ach-set__art { width: 76px; height: 76px; flex: none; }
.ach-set__titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ach-set__count { font-size: 13px; color: var(--text-muted); }
.ach-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ach-step { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.ach-step__mark { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border-color); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ach-step__mark svg { width: 12px; height: 12px; }
.ach-step--done .ach-step__mark { background: var(--accent-color); border-color: var(--accent-color); }
.ach-step--done .ach-step__text { color: var(--text-muted); }
.ach-set--compact { justify-content: center; }
.ach-set--compact .ach-set__titles { gap: 6px; }
.ach-set--compact .ach-set__art { width: 64px; height: 64px; }
.ach-set__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--surface-secondary); font-size: 13px; color: var(--text-muted); }

/* Паки наград: один пак — одна строка (значок, этап, содержимое, прогресс) */
.ach-packs { display: flex; flex-direction: column; gap: 8px; }
.ach-pack { display: grid; grid-template-columns: 44px minmax(0, 200px) minmax(0, 1fr) 150px; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--surface-secondary); min-width: 0; }
.ach-pack__art { width: 44px; height: 44px; }
.ach-pack--locked .ach-pack__art img { filter: grayscale(1); opacity: 0.45; }
.ach-pack__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach-pack__title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.ach-pack__cond { font-size: 13px; color: var(--text-muted); line-height: 1.35; }
/* Предметы пака — плашки: на сером ряду белые, в белой карточке серые; выданные — приглушённые */
.ach-chips { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent calc(100% - 28px)); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent calc(100% - 28px)); padding-right: 72px; }
.ach-chips::-webkit-scrollbar { display: none; }
.ach-chips.is-scrolled { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 72px), transparent calc(100% - 28px)); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 72px), transparent calc(100% - 28px)); }
.ach-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--surface-secondary); font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--text-primary); white-space: nowrap; }
.ach-pack .ach-chip { background: var(--surface-primary); }
.ach-chip--muted { color: var(--text-muted); font-weight: 500; }
.ach-pack__progress { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ach-pack__progress { justify-content: flex-end; }
.ach-pack__progress .ach-bar { width: 72px; flex: none; background: var(--surface-primary); }
.ach-pack__state { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ach-pack__state svg { width: 14px; height: 14px; }

/* Кнопка «Забрать награду»: форма как у .btn-primary, без тени. Внутри — живая фиолетовая волна:
   два ярких световых пятна кружат по кнопке, фон переливается, по кнопке раз в цикл пробегает блик */
.ach-claim { position: relative; overflow: hidden; isolation: isolate; gap: 8px; padding: 0 22px 0 18px; color: #fff; font-weight: 600; white-space: nowrap;
  background:
    radial-gradient(70% 160% at 0% 0%, #D8B4FE 0%, rgba(216, 180, 254, 0) 60%),
    radial-gradient(70% 160% at 100% 100%, #E879F9 0%, rgba(232, 121, 249, 0) 60%),
    linear-gradient(120deg, #4C1D95 0%, #7C3AED 35%, #A855F7 50%, #7C3AED 65%, #4C1D95 100%);
  background-size: 220% 220%, 220% 220%, 300% 100%;
  animation: ach-claim-flow 4s ease-in-out infinite;
  transition: filter 0.3s ease, opacity 0.2s ease; }
.ach-claim::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.45) 50%, transparent 62%); transform: translateX(-130%); animation: ach-claim-shine 4s ease-in-out infinite; }
.ach-claim svg { width: 20px; height: 20px; flex: none; animation: ach-claim-wiggle 4s ease-in-out infinite; }
.ach-claim:hover { filter: brightness(1.1) saturate(1.15); }
.ach-claim:active { filter: brightness(0.95); }
.ach-claim:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 2px; }
.ach-claim.is-loading { opacity: 0.7; cursor: progress; }
.ach-pack__state .ach-claim { padding: 0 18px 0 14px; }
@keyframes ach-claim-flow {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50% { background-position: 100% 100%, 0% 0%, 100% 50%; }
}
@keyframes ach-claim-shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@keyframes ach-claim-wiggle { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-12deg) scale(1.1); } 72% { transform: rotate(10deg) scale(1.1); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); } }



/* Подарки */
.ach-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ach-gift { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px 18px; border-radius: 20px; background: var(--surface-secondary); min-width: 0; }
.ach-gift__state { position: absolute; top: 14px; right: 14px; }
.ach-gift__art { width: 64px; height: 64px; flex: none; }
.ach-gift--off .ach-gift__art img { filter: grayscale(1); opacity: 0.45; }
.ach-gift__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ach-gift__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ach-gift__text { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
/* Серая плашка на сером фоне подарка сливается — даём ей фон карточки */
.ach-gift .ach-tag--muted { background: var(--surface-primary); }

/* Коллекция: значок — главный, под ним название, шкала уровней и следующая цель */
.ach-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ach-section-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: var(--ls-20); }
.ach-section-meta { font-size: 14px; color: var(--text-muted); }
.ach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ach-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; padding: 24px 20px 20px; border-radius: 24px; background: var(--surface-primary); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.ach-item:hover { box-shadow: var(--ach-shadow); }
.ach-item__art { width: 120px; height: 120px; margin-bottom: 6px; }
.ach-item--locked .ach-item__art img { filter: grayscale(1); opacity: 0.38; }
/* Полностью пройденная ачивка — золотое сияние за значком */
.ach-item--complete .ach-item__art::before { content: ''; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(242,182,59,0.34) 0%, rgba(242,182,59,0) 66%); z-index: -1; }
.ach-item__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.ach-track { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.ach-track__seg { position: relative; width: 44px; height: 6px; border-radius: 999px; background: var(--surface-secondary); overflow: hidden; }
.ach-track__seg i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent-color); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.ach-track__seg--bronze.is-done i { background: var(--ach-bronze); }
.ach-track__seg--silver.is-done i { background: var(--ach-silver); }
.ach-track__seg--gold.is-done i { background: var(--ach-gold-metal); }
.ach-item__meta { display: flex; justify-content: space-between; gap: 8px; width: 100%; max-width: 140px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ach-item__meta span:only-child { margin: 0 auto; }
.ach-item__caption { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ach-item--secret .ach-item__caption { color: var(--text-muted); }
.ach-item__sub { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.ach-item__sub svg { width: 13px; height: 13px; }
.ach-item__progress { display: flex; flex-direction: column; gap: 6px; }
.ach-item__progress-label { font-size: 12px; color: var(--text-muted); }
.ach-bar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-secondary); overflow: hidden; }
.ach-bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent-color); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.ach-item__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.ach-item__note { font-size: 12px; color: var(--text-muted); }

/* Telegram */
.ach-tg { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ach-tg__art { width: 72px; height: 72px; flex: none; }
.ach-tg__body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }

/* Кликабельные карточки → окно подробностей */
[data-ach-open] { cursor: var(--cursor-pointer); -webkit-tap-highlight-color: transparent; }
[data-ach-open]:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
/* Каркас окна — общий с окном жалобы (14_forms_complaint.css); здесь только содержимое */
#achDetailModal .ach-detail__content { display: flex; flex-direction: column; gap: 16px; }
.ach-detail__hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 4px; }
.ach-detail__art { width: 132px; height: 132px; touch-action: none; }
.ach-levels { display: flex; flex-direction: column; gap: 10px; }
.ach-lvl { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface-secondary); }
/* Монета уровня: цвет металла и римская цифра — уровни различимы с первого взгляда */
.ach-coin { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.25); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12), inset 0 2px 0 rgba(255,255,255,0.35); }
.ach-coin--bronze { background: var(--ach-bronze); }
.ach-coin--silver { background: var(--ach-silver); }
.ach-coin--gold { background: var(--ach-gold-metal); }
.ach-lvl:not(.ach-lvl--done) .ach-coin { background: var(--surface-primary); color: var(--text-muted); text-shadow: none; box-shadow: inset 0 0 0 2px var(--border-color); }
.ach-lvl__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ach-lvl__name { font-size: 12px; color: var(--text-muted); line-height: 1.2; }
.ach-lvl__task { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ach-lvl--done .ach-lvl__task { color: var(--text-muted); font-weight: 500; }
.ach-lvl__hint { font-size: 12px; color: var(--text-muted); }
.ach-lvl .ach-bar { background: var(--surface-primary); }
.ach-lvl .ach-tag--muted { background: var(--surface-primary); }
.ach-detail .ach-set__foot { margin-top: 0; }
/* Десктоп (окно по центру): «Получено» и плашки в одну строку — окно ниже */
@media (min-width: 1280px) {
  .ach-detail .ach-set__foot { flex-direction: row; align-items: center; gap: 12px; }
  .ach-detail .ach-set__foot > span { flex: none; }
  .ach-detail .ach-set__foot .ach-chips { flex: 1; }
}

/* Модалка «уровень получен» */
.ach-modal-backdrop { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 16px; background: var(--modal-overlay); opacity: 0; transition: opacity 0.2s ease; }
.ach-modal-backdrop.is-open { display: flex; }
.ach-modal-backdrop.is-visible { opacity: 1; }
.ach-modal { position: relative; overflow: hidden; width: 100%; max-width: 400px; background: var(--surface-primary); color: var(--text-color); border-radius: 28px; padding: 32px 24px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: scale(0.95); transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1); }
.ach-modal::before { content: ''; position: absolute; left: 50%; top: -140px; width: 420px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(242,182,59,0.30) 0%, rgba(77,178,136,0.12) 40%, rgba(77,178,136,0) 66%); animation: ach-spin 12s linear infinite; pointer-events: none; }
.ach-modal-backdrop.is-visible .ach-modal { transform: none; }
.ach-modal__icon { position: relative; width: 176px; height: 176px; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.2)); animation: ach-pop 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.ach-modal__kicker { position: relative; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-color); }
.ach-modal__title { position: relative; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: var(--ls-24); }
.ach-modal__text { position: relative; margin: 0; font-size: 15px; color: var(--text-muted); line-height: 1.45; }
.ach-modal__reward { position: relative; margin-top: 4px; }
.ach-modal__btn { position: relative; margin-top: 14px; width: 100%; }
@keyframes ach-pop { 0% { transform: scale(0.3) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes ach-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes ach-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
.ach-modal__icon img { animation: ach-float 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ach-page *, .ach-page *::before, .ach-page *::after, .ach-modal, .ach-modal *, .ach-claim, .ach-claim::before, .ach-claim svg { animation: none !important; transition: none !important; }
}

/* Мобилка на сайте — всё до 1279px */
@media (max-width: 1279px) {
  .ach-gifts, .ach-grid-2, .ach-skeleton__grid { grid-template-columns: minmax(0, 1fr); }
  .ach-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 12px; border-radius: 24px; }
  .ach-hero__art { width: 76px; height: 76px; position: absolute; right: 16px; top: 16px; }
  .ach-hero__big { font-size: 44px; }
  .ach-hero__numbers, .ach-hero__next { padding-right: 88px; }
  .ach-seg__label { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ach-seg__label img { width: 24px; height: 24px; }
  /* Коллекция на телефоне — две колонки компактных значков */
  .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ach-item { padding: 16px 12px 14px; gap: 8px; border-radius: 20px; }
  .ach-item__art { width: 84px; height: 84px; margin-bottom: 2px; }
  .ach-item__title { font-size: 14px; }
  .ach-item__caption { font-size: 12px; }
  /* Пак на телефоне: значок и этап сверху, ниже содержимое и прогресс */
  .ach-pack { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
  .ach-pack__art { width: 48px; height: 48px; grid-row: span 2; align-self: start; }
  .ach-pack__head { grid-column: 2; grid-row: 1; }
  .ach-chips, .ach-pack__state { grid-column: 2 / -1; }
  /* «Получено» и шкала — в правый верхний угол, рядом с названием; кнопка «Забрать» остаётся снизу */
  .ach-pack--granted .ach-pack__state, .ach-pack__progress { grid-column: 3; grid-row: 1; align-self: start; }
  .ach-pack__progress .ach-bar { width: 56px; }
  .ach-pack__state { justify-content: flex-start; }
  .ach-pack__state .ach-claim { width: 100%; margin-top: 6px; }
  .ach-set--compact .ach-set__head { flex-wrap: wrap; }
  .ach-track__seg { width: 36px; }
  /* Окно награды — снизу, как остальные модалки сайта (.complaint-modal) */
  .ach-modal-backdrop { align-items: flex-end; }
  .ach-modal { max-width: 600px; transform: translateY(100%); transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1); }
}
.ach-detail__cta { width: 100%; }
.ach-step__link { color: inherit; text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 3px; }
