/* Главная: компактный hero и карточки с читаемой шириной. */
.home .hero{min-height:0;padding:20px 0 16px;background:linear-gradient(100deg,#f2f7fe 0%,#e8f2ff 52%,#6e9acf 100%);overflow:hidden;isolation:isolate}
.home .hero::after{content:"";position:absolute;z-index:0;inset:0 0 0 50%;background:url('hero-banner-artwork.png') right top/auto 155% no-repeat;mask-image:linear-gradient(90deg,transparent 0%,#000 35%);opacity:1}
.home .hero .container{position:relative;z-index:1}
.home .hero h1{font-size:clamp(30px,2.8vw,40px);line-height:1.12;max-width:700px;margin:0 0 8px}
.home .hero p{max-width:625px;font-size:15px;line-height:1.32;margin:0 0 12px}
.home .hero .topics{margin:0;gap:7px;padding:0;scrollbar-width:thin}
.home .hero .topics a{border:1px solid #d4deed;border-radius:999px;padding:6px 11px;background:rgba(255,255,255,.94);font-size:12px;transition:background .18s,border-color .18s,transform .18s}
.home .hero .topics a:hover{border-color:#3b62a4;background:#f4f8ff;text-decoration:none;transform:translateY(-1px)}
.home .hero .topics a.active{background:#3b62a4;color:#fff;border-color:#3b62a4}
.home-content .section{padding-top:36px}
.home-content h2{font-size:34px;margin-bottom:22px}
.home-content .popular-grid{grid-template-columns:1.42fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:18px}
.home-content .popular-grid .post-card{position:relative;min-width:0;border-radius:12px;overflow:hidden;background:#fff;border:1px solid #dce3ed;box-shadow:0 3px 12px rgba(29,53,91,.06);transition:box-shadow .18s,transform .18s}
.home-content .popular-grid .post-card:hover,.home-content .post-grid .post-card:hover{box-shadow:0 9px 24px rgba(29,53,91,.13);transform:translateY(-2px)}
.home-content .popular-grid .featured{grid-row:span 2;display:block;min-height:520px}
.home-content .popular-grid .featured .card-image{position:absolute;inset:0;margin:0}
.home-content .popular-grid .featured .card-image img,.home-content .popular-grid .featured .image-placeholder{width:100%;height:100%;object-fit:cover;min-height:0;border-radius:0}
.home-content .popular-grid .featured::after{content:"";position:absolute;inset:32% 0 0;background:linear-gradient(transparent,rgba(5,20,45,.85));pointer-events:none}
.home-content .popular-grid .featured .card-body{position:absolute;z-index:1;inset:auto 0 0;display:flex;flex-direction:column;justify-content:flex-end;padding:26px 30px;color:#fff}
.home-content .popular-grid .featured h3{font-size:clamp(23px,2vw,29px);line-height:1.17;margin:0 0 10px}
.home-content .popular-grid .featured .card-excerpt{font-size:15px;line-height:1.35;color:#fff;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-content .popular-grid .featured .card-meta{margin-top:12px;padding:0;color:#fff}
.home-content .popular-grid .featured .card-meta time{color:#fff}
.home-content .popular-grid .featured .tag{border-color:rgba(255,255,255,.7);color:#fff;background:rgba(7,32,70,.4)}
.home-content .popular-grid .post-card:not(.featured){display:grid;grid-template-columns:42% 1fr;grid-template-rows:46% 54%;min-height:250px}
.home-content .popular-grid .post-card:not(.featured) .card-image{grid-column:1;grid-row:1/-1}
.home-content .popular-grid .post-card:not(.featured) .card-image img,.home-content .popular-grid .post-card:not(.featured) .image-placeholder{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:0}
.home-content .popular-grid .post-card:not(.featured) .card-body{grid-column:2;grid-row:1/-1;padding:18px;display:flex;flex-direction:column}
.home-content .popular-grid .post-card:not(.featured) h3{font-size:20px;line-height:1.2;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.home-content .popular-grid .post-card:not(.featured) .card-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-content .post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:30px}
.home-content .post-grid .post-card{display:flex;flex-direction:column;min-width:0;min-height:100%;gap:0;overflow:hidden;background:#fff;border:1px solid #dce3ed;border-radius:12px;box-shadow:0 3px 12px rgba(29,53,91,.05);transition:box-shadow .18s,transform .18s}
.home-content .post-grid .card-image{display:block;aspect-ratio:16/10;overflow:hidden}
.home-content .post-grid .card-image img,.home-content .post-grid .image-placeholder{width:100%;height:100%;min-height:0;aspect-ratio:16/10;object-fit:cover;border-radius:0;background:#dce6f4}
.home-content .post-grid .card-body{display:flex;flex:1;flex-direction:column;padding:18px 20px 20px;min-width:0}
.home-content .post-grid h3{font-size:21px;line-height:1.25;margin:0 0 12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.home-content .post-grid .card-excerpt{font-size:15px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#52627d}
.home-content .post-grid .card-meta{margin-top:auto;padding-top:18px;gap:8px}
.home-content .post-grid .tag,.home-content .popular-grid .tag{font-size:12px;padding:5px 9px}
.home-content .post-grid .card-meta time{margin-left:auto}
.home-content .image-placeholder{position:relative;background:linear-gradient(135deg,#bed1eb,#4069ab)}
.home-content .image-placeholder::before,.home-content .image-placeholder::after{content:"";position:absolute;border:2px solid rgba(255,255,255,.34);border-radius:50%;width:80%;height:50%;left:10%;top:26%;transform:rotate(-25deg)}
.home-content .image-placeholder::after{transform:rotate(27deg)}
.home-content .expert-banner{padding:52px 60px}
.home-content .expert-banner p{line-height:1.5}
.seo-columns p{max-width:600px;line-height:1.55}
@media(max-width:1024px){.home .hero::after{inset:0 0 0 56%;background-size:auto 155%}.home .hero p{max-width:58%}.home-content .popular-grid{grid-template-columns:1.2fr 1fr}.home-content .popular-grid .featured{min-height:460px}.home-content .popular-grid .post-card:not(.featured){display:flex;flex-direction:column;min-height:0}.home-content .popular-grid .post-card:not(.featured) .card-image{height:47%;flex:none}.home-content .popular-grid .post-card:not(.featured) .card-image img{height:100%}.home-content .popular-grid .post-card:not(.featured) .card-body{flex:1;padding:14px}.home-content .popular-grid .post-card:not(.featured) h3{font-size:17px;-webkit-line-clamp:3}.home-content .popular-grid .post-card:not(.featured) .card-excerpt{display:none}.home-content .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.home .hero{padding:22px 0 18px}.home .hero::after{inset:0 0 0 48%;opacity:.35}.home .hero h1{font-size:32px;max-width:580px}.home .hero p{max-width:570px;font-size:14px}.home-content .popular-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.home-content .popular-grid .featured{grid-column:1/-1;grid-row:auto;min-height:430px}.home-content .popular-grid .post-card:not(.featured){min-height:330px}.home-content .popular-grid .post-card:not(.featured) .card-image{height:55%}.home-content .expert-banner{padding:32px}}
@media(max-width:600px){.home .hero::after{inset:0;opacity:.12}.home .hero h1{font-size:30px}.home .hero p{max-width:none;font-size:14px;margin-bottom:12px}.home-content h2{font-size:28px}.home-content .popular-grid,.home-content .post-grid{grid-template-columns:1fr;gap:20px}.home-content .popular-grid .featured{grid-column:auto;min-height:410px}.home-content .popular-grid .featured .card-body{padding:22px}.home-content .popular-grid .post-card:not(.featured){min-height:0;display:flex}.home-content .popular-grid .post-card:not(.featured) .card-image{height:auto;aspect-ratio:16/10}.home-content .popular-grid .post-card:not(.featured) .card-body{padding:18px}.home-content .popular-grid .post-card:not(.featured) .card-excerpt{display:-webkit-box}.home-content .post-grid .card-body{padding:17px}.home-content .expert-banner{padding:24px}}
/* Малые карточки популярных: обложка сверху, текст ниже. */
@media(min-width:1025px){
.home-content .popular-grid .post-card:not(.featured){display:flex;flex-direction:column;min-height:0}
.home-content .popular-grid .post-card:not(.featured) .card-image{height:55%;flex:none}
.home-content .popular-grid .post-card:not(.featured) .card-image img,.home-content .popular-grid .post-card:not(.featured) .image-placeholder{width:100%;height:100%;object-fit:cover}
.home-content .popular-grid .post-card:not(.featured) .card-body{flex:1;padding:12px 18px 14px}
.home-content .popular-grid .post-card:not(.featured) h3{font-size:19px;line-height:1.16;-webkit-line-clamp:3;margin-bottom:6px}
.home-content .popular-grid .post-card:not(.featured) .card-excerpt{display:none}
}
@media(max-width:600px){
.home .hero .topics{flex-wrap:wrap;white-space:normal;overflow:visible;gap:7px}
.home .hero .topics a{font-size:12px;padding:7px 10px}
.home-content .popular-grid .featured h3{font-size:21px}
.home-content .popular-grid .featured .card-body{background:linear-gradient(transparent,rgba(5,20,45,.6) 24%,rgba(5,20,45,.78))}
}
/* Популярные материалы: целые обложки и отдельные подписи. */
.home .hero::after{background-size:auto 125%;background-position:right 0 top 16px;mask-image:linear-gradient(90deg,transparent 15%,#000 85%);-webkit-mask-image:linear-gradient(90deg,transparent 15%,#000 85%)}
/* Extend the artwork beyond the hero edges and blend its left edge into the sky. */
.home .hero{min-height:190px;display:flex;align-items:center}
.home .hero .container{width:100%}
.home .hero::after{inset:0 0 0 auto;width:auto;height:100%;aspect-ratio:2/1;background-image:url('hero-banner-clean.png');background-size:100% 100%;background-position:right bottom;mask-image:linear-gradient(90deg,transparent 0%,#000 38%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 38%)}
.home-content .popular-grid{align-items:stretch}
.home-content .popular-grid .featured{display:flex;flex-direction:column;min-height:0}
.home-content .popular-grid .featured::after{display:none}
.home-content .popular-grid .featured .card-image{position:relative;inset:auto;display:block;width:100%;height:auto;aspect-ratio:16/9;flex:none;background:#e9eef6;overflow:hidden}
.home-content .popular-grid .featured .card-image img,.home-content .popular-grid .featured .image-placeholder{display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:0}
.home-content .popular-grid .featured .card-body{position:static;inset:auto;z-index:auto;display:flex;flex:1;flex-direction:column;justify-content:flex-start;min-height:0;padding:18px 22px 20px;background:#fff;color:var(--navy)}
.home-content .popular-grid .featured h3{font-size:clamp(21px,1.7vw,25px);line-height:1.2;margin:0 0 9px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.home-content .popular-grid .featured .card-excerpt{display:none}
.home-content .popular-grid .featured .card-meta{margin-top:auto;padding-top:12px;color:#68768d}
.home-content .popular-grid .featured .card-meta time{color:#68768d}
.home-content .popular-grid .featured .tag{border-color:#d8e0eb;color:var(--navy);background:#f4f7fb}
.home-content .popular-grid .post-card:not(.featured){display:flex;flex-direction:column;min-height:0}
.home-content .popular-grid .post-card:not(.featured) .card-image{display:block;width:100%;height:clamp(145px,12vw,185px);aspect-ratio:auto;flex:none;background:#1b2c4d;overflow:hidden}
.home-content .popular-grid .post-card:not(.featured) .card-image img,.home-content .popular-grid .post-card:not(.featured) .image-placeholder{display:block;width:100%;height:100%;min-height:0;object-fit:contain;border-radius:0}
.home-content .popular-grid .post-card:not(.featured) .card-body{display:flex;flex:1;flex-direction:column;padding:12px 18px 14px}
.home-content .popular-grid .post-card:not(.featured) h3{font-size:18px;line-height:1.2;margin:0 0 6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.home-content .popular-grid .post-card:not(.featured) .card-excerpt{display:none}
.home-content .popular-grid .post-card:not(.featured) .card-meta{margin-top:auto;padding-top:8px}
@media(max-width:768px){
 .home-content .popular-grid .featured{grid-column:1/-1;grid-row:auto}
 .home-content .popular-grid .post-card:not(.featured) .card-image{height:auto;aspect-ratio:16/9}
}
@media(max-width:600px){
 .home-content .popular-grid{grid-template-rows:none}
 .home-content .popular-grid .featured{grid-column:auto;min-height:0}
 .home-content .popular-grid .featured .card-body{padding:16px 18px 18px;background:#fff}
 .home-content .popular-grid .featured h3{font-size:21px}
 .home-content .popular-grid .post-card:not(.featured) .card-excerpt{display:none}
}
