/*
Theme Name: Клёвое место
Description: Локальная тема покерного клуба с каталогом румов и редакционным журналом.
Version: 1.0.0
Text Domain: klevoe-mesto
Requires PHP: 8.1
*/

/* Локальные вариативные шрифты с кириллическим и латинским наборами. */
@font-face{font-family:Inter;src:url(assets/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;src:url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Roboto Condensed";src:url(assets/fonts/roboto-condensed-cyrillic-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Roboto Condensed";src:url(assets/fonts/roboto-condensed-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
	--bg:#091624; --surface:#101f30; --stroke:#293b4b; --text:#f8f2e6;
	--muted:#b5c1cc; --accent:#f4ba62; --ink:#121c26;
	--display:"Roboto Condensed","Arial Narrow",Arial,sans-serif;
	color-scheme:dark;
}
* { box-sizing:border-box; }
html { min-height:100%; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--text); font:400 1rem/1.6 Inter,Arial,sans-serif; }
body > main { flex:1 0 auto; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
:focus-visible { outline:3px solid #ffd493; outline-offset:4px; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { text-wrap:balance; }
.shell { width:min(1392px,92%); margin-inline:auto; }
.sr-only,.screen-reader-text,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link:focus { position:fixed; top:8px; left:12px; z-index:20; background:var(--accent); color:var(--ink); padding:8px 16px; }
.site-header { position:relative; z-index:3; border-bottom:1px solid #203141; }
.head-inner { min-height:82px; display:flex; align-items:center; gap:2rem; justify-content:space-between; }
.brand { flex:none; display:block; }
.brand img { width:158px; height:auto; }
.site-nav,.head-actions,.footer-inner nav { display:flex; align-items:center; }
.site-nav { gap:clamp(1.2rem,2.3vw,2.35rem); align-self:stretch; align-items:stretch; }
.site-nav a { position:relative; display:flex; align-items:center; white-space:nowrap; font-size:.9rem; font-weight:550; color:#bfccd6; }
.site-nav a:hover,.footer-inner nav a:hover,.crumbs a:hover { color:var(--accent); }
.site-nav a.current { color:var(--text); }
.site-nav a.current::after { content:""; position:absolute; height:2px; bottom:17px; background:var(--accent); left:0; right:0; }
.head-actions { gap:10px; flex-shrink:0; }
.telegram-link { display:inline-grid; place-items:center; width:42px; height:42px; border:1px solid #345363; border-radius:8px; background:#102a38; color:#85d5f3; }
.telegram-link:hover,.telegram-link:focus-visible { background:#173b4e; border-color:#81cbe5; color:white; }
.search-toggle { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:41px; padding:0 17px; border:1px solid #3b4a59; border-radius:8px; font-size:.875rem; font-weight:600; }
.search-toggle:hover,.secondary:hover { background:#233445; border-color:#74808b; }
.search-icon { width:15px; height:15px; border:1.7px solid currentColor; border-radius:50%; position:relative; margin-right:3px; }
.search-icon::after { content:""; width:7px; height:1.7px; position:absolute; right:-5px; bottom:-2px; background:currentColor; transform:rotate(47deg); }
.menu-toggle { display:none; }
.home-main { padding-top:24px; padding-bottom:78px; }

/* Обложка сохраняет свободную зону слева для контрастного заголовка. */
.hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; min-height:clamp(415px,34.75vw,515px); border:1px solid #294355; border-radius:17px; background:#071822; }
.hero-art,.hero-art::after,.hero-art img { position:absolute; inset:0; width:100%; height:100%; }
.hero-art { z-index:-1; }
.hero-art img { object-fit:cover; object-position:50% 47%; }
.hero-art::after { content:""; background:linear-gradient(90deg,rgba(3,14,24,.72) 0%,rgba(3,14,24,.52) 30%,rgba(3,14,24,.08) 55%,transparent 73%); }
.hero-content { padding:clamp(34px,3.5vw,60px) clamp(27px,4.3vw,72px); max-width:65%; }
.hero-kicker,.eyebrow,.story-meta { font-weight:700; font-size:.78rem; letter-spacing:.13em; text-transform:uppercase; color:var(--accent); }
.hero-kicker { display:flex; align-items:center; gap:.55rem; font-size:.79rem; letter-spacing:.17em; margin-bottom:16px; }
.hero-kicker span { font:1.32rem/1 Georgia,serif; }
.sea-particles { position:absolute; inset:0; overflow:hidden; pointer-events:none; container-type:size; }
.sea-particles i { position:absolute; top:108%; left:var(--x); width:var(--size); height:var(--size); border-radius:50%; background:radial-gradient(at 27% 22%,#fbfffcd9,transparent 49%); border:1px solid #a5e1ea7a; box-shadow:0 0 4px #c2f1ed55; animation:km-rise var(--time) linear var(--delay) infinite paused; }
.sea-particles.is-running i { animation-play-state:running; }
.hero-content { position:relative; }
@keyframes km-rise { 0% { opacity:0; transform:translate3d(-9px,0,0); } 13% { opacity:.82; } 55% { transform:translate3d(12px,-62cqh,0); } 89% { opacity:.65; } 100% { opacity:0; transform:translate3d(-4px,-115cqh,0); } }
@media(max-width:700px) { .sea-particles { bottom:auto; height:clamp(190px,54vw,300px); } }
@media(prefers-reduced-motion:reduce) { .sea-particles { display:none; } .sea-particles i { animation:none; } }
.hero h1 { font:850 clamp(4.25rem,6.65vw,7rem)/.94 var(--display); letter-spacing:-.045em; text-transform:uppercase; }
.hero h1 em { display:block; color:var(--accent); font-weight:850; font-style:normal; transform:skewX(-8deg); transform-origin:left bottom; }
.hero-lead { margin-top:20px; max-width:430px; font-size:clamp(1rem,1.18vw,1.13rem); line-height:1.55; color:#e0e5e7; }
.hero-actions,.page-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:25px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 22px; border:1px solid transparent; border-radius:7px; font-size:.93rem; font-weight:700; line-height:1.45; transition:background .16s,border-color .16s; }
.primary { background:var(--accent); color:#192029; }
.primary:hover { background:#ffd08a; }
.secondary { color:var(--text); border-color:#687786; background:rgba(10,25,38,.72); }

.home-section,.related,.school-stories { margin-top:clamp(34px,3.2vw,54px); }
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:1.2rem; margin-bottom:19px; }
.section-head h2,.results-title,.empty-state h2 { font:750 clamp(1.85rem,2.85vw,2.8rem)/1.08 var(--display); letter-spacing:-.033em; }
.section-link,.tile-action { color:var(--accent); font-size:.89rem; font-weight:600; }
.section-link { border-bottom:1px solid #8b704c; padding-bottom:1px; text-align:right; }
.section-link:hover { color:#ffe0b0; border-color:currentColor; }
.room-row,.catalog-grid,.story-grid { display:grid; gap:14px; }
.room-row,.catalog-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.other-rooms { grid-template-columns:repeat(4,minmax(0,1fr)); }
.room-tile,.catalog-card { display:flex; align-items:center; gap:clamp(10px,1.2vw,18px); border:1px solid var(--stroke); border-radius:10px; background:linear-gradient(115deg,#152638,#101f2f); transition:background .18s,border-color .18s,transform .18s; }
.room-tile { min-height:90px; padding:14px clamp(12px,1.35vw,25px); }
.room-name { font:730 clamp(1.16rem,1.7vw,1.65rem)/1.15 var(--display); letter-spacing:-.025em; }
.room-tile:hover,.catalog-card:hover { border-color:#8b784f; background:#1b2e40; transform:translateY(-2px); }
.room-image { width:clamp(40px,3.5vw,57px); height:auto; aspect-ratio:1; flex:none; }
.room-image { object-fit:contain; border-radius:8px; }
.story-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(16px,1.8vw,28px); }
.story-card { position:relative; display:flex; flex-direction:column; min-width:0; }
.story-copy { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding-top:15px; overflow-wrap:anywhere; }
.story-link::after { content:""; position:absolute; inset:0; border-radius:11px; }
.story-category { position:relative; z-index:1; }
.story-category:hover { text-decoration:underline; text-underline-offset:3px; }
.story-excerpt { color:#cad5de; font-size:.96rem; line-height:1.55; margin:9px 0 0; }
.story-facts { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:.5rem; color:var(--muted); font-size:.82rem; line-height:1.5; }
.story-copy .story-facts { margin:auto 0 0; padding-top:16px; }
.article-facts { margin:14px 0; }
.story-date,.story-reading { white-space:nowrap; }
.story-separator { color:var(--accent); }
.cover-box,.article-art { overflow:hidden; border-radius:11px; border:1px solid var(--stroke); background:var(--surface); }
.cover-box { aspect-ratio:1.94; }
.cover-image { width:100%; height:100%; object-fit:cover; transition:transform .25s; }
.story-card:hover .cover-image { transform:scale(1.035); }
.story-meta { font-size:.75rem; letter-spacing:.095em; }
.story-title { margin:5px 0 0; font:720 clamp(1.5rem,2vw,2rem)/1.18 var(--display); letter-spacing:-.024em; }
.story-link:hover,.story-link:focus-visible { color:var(--accent); }
.site-footer { border-top:1px solid var(--stroke); background:#08131e; }
.footer-inner { display:flex; align-items:center; flex-wrap:wrap; gap:2.3rem; min-height:110px; padding-block:24px; }
.footer-inner .brand img { width:133px; }
.footer-inner nav { gap:1.55rem; flex-wrap:wrap; }
.footer-inner nav a { font-size:.87rem; color:var(--muted); }
.age { margin-left:auto; border:1px solid #475463; padding:2px 8px; border-radius:5px; color:#c0c8d0; font-size:.8rem; font-weight:650; }

.inside { padding-block:24px 76px; min-height:64vh; }
.crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:9px; color:#a8b6c2; font-size:.84rem; margin-bottom:37px; }
.crumbs span[aria-hidden] { color:#697c8b; }
.page-intro { max-width:780px; margin-bottom:26px; }
.inside h1 { font:800 clamp(3.1rem,6.5vw,6.25rem)/1.02 var(--display); letter-spacing:-.05em; overflow-wrap:anywhere; }
.page-intro p,.lead,.page-copy { font-size:clamp(1.02rem,1.45vw,1.25rem); color:#c7d3dc; }
.page-intro p,.profile-text .lead,.article-main .lead { margin-top:17px; }
.catalog-card { align-items:flex-start; flex-direction:column; min-height:195px; padding:24px; gap:12px; }
.catalog-card h2 { font:750 clamp(1.4rem,2vw,2rem)/1.2 var(--display); }
.catalog-card .tile-action { margin-top:auto; font-size:.84rem; }
.profile-panel,.article-layout { display:grid; align-items:center; grid-template-columns:1.35fr 1fr; gap:clamp(25px,5vw,90px); }
.profile-panel { padding:clamp(28px,5vw,74px); border:1px solid var(--stroke); border-radius:15px; background:linear-gradient(115deg,#132635,#0c1c2a); }
.profile-text .eyebrow,.article-main .eyebrow,.page-intro .eyebrow { display:inline-block; margin-bottom:12px; }
.profile-art { display:grid; place-items:center; min-height:235px; background:repeating-radial-gradient(circle at center,transparent 0 30px,#7695a414 31px,transparent 32px 44px); }
.profile-art .room-image { width:clamp(125px,12vw,190px); }
.prose { color:#c5d1da; max-width:74ch; overflow-wrap:anywhere; }
.prose p,.prose ul { margin:1em 0; }
.prose a { color:var(--accent); text-decoration:underline; }
.page-copy { max-width:67ch; }
.topics { display:flex; flex-wrap:wrap; gap:10px; margin:25px 0 30px; }
.topics a { color:var(--muted); padding:8px 15px; border:1px solid var(--stroke); border-radius:30px; font-size:.88rem; }
.topics a:hover,.topics a[aria-current] { color:var(--accent); border-color:#92764c; background:#262b29; }
.article-layout { align-items:start; }
.article-main,.profile-text { min-width:0; }
.article-main .section-link { display:inline-block; margin-top:15px; }
.article-art { aspect-ratio:1.4; }
.empty-state { padding:28px; border:1px solid var(--stroke); border-radius:10px; }
.empty-state h2 { font-size:1.8rem; margin-bottom:16px; }
.pagination { margin-top:28px; }
.nav-links { display:flex; gap:12px; }
.page-numbers { padding:.4rem .75rem; border:1px solid var(--stroke); border-radius:5px; }
.page-numbers.current { color:var(--accent); border-color:var(--accent); }
.search-dialog { background:var(--surface); color:var(--text); border:1px solid #46586b; border-radius:14px; width:min(540px,92vw); padding:24px; }
.search-dialog::backdrop { background:rgba(2,10,16,.79); }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:20px; }
.dialog-head .dialog-title { font:730 2rem/1.2 var(--display); }
.close-dialog { width:38px; height:38px; border:1px solid var(--stroke); border-radius:8px; background:var(--bg); color:var(--text); font-size:1.5rem; line-height:1; }
.search-form { display:flex; flex-wrap:wrap; gap:10px; max-width:630px; }
.search-form label { flex:1 1 160px; min-width:0; }
.search-form input { width:100%; min-height:47px; color:var(--text); border:1px solid #526679; border-radius:7px; background:#0c1a28; padding:10px 13px; }
.results-title { font-size:clamp(1.65rem,3vw,2.35rem); margin:38px 0 15px; overflow-wrap:anywhere; }
@media(max-width:1100px) {
	.room-row { gap:9px; }
	.room-tile { padding-inline:10px; gap:10px; }
	.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
	.head-inner { gap:1rem; }
}
@media(max-width:1000px) {
	.head-inner { min-height:70px; flex-wrap:wrap; padding-block:10px; }
	.brand img { width:139px; }
	.head-actions { margin-left:auto; }
	.site-nav { order:3; width:100%; justify-content:space-between; flex-wrap:wrap; padding-bottom:5px; }
	.site-nav a.current::after { bottom:-3px; }
	.has-js .site-nav { display:none; }
	.has-js .menu-toggle { width:42px; height:41px; border-radius:8px; display:grid; align-content:center; justify-items:center; gap:5px; background:transparent; border:1px solid #3b4a59; }
	.menu-toggle span { display:block; width:18px; height:2px; background:var(--text); }
	.has-js .menu-open .site-nav { display:flex; }
}
@media(max-width:900px) {
	.shell { width:93%; }
	.room-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
	.other-rooms { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.room-tile { min-height:70px; padding:12px 15px; }
	.hero-content { max-width:70%; }
	.profile-panel,.article-layout { gap:25px; }
	.footer-inner { gap:1.6rem; }
}
@media(max-width:700px) {
	.shell { width:calc(100% - 32px); }
	.head-inner { min-height:63px; }
	.brand img { width:127px; }
	.search-label { display:none; }
	.search-toggle { width:42px; padding:0; }
	.site-nav { gap:0; flex-direction:column; align-items:stretch; }
	.site-nav a { padding:10px 4px; border-top:1px solid var(--stroke); }
	.site-nav a.current { color:var(--accent); }
	.site-nav a.current::after { display:none; }
	.home-main { padding-top:14px; padding-bottom:45px; }
	.hero { display:flex; align-items:stretch; flex-direction:column; min-height:0; border-radius:12px; }
	.hero-art { position:relative; inset:auto; display:block; width:100%; height:clamp(190px,54vw,300px); order:0; z-index:0; }
	.hero-art img { object-position:50% 39%; }
	.hero-art::after { background:linear-gradient(0deg,#071822 0%,transparent 27%); }
	.hero-content { max-width:100%; padding:0 clamp(19px,5vw,34px) 27px; margin-top:-5px; position:relative; }
	.hero-kicker { margin-bottom:11px; font-size:.73rem; }
	.hero h1 { font-size:clamp(3.1rem,10.3vw,4.45rem); }
	.hero-lead { margin-top:13px; font-size:1rem; }
	.hero-actions { margin-top:20px; gap:9px; }
	.button { min-height:44px; padding:9px 15px; font-size:.88rem; }
	.section-head { margin-bottom:14px; gap:.65rem; }
	.section-head h2 { font-size:clamp(1.7rem,6.8vw,2.3rem); }
	.section-link { font-size:.81rem; }
	.room-row,.catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
	.room-tile { padding:10px; gap:9px; }
	.room-image { width:38px; }
	.room-name { font-size:1.15rem; }
	.story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 14px; }
	.story-title { font-size:1.4rem; }
	.story-meta { font-size:.72rem; }
	.cover-box { aspect-ratio:1.6; }
	.crumbs { margin-bottom:24px; }
	.inside { padding-block:18px 45px; }
	.inside h1 { font-size:clamp(2.6rem,10vw,4.25rem); }
	.catalog-card { padding:16px; min-height:160px; }
	.profile-panel,.article-layout { grid-template-columns:1fr; }
	.profile-art { min-height:145px; }
	.article-art { grid-row:1; aspect-ratio:2; }
	.footer-inner { align-items:start; gap:20px; }
	.footer-inner nav { order:3; width:100%; gap:8px 18px; }
}
@media(max-width:470px) {
	.story-grid { grid-template-columns:1fr; }
	.cover-box { aspect-ratio:1.94; }
	.room-row .room-tile:last-child:nth-child(odd) { grid-column:1/-1; }
}
@media(max-width:350px) {
	.shell { width:calc(100% - 20px); }
	.room-name { font-size:1.03rem; }
	.room-tile { padding:7px; gap:6px; }
}
@media(prefers-reduced-motion:reduce) {
	*,*::before,*::after { scroll-behavior:auto!important; transition:none!important; }
}
