/* =====================================================================================================
   ATELIER — сервісні сторінки (2026-11-12): кошик + оформлення, вхід / реєстрація, вхід через Telegram, кабінет,
   «дякуємо за замовлення», оплата (LiqPay / WayForPay / тестова), промо-сторінка, умови повернення, 403 / 404.
   Стиль теми: білий простір, чорні прямі кнопки, тонкі лінії #E4E4E5, підписи 12px сірим, шрифти й кольори — змінні
   --at-… з налаштувань («🎨 Зовнішній вигляд»), запасні значення — atelier.css. Сітка 8px.
   Анімації — лише transform / opacity, prefers-reduced-motion вимикає. Поведінка — js/atelier-pages.js.
   ===================================================================================================== */

/* ── спільне для сторінок ─────────────────────────────────────────────────────────────────────── */
.at-pg { padding-bottom: 64px; }
@media (min-width: 1024px) { .at-pg { padding-bottom: 96px; } }
.at-pg__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 8px 0 24px; margin-bottom: 32px; border-bottom: 1px solid var(--at-line); }
.at-pg__head--center { flex-direction: column; align-items: center; justify-content: center; text-align: center; border-bottom: 0; margin-bottom: 24px; padding-bottom: 8px; }
.at .at-pg__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.01em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.at-pg__count { font-family: var(--at-font-body); font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--at-muted); }
.at .at-pg__lead { margin: 8px 0 0; max-width: 560px; color: var(--at-muted); font-size: 15px; }
.at-pg__head--center .at-pg__lead { margin-left: auto; margin-right: auto; }
.at .at-cap { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--at-muted); }
.at .at-hint { margin: 8px 0 0; font-size: 12px; color: var(--at-muted); line-height: 1.45; }
.at .at-note { margin: 0 0 16px; padding: 12px 16px; background: var(--at-surface); border-left: 2px solid #222; font-size: 13px; color: #333; line-height: 1.5; }
.at-req { color: var(--at-sale); }
.at-mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .06em; }
.at-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; border: 1px solid #222; color: #222; background: #fff; }
.at-tag--dark { background: #000; color: #fff; border-color: #000; }
.at-tag--accent { background: var(--at-promo-bg); color: var(--at-promo-text); border-color: var(--at-promo-bg); }
.at .at-alert { margin: 16px 0 0; padding: 12px 16px; font-size: 13px; line-height: 1.5; text-align: left; }
.at-alert--error { background: #fdeeee; color: #a40e0e; border-left: 2px solid var(--at-sale); }
.at .at-alert small { display: block; margin-top: 4px; color: #6b1c1c; }
/* поля сервісних сторінок: 16px на телефоні — iOS не збільшує сторінку при фокусі */
@media (max-width: 767.98px) {
  .at-pg input[type=text], .at-pg input[type=tel], .at-pg input[type=email], .at-pg input[type=password], .at-pg input[type=search], .at-pg select { font-size: 16px; }
}

/* етапи покупки */
.at-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; counter-reset: at-step; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--at-muted); }
.at-steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; counter-increment: at-step; }
.at-steps li::before { content: counter(at-step); width: 24px; height: 24px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--at-line-strong); border-radius: 50%; font-size: 11px; letter-spacing: 0; transition: background-color .3s, color .3s, border-color .3s; }
.at-steps li:not(:last-child)::after { content: ''; width: 24px; height: 1px; background: var(--at-line-strong); margin-left: 4px; }
.at-steps li.is-done { color: #222; }
.at-steps li.is-done::before { content: '✓'; border-color: #222; color: #222; }
.at-steps li.is-current { color: #000; }
.at-steps li.is-current::before { background: #000; border-color: #000; color: #fff; }
.at-steps--center { justify-content: center; padding: 24px 0 0; }
@media (max-width: 479.98px) { .at-steps li:not(.is-current) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .at-steps li:not(:last-child)::after { width: 16px; } }

/* порожній стан */
.at-empty-state { max-width: 560px; margin: 0 auto; padding: 48px 0 24px; text-align: center; }
.at-empty-state--box { max-width: none; padding: 48px 24px; border: 1px solid var(--at-line); }
.at-empty-state__art { width: 160px; height: 160px; margin: 0 auto 16px; display: block; overflow: visible; }
.at-empty-state__art .ln { fill: none; stroke: #222; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.at-empty-state__art .soft { fill: var(--at-surface); }
.at-empty-state__art .acc { fill: none; stroke: var(--at-promo-bg); stroke-width: 4; stroke-linecap: round; }
.at-js .at-empty-state__art .ln { stroke-dasharray: 420; stroke-dashoffset: 420; animation: at-draw 1.6s var(--at-ease) .15s forwards; }
.at .at-empty-state__title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.at .at-empty-state__text { color: var(--at-muted); margin-bottom: 24px; }
.at-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@keyframes at-draw { to { stroke-dashoffset: 0; } }

/* анімована галочка (Telegram-вхід, «дякуємо») */
.at-okmark { width: 64px; height: 64px; display: block; margin: 0 auto; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.at-okmark circle { stroke: var(--at-line-strong); }
.at-okmark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: at-draw .7s var(--at-ease) .35s forwards; }
.at-okmark--lg { width: 88px; height: 88px; }
.at-okmark--lg circle { fill: var(--at-promo-bg); stroke: var(--at-promo-bg); transform-origin: 50% 50%; animation: at-pop .6s var(--at-ease-spring) both; }
@keyframes at-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── кошик ────────────────────────────────────────────────────────────────────────────────────── */
.at-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "items" "form" "sum"; gap: 48px; }
@media (min-width: 1024px) { .at-cart__grid { grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "items sum" "form sum"; column-gap: 48px; row-gap: 64px; } }
@media (min-width: 1280px) { .at-cart__grid { grid-template-columns: minmax(0, 1fr) 440px; column-gap: 80px; } }
.at-cart__items { grid-area: items; min-width: 0; }
.at-cart__list { list-style: none; margin: 0; padding: 0; }
.at-cart__list > .at-ci:first-child { padding-top: 0; }

.at-ci { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr) 40px; grid-template-areas: "media info remove" "media qty total"; gap: 8px 16px; padding: 20px 0; border-bottom: 1px solid var(--at-line); align-items: start; }
/* рядок «фото | назва | кількість | сума | ×» — лише коли колонці товарів вистачає ширини (не на ширину екрана):
   на 1024px поруч є підсумок, і назва стискалась до 48px (по складах). Вужча колонка — компактна картка в 2 ряди. */
.at-cart__items { container-type: inline-size; }
@container (min-width: 640px) {
  .at-ci { grid-template-columns: 112px minmax(0, 1fr) 120px 112px 40px; grid-template-areas: "media info qty total remove"; align-items: center; gap: 24px; padding: 24px 0; }
}
.at-ci__media { grid-area: media; position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--at-surface); }
.at .at-ci__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--at-ease); }
@media (hover: hover) { .at-ci:hover .at-ci__img { transform: scale(1.05); } }
.at-ci__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.at-ci__ph svg { width: 40%; height: auto; fill: none; stroke: var(--at-line-strong); stroke-width: 1.4; stroke-linejoin: round; }
.at-ci__info { grid-area: info; min-width: 0; padding-top: 2px; }
.at-ci__name { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: #222; overflow-wrap: break-word; hyphens: auto; }
.at-ci__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.at .at-ci__meta { margin: 0 0 4px; font-size: 13px; color: var(--at-muted); line-height: 1.45; overflow-wrap: break-word; }
.at .at-ci__meta strong { color: #222; font-weight: 600; }
.at .at-ci__meta .at-tag { margin-right: 6px; padding: 2px 8px; font-size: 10px; }
.at-ci__sizes { display: block; margin-top: 4px; }
.at-ci__total { grid-area: total; justify-self: end; align-self: center; font-size: 15px; font-weight: 700; white-space: nowrap; }
.at-ci__remove { grid-area: remove; justify-self: end; align-self: start; margin: 0; }
@container (min-width: 640px) { .at-ci__remove { align-self: center; } }
.at-ci__x { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: var(--at-muted); margin: -8px -8px 0 0; transition: color .2s; }
@container (min-width: 640px) { .at-ci__x { margin: 0; } }
.at-ci__x:hover { color: #000; }
.at-ci__x .at-ico { width: 20px; height: 20px; transition: transform .3s var(--at-ease); }
.at-ci__x:hover .at-ico { transform: rotate(90deg); }
/* лічильник кількості */
.at-qty { grid-area: qty; justify-self: start; align-self: center; display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--at-line); background: #fff; }
.at-qty form { display: contents; }
.at-qty__btn { width: 40px; height: 100%; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: #222; transition: background-color .2s; }
.at-qty__btn:hover { background: var(--at-surface); }
.at-qty__btn:active svg { transform: scale(.8); }
.at-qty__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .2s; }
.at-qty__val { min-width: 40px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border-left: 1px solid var(--at-line); border-right: 1px solid var(--at-line); font-weight: 600; font-size: 14px; }
.at-cart__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; font-size: 13px; font-weight: 600; }
.at-cart__back, .at-cart__clear { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.at-cart__back .at-ico, .at-cart__clear .at-ico { width: 18px; height: 18px; transition: transform .3s var(--at-ease); }
.at-cart__back:hover .at-ico { transform: translateX(-3px); }
.at-cart__back:hover span, .at-cart__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.at-cart__clear { color: var(--at-muted); }
.at-cart__clear:hover { color: var(--at-sale); }

/* оформлення */
.at-co { grid-area: form; min-width: 0; }
.at .at-co__title { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 24px; }
.at-co__sec { border: 0; margin: 0 0 32px; padding: 0 0 32px; min-width: 0; border-bottom: 1px solid var(--at-line); }
.at-co__sec--last { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.at-co__h { display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 20px; font-family: var(--at-font-head); font-size: 17px; font-weight: 600; color: var(--at-color-head); }
.at-co__num { width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #000; color: #fff; font-size: 13px; font-family: var(--at-font-body); }
.at-co__row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
@media (min-width: 576px) { .at-co__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.at-co .at-field > label { letter-spacing: .06em; }
/* Нова Пошта (Select2 у стилі теми) */
.at-np { position: relative; }
.at-np__manual { display: block; }
.at-pages-js .at-np__manual:not(.is-on) { display: none; }
html:not(.at-pages-js) .at-np__sel { display: none; }
.at-np .select2-container { width: 100% !important; display: block; }
.at-np .select2-container--default .select2-selection--single { height: 48px; border: 1px solid var(--at-line); border-radius: 0; background: #fff; display: flex; align-items: center; transition: border-color .2s, box-shadow .2s; outline: none; }
.at-np .select2-container--default .select2-selection--single .select2-selection__rendered { flex: 1 1 auto; padding: 0 44px 0 14px; line-height: 46px; color: var(--at-color-text); font-size: 15px; }
.at-np .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--at-muted); }
.at-np .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 0; width: 44px; height: 46px; }
.at-np .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #222 transparent transparent; border-width: 5px 5px 0; margin-left: -5px; }
.at-np .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent #222; border-width: 0 5px 5px; }
.at-np .select2-container--default.select2-container--focus .select2-selection--single,
.at-np .select2-container--default.select2-container--open .select2-selection--single { border-color: #222; box-shadow: 0 0 0 1px #222; }
.at-np .select2-container--default.select2-container--disabled .select2-selection--single { background: var(--at-surface); cursor: not-allowed; }
.at-np .select2-dropdown { border: 1px solid #222; border-radius: 0; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35); overflow: hidden; z-index: 20; }
.at-np .select2-search--dropdown { padding: 8px; }
.at .at-np .select2-search--dropdown .select2-search__field { min-height: 40px; height: 40px; padding: 8px 12px; border: 1px solid var(--at-line); border-radius: 0; font-size: 15px; box-shadow: none; }
.at .at-np .select2-search--dropdown .select2-search__field:focus { border-color: #222; }
.at-np .select2-results__options { max-height: 260px !important; }
.at-np .select2-results__option { padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.at-np .select2-results__message { color: var(--at-muted); }
.at-np .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.at-np .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #000; color: #fff; }
.at-np .select2-container--default .select2-results__option--selected,
.at-np .select2-container--default .select2-results__option[aria-selected=true] { background: var(--at-surface); color: #222; }
/* способи оплати */
.at-payopts { display: grid; gap: 8px; }
.at-payopt { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--at-line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.at-payopt:hover { border-color: var(--at-line-strong); }
.at-payopt input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: #000; cursor: pointer; }
.at-payopt.is-selected, .at-payopt:has(input:checked) { border-color: #222; box-shadow: inset 0 0 0 1px #222; }
.at-payopt:has(input:focus-visible) { outline: 2px solid #222; outline-offset: 2px; }
.at-payopt__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.at-payopt__title { font-size: 14px; font-weight: 600; color: #222; }
.at-payopt__sub { font-size: 12px; color: var(--at-muted); }
.at .at-payopt__ico { width: 26px; height: 26px; color: #222; opacity: .8; }

/* підсумок */
.at-sum { grid-area: sum; min-width: 0; }
.at-sum__box { border: 1px solid var(--at-line); background: #fff; padding: 24px 20px; }
@media (min-width: 576px) { .at-sum__box { padding: 32px; } }
@media (min-width: 1024px) and (min-height: 760px) { .at-sum__box { position: sticky; top: calc(var(--at-header-h) + 24px); } }
.at .at-sum__title { font-size: 18px; margin-bottom: 24px; }
.at-sum__promo { padding-bottom: 24px; border-bottom: 1px solid var(--at-line); }
.at-promo-form { display: flex; gap: 8px; }
.at .at-promo-form input { flex: 1 1 auto; min-width: 0; min-height: 40px; height: 40px; padding: 8px 12px; text-transform: uppercase; letter-spacing: .06em; }
.at .at-promo-form input::placeholder { text-transform: none; letter-spacing: .02em; }
.at-promo-form .at-btn { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.at-promo-ok { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 10px 14px; border: 1px dashed #222; background: color-mix(in srgb, var(--at-promo-bg) 45%, #fff); animation: at-fade-up .45s var(--at-ease); }
.at-promo-ok__text { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.at .at-promo-ok__text .at-ico { width: 18px; height: 18px; stroke-width: 2; }
.at-promo-ok form { margin: 0; flex: 0 0 auto; }
.at-promo-ok__rm { min-height: 32px; padding: 0 8px; border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: #222; }
.at-sum__rows { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.at-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.at-sum__row dt { color: #333; }
.at-sum__row dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.at-sum__row dd.at-muted { font-weight: 500; white-space: normal; }
.at-sum__row--disc dt, .at-sum__row--disc dd { color: var(--at-success); }
.at-sum__row--total { margin-top: 4px; padding-top: 16px; border-top: 1px solid #222; font-size: 18px; }
.at-sum__row--total dt { font-weight: 600; color: #000; }
.at-sum__row--total dd { font-weight: 700; color: #000; }
.at-sum__actions { display: grid; gap: 8px; }
.at-sum__actions .at-btn { white-space: normal; }
.at .at-sum__note { margin: 4px 0 0; font-size: 12px; color: var(--at-muted); line-height: 1.5; }
.at-trust { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--at-line); display: grid; gap: 12px; font-size: 13px; color: #333; }
.at-trust li { display: flex; align-items: center; gap: 12px; }
.at .at-trust .at-ico { width: 20px; height: 20px; color: #222; }
.at-trust a { text-decoration: underline; text-decoration-color: var(--at-line-strong); text-underline-offset: 3px; }
.at-trust a:hover { text-decoration-color: currentColor; }
.at-btn.is-loading::before { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: at-spin .7s linear infinite; }
@keyframes at-spin { to { transform: rotate(360deg); } }

/* ── вхід / реєстрація ────────────────────────────────────────────────────────────────────────── */
.at-auth__grid { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--at-line); background: #fff; }
@media (min-width: 900px) { .at-auth__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 2026-11-12: «Ще крок» після першого входу через Google / Apple (social_complete.html) — одна колонка */
.at-auth__grid.at-auth__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
.at-auth__skip { margin-top: 8px; text-align: center; }
.at-auth__col { min-width: 0; padding: 32px 20px; }
@media (min-width: 576px) { .at-auth__col { padding: 40px; } }
@media (min-width: 1280px) { .at-auth__col { padding: 56px 72px; } }
.at-auth__col--new { position: relative; background: var(--at-surface); border-top: 1px solid var(--at-line); scroll-margin-top: 140px; }
@media (min-width: 900px) { .at-auth__col--new { border-top: 0; border-left: 1px solid var(--at-line); } }
.at .at-auth__title { font-size: clamp(22px, 2.2vw, 26px); margin-bottom: 8px; }
.at .at-auth__sub { color: var(--at-muted); margin-bottom: 24px; }
.at-auth__form .at-btn { margin-top: 8px; }
.at-phone { display: flex; }
.at-phone__cc { display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--at-line); border-right: 0; background: var(--at-surface); font-size: 15px; font-weight: 600; color: #222; flex: 0 0 auto; }
.at .at-phone input { flex: 1 1 auto; min-width: 0; letter-spacing: .08em; }
.at-pass { position: relative; }
.at .at-pass input { padding-right: 52px; }
.at-pass__eye { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: var(--at-muted); }
.at-pass__eye:hover { color: #000; }
.at-pass__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.at-pass__eye .slash { stroke-dasharray: 23; stroke-dashoffset: 23; transition: stroke-dashoffset .3s var(--at-ease); }
.at-pass__eye[aria-pressed="true"] .slash { stroke-dashoffset: 0; }
.at-auth__or { display: flex; align-items: center; gap: 16px; margin: 32px 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--at-muted); }
.at-auth__or::before, .at-auth__or::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--at-line); }
.at-auth__social { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 480px) { .at-auth__social { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.at-soc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--at-line); background: #fff; color: #222; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, transform .3s var(--at-ease); white-space: nowrap; }
.at-soc-btn:hover { border-color: #222; transform: translateY(-1px); }
.at-soc-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; border-color: var(--at-line); }
.at-soc-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.at-soc-btn--tg .at-ico { color: #229ed9; }
/* 2026-11-12: Telegram / Google / Apple — одна під одною на всю ширину, повний напис «Увійти через …» */
.at-auth__social.at-auth__social--stack { grid-template-columns: minmax(0, 1fr); }
.at-auth__social--stack .at-soc-btn { white-space: normal; text-align: center; }
.at .at-auth__safe { margin: 24px 0 0; font-size: 12px; line-height: 1.6; color: var(--at-muted); text-align: center; }
.at .at-auth__safe .at-ico { width: 18px; height: 18px; margin: -3px 6px 0 0; }
/* переваги */
.at-benefits { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; }
.at-benefits li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.at-benefits__ico { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--at-line); transition: transform .4s var(--at-ease-spring), background-color .3s; }
.at .at-benefits__ico .at-ico { width: 20px; height: 20px; }
.at-benefits li:hover .at-benefits__ico { transform: translateY(-2px) rotate(-6deg); background: var(--at-promo-bg); }
.at-benefits b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: #222; }
.at-benefits li > span:last-child > span { display: block; font-size: 13px; color: var(--at-muted); line-height: 1.5; }
/* форма реєстрації розкривається з кнопки. Клас html.at-pages-js ставить сторінка й знімає запобіжник, якщо atelier-pages.js
   не запустився за 4 с — тоді форма реєстрації й поля адреси вручну видно одразу (як без JS) */
.at-pages-js .at-auth__reg:not(.is-open) { display: none; }
.at-auth__reg.is-open { animation: at-fade-up .5s var(--at-ease); }
.at-pages-js .at-auth__col--new.is-reg .at-auth__cta { display: none; }
html:not(.at-pages-js) .at-auth__cta { display: none; }
/* 3D-картка клубу (декор) */
.at-club { perspective: 900px; margin: 0 0 32px; }
@media (max-width: 575.98px) { .at-club { display: none; } }
.at-club__card {
  --rx: 10deg; --ry: -14deg;
  position: relative; display: grid; grid-template-rows: auto 1fr auto; width: min(320px, 100%); aspect-ratio: 1.586 / 1; padding: 20px 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, #2c2c2e 0%, #111 55%, #000 100%); color: #fff;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--at-ease);
  box-shadow: 0 36px 60px -34px rgba(0, 0, 0, .7), 0 2px 0 0 rgba(255, 255, 255, .06) inset; animation: at-club-float 7s ease-in-out infinite;
}
.at-club__card.is-tilting { animation: none; transition: transform .12s linear; }
.at-club__brand { font-family: var(--at-font-brand); font-size: 18px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; transform: translateZ(30px); }
.at-club__chip { align-self: center; width: 40px; height: 30px; border-radius: 5px; background: linear-gradient(135deg, var(--at-promo-bg), #e9fff6 60%, var(--at-promo-bg)); transform: translateZ(20px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.at-club__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; transform: translateZ(24px); }
.at-club__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.at-club__dots { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .12em; }
.at-club__sheen { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); transform: translateX(-60%); animation: at-sheen 5.5s var(--at-ease) infinite 1s; pointer-events: none; }
@keyframes at-club-float { 0%, 100% { transform: rotateX(10deg) rotateY(-14deg) translateY(0); } 50% { transform: rotateX(6deg) rotateY(-6deg) translateY(-6px); } }
@keyframes at-sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

/* ── вхід через Telegram ──────────────────────────────────────────────────────────────────────── */
.at-tg__card { position: relative; max-width: 480px; margin: 8px auto 0; padding: 40px 20px 32px; border: 1px solid var(--at-line); background: #fff; text-align: center; }
@media (min-width: 576px) { .at-tg__card { padding: 48px 48px 40px; } }
.at-tg__badge { position: relative; width: 72px; height: 72px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #229ed9; color: #fff; }
.at .at-tg__badge .at-ico { width: 34px; height: 34px; stroke-width: 1.4; position: relative; z-index: 1; }
.at-tg__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #229ed9; opacity: 0; animation: at-ring 2.8s var(--at-ease) infinite; }
.at-tg__ring--2 { animation-delay: 1.4s; }
@keyframes at-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.at .at-tg__title { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.at .at-tg__sub { font-size: 20px; margin: 16px 0 8px; }
.at .at-tg__text { color: var(--at-muted); margin-bottom: 24px; line-height: 1.6; }
.at-tg__step { text-align: left; }
.at-tg__step > .at-tg__text, .at-tg__step > .at-tg__sub, .at .at-tg__waiting { text-align: center; }
.at .at-tg__phone { text-align: center; font-size: 18px; letter-spacing: .06em; }
.at-tg__step .at-btn + .at-btn { margin-top: 8px; }
.at-tg__sep { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; font-size: 12px; color: var(--at-muted); text-align: center; }
.at-tg__sep::before, .at-tg__sep::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--at-line); }
.at-tg__sep span { flex: 0 1 auto; }
.at-tg__wait { width: 96px; height: 96px; margin: 0 auto; }
.at-tg__wait svg { width: 100%; height: 100%; overflow: visible; }
.at-tg__wait .track { fill: none; stroke: var(--at-line); stroke-width: 2; }
.at-tg__wait .arc { fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 44 132; transform-origin: 32px 32px; animation: at-spin 1.2s linear infinite; }
.at-tg__wait .plane { fill: #229ed9; transform-origin: 32px 32px; animation: at-plane 2.4s ease-in-out infinite; }
@keyframes at-plane { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(2px, -3px) rotate(-6deg); } }
.at .at-tg__waiting { margin: 0 0 24px; font-size: 13px; font-weight: 600; color: #222; }
.at .at-tg__waiting::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: at-dots 1.4s steps(4) infinite; }
@keyframes at-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.at .at-tg__back { margin: 24px 0 0; text-align: center; font-size: 13px; }

/* ── кабінет ──────────────────────────────────────────────────────────────────────────────────── */
.at-prof__hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 20px; padding: 8px 0 24px; scroll-margin-top: 140px; }
@media (min-width: 768px) { .at-prof__hero { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding-bottom: 32px; } }
.at-prof__avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #000; color: #fff; font-family: var(--at-font-brand); font-size: 26px; font-weight: 600; position: relative; }
.at-prof__avatar::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--at-line-strong); }
@media (min-width: 768px) { .at-prof__avatar { width: 80px; height: 80px; font-size: 32px; } }
.at-prof__who { min-width: 0; }
.at-prof__who .at-cap { margin-bottom: 4px; }
.at .at-prof__name { font-size: clamp(24px, 3vw, 36px); overflow-wrap: anywhere; }
.at .at-prof__phone { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; color: var(--at-muted); }
.at .at-prof__phone .at-ico { width: 16px; height: 16px; }
.at-prof__out { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) { .at-prof__out { grid-column: auto; justify-self: end; } }
.at-prof__nav { display: flex; gap: 24px; margin: 0 0 40px; border-top: 1px solid var(--at-line); border-bottom: 1px solid var(--at-line); overflow-x: auto; scrollbar-width: none; }
.at-prof__nav::-webkit-scrollbar { display: none; }
@media (max-width: 767.98px) { .at-prof__nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 32px; } }
.at-prof__nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; font-size: 14px; font-weight: 600; color: var(--at-muted); white-space: nowrap; flex: 0 0 auto; transition: color .2s; }
.at-prof__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #000; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--at-ease); }
.at-prof__nav a:hover, .at-prof__nav a.is-active { color: #000; }
.at-prof__nav a:hover::after, .at-prof__nav a.is-active::after { transform: scaleX(1); }
.at-prof__navcount { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #000; color: #fff; font-size: 11px; line-height: 22px; text-align: center; }
.at-prof__sec { margin-bottom: 56px; scroll-margin-top: 180px; }
@media (min-width: 1024px) { .at-prof__sec { margin-bottom: 72px; } }
.at-prof__sechead { margin-bottom: 24px; }
.at .at-prof__h { font-size: clamp(20px, 2vw, 24px); }
.at .at-prof__lead { margin: 8px 0 0; color: var(--at-muted); max-width: 640px; }
/* статистика */
.at-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
@media (min-width: 768px) { .at-stats { gap: 16px; margin-bottom: 16px; } }
.at-stat { position: relative; padding: 20px 16px; border: 1px solid var(--at-line); background: #fff; overflow: hidden; }
@media (min-width: 576px) { .at-stat { padding: 28px; } }
.at-stat::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--at-promo-bg); opacity: .35; transition: transform .8s var(--at-ease); }
.at-stat:hover::after { transform: scale(1.3); }
.at-stat { container-type: inline-size; } /* розмір суми — від ширини картки: «79676,40 ₴» вміщується і на 360px */
@media (max-width: 399.98px) { .at-stat { padding: 16px 12px; } }
.at .at-stat__value { position: relative; z-index: 1; margin: 0 0 12px; font-family: var(--at-font-head); font-size: clamp(18px, 14cqi, 44px); font-weight: 600; line-height: 1; color: #000; white-space: nowrap; }
.at .at-stat__value small { font-size: .5em; font-weight: 500; color: var(--at-muted); }
.at-stat .at-tag { position: relative; z-index: 1; }
.at-levels { padding: 20px 16px; border: 1px solid var(--at-line); }
@media (min-width: 576px) { .at-levels { padding: 24px 28px; } }
.at-levels__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (min-width: 768px) { .at-levels__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .at-levels__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.at-levels__grid li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; align-items: center; font-size: 13px; color: var(--at-muted); }
.at-levels__grid li b { font-weight: 600; color: var(--at-muted); }
.at-levels__grid li > span:last-child { grid-column: 2; font-size: 12px; }
.at-levels__mark { grid-row: 1 / span 2; align-self: start; margin-top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--at-line-strong); }
.at-levels__grid li.is-on b { color: #000; }
.at-levels__grid li.is-on .at-levels__mark { background: #000; border-color: #000; box-shadow: 0 0 0 3px var(--at-promo-bg); }
/* бонусні промокоди */
.at-bonus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.at-ticket { position: relative; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid #222; transition: transform .4s var(--at-ease); }
.at-ticket::before, .at-ticket::after { content: ''; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--at-bg); border: 1px solid #222; }
.at-ticket::before { left: -11px; clip-path: inset(0 0 0 50%); }
.at-ticket::after { right: -11px; clip-path: inset(0 50% 0 0); }
@media (hover: hover) { .at-ticket:hover { transform: translateY(-3px) rotate(-.4deg); } }
.at-ticket.is-used { border-color: var(--at-line-strong); color: var(--at-muted); }
.at-ticket.is-used::before, .at-ticket.is-used::after { border-color: var(--at-line-strong); }
.at-ticket__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.at-ticket__pct { font-family: var(--at-font-head); font-size: 28px; font-weight: 700; line-height: 1; color: #000; }
.at-ticket.is-used .at-ticket__pct { color: var(--at-muted); }
.at .at-ticket__code { margin: 0 0 16px; padding: 14px 12px; border: 1px dashed var(--at-line-strong); background: var(--at-surface); text-align: center; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: .1em; color: #000; overflow-wrap: anywhere; }
.at-ticket.is-used .at-ticket__code { color: var(--at-muted); text-decoration: line-through; }
.at-ticket__meta { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--at-muted); }
.at-ticket__meta strong { color: #222; }
.at .at-ticket__note { font-size: 13px; color: var(--at-muted); }
.at-ticket .at-btn { margin-top: auto; }
.at-ticket--wide { max-width: 560px; width: 100%; margin: 0 auto; }
[data-copy].is-copied { background: var(--at-success) !important; border-color: var(--at-success) !important; color: #fff !important; }
/* замовлення */
.at-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.at-ord { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--at-line); background: #fff; transition: border-color .25s; }
.at-ord:hover { border-color: var(--at-line-strong); }
.at-ord__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--at-line); }
.at-ord__date { font-size: 12px; color: var(--at-muted); white-space: nowrap; }
.at-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; border: 1px solid currentColor; color: #222; }
.at-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.at-status--new { background: #000; color: #fff; border-color: #000; }
.at-status--new i { animation: at-blink 1.6s ease-in-out infinite; }
.at-status--confirmed { background: #fff; color: #000; border-color: #000; }
.at-status--sent { background: var(--at-promo-bg); color: #000; border-color: var(--at-promo-bg); }
.at-status--done { background: var(--at-success); color: #fff; border-color: var(--at-success); }
.at-status--returned { background: var(--at-surface); color: var(--at-muted); border-color: var(--at-line); }
.at-status--cancelled { background: #fff; color: #c41010; border-color: #c41010; }
@keyframes at-blink { 50% { opacity: .3; } }
.at-ord__body { display: grid; gap: 16px; padding: 16px 20px 20px; }
.at-ord__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.at .at-ord__num { font-family: var(--at-font-body); font-size: 16px; font-weight: 600; }
.at-ord__src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--at-muted); }
.at .at-ord__src .at-ico { width: 14px; height: 14px; }
.at-ord__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.at-ord__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.at-ord__thumb { position: relative; display: block; width: 56px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--at-surface); }
.at .at-ord__thumb img, .at .at-ord__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-ord__iinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.at-ord__iname { font-size: 14px; font-weight: 500; color: #222; overflow-wrap: break-word; }
.at-ord__iname:hover { text-decoration: underline; text-underline-offset: 3px; }
.at-ord__imeta { font-size: 12px; color: var(--at-muted); overflow-wrap: break-word; }
.at-ord__info { margin: 0; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--at-line); font-size: 13px; }
.at-ord__info:empty { display: none; }
.at-ord__info > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.at-ord__info dt { margin: 0; }
.at .at-ord__info .at-ico { width: 18px; height: 18px; color: var(--at-muted); }
.at-ord__info dd { margin: 0; color: #222; overflow-wrap: break-word; line-height: 1.45; }
.at-ord__promo { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px dashed #222; background: color-mix(in srgb, var(--at-promo-bg) 35%, #fff); font-size: 12px; }
.at-ord__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--at-line); }
.at-ord__sum .at-cap { margin-bottom: 2px; }
.at-ord__total { font-family: var(--at-font-head); font-size: 20px; font-weight: 700; color: #000; }
.at-ord__repeat .at-ico { transition: transform .5s var(--at-ease); }
.at-ord__repeat:hover .at-ico { transform: rotate(-180deg); }
.at-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.at-pager__info { font-size: 13px; font-weight: 600; color: var(--at-muted); }
/* вікно «товар недоступний» */
.at-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; background: #fff; color: #222; box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .5); overflow: auto; }
.at-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.at-dialog[open] { animation: at-dialog-in .45s var(--at-ease-spring); }
@keyframes at-dialog-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.at-dialog__close-form { position: absolute; top: 4px; right: 4px; margin: 0; }
.at .at-dialog__body { padding: 40px 24px 24px; text-align: center; }
@media (min-width: 576px) { .at .at-dialog__body { padding: 48px 40px 32px; } }
.at-dialog__art { width: 64px; height: 64px; margin: 0 auto 16px; display: block; fill: none; stroke: #222; stroke-width: 1.6; stroke-linecap: round; }
.at .at-dialog__title { font-size: 24px; margin-bottom: 8px; }
.at .at-dialog__name { font-weight: 600; margin-bottom: 16px; }
.at .at-dialog__body p { font-size: 14px; line-height: 1.6; }
.at .at-dialog__tip { padding: 12px 16px; background: var(--at-surface); text-align: left; font-size: 13px !important; }
.at-dialog__actions { display: grid; gap: 8px; margin-top: 24px; }
.at-dialog__actions form { margin: 0; }

/* ── «дякуємо за замовлення» ──────────────────────────────────────────────────────────────────── */
.at-ok__hero { max-width: 640px; margin: 0 auto; padding: 40px 0 32px; text-align: center; }
.at .at-ok__title { font-size: clamp(28px, 4vw, 44px); margin: 24px 0 12px; }
.at .at-ok__num { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 14px; border: 1px solid #222; font-size: 14px; }
.at .at-ok__num strong { font-weight: 700; letter-spacing: .04em; }
.at .at-ok__text { color: var(--at-muted); margin: 0 auto; max-width: 480px; }
.at-ok__stage { display: grid; gap: 24px; justify-items: center; perspective: 1200px; }
.at-receipt { position: relative; width: 100%; max-width: 560px; padding: 28px 20px 24px; background: #fff; border: 1px solid var(--at-line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); transform-origin: 50% 0; animation: at-receipt-in 1s var(--at-ease) .2s both; }
@media (min-width: 576px) { .at-receipt { padding: 36px 40px 32px; } }
.at-receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(-45deg, transparent 6px, #fff 0) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, #fff 0) 0 0 / 12px 10px repeat-x; filter: drop-shadow(0 1px 0 var(--at-line)); }
@keyframes at-receipt-in { from { opacity: 0; transform: rotateX(-24deg) translateY(-12px); } to { opacity: 1; transform: none; } }
.at .at-receipt__title { font-family: var(--at-font-body); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--at-muted); margin-bottom: 20px; }
.at-receipt__rows { margin: 0; display: grid; gap: 16px; }
.at-receipt__rows > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-bottom: 16px; border-bottom: 1px dashed var(--at-line); }
@media (min-width: 576px) { .at-receipt__rows > div { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; } }
.at-receipt__rows dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--at-muted); padding-top: 2px; }
.at-receipt__rows dd { margin: 0; font-size: 14px; color: #222; overflow-wrap: break-word; }
.at-receipt__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.at-receipt__items li span { display: block; }
.at-receipt__items small { display: block; font-size: 12px; color: var(--at-muted); }
.at-receipt__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 20px; }
.at-receipt__total span { font-weight: 600; }
.at-receipt__total strong { font-family: var(--at-font-head); font-size: 28px; font-weight: 700; color: #000; }
.at .at-creds { width: 100%; max-width: 560px; padding: 28px 20px; border: 2px solid #000; background: color-mix(in srgb, var(--at-promo-bg) 30%, #fff); text-align: center; animation: at-fade-up .8s var(--at-ease) .5s both; }
@media (min-width: 576px) { .at .at-creds { padding: 32px 40px; } }
.at .at-creds > .at-tag { margin: 0 0 12px; }
.at .at-creds__title { font-size: 24px; margin-bottom: 8px; }
.at .at-creds__text { font-weight: 600; margin-bottom: 20px; }
.at-creds__grid { display: grid; gap: 8px; margin-bottom: 16px; }
@media (min-width: 576px) { .at-creds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.at-cred { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 16px 12px; border: 1px solid #222; background: #fff; color: #222; cursor: pointer; transition: transform .3s var(--at-ease), background-color .2s, color .2s; }
.at-cred:hover { transform: translateY(-2px); }
.at-cred .at-cap { margin: 0; }
.at-cred.is-copied .at-cap { color: rgba(255, 255, 255, .85); }
.at-cred__value { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.at-cred__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .75; }
.at .at-cred__hint .at-ico { width: 14px; height: 14px; }
.at .at-creds__warn { margin: 0; font-size: 13px; line-height: 1.6; }
.at .at-creds__warn .at-ico { width: 18px; height: 18px; margin: -3px 6px 0 0; }
.at .at-creds__warn .at-link { margin-left: 4px; }
.at-ok__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }

/* ── оплата ───────────────────────────────────────────────────────────────────────────────────── */
.at-pay { padding-top: 32px; }
.at-pay__card { max-width: 480px; margin: 0 auto; padding: 40px 20px 32px; border: 1px solid var(--at-line); background: #fff; text-align: center; }
@media (min-width: 576px) { .at-pay__card { padding: 48px; } }
.at .at-pay__title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.at .at-pay__order { color: var(--at-muted); margin-bottom: 24px; }
.at .at-pay__sum { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 24px; padding: 20px 0; border-top: 1px solid var(--at-line); border-bottom: 1px solid var(--at-line); }
.at .at-pay__sum .at-cap { margin: 0; }
.at .at-pay__sum strong { font-family: var(--at-font-head); font-size: 36px; font-weight: 700; color: #000; line-height: 1.1; }
.at .at-pay__secure { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; font-size: 12px; color: var(--at-muted); text-align: left; line-height: 1.5; }
.at .at-pay__secure .at-ico { width: 18px; height: 18px; }
.at-pay__back { margin-top: 24px; font-size: 13px; }
.at .at-pay__text { color: var(--at-muted); margin-bottom: 24px; }
.at .at-pay__acct { margin: 0 0 24px; padding: 16px; border: 1px dashed #222; background: color-mix(in srgb, var(--at-promo-bg) 30%, #fff); text-align: left; font-size: 14px; }
.at .at-pay__acct p:last-child { margin-bottom: 0; }
.at-pay__art { width: 96px; height: 96px; margin: 0 auto 16px; display: block; fill: none; stroke: #222; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.at-pay__art .acc { fill: var(--at-promo-bg); stroke: none; }
.at-pay__art .acc-ln { stroke: #000; stroke-width: 2; }

/* ── промо-сторінка ───────────────────────────────────────────────────────────────────────────── */
.at-lp { position: relative; isolation: isolate; min-height: 80vh; padding: 40px 0; overflow: hidden; }
@media (max-width: 767.98px) { .at-lp { min-height: 60vh; padding: 32px 0; background-attachment: scroll !important; } }
.at-lp__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.at .at-lp__bgv { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.at-lp__inner { position: static; }
.at-lp__block { margin-bottom: 40px; }
.at-lp__block { margin-left: var(--lp-left, 0); }
@media (max-width: 575.98px) { .at-lp__block { margin-left: 0; } }
.at-lp__text { max-width: 800px; margin: 0 auto; line-height: 1.8; overflow-wrap: break-word; }
.at-lp__text p:last-child { margin-bottom: 0; }
@media (max-width: 767.98px) { .at-lp__text { font-size: 14px !important; } }
.at-lp__media { display: flex; justify-content: center; }
.at-lp__frame { max-width: 100%; }
.at .at-lp__img { width: 100%; height: auto; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35); }
.at-lp__cta { text-align: center; }
.at-lp__btn { min-width: 240px; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: #fff !important; }
@media (max-width: 575.98px) { .at-lp__btn { width: 100%; min-width: 0; white-space: normal; } }

/* ── умови повернення ─────────────────────────────────────────────────────────────────────────── */
.at-pol__facts { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--at-line); border: 1px solid var(--at-line); }
@media (min-width: 1024px) { .at-pol__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 64px; } }
.at-pol__facts li { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; background: #fff; }
@media (min-width: 768px) { .at-pol__facts li { padding: 28px 24px; } }
.at-pol__facts b { font-family: var(--at-font-head); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1; color: #000; }
.at-pol__facts span { font-size: 13px; color: var(--at-muted); line-height: 1.45; }
.at-pol__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .at-pol__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
@media (min-width: 1280px) { .at-pol__grid { grid-template-columns: 240px minmax(0, 860px); justify-content: center; gap: 96px; } }
.at-pol__toc { display: none; }
@media (min-width: 1024px) { .at-pol__toc { display: block; position: sticky; top: calc(var(--at-header-h) + 24px); align-self: start; } }
.at-pol__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--at-line); counter-reset: at-toc; }
.at-pol__toc li { counter-increment: at-toc; }
.at-pol__toc a { position: relative; display: block; padding: 8px 0 8px 16px; font-size: 14px; color: var(--at-muted); transition: color .2s; }
.at-pol__toc a::before { content: counter(at-toc, decimal-leading-zero) '  '; font-size: 11px; font-weight: 600; color: var(--at-muted); margin-right: 6px; }
.at-pol__toc a::after { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: #000; transform: scaleY(0); transition: transform .3s var(--at-ease); }
.at-pol__toc a:hover, .at-pol__toc a.is-active { color: #000; }
.at-pol__toc a.is-active::after { transform: scaleY(1); }
.at-pol__content { min-width: 0; }
.at-pol__sec { margin: 0 0 48px; padding: 0 0 48px; border-bottom: 1px solid var(--at-line); scroll-margin-top: 140px; }
.at-pol__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 24px; }
@media (max-width: 479.98px) { .at-pol__head { grid-template-columns: minmax(0, 1fr); } }
.at-pol__ico { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #222; color: #222; }
.at-pol__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.at-pol__ico--ok { background: var(--at-promo-bg); border-color: var(--at-promo-bg); color: #000; }
.at-pol__ico--no { border-color: var(--at-sale); color: var(--at-sale); }
.at-pol__ico--warn { background: #fff4d6; border-color: #fff4d6; color: #7a5300; }
.at .at-pol__h { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }
.at .at-pol__p { color: #444; line-height: 1.7; }
.at-pol__card { padding: 24px 20px; border: 1px solid var(--at-line); background: #fff; }
@media (min-width: 576px) { .at-pol__card { padding: 28px 32px; } }
.at-pol__card--no { border-left: 2px solid var(--at-sale); }
.at .at-pol__h3 { font-family: var(--at-font-body); font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.at .at-pol__h3--no { color: #c41010; }
.at-pol__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.at-pol__list li { position: relative; padding-left: 28px; line-height: 1.6; color: #333; }
.at-pol__list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 1px; background: #222; }
.at-pol__list--ok li::before { content: '✓'; top: 0; width: auto; height: auto; background: none; font-weight: 700; color: var(--at-success); }
.at-pol__list--no li::before { content: '✗'; top: 0; width: auto; height: auto; background: none; font-weight: 700; color: var(--at-sale); }
.at .at-pol__note { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px 16px; background: var(--at-surface); font-size: 13px; line-height: 1.6; color: #333; }
.at .at-pol__note .at-ico { width: 20px; height: 20px; margin-top: 1px; }
.at-pol__note--no { background: #fdeeee; color: #6b1c1c; }
.at-pol__steps { list-style: none; margin: 0; padding: 0; counter-reset: at-pstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.at-pol__steps li { position: relative; counter-increment: at-pstep; padding: 24px 20px 20px; border: 1px solid var(--at-line); background: #fff; transition: border-color .25s, transform .4s var(--at-ease); }
.at-pol__steps li:hover { border-color: #222; transform: translateY(-2px); }
.at-pol__steps li::before { content: counter(at-pstep); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; background: #000; color: #fff; font-size: 14px; font-weight: 600; }
.at .at-pol__steps h3 { font-family: var(--at-font-body); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.at-pol__steps p { margin: 0; font-size: 13px; color: var(--at-muted); line-height: 1.6; }
.at-pol__contact { margin-bottom: 40px; padding: 40px 20px; background: var(--at-surface); text-align: center; scroll-margin-top: 140px; }
@media (min-width: 576px) { .at-pol__contact { padding: 48px 40px; } }
.at-pol__contact .at-pol__p { color: var(--at-muted); margin-bottom: 24px; }
.at-pol__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.at-pol__btns .at-btn { padding-left: 20px; padding-right: 20px; max-width: 100%; }
.at-pol__btns .at-btn { white-space: normal; overflow-wrap: anywhere; }
.at .at-pol__legal { display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin: 0; font-size: 12px; color: var(--at-muted); line-height: 1.7; text-align: center; }
.at .at-pol__legal .at-ico { width: 18px; height: 18px; margin-top: 2px; }

/* ── 403 / 404 ────────────────────────────────────────────────────────────────────────────────── */
.at-err { display: flex; align-items: center; min-height: 64vh; padding-top: 40px; }
.at-err__box { max-width: 640px; text-align: center; }
.at-err__stage { perspective: 900px; margin-bottom: 8px; }
.at-err__code {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: inline-block; font-family: var(--at-font-head); font-size: clamp(104px, 24vw, 208px); font-weight: 600; line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px #222; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--at-ease);
  animation: at-err-float 7s ease-in-out infinite; user-select: none;
}
.at-err__code::before { content: attr(data-code); position: absolute; left: 0; top: 0; z-index: -1; color: var(--at-promo-bg); -webkit-text-stroke: 0; transform: translate3d(.06em, .06em, -24px); }
.at-err__code.is-tilting { animation: none; transition: transform .12s linear; }
@keyframes at-err-float { 0%, 100% { transform: rotateX(8deg) rotateY(-10deg); } 50% { transform: rotateX(-4deg) rotateY(8deg) translateY(-6px); } }
.at .at-err__title { font-size: clamp(24px, 3.4vw, 34px); margin: 24px 0 12px; }
.at .at-err__text { color: var(--at-muted); line-height: 1.6; margin: 0 auto 28px; max-width: 520px; }
.at .at-err__card { margin: 0 auto 28px; padding: 20px; border: 1px solid var(--at-line); background: var(--at-surface); text-align: left; font-size: 14px; line-height: 1.6; }
.at .at-err__card p:last-child { margin-bottom: 0; }
.at-err__search { position: relative; display: flex; gap: 8px; max-width: 480px; margin: 0 auto 24px; }
.at .at-err__search .at-ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--at-muted); pointer-events: none; }
.at .at-err__search input { flex: 1 1 auto; min-width: 0; min-height: 40px; height: 40px; padding: 8px 12px 8px 40px; background: var(--at-field); border: 0; }
.at .at-err__search input:focus { background: #fff; box-shadow: 0 0 0 1px #222; }
.at-err__search .at-btn { flex: 0 0 auto; }
.at-err__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.at .at-err__foot { margin: 32px 0 0; font-size: 13px; color: var(--at-muted); }

/* ── менше руху ───────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .at-club__card, .at-err__code { animation: none !important; transform: none !important; }
  .at-club__sheen, .at-tg__ring { display: none; }
  .at-okmark path, .at-js .at-empty-state__art .ln { stroke-dashoffset: 0 !important; animation: none !important; }
  .at-receipt, .at .at-creds { animation: none !important; }
  .at-ticket:hover, .at-pol__steps li:hover, .at-soc-btn:hover, .at-cred:hover { transform: none; }
}
@media print {
  .at-sum__actions, .at-trust, .at-ok__actions, .at-prof__nav, .at-ord__repeat, .at-steps { display: none !important; }
  .at-receipt, .at .at-creds { animation: none; box-shadow: none; }
}
