/* Сторінки «Помічника вчителя» в основному макеті сайту: каталог /assistant, «Мої матеріали ШІ», підписка.
   Мова дизайну конструктора тестів (test-beta): Fira Sans, картки з 2px рамкою, об'ємні кнопки з тінню-натиском.
   Усе під .astp, щоб не зачепити інші сторінки. */

.astp {
    --ink: #263238; --ink-2: #40596b; --ink-3: #78909c;
    --paper: #eef1f3; --paper-2: #fff8e1; --card: #fff;
    --line: rgba(38, 50, 56, .10); --line-2: rgba(38, 50, 56, .20);
    --go: #ffab00; --go-d: #cc8600; --orange-d: #c0640a;
    --coral: #ff5722; --coral-d: #c4401a; --mint: #43a047; --mint-d: #2e7d32; --sky: #2979ff;
    --ink-shadow: #11181c; --ok-bg: #e8f5e9; --bad-bg: #fbe9e7;
    --r: 14px; --r-lg: 20px; --r-xl: 28px;
    --f: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    font-family: var(--f);
    font-weight: 500;
}
.astp h1, .astp h2, .astp h3 { font-family: var(--f); }
.astp a { color: var(--orange-d); font-weight: 700; }
.astp-muted { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.astp-tools-head { margin: 0 0 14px; font: 800 21px/1.3 var(--f); color: var(--ink); }

/* ---------- кнопки ---------- */

.astp-btn {
    --c: var(--card); --c-d: rgba(38, 50, 56, .20); --t: var(--ink); --press: 4px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 44px; padding: 10px 18px; border: 2px solid var(--line-2); border-radius: var(--r);
    background: var(--c); color: var(--t); font: 800 15px/1.1 var(--f); letter-spacing: .01em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    box-shadow: 0 var(--press) 0 var(--c-d); transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.astp .astp-btn { color: var(--t); font-weight: 800; }
.astp-btn:hover, .astp-btn:focus { color: var(--t); text-decoration: none; outline: none; }
.astp-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 calc(var(--press) + 1px) 0 var(--c-d); filter: brightness(1.05); }
.astp-btn:not(.astp-btn-primary):not(.astp-btn-danger):not(.astp-btn-ink):hover:not(:disabled) { border-color: var(--ink-3); --c-d: var(--ink-3); }
.astp-hero-actions .astp-btn:not(.astp-btn-primary):hover { border-color: transparent; --c-d: var(--ink-shadow); background: var(--paper-2); }
.astp-btn:focus-visible { outline: 3px solid rgba(41, 121, 255, .35); outline-offset: 2px; }
.astp-btn:active { transform: translateY(calc(var(--press) - 1px)); box-shadow: 0 1px 0 var(--c-d); }
.astp-btn:disabled { opacity: .5; cursor: default; }
.astp-btn-primary { --c: var(--go); --c-d: var(--go-d); --t: #fff; --press: 5px; border-color: transparent; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.astp-btn-danger { --c: var(--coral); --c-d: var(--coral-d); --t: #fff; border-color: transparent; }
.astp-btn-ink { --c: var(--ink); --c-d: var(--ink-shadow); --t: #fff; border-color: transparent; }
.astp-btn-sm { min-height: 36px; padding: 6px 13px; font-size: 13.5px; border-radius: 10px; --press: 3px; }

.astp-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
    border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px;
    transition: background .12s, color .12s;
}
.astp-icon:hover, .astp-icon:focus { background: var(--paper); color: var(--ink); outline: none; }
.astp-danger:hover, .astp-danger:focus { background: var(--bad-bg); color: var(--coral-d); }

/* ---------- промо: темна картка, як .tb-ai-card ---------- */

.astp-hero {
    position: relative; overflow: hidden; margin-bottom: 22px; padding: 40px 30px 32px; border-radius: var(--r-xl);
    text-align: center; color: #fff;
    background:
        radial-gradient(240px 240px at 92% 6%, rgba(255, 171, 0, .55), transparent 70%),
        radial-gradient(300px 300px at 0% 100%, rgba(244, 134, 23, .45), transparent 70%),
        linear-gradient(135deg, #37474f, #263238);
    box-shadow: 0 6px 0 var(--ink-shadow);
}
.astp-hero-title { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 800 40px/1.15 var(--f); letter-spacing: -.01em; }
/* h1 у класичному дизайні має власні колір і відступи */
.astp h1.astp-hero-title { margin: 0 0 14px; color: #fff; font-family: var(--f); }
.astp-chip-ai {
    display: inline-block; padding: 5px 9px; border-radius: 8px; background: var(--go); color: var(--ink);
    font: 800 15px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 3px 0 var(--go-d);
}
.astp-hero-text { max-width: 680px; margin: 0 auto 24px; font-size: 18px; font-weight: 600; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.astp-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.astp-hero-actions .astp-btn { min-width: 220px; min-height: 52px; font-size: 16.5px; }
.astp-hero-actions .astp-btn:not(.astp-btn-primary) { border-color: transparent; --c-d: var(--ink-shadow); }
.astp-hero-pricing { margin: -4px 0 16px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.astp .astp-hero-pricing a { color: #ffd54f; }
.astp-hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.astp-hero-points span {
    padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1);
    font: 700 13px/1.2 var(--f); color: rgba(255, 255, 255, .85);
}
.astp-hero-points span:before { content: '✓ '; color: var(--go); font-weight: 800; }

/* ---------- ліміт ---------- */

.astp-quota {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 22px; padding: 16px 20px;
    border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 4px 0 var(--line);
}
.astp-quota-main { flex: 1 1 260px; min-width: 0; }
.astp-quota-label { margin-bottom: 4px; font: 800 12px/1.3 var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.astp-quota-value { font: 600 15.5px/1.35 var(--f); color: var(--ink); }
.astp-quota-value b { font-size: 22px; font-weight: 800; }
.astp-quota .astp-meter { margin: 8px 0 0; }
.astp-quota.paid .astp-meter span { background: var(--mint); }
.astp-quota.empty { border-color: rgba(196, 64, 26, .3); background: var(--bad-bg); box-shadow: 0 4px 0 rgba(196, 64, 26, .15); }
.astp-quota.empty .astp-meter span { background: var(--coral); }
.astp-meter { height: 10px; margin: 6px 0 12px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.astp-meter span { display: block; height: 100%; border-radius: 99px; background: var(--go); transition: width .3s; }

/* ---------- фільтр: пошук і категорії ---------- */

.astp-filter { position: sticky; top: 0; z-index: 5; margin: 0 -8px 20px; padding: 12px 8px 8px; background: #f2f2f2; }
.astp-search-box { position: relative; margin-bottom: 10px; }
.astp-search-box .fa { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.astp-search-box input {
    width: 100%; height: 52px; padding: 0 16px 0 46px; border: 2px solid var(--line-2); border-radius: var(--r); background: var(--card);
    font: 600 17px/1 var(--f); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.astp-search-box input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 121, 255, .18); }
/* рядок не прокручується: зайві категорії ховаються в «Інше»; до першого розрахунку рядок невидимий,
   щоб не блимав повний список (вирізаємо лише по горизонталі — тіні й меню «Інше» лишаються видимими) */
.astp-cats { position: relative; display: flex; flex-wrap: nowrap; gap: 6px; padding: 2px 0 8px; overflow-x: clip; overflow-y: visible; visibility: hidden; }
.astp-cats.ready { visibility: visible; }
.astp-cats button {
    flex: none; min-height: 38px; padding: 0 14px; border: 2px solid var(--line-2); border-radius: 99px; background: var(--card);
    box-shadow: 0 3px 0 var(--line-2); color: var(--ink-2); font: 700 14px/1 var(--f); white-space: nowrap; cursor: pointer;
    transition: transform .08s, box-shadow .08s;
}
.astp-cats button[hidden] { display: none; }
.astp-cats button span { margin-left: 4px; color: var(--ink-3); font-weight: 600; }
.astp-cats button:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink-3); }
.astp-cats button.active:hover { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink-shadow); }
.astp-cats button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-2); }
.astp-cats button.active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 3px 0 var(--ink-shadow); }
.astp-cats button.active span { color: rgba(255, 255, 255, .7); }
.astp-more { position: relative; flex: none; }
.astp-more[hidden] { display: none; }
.astp-more-toggle .fa { margin-left: 4px; }
.astp-more-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 260px; padding: 6px;
    background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 0 var(--line), 0 18px 40px rgba(38, 50, 56, .14);
}
.astp-more.open .astp-more-menu { display: block; animation: astp-pop .25s cubic-bezier(.34, 1.56, .64, 1) both; }
.astp-cats .astp-more-menu button:hover, .astp-cats .astp-more-menu button.active:hover { transform: none; box-shadow: none; }
.astp-cats .astp-more-menu button {
    display: block; width: 100%; min-height: 0; padding: 9px 12px; border: 0; border-radius: 9px; box-shadow: none; text-align: left; background: none; color: var(--ink);
}
.astp-cats .astp-more-menu button:hover, .astp-cats .astp-more-menu button.active { background: var(--paper-2); color: var(--ink); }
.astp-cats .astp-more-menu button.active span { color: var(--ink-3); }
.astp-cats .astp-more-menu button[hidden] { display: none; }

/* ---------- картки інструментів, як .tb-add ---------- */

.astp-section { margin-bottom: 28px; }
.astp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.astp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.astp-tool {
    position: relative; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 4px 0 var(--line);
    transition: transform .12s, border-color .12s, box-shadow .12s;
}
.astp-tool[hidden] { display: none; }
.astp-tool:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.astp-tool-link { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 18px 40px 18px 16px; color: var(--ink); text-decoration: none; }
.astp .astp-tool-link { color: var(--ink); font-weight: 500; }
.astp-tool-link:hover, .astp-tool-link:focus { color: var(--ink); text-decoration: none; }
.astp-star {
    position: absolute; top: 10px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: none;
    color: #b0bec5; font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.astp-tool:hover .astp-star, .astp-star:focus, .astp-star.on { opacity: 1; }
.astp-star:hover { color: var(--go); background: var(--paper-2); }
.astp-star.on { color: var(--go); }
@media (hover: none) { .astp-star { opacity: 1; } }
.astp-tool-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); }
.astp-tool-icon img { opacity: .8; }
.astp-tool-text { display: flex; flex-direction: column; min-width: 0; }
.astp-tool-name { margin-bottom: 5px; font: 800 16.5px/1.25 var(--f); color: var(--ink); }
.astp-tool-desc { color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* ---------- «Останні матеріали» ---------- */

.astp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.astp-doc {
    position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--r-lg);
    background: var(--card); box-shadow: 0 4px 0 var(--line); transition: transform .12s, border-color .12s, box-shadow .12s;
}
.astp-doc:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.astp-doc-link { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 10px; text-decoration: none; }
.astp .astp-doc-link, .astp-doc-link:hover, .astp-doc-link:focus { color: var(--ink); text-decoration: none; font-weight: 500; }
.astp-doc-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px;
    background: var(--paper-2); color: var(--go-d); font-size: 16px;
}
.astp-doc-title { font: 800 15.5px/1.3 var(--f); color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.astp-doc-actions { display: flex; justify-content: flex-end; gap: 2px; padding: 0 8px 8px; }
.astp-doc-actions form { margin: 0; }

/* ---------- «Мої матеріали ШІ» ---------- */

.astp-page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.astp-page-head h1 { margin: 0 0 6px; font: 800 30px/1.2 var(--f); color: var(--ink); }
.astp-page-head p { max-width: 620px; margin: 0; }
.astp-search { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.astp-search input {
    flex: 1; max-width: 460px; height: 46px; padding: 0 14px; border: 2px solid var(--line-2); border-radius: var(--r); background: var(--card);
    font: 600 16px/1 var(--f); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.astp-search input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 121, 255, .18); }
.astp-group { margin: 24px 0 8px; font: 800 12px/1.3 var(--f); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.astp-list { overflow: hidden; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 4px 0 var(--line); }
.astp-row { display: flex; align-items: center; gap: 4px; padding-right: 10px; border-top: 2px solid var(--line); transition: background .12s; }
.astp-row:first-child { border-top: 0; }
.astp-row:hover { background: var(--paper); }
.astp-row form { margin: 0; }
.astp-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 13px 18px; text-decoration: none; }
.astp .astp-row-main, .astp-row-main:hover, .astp-row-main:focus { color: var(--ink); text-decoration: none; font-weight: 500; }
.astp-row-title { font: 800 15.5px/1.35 var(--f); color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- модальне вікно, як .tb-modal ---------- */

.astp-modal-back {
    position: fixed; inset: 0; z-index: 1050; display: flex; align-items: flex-start; justify-content: center; padding: 15vh 16px;
    background: rgba(30, 42, 48, .55); backdrop-filter: blur(4px);
}
.astp-modal-back[hidden] { display: none; }
.astp-modal {
    width: 100%; max-width: 460px; padding: 26px; border-radius: var(--r-xl); background: var(--paper); color: var(--ink); font-family: var(--f);
    box-shadow: 0 8px 0 rgba(38, 50, 56, .35), 0 30px 80px rgba(0, 0, 0, .3);
    animation: astp-pop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}
.astp-modal h3 { margin: 0 0 10px; font: 800 21px/1.25 var(--f); color: var(--ink); }
.astp-modal p { margin: 0 0 20px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.astp-modal-input {
    display: block; width: 100%; min-height: 48px; margin: 0 0 20px; padding: 11px 14px; border: 2px solid var(--line-2); border-radius: var(--r);
    background: var(--card); color: var(--ink); font: 700 16px/1.3 var(--f); outline: none;
}
.astp-modal-input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(41, 121, 255, .18); }
.astp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
@keyframes astp-pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }

.astp-empty { padding: 44px 24px; border: 3px dashed var(--line-2); border-radius: var(--r-xl); text-align: center; color: var(--ink-2); font-weight: 600; }
.astp-empty[hidden] { display: none; }

/* ---------- підписка ---------- */

.astp-flash { margin-bottom: 14px; padding: 13px 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); font-weight: 600; }
.astp-flash-success { border-color: rgba(67, 160, 71, .4); background: var(--ok-bg); color: #1b5e20; }
.astp-flash-error { border-color: rgba(196, 64, 26, .35); background: var(--bad-bg); color: var(--coral-d); }
.astp-flash-info { border-color: #ffe082; background: var(--paper-2); }
.astp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 26px; }
.astp-plan { position: relative; padding: 24px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 4px 0 var(--line); }
.astp-plan-pro { border-color: #ffd54f; background: linear-gradient(180deg, var(--paper-2), #fff 45%); box-shadow: 0 4px 0 #f3d27a; }
.astp-plan.current { border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.astp-plan-name { font: 800 13px/1.3 var(--f); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.astp-plan-price { margin: 6px 0 14px; font: 800 34px/1.1 var(--f); color: var(--ink); }
.astp-plan-price span { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.astp-plan ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.astp-plan li { margin-bottom: 6px; }
.astp-plan-btn { width: 100%; }
.astp-plan-badge {
    position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--go);
    font: 800 11px/1 var(--f); letter-spacing: .06em; text-transform: uppercase;
}
.astp-usage { margin-bottom: 26px; padding: 20px 24px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 4px 0 var(--line); }
.astp-usage form { margin: 12px 0; }

@media (max-width: 767px) {
    .astp-hero { padding: 28px 18px; }
    .astp-hero-title { font-size: 28px; }
    .astp-hero-text { font-size: 16px; }
    .astp-hero-actions .astp-btn { min-width: 0; width: 100%; }
    .astp-grid { grid-template-columns: 1fr; }
    .astp-quota .astp-btn { width: 100%; }
}

/* ---------- «На Урок ПРО» (/pro) ---------- */

.astp-pro { max-width: 1120px; margin: 0 auto; padding: 0 0 40px; }
.pro-hero .astp-hero-title { margin-bottom: 10px; font-size: 22px; }
.pro-hero-h1 { margin: 0 auto 14px; max-width: 760px; color: #fff !important; font: 800 clamp(26px, 4vw, 40px)/1.15 var(--f) !important; letter-spacing: -.01em; }
.astp-btn-sm.astp-btn-primary { --press: 4px; }

.pro-status {
    margin-bottom: 26px; padding: 20px 22px; border: 2px solid var(--ink); border-radius: var(--r-xl); background: var(--card); box-shadow: 0 6px 0 var(--ink);
    scroll-margin-top: 80px;
}
.pro-status-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.pro-status-head form { margin: 0; }
.pro-status-title { margin: 2px 0 6px; font: 800 22px/1.25 var(--f); color: var(--ink); }
.pro-status-head p { margin: 0; }
.pro-usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pro-usage-item {
    display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; border: 2px solid var(--line); border-radius: var(--r); background: var(--paper);
    transition: border-color .12s, transform .12s;
}
.astp .pro-usage-item, .pro-usage-item:hover, .pro-usage-item:focus { color: var(--ink); text-decoration: none; font-weight: 500; }
.pro-usage-item:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.pro-usage-name { font: 800 13px/1.3 var(--f); color: var(--ink-2); }
.pro-usage-name .fa { width: 18px; color: var(--go-d); }
.pro-usage-value { font-size: 14px; font-weight: 600; }
.pro-usage-value b { font-size: 22px; font-weight: 800; }
.pro-usage-item .astp-meter { margin: 4px 0 0; }

.pro-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 10px; scroll-margin-top: 80px; }
.pro-plan {
    position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border: 2px solid var(--line); border-radius: var(--r-xl);
    background: var(--card); box-shadow: 0 5px 0 var(--line);
}
.pro-plan .astp-plan-price { margin: 6px 0 8px; font-size: 40px; }
.pro-plan p { flex: 1; margin: 0 0 18px; }
.pro-plan-best { border-color: var(--go); background: linear-gradient(180deg, var(--paper-2), #fff 60%); box-shadow: 0 6px 0 var(--go-d); }
.pro-plan-ribbon {
    position: absolute; top: -14px; right: 20px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--go);
    font: 800 12px/1 var(--f); letter-spacing: .04em; box-shadow: 0 3px 0 var(--ink-shadow);
}
.pro-plan-btn { width: 100%; min-height: 52px; font-size: 16.5px; }
.pro-plan-current {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r);
    background: var(--ok-bg); color: var(--mint-d); font: 800 15px/1 var(--f);
}
.pro-login { margin: 8px 0 0; text-align: center; }

.pro-section-head { margin-top: 34px; scroll-margin-top: 80px; }
.pro-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pro-feature {
    display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--line); border-radius: var(--r-lg);
    background: var(--card); box-shadow: 0 4px 0 var(--line); transition: transform .12s, border-color .12s, box-shadow .12s;
}
.astp .pro-feature, .pro-feature:hover, .pro-feature:focus { color: var(--ink); text-decoration: none; font-weight: 500; }
a.pro-feature:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.pro-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 13px; font-size: 20px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); }
.pro-feature b { font: 800 17px/1.25 var(--f); }
.pro-feature span:not(.pro-feature-icon) { flex: 1; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.pro-feature em {
    align-self: flex-start; margin-top: 4px; padding: 5px 11px; border-radius: 99px; background: var(--paper-2); color: var(--go-d);
    font: 800 12.5px/1.2 var(--f); font-style: normal;
}
.pro-feature-soon { border-style: dashed; box-shadow: none; }
.pro-feature-soon em { background: rgba(38, 50, 56, .08); color: var(--ink-2); }

.pro-compare { overflow-x: auto; }
.pro-compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pro-compare th, .pro-compare td { padding: 12px 16px; border-bottom: 2px solid var(--line); text-align: left; vertical-align: top; }
.pro-compare tr:last-child td { border-bottom: 0; }
.pro-compare th { background: var(--paper); font: 800 12.5px/1.3 var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pro-compare th:last-child, .pro-compare td:last-child { background: rgba(255, 248, 225, .55); }
.pro-compare td:first-child { font-weight: 700; }

/* /pro/done — повернення з LiqPay: очікування підтвердження → «ПРО увімкнено» → назад до роботи */
.pro-done { max-width: 620px; margin: 24px auto 40px; padding: 34px 30px 30px; border: 2px solid var(--line); border-radius: var(--r-xl); background: var(--card); box-shadow: 0 6px 0 var(--line); text-align: center; }
.pro-done-title { margin: 14px 0 8px; font: 800 26px/1.2 var(--f); color: var(--ink); }
.pro-done p { margin: 0 auto 6px; max-width: 480px; }
.pro-done-spin { display: inline-block; width: 46px; height: 46px; border: 5px solid var(--paper-2); border-top-color: var(--go); border-radius: 50%; animation: pro-done-rot .8s linear infinite; }
@keyframes pro-done-rot { to { transform: rotate(360deg); } }
.pro-done-ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: #fff; box-shadow: 0 5px 0 var(--mint-d); animation: pro-done-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.pro-done-ok svg { width: 34px; height: 34px; }
@keyframes pro-done-pop { from { opacity: 0; transform: scale(.6); } }
.pro-done-list { display: grid; gap: 8px; max-width: 440px; margin: 18px auto 22px; padding: 0; list-style: none; text-align: left; }
.pro-done-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.pro-done-list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 2px; border-radius: 50%; background: var(--mint); color: #fff; }
.pro-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.pro-done-actions .astp-btn { min-width: 220px; min-height: 52px; font-size: 16px; }
.pro-done-auto { margin-top: 14px !important; }
.pro-done-stay { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pro-done-help { margin-top: 18px !important; font-size: 13px; }
.pro-back-note { margin: 0 0 14px; }
@media (max-width: 640px) {
    .pro-done { margin: 8px 0 24px; padding: 26px 16px 20px; border-radius: 22px; }
    .pro-done-title { font-size: 22px; }
    .pro-done-actions .astp-btn { width: 100%; min-width: 0; }
}

.pro-faq { display: grid; gap: 10px; }
.pro-faq-item { border: 2px solid var(--line); border-radius: var(--r); background: var(--card); }
.pro-faq-item summary {
    position: relative; padding: 15px 44px 15px 18px; font: 800 16px/1.35 var(--f); cursor: pointer; list-style: none;
}
.pro-faq-item summary::-webkit-details-marker { display: none; }
.pro-faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 12px; color: var(--go-d); font-size: 22px; font-weight: 800; }
.pro-faq-item[open] summary::after { content: '−'; }
.pro-faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

@media (max-width: 767px) {
    .pro-status { padding: 16px; }
    .pro-plan { padding: 22px 18px 18px; }
}

/* ---------- посадкова сторінка інструмента (/assistant/<slug>) ---------- */

.astl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.astl .astl-crumbs a { color: var(--ink-2); text-decoration: none; }
.astl .astl-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.astl-hero {
    display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; padding: 30px 30px 26px;
    border: 2px solid var(--line); border-radius: var(--r-xl); background: var(--card); box-shadow: 0 5px 0 var(--line);
}
.astl-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 20px; }
.astl-hero-main { min-width: 0; }
.astl-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.astl-free { padding: 2px 9px; border-radius: 99px; background: var(--ok-bg); color: #2e7d32; font-size: 12px; font-weight: 800; }
.astl h1 { margin: 0 0 10px; font: 800 clamp(26px, 3.2vw, 36px)/1.18 var(--f); color: var(--ink); letter-spacing: -.01em; }
.astl-lead { margin: 0 0 18px; max-width: 760px; font-size: 17px; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.astl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.astl-actions .astp-btn { min-height: 50px; font-size: 16px; }
.astl-cta { min-width: 220px; }
.astl-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.astl .astl-note a { color: #c0640a; }

.astl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 28px; }
.astl-fact { padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.astl-fact h2 { margin: 0 0 10px; font: 800 13px/1.2 var(--f); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.astl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.astl-chips li { padding: 5px 11px; border-radius: 99px; background: var(--paper); font-size: 14px; font-weight: 700; color: var(--ink); }

.astl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.astl-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.astl-step-n { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #ffab00; color: #fff; font-weight: 800; }

.astl-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1400px) { .astl-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .astl-benefits { grid-template-columns: minmax(0, 1fr); } }
.astl-benefit { padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.astl-benefit h3 { margin: 0 0 6px; font: 800 16.5px/1.3 var(--f); color: var(--ink); }
.astl-benefit p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.astl-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.astl-uses li { position: relative; padding: 6px 0 6px 28px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.astl-uses li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: #ffab00; }

.astl-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding: 24px 28px;
    border-radius: var(--r-xl); color: #fff; background: linear-gradient(135deg, #37474f, #263238);
}
.astl-band h2 { margin: 0 0 4px; font: 800 20px/1.3 var(--f); color: #fff; }
.astl-band p { margin: 0; max-width: 680px; color: rgba(255, 255, 255, .8); font-size: 15px; }

.astl-faq { display: flex; flex-direction: column; gap: 10px; }
.astl-faq details { border: 2px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.astl-faq summary { padding: 14px 18px; cursor: pointer; font-size: 16px; font-weight: 800; color: var(--ink); list-style-position: inside; }
.astl-faq details[open] summary { border-bottom: 2px solid var(--line); }
.astl-faq p { margin: 0; padding: 12px 18px 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 767px) {
    .astl-hero { flex-direction: column; gap: 14px; padding: 20px 16px; }
    .astl-icon { width: 56px; height: 56px; border-radius: 16px; }
    .astl-actions .astp-btn { width: 100%; }
    .astl-band { padding: 20px 16px; }
    .astl-band .astp-btn { width: 100%; }
}
