/* Aikuisseuraa (сайт 11) - тёмная "ночная" доска: графит, карточки, тёплый янтарный акцент. Классы as-*, mobile first. */
:root {
  --bg: #15171c; --paper: #1f2230; --paper2: #262a3a; --line: #2f3447; --line2: #3b4157; --ink: #f1f2f6; --soft: #b8bdcc; --mute: #8a90a3;
  --acc: #f5a524; --acc-dk: #d98c0f; --acc-bg: #2d2717; --chip: #2a2e3f; --ok: #5fd39a; --bad: #ff7a6e; --r: 14px;
  --ad-acc: #f5a524; --ad-hot: #f5a524; --ad-card: #1f2230; --ad-ink: #f1f2f6; --ad-sub: #b8bdcc; --ad-line: #2f3447; /* реклама (engine/lib/ads.js AD_CSS) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--acc); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
h1 small { display: block; font-size: .9rem; font-weight: 500; color: var(--mute); }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: .95rem; font-weight: 700; color: var(--soft); }
p { margin: 0 0 .9em; }
.as-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.as-top { background: rgba(21, 23, 28, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.as-top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.as-logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 500; letter-spacing: .01em; }
.as-logo b { color: var(--acc); font-weight: 800; }
.as-logo svg, .as-foot-brand svg { width: 26px; height: 26px; flex: none; }
svg .o { fill: #15171c; stroke: var(--acc); stroke-width: 2; }
svg .t { fill: var(--acc); font: 700 12px Arial, Helvetica, sans-serif; }
.as-nav { display: flex; align-items: center; gap: 16px; }
.as-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.as-btn { display: inline-block; background: var(--acc); color: #15171c !important; text-decoration: none; border: 0; border-radius: 9px; padding: 9px 16px; font-weight: 800; font-size: .92rem; cursor: pointer; font-family: inherit; }
.as-btn:hover { background: var(--acc-dk); }
.as-btn-big { padding: 13px 22px; font-size: 1rem; }
.as-btn-wide { display: block; text-align: center; margin: 14px 0 6px; }
.as-btn-line { display: inline-block; background: transparent; border: 1px solid var(--line2); color: var(--ink); border-radius: 9px; padding: 12px 20px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; font-size: .95rem; }
.as-btn-line:hover { border-color: var(--acc); color: var(--acc); }

.as-crumbs { font-size: .8rem; color: var(--mute); padding-top: 12px; }
.as-crumbs a { color: var(--soft); text-decoration: none; }
.as-crumbs a:hover { color: var(--acc); }
.as-crumbs i { font-style: normal; margin: 0 6px; color: var(--line2); }

.as-head, .as-hero { padding: 16px 0 6px; }
.as-hero { padding: 36px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.as-hero h1 { font-size: 2rem; max-width: 760px; }
.as-lead { color: var(--soft); max-width: 800px; font-size: 1.02rem; }
.as-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.as-facts span { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; font-size: .78rem; color: var(--soft); }

.as-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.as-main > section { margin-bottom: 22px; }
.as-side { display: none; }

/* панель ключей места: горизонтальная прокрутка на мобильном, липкая под шапкой */
.as-kw { position: sticky; top: 60px; z-index: 20; background: var(--bg); margin: 6px -16px 14px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.as-kw h2 { display: none; }
.as-kw-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.as-kw-in::-webkit-scrollbar { display: none; }
.as-kw-in a { flex: none; background: var(--paper); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 13px; font-size: .84rem; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.as-kw-in a em { font-style: normal; color: var(--mute); margin-left: 5px; font-size: .74rem; font-weight: 500; }
.as-kw-in a.on, .as-kw-in a:hover { background: var(--acc); border-color: var(--acc); color: #15171c; }
.as-kw-in a.on em, .as-kw-in a:hover em { color: #5a4210; }

.as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chips a, .as-chips span { background: var(--chip); border-radius: 6px; padding: 3px 9px; font-size: .78rem; color: var(--soft); text-decoration: none; }
.as-chips a em { font-style: normal; color: var(--mute); margin-left: 5px; font-size: .72rem; }
.as-chips a:hover, .as-chips a.on, .as-chips span.on { background: var(--acc); color: #15171c; }
.as-chips a:hover em, .as-chips a.on em { color: #5a4210; }
.as-chips-l a, .as-chips-l span { font-size: .88rem; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }

/* сетка анкет: 1 колонка на телефоне, 2-3 на десктопе */
.as-feed { display: grid; gap: 12px; }
.as-card { display: grid; grid-template-columns: 88px 1fr; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; position: relative; }
.as-card:hover { border-color: var(--line2); }
.as-card.as-new::after { content: "uusi"; position: absolute; top: 10px; right: 12px; background: var(--acc-bg); color: var(--acc); font-size: .64rem; font-weight: 800; padding: 1px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.as-ph, .as-prof-ph { position: relative; display: block; background: radial-gradient(circle at 50% 35%, #3a3f55, #22253200 70%), linear-gradient(170deg, #2c3043, #1b1e2a); border-radius: 12px; aspect-ratio: 1; overflow: hidden; text-decoration: none; }
.as-ph svg, .as-prof-ph svg { width: 100%; height: 100%; fill: #4f5571; }
.as-ph svg .h, .as-prof-ph svg .h { fill: #5d6485; }
.as-ph span, .as-prof-ph span { position: absolute; left: 0; right: 0; bottom: 8%; color: var(--mute); font-size: .52rem; text-align: center; line-height: 1.15; padding: 0 6px; font-weight: 600; }
.as-card-top { font-size: .84rem; color: var(--soft); margin-bottom: 2px; display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.as-card-top b { color: var(--ink); font-size: .98rem; }
.as-card-top time { color: var(--mute); font-size: .76rem; }
.as-card h3 { font-size: 1rem; margin: 0 0 4px; }
.as-card h3 a { color: var(--ink); text-decoration: none; }
.as-card h3 a:hover { color: var(--acc); }
.as-card p { margin: 0 0 8px; font-size: .9rem; color: var(--soft); }
.as-card .as-chips a, .as-card .as-chips span { font-size: .7rem; padding: 1px 8px; }
.as-write { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 700; color: var(--acc); text-decoration: none; }
.as-write::after { content: " →"; }
.as-note { font-size: .72rem; color: var(--mute); margin: 8px 0 0; }
.as-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.as-pager a, .as-pager b { padding: 6px 12px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; color: var(--ink); }
.as-pager b { background: var(--acc); color: #15171c; border-color: var(--acc); }

.as-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 20px; }
.as-box h3 { margin-top: 12px; }
.as-near { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.as-near li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.as-near li a { text-decoration: none; }
.as-near small { color: var(--mute); white-space: nowrap; }
.as-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.as-cities a { display: block; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; text-decoration: none; background: var(--paper2); }
.as-cities a:hover { border-color: var(--acc); }
.as-cities b { display: block; font-size: .92rem; color: var(--ink); }
.as-cities small { color: var(--mute); font-size: .76rem; }
.as-az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.as-az a { font-weight: 800; text-decoration: none; padding: 2px 8px; border-radius: 4px; background: var(--chip); color: var(--ink); }
.as-local p { color: var(--soft); font-size: .95rem; }
.as-faq details { border-top: 1px solid var(--line); padding: 9px 0; }
.as-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.as-faq summary:hover { color: var(--acc); }
.as-faq p { margin: 6px 0 0; color: var(--soft); }
.as-steps ol { margin: 0 0 10px; padding-left: 20px; color: var(--soft); }
.as-steps li { margin-bottom: 6px; }
.as-more { font-size: .92rem; margin: 12px 0 0; }

.as-join { border-top: 3px solid var(--acc); }
.as-join p { color: var(--soft); }
.as-form { display: grid; gap: 10px; max-width: 460px; }
.as-form label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; }
.as-form input[type=email] { font: inherit; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); color: var(--ink); }
.as-form input[type=email]:focus { outline: 2px solid var(--acc); border-color: transparent; }
.as-form .as-chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .84rem; color: var(--soft); }
.as-form .as-chk input { margin-top: 4px; accent-color: var(--acc); }
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.as-err { color: var(--bad); font-weight: 600; }
.as-ok { color: var(--ok); font-weight: 600; }
.as-narrow { max-width: 600px; margin: 24px auto; }
.as-article h2 { font-size: 1.05rem; margin-top: 1.3em; }
.as-article p, .as-article li { color: var(--soft); }
.as-article ul { padding-left: 20px; }
.as-fine { font-size: .78rem; color: var(--mute); }

.as-prof { display: grid; grid-template-columns: 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 14px 0 20px; }
.as-prof-ph { max-width: 200px; }
.as-prof-ph span { font-size: .72rem; }
.as-prof h1 { font-size: 1.35rem; }
.as-prof-text { font-size: 1.02rem; margin-top: 10px; }
.as-table { width: 100%; border-collapse: collapse; }
.as-table th, .as-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
.as-table th { width: 36%; color: var(--mute); font-weight: 600; }

/* реклама (engine/lib/ads.js: .ad-slot, .ad-banner, попап; здесь - нативная карточка в ленте и карточка-блок с пометкой PR) */
.as-pr { border-color: #4a3b1e; background: #23201a; }
.as-pr .as-pr-ph { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--chip); }
.as-pr .as-pr-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-prb { display: inline-block; font-size: .64rem; line-height: 1.5; padding: 0 .45em; border: 1px solid var(--mute); border-radius: 3px; color: var(--mute); font-weight: 700; letter-spacing: .05em; }
.as-pr::after { content: "PR"; position: absolute; top: 10px; right: 12px; background: var(--chip); color: var(--mute); font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 4px; }
.as-pr h3 { padding-right: 40px; }
.as-pr-cta { display: inline-block; background: var(--acc); color: #15171c; font-weight: 800; font-size: .84rem; border-radius: 6px; padding: 5px 14px; text-decoration: none; }
.as-pr-cta:hover { background: var(--acc-dk); }
.as-pr-html { display: block; padding: 8px; background: none; }
.as-pr-box { text-align: center; background: #23201a; }
.as-pr-box .as-prb { margin-bottom: 8px; }
.as-pr-box .ad-full { margin: 0 auto 10px; }
.as-pr-box b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.as-pr-box p { margin: 0 0 12px; font-size: .9rem; color: var(--soft); }
.as-pr-box .as-pr-cta { display: block; padding: 10px 14px; font-size: .95rem; }
.as-side .ad-slot { margin-top: 14px; }
body.as-has-sticky .as-sticky-cta { bottom: 118px; }
body.as-has-sticky { padding-bottom: 120px; }
.as-sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35; background: var(--acc); color: #15171c; text-align: center; font-weight: 800; padding: 13px; border-radius: 10px; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }

.as-foot { background: var(--paper); border-top: 1px solid var(--line); margin-top: 32px; padding: 24px 0 90px; font-size: .86rem; color: var(--soft); }
.as-foot-brand { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.as-foot-brand b { color: var(--ink); }
.as-foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.as-foot-links a { color: var(--ink); text-decoration: none; }
.as-foot-links a:hover { color: var(--acc); }

@media (min-width: 720px) {
  h1 { font-size: 1.9rem; }
  .as-feed { grid-template-columns: 1fr 1fr; }
  .as-card { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .as-ph { max-width: 160px; border-radius: 14px; }
  .as-ph span { font-size: .6rem; }
  .as-prof { grid-template-columns: 220px 1fr; gap: 22px; padding: 20px; }
  .as-kw { margin: 6px 0 14px; padding: 10px 0; border: 0; position: static; }
  .as-kw-in { flex-wrap: wrap; overflow: visible; }
  .as-sticky-cta { display: none; }
  .as-foot { padding-bottom: 24px; }
}
@media (min-width: 860px) { body.as-has-sticky { padding-bottom: 0; } }
@media (min-width: 1000px) {
  .as-grid { grid-template-columns: 1fr 300px; gap: 24px; }
  .as-side { display: block; position: sticky; top: 74px; }
  .as-side:empty { display: none; }
  .as-main .as-feed { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) { .as-main .as-feed { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 480px) {
  .as-nav a:not(.as-btn) { display: none; }
  .as-hero h1 { font-size: 1.5rem; }
  .as-card { grid-template-columns: 72px 1fr; gap: 10px; padding: 10px; }
  .as-ph span { display: none; }
}
