/* GOLOSRU_OFFICIAL_MAX_V5 — isolated to NEW template; no admin / OLD changes */
.grv4-page .grv4-avatar img{object-fit:contain!important;object-position:center center!important;background:#f2f4f7}
.grv4-page .grv4-avatar{background:#f2f4f7;box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 0 4px rgba(15,35,70,.13)}
.grv4-page.landing-max{color:#132440;background:#f5f7fb}
.grv4-page.landing-max .grv4-shell{color:#132440}
.grv4-page.landing-max .grv4-top{background:#fff;border-bottom:4px solid transparent;border-image:linear-gradient(to right,#fff 0 33.33%,#1646a9 33.33% 66.66%,#d62432 66.66%) 1;padding:12px 20px}
.grv4-page.landing-max .grv4-top-inner{max-width:1220px;min-height:72px;padding:0;background:#fff;border-radius:0}
.grv4-page.landing-max .grv4-back,.grv4-page.landing-max .grv4-more{color:#1c3872}
.grv4-page.landing-max .grv4-logo-pill{background:transparent;border:0;box-shadow:none;border-radius:0;font-family:Arial,sans-serif;color:#0d3885;font-size:clamp(23px,3.2vw,37px);font-weight:950;letter-spacing:-.06em}
.grv4-page.landing-max .grv4-logo-pill .grv4-logo-red{color:#d02630}
.grv4-page.landing-max .grv4-logo-icon{width:50px;height:50px;flex-basis:50px}
.grv5-russia-mark{width:48px;height:48px;display:flex;flex-direction:column;overflow:hidden;border:2px solid #f1f4fa;border-radius:14px;box-shadow:0 3px 8px #142d512b;transform:skew(-5deg)}
.grv5-russia-mark i{display:block;flex:1;background:#fff}
.grv5-russia-mark i:nth-child(2){background:#1547a6}
.grv5-russia-mark i:nth-child(3){background:#d52a34}
.grv4-page.landing-max .grv4-stage{background:radial-gradient(circle at 12% 12%,#e9f0fb 0,transparent 43%),linear-gradient(150deg,#fff 5%,#f0f5fb 65%,#e7eff9);padding-top:45px;padding-bottom:66px}
.grv4-page.landing-max .grv4-stage-inner{max-width:1140px}
.grv4-page.landing-max .grv4-intro{padding-bottom:32px}
.grv4-page.landing-max .grv4-intro h1{color:#132c55;font-weight:900;letter-spacing:-.04em;max-width:930px}
.grv4-page.landing-max .grv4-subtitle{color:#324664}
.grv4-page.landing-max .grv4-flag-line i{background:#b3c1d6}
.grv4-page.landing-max .grv4-under-title{background:#b7c5d9}
.grv4-page.landing-max .grv4-section-title span{background:linear-gradient(90deg,#d02736,#e2e8f0)}
.grv4-page.landing-max .grv4-section-title h2{color:#18335b}
.grv4-page.landing-max .grv4-card{background:#fff;border:1px solid #dbe3ef;box-shadow:0 10px 26px #233d6714;border-radius:20px;overflow:visible}
.grv4-page.landing-max .grv4-separator{background:#cbd7e7}
.grv4-page.landing-max .grv4-person h3{color:#142b52}
.grv4-page.landing-max .grv4-vote{background:linear-gradient(130deg,#b3162a,#e03340)!important;box-shadow:0 6px 12px #be2c3433!important}
.grv4-page.landing-max .grv4-vote:hover{filter:brightness(.95)}
.grv4-page.landing-max .grv4-votes{color:#2e4061}
.grv4-page.landing-max .grv4-bottom-wave{height:36px;background:linear-gradient(115deg,#f7f9fc,#dce7f7)}
.grv4-page.landing-max .grv4-links a{color:#1d355f;border-color:#d9e2ed;background:#fff}
@media(min-width:1150px){
.grv4-page.landing-max .grv4-stage-inner{max-width:1160px}
.grv4-page.landing-max .grv4-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.grv4-page .grv4-card{grid-template-columns:156px 1px minmax(0,1fr);min-height:194px;gap:18px;padding:20px}
.grv4-page .grv4-avatar{width:154px;height:154px}
.grv4-page .grv4-separator{height:132px}
.grv4-page .grv4-person h3{font-size:21px}
}
@media(min-width:650px) and (max-width:1149px){
.grv4-page .grv4-card{grid-template-columns:160px 1px minmax(0,1fr)}
.grv4-page .grv4-avatar{width:155px;height:155px}
}
@media(max-width:580px){
.grv4-page.landing-max .grv4-top{padding:8px 8px;border-bottom-width:3px}
.grv4-page.landing-max .grv4-top-inner{min-height:60px}
.grv4-page.landing-max .grv4-logo-icon{width:39px;height:39px;flex-basis:39px}
.grv4-page.landing-max .grv5-russia-mark{width:39px;height:39px;border-radius:11px}
.grv4-page.landing-max .grv4-stage{padding:26px 10px 51px}
.grv4-page .grv4-card{grid-template-columns:minmax(104px,31vw) 1px minmax(0,1fr)!important;gap:clamp(8px,2.3vw,13px);padding:12px 10px;min-height:155px}
.grv4-page .grv4-avatar{width:min(31vw,142px)!important;height:min(31vw,142px)!important;min-width:104px;min-height:104px}
.grv4-page .grv4-separator{height:116px}
.grv4-page.landing-max .grv4-intro h1{font-size:clamp(28px,8vw,41px)}
}
@media(max-width:365px){
.grv4-page .grv4-card{grid-template-columns:96px 1px minmax(0,1fr)!important;gap:7px;padding:10px 8px}
.grv4-page .grv4-avatar{min-width:96px;min-height:96px;width:96px!important;height:96px!important}
.grv4-page .grv4-vote{padding:8px 5px!important;font-size:12px!important}
}

/* GOLOSRU_DESKTOP_FIX_V6 */
/* Только NEW MAX / Telegram */

/* Фотография всегда поверх буквы-заглушки */
.grv4-page .grv4-avatar {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.grv4-page .grv4-avatar-fallback {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.grv4-page .grv4-avatar img {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 50% !important;
    z-index: 2 !important;
}

/* Широкие экраны */
@media (min-width: 1200px) {

    .grv4-page .grv4-stage-inner {
        width: min(100%, 1320px) !important;
        max-width: 1320px !important;
    }

    .grv4-page .grv4-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    .grv4-page .grv4-card {
        display: grid !important;
        grid-template-columns: 180px 1px minmax(0, 1fr) !important;
        gap: 24px !important;
        min-height: 230px !important;
        padding: 24px !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .grv4-page .grv4-avatar {
        width: 180px !important;
        height: 180px !important;
    }

    .grv4-page .grv4-separator {
        height: 160px !important;
    }

    .grv4-page .grv4-person h3 {
        font-size: 23px !important;
        line-height: 1.25 !important;
    }

    .grv4-page .grv4-vote {
        min-height: 48px !important;
        font-size: 17px !important;
    }

    .grv4-page .grv4-votes {
        font-size: 15px !important;
    }
}

/* Планшеты и небольшие ноутбуки */
@media (min-width: 650px) and (max-width: 1199px) {

    .grv4-page .grv4-stage-inner {
        width: min(100%, 850px) !important;
        max-width: 850px !important;
    }

    .grv4-page .grv4-cards {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .grv4-page .grv4-card {
        grid-template-columns: 160px 1px minmax(0, 1fr) !important;
        min-height: 200px !important;
        padding: 20px !important;
        gap: 22px !important;
    }

    .grv4-page .grv4-avatar {
        width: 160px !important;
        height: 160px !important;
    }

    .grv4-page .grv4-separator {
        height: 140px !important;
    }
}

/* Телефоны: сохраняем привычную разметку */
@media (max-width: 649px) {

    .grv4-page .grv4-avatar {
        aspect-ratio: 1 / 1 !important;
    }

    .grv4-page .grv4-card {
        overflow: hidden !important;
    }
}

