/* KOVCHEG CMS 3.7.0 — Pages and Rubrics home
 * Author and copyright: Ланцет Семён Борисович
 * License: proprietary / all rights reserved
 */

.site-home-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid #dce5ee;border-radius:18px;background:linear-gradient(135deg,#ffffff 0%,#f5f8fc 100%);box-shadow:0 12px 34px rgba(15,23,42,.06)}
.site-home-hero>div{max-width:820px}
.site-home-hero span,.site-home-section>header span{color:#52739a;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.site-home-hero h1{margin:6px 0 8px;color:#111827;font-size:clamp(34px,5vw,58px);line-height:1.02;letter-spacing:-.045em}
.site-home-hero p{max-width:720px;margin:0;color:#5b687a;font-size:17px;line-height:1.55}
.site-home-hero>a,.site-home-empty>a{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:10px 15px;border-radius:9px;background:#245f9f;color:#fff;font-size:13px;font-weight:700;text-decoration:none}

.site-home-section{margin-top:18px;padding:24px;border:1px solid #dce5ee;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.site-home-section>header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.site-home-section>header h2{margin:4px 0 0;color:#142033;font-size:26px;line-height:1.15;letter-spacing:-.03em}
.site-home-section>header>a{color:#2f649d;font-size:12px;font-weight:700;text-decoration:none}

.site-home-rubrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.site-home-rubrics>a{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-height:120px;padding:17px;border:1px solid #e0e7ef;border-radius:12px;background:#fbfcfe;color:inherit;text-decoration:none;transition:.18s ease}
.site-home-rubrics>a:hover{transform:translateY(-2px);border-color:#bfcfe0;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.site-home-rubrics h3{margin:0 0 7px;color:#15263a;font-size:18px}
.site-home-rubrics p{margin:0;color:#657286;font-size:12px;line-height:1.5}
.site-home-rubrics strong{display:grid;place-items:center;flex:none;min-width:36px;height:36px;border-radius:10px;background:#edf4ff;color:#245a96;font-size:15px}

.site-home-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.site-home-page-card{display:grid;grid-template-columns:150px minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid #e0e7ef;border-radius:12px;background:#fbfcfe}
.site-home-page-card.without-cover{grid-template-columns:1fr}
.site-home-page-cover{display:block;width:150px;height:150px;overflow:hidden;background:#e9eef4}
.site-home-page-cover img{display:block;width:100%;height:100%;object-fit:cover}
.site-home-page-card>div{display:flex;flex-direction:column;min-width:0;padding:15px}
.site-home-page-card h3{margin:0 0 8px;font-size:19px;line-height:1.25}
.site-home-page-card h3 a{color:#142033;text-decoration:none}
.site-home-page-card p{display:-webkit-box;overflow:hidden;margin:0 0 12px;color:#657286;font-size:12px;line-height:1.5;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.site-home-page-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;color:#8a95a5;font-size:10px}
.site-home-page-card footer a{color:#245f9e;font-size:12px;font-weight:700;text-decoration:none}
.site-home-empty{display:grid;place-items:center;min-height:220px;padding:26px;border:1px dashed #ccd7e2;border-radius:12px;background:#f8fafc;text-align:center}
.site-home-empty h2{margin:0 0 7px;font-size:24px}
.site-home-empty p{max-width:520px;margin:0 0 14px;color:#667386}

@media(max-width:1100px){.site-home-rubrics{grid-template-columns:repeat(2,minmax(0,1fr))}.site-home-pages{grid-template-columns:1fr}}
@media(max-width:720px){.site-home-hero{align-items:flex-start;flex-direction:column;padding:22px}.site-home-section{padding:18px}.site-home-rubrics{grid-template-columns:1fr}}
@media(max-width:500px){.site-home-page-card{display:block}.site-home-page-cover{width:100%;height:190px}.site-home-hero h1{font-size:34px}.site-home-section>header{align-items:flex-start;flex-direction:column}}
