/*
Theme Name: Temario Hub
Theme URI: https://temario.ru/
Author: Temario
Description: Адаптивный каталог независимых проектов сети Temario. Управление карточками и категориями через WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: temario-hub
License: GPL-2.0-or-later
*/

:root{--bg:#f7f9fc;--surface:#fff;--ink:#192538;--muted:#617085;--line:#e0e6ef;--accent:#285bd4;--accent-soft:#edf2ff;--max:1120px;--radius:18px;--shadow:0 5px 22px rgba(22,40,75,.045)}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input{font:inherit}button{cursor:pointer}img{max-width:100%;height:auto}svg{display:block}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #759aff;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.22;letter-spacing:-.025em}h1{font-size:clamp(2.4rem,5.4vw,4.3rem);font-weight:750}h2{font-size:clamp(1.65rem,3vw,2.25rem)}h3{font-size:1.18rem}.wrap{width:min(var(--max),calc(100% - 64px));margin-inline:auto}.skip-link{position:absolute;top:-100px;left:10px;background:white;padding:10px;z-index:99}.skip-link:focus{top:10px}.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px}.brand{display:inline-flex;align-items:center;gap:12px;color:var(--ink);font-weight:800;font-size:25px;letter-spacing:-.07em;line-height:1;text-decoration:none!important}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--accent);border-radius:11px;color:#fff}.brand-mark svg{width:24px;height:24px}.brand-dot{color:var(--accent)}.custom-logo-link{display:inline-flex;align-items:center}.custom-logo{max-height:48px;width:auto}.site-nav ul{list-style:none;display:flex;align-items:center;gap:28px;padding:0;margin:0}.site-nav a{color:#425168;font-size:.94rem;font-weight:600}.hero{padding:84px 0 64px;position:relative;overflow:hidden}.hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:center;gap:60px}.eyebrow{display:inline-flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.1em;font-size:.75rem;font-weight:750;color:var(--accent);margin-bottom:19px}.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}.hero h1{max-width:810px}.hero p{max-width:675px;font-size:1.16rem;color:var(--muted);margin-top:21px}.hero-art{height:220px;position:relative;display:grid;place-items:center}.hero-art svg{width:100%;height:100%;overflow:visible}.catalog{padding:10px 0 76px;scroll-margin-top:25px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-head p{color:var(--muted);margin-top:8px}.catalog-total{font-size:.85rem;color:var(--muted);white-space:nowrap;padding-bottom:2px}.catalog-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 23px}.catalog-tools[hidden],.project-card[hidden],.catalog-empty[hidden]{display:none!important}.filters{display:flex;flex-wrap:wrap;gap:8px}.filter-button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 15px;color:var(--muted);font-weight:600;font-size:.87rem}.filter-button:hover{border-color:#b6c7ee;color:var(--accent)}.filter-button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:white}.search-box{margin-left:auto;min-width:200px;max-width:300px;flex:1;position:relative}.search-box svg{position:absolute;top:13px;left:13px;color:var(--muted);width:19px;height:19px}.search-box input{width:100%;height:44px;border:1px solid var(--line);border-radius:10px;padding:9px 12px 9px 39px;background:var(--surface);color:var(--ink)}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}.project-card{display:flex;flex-direction:column;min-height:236px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;color:var(--ink);box-shadow:var(--shadow);transition:border-color .18s,transform .18s,box-shadow .18s;overflow-wrap:anywhere;text-decoration:none!important}.project-card:hover{border-color:#b7c8f1;transform:translateY(-3px);box-shadow:0 10px 28px rgba(22,40,75,.09)}.card-top{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:19px}.project-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:12px;flex-shrink:0}.project-icon svg{width:26px;height:26px}.project-icon img{width:48px;height:48px;object-fit:cover;border-radius:12px}.icon-education{background:#e7f7ef;color:#18805b}.icon-computer{background:#f0eaff;color:#7350c4}.icon-games{background:#fff3e2;color:#a45e13}.icon-book{background:#e6f5f9;color:#137d92}.category-label{font-size:.74rem;color:var(--muted);font-weight:650;padding:5px 9px;background:#f6f8fc;border-radius:8px;text-align:right;max-width:58%}.project-card h3{font-weight:720}.project-description{font-size:.94rem;color:var(--muted);margin-top:10px;margin-bottom:20px;line-height:1.55}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:15px;border-top:1px solid #edf0f5;font-size:.83rem;font-weight:650;color:var(--accent)}.card-bottom svg{width:17px;height:17px;flex-shrink:0}.catalog-empty{padding:36px;border:1px dashed #bfcadd;border-radius:var(--radius);color:var(--muted);text-align:center}.about{padding:43px 0 54px;background:var(--surface);border-top:1px solid var(--line);scroll-margin-top:25px}.about-inner{display:grid;grid-template-columns:1fr 2fr;gap:48px}.about h2{font-size:1.5rem}.about p{color:var(--muted);max-width:670px}.site-footer{background:#fff;border-top:1px solid var(--line);padding:25px 0;color:var(--muted);font-size:.84rem}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap}.footer-inner a{color:var(--muted)}.content-page{padding:58px 0 80px;max-width:850px;min-height:60vh}.content-page h1{font-size:clamp(2rem,5vw,3rem);margin-bottom:28px}.entry-content{overflow-wrap:anywhere}.entry-content>*+*{margin-top:1.15em}.entry-content a{text-decoration:underline}.entry-content ul,.entry-content ol{padding-left:1.5em}.entry-content pre{overflow:auto;background:#ecf0f5;padding:16px;border-radius:10px}.entry-content table{border-collapse:collapse;max-width:100%}.entry-content td,.entry-content th{border:1px solid var(--line);padding:8px}.post-summary{padding:24px 0;border-bottom:1px solid var(--line)}.post-summary h2{font-size:1.4rem}.post-summary p{margin-top:10px;color:var(--muted)}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.project-grid.project-grid-single{grid-template-columns:minmax(0,1fr);max-width:650px}
@media(max-width:880px){.hero-inner{grid-template-columns:minmax(0,1fr) 180px;gap:25px}.hero-art{height:185px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:65px 0 48px}.about-inner{gap:24px}}
@media(max-width:580px){.wrap{width:calc(100% - 36px)}.header-inner{min-height:68px;gap:13px}.brand{font-size:23px;gap:9px}.brand-mark{width:33px;height:33px;border-radius:9px}.site-nav ul{gap:14px}.site-nav a{font-size:.83rem}.hero{padding:48px 0 39px}.hero-inner{grid-template-columns:1fr;gap:0}.hero-art{display:none}.hero p{font-size:1rem;margin-top:16px}.eyebrow{margin-bottom:14px}.catalog{padding-bottom:46px}.section-head{align-items:start;gap:10px}.section-head p{font-size:.92rem}.catalog-total{display:none}.project-grid{grid-template-columns:1fr;gap:13px}.project-card{min-height:218px;padding:21px}.search-box{width:100%;max-width:none;flex:auto}.about{padding:32px 0}.about-inner{grid-template-columns:1fr;gap:14px}.site-footer{padding:20px 0}.content-page{padding:38px 0 55px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project-card{transition:none}}
