/* ═══ Гусь Знает — каркас и страницы сайта ════════════════════════════════
   Только на токенах ds.css. Шапка/подвал (.gk-header, .gk-footer), страницы
   (главная .gh-*, тарифы .gp-*, документы .gd-*, общие .gk-page и пр.). */

body { background: var(--gk-sand); }
.main-content { min-height: calc(100vh - var(--gk-header-h)); }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.gk-header { position: sticky; top: 0; z-index: 100; background: var(--gk-ink); color: #EDE9E3; padding-top: env(safe-area-inset-top, 0px); font-family: var(--gk-font-b); }
.gk-header__in { max-width: var(--gk-page-w); margin: 0 auto; height: var(--gk-header-h); padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.gk-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex: none; }
.gk-brand__name { font: 700 15px var(--gk-font-h); letter-spacing: -.02em; white-space: nowrap; }
.gk-brand .gk-logo--img { width: 30px; height: 30px; }
.gk-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.gk-nav__link { color: #B9B2AA; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 13px; border-radius: 999px; white-space: nowrap; transition: background-color .15s, color .15s; }
.gk-nav__link:hover { color: #fff; background: rgba(255,255,255,.06); }
.gk-nav__link.is-active { color: #fff; background: rgba(255,255,255,.1); }
.gk-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gk-burger { display: none; }

/* меню кабинета */
.gk-account { position: relative; }
.gk-account__btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #E7E2DB; }
.gk-account__btn:hover, .gk-account__btn[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.gk-account__name { font-size: 14px; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-account__chev { width: 15px; height: 15px; color: #8C857D; }
.gk-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; object-fit: cover; background: rgba(var(--gk-coral-rgb),.22); color: #FFB8AD; font: 700 13px var(--gk-font-h); }
.gk-avatar--lg { width: 42px; height: 42px; font-size: 15px; background: var(--gk-coral-a14); color: var(--gk-coral-ink); }
.gk-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: var(--gk-paper); color: var(--gk-ink); border-radius: 18px; box-shadow: var(--gk-pop); padding: 8px; z-index: 120; }
.gk-menu__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.gk-menu__who { display: grid; gap: 2px; min-width: 0; }
.gk-menu__who strong { font-size: 15px; }
.gk-menu__who span { font-size: 13px; color: var(--gk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-menu__plan { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 6px; padding: 9px 10px; border-radius: 12px; background: var(--gk-ink-a04); font-size: 13px; color: var(--gk-muted); }
.gk-menu__item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--gk-ink-3); text-decoration: none; font: 500 14px var(--gk-font-b); text-align: left; }
.gk-menu__item .gi { color: var(--gk-muted); }
.gk-menu__item:hover, .gk-menu__item:focus-visible { background: var(--gk-ink-a04); color: var(--gk-ink); }
.gk-menu__sep { border: 0; border-top: 1px solid var(--gk-line); margin: 6px 4px; }

/* мобильное меню */
.gk-drawer { position: fixed; inset: 0; z-index: 9995; }
.gk-drawer[hidden] { display: none; }
.gk-drawer__scrim { position: absolute; inset: 0; background: rgba(var(--gk-ink-rgb),.36); backdrop-filter: blur(4px); }
.gk-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--gk-paper); padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)); overflow: auto; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--gk-pop); animation: gk-drawer-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes gk-drawer-in { from { transform: translateX(24px); opacity: 0; } }
.gk-drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px 10px; }
.gk-drawer__title { font: 700 15px var(--gk-font-h); }
.gk-drawer__link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--gk-ink-3); text-decoration: none; font: 500 15px var(--gk-font-b); border: 0; background: none; width: 100%; text-align: left; }
.gk-drawer__link .gi { color: var(--gk-muted); width: 20px; height: 20px; }
.gk-drawer__link:hover { background: var(--gk-ink-a04); }
.gk-drawer__link.is-active { background: var(--gk-coral-a08); color: var(--gk-coral-ink); }
.gk-drawer__link.is-active .gi { color: var(--gk-coral-ink); }
.gk-drawer__sep { height: 1px; background: var(--gk-line); margin: 10px 6px; }
.gk-drawer__who { display: flex; align-items: center; gap: 12px; padding: 6px 12px 10px; }
.gk-drawer__who div { display: grid; min-width: 0; }
.gk-drawer__who span { font-size: 13px; color: var(--gk-muted); overflow: hidden; text-overflow: ellipsis; }
.gk-drawer__who .gk-avatar { width: 40px; height: 40px; background: var(--gk-coral-a14); color: var(--gk-coral-ink); }
.gk-drawer__cta { display: grid; gap: 8px; padding: 4px; }
html.gk-drawer-open, html.gk-drawer-open body { overflow: hidden; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.gk-footer { background: var(--gk-ink); color: #A9A29A; margin-top: 64px; padding: 44px 20px calc(28px + env(safe-area-inset-bottom, 0px)); font: 14px/1.55 var(--gk-font-b); }
.gk-footer__in { max-width: var(--gk-page-w); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; }
.gk-footer__brand p { margin: 14px 0 0; max-width: 34ch; }
.gk-footer__col h2 { font: 700 13px var(--gk-font-h); color: #fff; margin: 4px 0 12px; letter-spacing: -.01em; }
.gk-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.gk-footer a { color: #CFC8C0; text-decoration: none; }
.gk-footer a:hover { color: #fff; }
.gk-footer__bottom { max-width: var(--gk-page-w); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 24px; justify-content: space-between; font-size: 13px; color: #8C857D; }
.gk-footer__bottom p { margin: 0; }
.gk-footer__bottom p:last-child { max-width: 70ch; text-align: right; }

/* колонки подвала: на компьютере — обычные списки, на телефоне — «шторки» */
.gk-footer__col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: default; }
.gk-footer__col summary::-webkit-details-marker { display: none; }
.gk-footer__col summary .gi { display: none; color: #8C857D; transition: transform .2s; }

/* ── Страница: общий каркас ────────────────────────────────────────────── */
.gk-page { max-width: var(--gk-page-w); margin: 0 auto; padding: 32px 20px 24px; font-family: var(--gk-font-b); color: var(--gk-ink); }
.gk-page--narrow { max-width: 760px; }
.gk-page__head { margin-bottom: 24px; }
.gk-page__head h1 { font: 700 clamp(24px, 4vw, 34px)/1.15 var(--gk-font-h); letter-spacing: -.035em; margin: 0 0 10px; }
.gk-page__head p { margin: 0; color: var(--gk-muted); line-height: 1.55; max-width: 62ch; }
.gk-page__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gk-page__head--center { text-align: center; display: grid; justify-items: center; }
.gk-note { color: var(--gk-muted); font-size: 14px; margin: 18px 4px; }
.gk-note a { color: var(--gk-coral-ink); }

.gk-search { position: relative; display: flex; align-items: center; margin-bottom: 16px; max-width: 420px; }
.gk-search[hidden] { display: none; }
.gk-search .gi { position: absolute; left: 13px; color: var(--gk-faint); pointer-events: none; }
.gk-search input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid transparent; background: var(--gk-ink-a04); padding: 0 14px 0 40px; font: 15px var(--gk-font-b); color: var(--gk-ink); }
.gk-search input:focus { outline: none; background: #fff; border-color: var(--gk-coral-a35); box-shadow: var(--gk-focus); }

.gk-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 20px; color: var(--gk-muted); }
.gk-empty h1, .gk-empty h2 { font: 700 18px var(--gk-font-h); color: var(--gk-ink); margin: 4px 0 0; letter-spacing: -.02em; }
.gk-empty p { margin: 0; max-width: 46ch; line-height: 1.55; }
.gk-empty--page { padding: 56px 24px; }
.gk-empty--page h1 { font-size: 24px; }
.gk-tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.gk-tile--lg .gi { width: 26px; height: 26px; }
.gk-skeleton { border-radius: 20px; background: linear-gradient(90deg, var(--gk-ink-a04), var(--gk-ink-a07), var(--gk-ink-a04)); background-size: 200% 100%; animation: gk-shimmer 1.3s infinite linear; }
.gk-skeleton--grid { height: 220px; } .gk-skeleton--list { height: 260px; } .gk-skeleton--plans { height: 420px; }
@keyframes gk-shimmer { to { background-position: -200% 0; } }

/* ── Главная ───────────────────────────────────────────────────────────── */
.gh-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 24px 0 16px; }
.gh-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gk-coral-ink); background: var(--gk-coral-a08); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.gh-hero h1 { font: 700 clamp(28px, 4.6vw, 48px)/1.08 var(--gk-font-h); letter-spacing: -.045em; margin: 0 0 16px; text-wrap: balance; }
.gh-lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--gk-ink-3); margin: 0 0 24px; max-width: 54ch; }
.gh-search { display: flex; align-items: center; gap: 8px; background: var(--gk-white); border-radius: 16px; padding: 6px 6px 6px 16px; box-shadow: var(--gk-card-shadow); border: 1px solid transparent; max-width: 580px; }
.gh-search:focus-within { border-color: var(--gk-coral-a35); box-shadow: var(--gk-focus), var(--gk-card-shadow); }
.gh-search > .gi { color: var(--gk-faint); }
.gh-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--gk-font-b); color: var(--gk-ink); height: 44px; outline: none; }
.gh-search .gk-btn { height: 44px; }
.gh-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--gk-muted); }
.gh-quick__chip { color: var(--gk-ink-3); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gk-line); background: rgba(255,255,255,.5); transition: background-color .15s, border-color .15s; }
.gh-quick__chip:hover { border-color: var(--gk-coral-a35); background: var(--gk-coral-a08); color: var(--gk-coral-ink); }
.gh-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; font-size: 14px; color: var(--gk-muted); }
.gh-trust li { display: inline-flex; align-items: center; gap: 7px; }
.gh-trust .gi { color: var(--gk-sage); width: 16px; height: 16px; }
.gh-how { padding: 26px; }
.gh-how h2 { font: 700 17px var(--gk-font-h); letter-spacing: -.02em; margin: 0 0 18px; }
.gh-how ol { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.gh-how li { display: flex; gap: 14px; align-items: flex-start; }
.gh-how li div { display: grid; gap: 3px; }
.gh-how li strong { font-size: 15px; }
.gh-how li span:not(.gk-tile) { color: var(--gk-muted); font-size: 14px; line-height: 1.45; }

.gh-section { margin-top: 48px; }
.gh-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gh-section__head h2 { font: 700 clamp(19px, 2.4vw, 24px) var(--gk-font-h); letter-spacing: -.03em; margin: 0; }
.gh-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gk-coral-ink); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.gh-more .gi { width: 16px; height: 16px; transition: transform .15s; }
.gh-more:hover .gi { transform: translateX(3px); }
.gh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gh-cat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; position: relative; }
.gh-cat__body { display: grid; gap: 2px; min-width: 0; }
.gh-cat__body strong { font-size: 15px; font-weight: 600; }
.gh-cat__body span { font-size: 13px; color: var(--gk-faint); }
.gh-cat__lock { margin-left: auto; color: var(--gk-amber); display: inline-grid; } .gh-cat__lock .gi { width: 16px; height: 16px; }
.gh-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gh-news__item { display: grid; text-align: left; padding: 0; overflow: hidden; font: inherit; color: inherit; cursor: pointer; }
.gh-news__img { display: block; height: 150px; background: var(--gk-sand-2) center/cover no-repeat; }
.gh-news__body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.gh-news__date { font-size: 12px; font-weight: 600; color: var(--gk-coral-ink); }
.gh-news__body strong { font-size: 16px; line-height: 1.35; }
.gh-news__excerpt { color: var(--gk-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* первый экран с фоном (картинка / видео из «Внешнего вида») */
.gh-hero--media { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: clamp(24px, 4vw, 52px); margin-top: 4px; color: #fff; }
.gh-hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gh-hero__shade { position: absolute; inset: 0; z-index: -1; background: var(--gk-ink); }
.gh-hero--media h1 { color: #fff; }
.gh-hero--media .gh-lead { color: rgba(255,255,255,.86); }
.gh-hero--media .gh-eyebrow { background: rgba(255,255,255,.14); color: #FFD3CC; }
.gh-hero--media .gh-quick { color: rgba(255,255,255,.72); }
.gh-hero--media .gh-quick__chip { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.08); }
.gh-hero--media .gh-quick__chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.gh-hero--media .gh-trust { color: rgba(255,255,255,.82); }
.gh-hero--media .gh-trust .gi { color: #8FE0B5; }
.gh-hero--media .gh-search .gk-btn--primary { background: var(--gk-coral-a14); border-color: var(--gk-coral-a22); color: var(--gk-coral-ink); }

/* ── Тарифы ────────────────────────────────────────────────────────────── */
.gp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; align-items: stretch; }
.gp-plan { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.gp-plan.is-best { box-shadow: inset 0 0 0 1.5px var(--gk-coral-a35), var(--gk-card-shadow); }
.gp-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gp-plan__head h3 { font: 700 17px var(--gk-font-h); letter-spacing: -.02em; margin: 0; }
.gp-plan__desc { color: var(--gk-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.gp-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.gp-price strong { font: 700 30px var(--gk-font-h); letter-spacing: -.04em; }
.gp-price span { color: var(--gk-muted); font-size: 14px; }
.gp-price__note { margin: -4px 0 0; font-size: 13px; color: var(--gk-sage); }
.gp-plan__features { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.gp-plan__features li { display: flex; gap: 9px; font-size: 14px; color: var(--gk-ink-3); line-height: 1.4; }
.gp-plan__features .gi { color: var(--gk-sage); width: 16px; height: 16px; margin-top: 1px; }
.gp-plan__action { margin-top: 10px; min-height: 38px; }
.gp-plan__current { cursor: default; }
.gk-segment { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--gk-ink-a04); margin-top: 18px; }
.gk-segment button { border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 999px; font: 500 14px var(--gk-font-b); color: var(--gk-ink-3); cursor: pointer; }
.gk-segment button.is-on { background: var(--gk-white); color: var(--gk-ink); box-shadow: var(--gk-lift); }
.gk-segment__hint { color: var(--gk-sage); font-size: 12px; margin-left: 4px; }
.gk-faq { max-width: 760px; margin: 48px auto 0; }
.gk-faq h2 { font: 700 20px var(--gk-font-h); letter-spacing: -.03em; margin: 0 0 14px; }
.gk-faq__item { background: var(--gk-white); border-radius: 14px; margin-bottom: 8px; box-shadow: var(--gk-lift); }
.gk-faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15px; }
.gk-faq__item summary::-webkit-details-marker { display: none; }
.gk-faq__item summary .gi { color: var(--gk-muted); transition: transform .15s; }
.gk-faq__item[open] summary .gi { transform: rotate(180deg); }
.gk-faq__item p { margin: 0; padding: 0 18px 16px; color: var(--gk-ink-3); line-height: 1.6; }

/* ── Документы ─────────────────────────────────────────────────────────── */
.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gd-doc { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 16px; }
.gd-doc__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.gd-doc__title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-doc__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--gk-faint); }
.gd-doc__actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* ── Реквизиты ─────────────────────────────────────────────────────────── */
.gk-facts { margin: 0; padding: 6px 20px; }
.gk-facts__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--gk-line); align-items: center; }
.gk-facts__row:last-child { border-bottom: 0; }
.gk-facts dt { color: var(--gk-muted); font-size: 14px; }
.gk-facts dd { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gk-facts dd a { color: var(--gk-coral-ink); }

/* ── Cookie-уведомление ────────────────────────────────────────────────── */
.gk-cookie { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9989; max-width: 420px; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; background: rgba(var(--gk-ink-rgb), .92); backdrop-filter: blur(8px); color: #E7E2DB; border-radius: 16px; box-shadow: var(--gk-pop); font: 13px/1.45 var(--gk-font-b); transition: opacity .25s, transform .25s; }
.gk-cookie p { margin: 0; }
.gk-cookie a { color: #FFB8AD; }
.gk-cookie.is-out { opacity: 0; transform: translateY(8px); }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .gh-hero { grid-template-columns: 1fr; gap: 24px; }
  .gk-footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .gk-nav, .gk-account__name, .gk-hide-sm { display: none; }
  .gk-burger { display: inline-grid; }
  .gk-header__in { gap: 10px; padding: 0 12px 0 16px; }
  .gk-header__actions { gap: 6px; }
}
@media (max-width: 600px) {
  .gk-page { padding: 20px 16px 16px; }
  .gh-cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gh-cat { padding: 12px; gap: 10px; }
  .gh-cat .gk-tile { width: 36px; height: 36px; border-radius: 11px; }
  .gh-cat .gk-tile .gi { width: 19px; height: 19px; }
  .gh-cat__body strong { font-size: 14px; line-height: 1.25; }
  .gh-quick__chip:nth-of-type(n+4) { display: none; }
  .gh-section { margin-top: 36px; }
  .gh-how { padding: 20px; }
  .gh-search { padding-left: 12px; }
  .gh-search .gk-btn { padding: 0 14px; }
  .gk-footer { margin-top: 40px; padding: 32px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .gk-footer__in { grid-template-columns: 1fr; gap: 0; }
  .gk-footer__brand { padding-bottom: 18px; }
  .gk-footer__col { border-top: 1px solid rgba(255,255,255,.08); }
  .gk-footer__col summary { cursor: pointer; padding: 15px 2px; min-height: 48px; }
  .gk-footer__col summary h2 { margin: 0; }
  .gk-footer__col summary .gi { display: block; }
  .gk-footer__col[open] summary .gi { transform: rotate(180deg); }
  .gk-footer__col ul { padding: 0 2px 16px; gap: 10px; }
  .gk-footer__bottom { flex-direction: column; gap: 10px; }
  .gk-footer__bottom p:last-child { text-align: left; }
  .gd-doc { flex-wrap: wrap; }
  .gd-doc__actions { width: 100%; padding-left: 58px; }
  .gk-facts__row { grid-template-columns: 1fr; gap: 4px; }
  .gk-cookie { left: 12px; right: 12px; max-width: none; }
  .gk-page__head--row .gk-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gk-drawer__panel { animation: none; } .gk-skeleton { animation: none; } }

/* ═══ Админка: тарифы и внешний вид (admin-plans.js, admin-appearance.js) ═══ */
.ap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ap-head h2 { font: 700 24px var(--gk-font-h); letter-spacing: -.03em; margin: 0 0 6px; }
.ap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ap-plan { padding: 18px 20px; display: grid; gap: 16px; transition: box-shadow .15s; }
.ap-plan.is-dirty { box-shadow: inset 0 0 0 1.5px var(--gk-coral-a35), var(--gk-card-shadow); }
.ap-plan__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-plan__name { flex: 1; min-width: 180px; font: 700 18px var(--gk-font-h); letter-spacing: -.02em; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 6px 10px; color: var(--gk-ink); }
.ap-plan__name:hover { background: var(--gk-ink-a04); }
.ap-plan__name:focus { outline: none; background: #fff; border-color: var(--gk-coral-a35); box-shadow: var(--gk-focus); }
.ap-plan__slug { font-size: 12px; color: var(--gk-faint); font-family: ui-monospace, monospace; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ap-span2 { grid-column: 1 / -1; }
.ap-grid small, .ap-hint { color: var(--gk-faint); font-weight: 400; font-size: 13px; }
.ap-hint { margin: 8px 2px 0; line-height: 1.5; }
.ap-access { display: grid; gap: 10px; justify-items: start; }
.ap-access .gk-segment { margin-top: 0; }
.ap-label { font-size: 13px; font-weight: 600; color: var(--gk-ink-3); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gk-line); background: transparent; color: var(--gk-ink-3); font: 500 13px var(--gk-font-b); cursor: pointer; transition: background-color .12s, border-color .12s; }
.ap-chip .gi { width: 15px; height: 15px; color: var(--gk-muted); }
.ap-chip:hover { background: var(--gk-ink-a04); }
.ap-chip.is-on { background: var(--gk-coral-a14); border-color: var(--gk-coral-a35); color: var(--gk-coral-ink); }
.ap-chip.is-on .gi { color: var(--gk-coral-ink); }
.ap-chips__tools { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--gk-faint); }
.ap-plan__foot { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--gk-line); }
.ap-plan__actions { margin-left: auto; display: flex; gap: 8px; }
.ap-plan .gs-handle { cursor: grab; color: var(--gk-faint); display: inline-grid; place-items: center; width: 22px; height: 30px; border-radius: 6px; touch-action: none; }

.aa-section { padding: 20px 22px; margin-bottom: 14px; display: grid; gap: 14px; }
.aa-section header h3 { font: 700 16px var(--gk-font-h); letter-spacing: -.02em; margin: 0 0 4px; }
.aa-section .hint { margin: 0; }
.aa-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.aa-hero__form { display: grid; gap: 12px; justify-items: stretch; }
.aa-hero__form .gk-segment { margin-top: 0; justify-self: start; }
.aa-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aa-progress { flex: 1; min-width: 120px; height: 6px; border-radius: 99px; background: var(--gk-ink-a07); overflow: hidden; }
.aa-progress[hidden] { display: none; }
.aa-progress span { display: block; height: 100%; width: 0; background: var(--gk-coral); transition: width .2s; }
.aa-preview { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; min-height: 220px; background: var(--gk-sand); display: flex; align-items: flex-end; padding: 20px; box-shadow: inset 0 0 0 1px var(--gk-line); }
.aa-preview img, .aa-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.aa-preview__shade { position: absolute; inset: 0; z-index: -1; background: var(--gk-ink); transition: opacity .15s; }
.aa-preview__text { display: grid; gap: 6px; max-width: 90%; }
.aa-preview__text strong { font: 700 20px/1.15 var(--gk-font-h); letter-spacing: -.03em; color: var(--gk-ink); }
.aa-preview__text small { font-size: 13px; color: var(--gk-muted); }
.aa-preview__text i { display: block; width: 70%; height: 30px; border-radius: 10px; background: #fff; box-shadow: var(--gk-lift); margin-top: 6px; }
.aa-preview.has-media .aa-preview__text strong { color: #fff; }
.aa-preview.has-media .aa-preview__text small { color: rgba(255,255,255,.85); }
.aa-narrow { max-width: 360px; }
.aa-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.aa-icon { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--gk-ink-a04); }
.aa-icon__img { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.aa-icon__img img { width: 100%; height: 100%; object-fit: contain; }
.aa-icon__body { display: grid; gap: 4px; min-width: 0; }
.aa-icon__body > span { font-size: 12px; color: var(--gk-muted); line-height: 1.4; }
.aa-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.aa-color { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--gk-ink-a04); cursor: pointer; }
.aa-color input[type=color] { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; flex: none; }
.aa-color span { display: grid; gap: 2px; font-size: 13px; }
.aa-color code { font-size: 12px; color: var(--gk-muted); }
@media (max-width: 900px) {
  .ap-grid, .aa-hero { grid-template-columns: 1fr; }
  .ap-plan__actions { margin-left: 0; width: 100%; }
  .ap-plan__actions .gk-btn { flex: 1; }
}
