/* AtlasUnfold: главная и служебные страницы (дополняет style.css; общие токены и компоненты — оттуда) */
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}

/* ---- hero ---- */
.hhero{min-height:min(88svh,780px)}
.hhero .wrap{padding:96px 0 clamp(36px,6vw,64px)}
.hhero h1{font-size:clamp(2.3rem,6.6vw,4.9rem);max-width:17ch}
.hhero .sub{max-width:60ch}
.hsearch{display:flex;gap:8px;margin:1.4rem 0 .9rem;max-width:640px;background:#fff;border-radius:999px;padding:6px;box-shadow:0 10px 40px rgba(0,0,0,.35);animation:rise 1s .45s both}
.hsearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:1.1rem;padding:0 18px;color:var(--ink);min-height:50px;border-radius:999px}
.hsearch input:focus{outline:none}
.hsearch:focus-within{box-shadow:0 0 0 3px #8ec1ff,0 10px 40px rgba(0,0,0,.35)}
.hsearch .btn{padding:0 26px;min-height:50px}
.try{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.9rem;color:#eadfcb;animation:rise 1s .5s both}
.trychips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.trychips a{display:inline-block;color:#fff;text-decoration:none;background:rgba(255,255,255,.16);padding:7px 14px;border-radius:999px;min-height:36px;line-height:22px}
.trychips a:hover{background:rgba(255,255,255,.28);color:#fff}
.hhero .btnrow{margin-top:1.3rem}
.hstatus{margin:1.1rem 0 0;font-size:.9rem;color:#e6d9c2;max-width:60ch}
.hhero .credit{position:static;margin-top:.8rem;max-width:none;text-align:left}

/* ---- смотреть сейчас ---- */
.watchsec{background:var(--night);color:#f1e6d1;padding:clamp(40px,6vw,76px) 0}
.watchsec .eyebrow{color:#f0c9a8}
.watchsec h2{color:#fff;font-size:clamp(1.8rem,4vw,2.6rem)}
.watchsec .lead{color:#d9ccb5}
.wgrid{display:grid;gap:28px;margin-top:22px}
@media (min-width:900px){.wgrid{grid-template-columns:1.6fr 1fr;align-items:center;gap:44px}}
.watchsec .vmeta{color:#cdbfa6}
.watchsec .vmeta a,.watchsec a.textlink{color:#f0c9a8}
.wplace{font:700 .8rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#f0c9a8;margin:0 0 6px}
.wtext h3{color:#fff;font-size:clamp(1.4rem,2.6vw,2rem)}
.wmeta{list-style:none;margin:0 0 1.2em;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.9rem;color:#cdbfa6}
.wact{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center}
.textlink{font-weight:600}
.watchsec :focus-visible,.hhero :focus-visible,.methsec :focus-visible{outline-color:#8ec1ff}

/* ---- направления ---- */
.dirsec{background:var(--bg)}
.dirs{list-style:none;margin:30px 0 0;padding:0;display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:600px){.dirs{grid-template-columns:1fr 1fr}}
@media (min-width:960px){.dirs{grid-template-columns:repeat(3,1fr)}}
.dir{position:relative;border-radius:var(--r);overflow:hidden;min-height:210px;display:flex}
.dir>a,.dir>div{position:relative;display:flex;flex:1;flex-direction:column;justify-content:flex-end;padding:20px;color:#fff;text-decoration:none;min-height:210px}
.dir.has>a::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,12,8,.15) 0%,rgba(20,12,8,.85) 100%);z-index:1}
.dir.has img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s}
.dir.has>a:hover img{transform:scale(1.06)}
.dir-ico{position:absolute;top:16px;left:16px;width:38px;height:38px;z-index:2;color:#f6dcc0}
.dir-t{position:relative;z-index:2;display:block}
.dir-t h3{margin:0 0 .25em;font-size:1.35rem}
.dir-d{display:block;font-size:.88rem;line-height:1.45;opacity:.92;margin-bottom:.7em}
.dir-n{display:inline-block;font:700 .78rem var(--sans);letter-spacing:.08em;text-transform:uppercase}
.dir.has .dir-n{color:#ffd8b8}
.dir.soon{background:var(--sand-100);border:1.5px dashed var(--sand-300)}
.dir.soon>div{color:var(--ink)}
.dir.soon .dir-ico{color:var(--rose-d)}
.dir.soon .dir-d{color:var(--muted);opacity:1}
.dir.soon .dir-n{color:var(--muted)}
.dir>a:focus-visible{outline-offset:-4px;outline-color:#8ec1ff}
.dir-credits{font-size:.78rem;color:var(--muted);margin:14px 0 0}

/* ---- каталог ---- */
.catsec{background:var(--sand-100)}
.ctools{margin-top:24px}
.csearch label{display:block;font:600 .8rem var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.csearch input{width:100%;max-width:640px;font:inherit;font-size:1.1rem;padding:0 20px;min-height:54px;border:1.5px solid var(--sand-300);border-radius:999px;background:#fff;color:var(--ink)}
.csearch input:focus-visible{outline:3px solid #1b5fb5;outline-offset:2px}
.facets{margin-top:18px;display:grid;gap:14px}
.facet{border:0;padding:0;margin:0}
.facet legend{font:700 .75rem var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:0;margin-bottom:6px}
.fopts{display:flex;flex-wrap:wrap;gap:8px}
.fchip,.apill{font:600 .92rem var(--sans);border-radius:999px;border:1.5px solid var(--sand-300);background:#fff;color:var(--ink);padding:0 16px;min-height:44px;cursor:pointer}
.fchip:hover{border-color:var(--rose)}
.fchip[aria-pressed=true],.apill{background:var(--ink);color:#fff;border-color:var(--ink)}
.fchip .n{opacity:.65;font-weight:500;margin-left:4px}
.active{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.alink{background:none;border:0;color:var(--rose-d);font:600 .92rem var(--sans);text-decoration:underline;cursor:pointer;min-height:44px;padding:0 8px}
.count{margin:22px 0 14px;font-weight:600;color:var(--muted)}
.catnote{background:#fff;border-left:4px solid var(--rose);border-radius:8px;padding:12px 16px;margin:0 0 18px;font-size:.95rem;color:var(--muted);max-width:68ch}
.pcards{list-style:none;margin:0;padding:0;display:grid;gap:22px;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}
.pcards[hidden],.empty[hidden]{display:none}
.pcards:not(:has(.pcard)) li{background:#fff;border-radius:var(--r);padding:18px 20px}
.pcard{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 10px 34px rgba(60,40,20,.1);display:flex;flex-direction:column}
.pc-img img{width:100%;aspect-ratio:3/2;object-fit:cover}
.pc-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.pc-meta{font:600 .78rem var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--rose-d);margin:0 0 6px}
.pc-body h3{margin:0 0 .4em;font-size:1.5rem}
.pc-body h3 a{color:var(--ink);text-decoration:none}
.pc-body h3 a:hover{color:var(--rose-d)}
.pc-sum{color:var(--muted);font-size:.98rem}
.chips{list-style:none;margin:0 0 .9em;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.chips li{font:600 .74rem var(--sans);background:var(--sand-100);padding:5px 10px;border-radius:999px;color:var(--ink-2)}
.pc-oq{font-size:.9rem;border-left:3px solid var(--sand-300);padding-left:12px;color:var(--ink-2)}
.pc-fmt{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 1em}
.fmt{font:700 .72rem var(--sans);letter-spacing:.04em;background:#dcefe3;color:#1f5a3b;padding:4px 9px;border-radius:5px}
.rd{font-size:.82rem;color:var(--muted);margin-left:4px}
.pc-act{margin:auto 0 12px}
.pc-credit{font-size:.74rem;color:var(--muted);margin:0}
@media (min-width:760px){
  .pcards.one{grid-template-columns:1fr}
  .pcards.one .pcard{flex-direction:row}
  .pcards.one .pc-img{flex:0 0 46%}
  .pcards.one .pc-img img{height:100%;aspect-ratio:auto;min-height:340px}
  .pcards.one .pc-body{padding:30px 34px}
}
.empty{text-align:center;padding:40px 16px;background:#fff;border-radius:var(--r)}
.empty-t{font:700 1.5rem var(--serif);margin:0 0 .3em}
.empty-h{color:var(--muted)}
.morewrap{text-align:center;margin:26px 0 0}
.btn.ghost-d{background:transparent;color:var(--ink);border:1.5px solid var(--ink)}
.btn.ghost-d:hover{background:var(--ink);color:#fff}

/* ---- подборки ---- */
.cols{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.cols a{display:inline-flex;gap:10px;align-items:center;min-height:48px;padding:0 20px;border-radius:999px;background:#fff;border:1.5px solid var(--sand-300);text-decoration:none;color:var(--ink);font-weight:600}
.cols a span{opacity:.6}

/* ---- как мы проверяем ---- */
.methsec{background:var(--night);color:#f1e6d1}
.methsec .eyebrow{color:#f0c9a8}
.methsec h2{color:#fff}
.methsec .lead{color:#d9ccb5}
.meth{list-style:none;counter-reset:m;margin:28px 0;padding:0;display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:700px){.meth{grid-template-columns:1fr 1fr}}
@media (min-width:1080px){.meth{grid-template-columns:repeat(5,1fr)}}
.meth li{counter-increment:m;background:rgba(255,255,255,.07);border-radius:var(--r);padding:18px 18px 8px}
.meth li::before{content:counter(m);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--rose);color:#fff;font-weight:700;margin-bottom:10px}
.meth h3{font-size:1.1rem;color:#fff;margin-bottom:.3em}
.meth p{font-size:.9rem;color:#d9ccb5}

/* ---- подвал и служебные страницы ---- */
.sitefoot .brand-f{color:#fff;text-decoration:none}
.sitefoot p{max-width:78ch;margin:0 0 .6em}
.page{padding:96px 0 64px;min-height:70vh}
.pagewrap{max-width:780px}
.page h1{font-size:clamp(1.55rem,6vw,3.2rem);overflow-wrap:break-word;hyphens:auto}
.updated{font-size:.88rem;color:var(--muted)}
.prose h2{font-size:clamp(1.3rem,2.6vw,1.7rem);margin:1.8em 0 .5em}
.prose ul{padding-left:1.3em}
.prose li{margin-bottom:.5em;max-width:none}
.prose code{background:var(--sand-100);padding:1px 6px;border-radius:5px;font-size:.9em}
.prose .lead{margin-bottom:1.2em}
.todo{background:#fff4d6;border-left:4px solid var(--maybe);padding:12px 16px;border-radius:8px}
@media (max-width:480px){.hsearch{flex-direction:column;border-radius:20px;padding:8px}.hsearch input{min-height:50px}.hsearch .btn{justify-content:center}.hhero .btnrow .btn{flex:1 1 100%;justify-content:center}}
@media print{.watchsec,.hsearch{display:none}}
