/**
 * РусЭкоАудит — Контакты V2
 * Статический CSS, без декоративных анимаций и JS.
 */

.rea-contacts-page{
    --rea-text:#172033;
    --rea-muted:#657084;
    --rea-line:#e3e8ef;
    --rea-soft:#f5f7fa;
    --rea-soft-blue:#eef5ff;
    --rea-accent:#1463d6;
    --rea-accent-dark:#0d4ead;
    --rea-green:#148653;
    --rea-radius:18px;
    color:var(--rea-text);
    background:#fff;
    font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    overflow:hidden;
}

.rea-contacts-page *,
.rea-contacts-page *::before,
.rea-contacts-page *::after{
    box-sizing:border-box;
}

.rea-contacts-wrap{
    width:min(1160px,calc(100% - 40px));
    margin:0 auto;
}

.rea-contacts-narrow{
    max-width:920px;
}

.rea-contacts-page h1,
.rea-contacts-page h2,
.rea-contacts-page h3,
.rea-contacts-page p{
    margin-top:0;
}

.rea-contacts-page a{
    color:inherit;
}

.rea-contacts-hero{
    padding:72px 0 64px;
    background:
        linear-gradient(180deg,#f8fbff 0%,#fff 100%);
    border-bottom:1px solid var(--rea-line);
}

.rea-contacts-hero .rea-contacts-wrap{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
    gap:48px;
    align-items:center;
}

.rea-contacts-kicker,
.rea-section-kicker{
    margin-bottom:12px;
    color:var(--rea-accent);
    font-size:12px;
    line-height:1.4;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.rea-contacts-hero h1{
    max-width:760px;
    margin-bottom:18px;
    font-size:clamp(36px,5vw,58px);
    line-height:1.04;
    letter-spacing:-.035em;
    color:#111827;
}

.rea-contacts-lead{
    max-width:760px;
    margin-bottom:26px;
    color:var(--rea-muted);
    font-size:18px;
    line-height:1.7;
}

.rea-contacts-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.rea-contacts-btn{
    display:inline-flex;
    min-height:48px;
    align-items:center;
    justify-content:center;
    padding:12px 20px;
    border:1px solid transparent;
    border-radius:12px;
    font-size:15px;
    line-height:1.2;
    font-weight:750;
    text-decoration:none;
    transition:
        background-color .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.rea-contacts-btn-primary{
    background:var(--rea-accent);
    color:#fff !important;
}

.rea-contacts-btn-primary:hover{
    background:var(--rea-accent-dark);
}

.rea-contacts-btn-secondary{
    border-color:#cbd5e1;
    background:#fff;
    color:#1f2937 !important;
}

.rea-contacts-btn-secondary:hover{
    border-color:#9ca3af;
    background:#f8fafc;
}

.rea-current-card{
    padding:24px;
    border:1px solid var(--rea-line);
    border-radius:var(--rea-radius);
    background:#fff;
    box-shadow:0 18px 45px rgba(15,23,42,.08);
}

.rea-presence-badge{
    display:inline-flex;
    margin-bottom:18px;
    padding:6px 10px;
    border-radius:999px;
    background:var(--rea-soft-blue);
    color:var(--rea-accent-dark);
    font-size:12px;
    font-weight:800;
}

.rea-current-row{
    padding:13px 0;
    border-top:1px solid var(--rea-line);
}

.rea-current-row:first-of-type{
    border-top:0;
}

.rea-current-label{
    display:block;
    margin-bottom:3px;
    color:var(--rea-muted);
    font-size:12px;
}

.rea-current-row strong{
    display:block;
    color:#1f2937;
    font-size:15px;
    line-height:1.45;
}

.rea-current-row a{
    color:var(--rea-accent-dark);
    text-decoration:none;
}

.rea-current-row a:hover{
    text-decoration:underline;
}

.rea-work-model{
    padding:52px 0;
    background:#fff;
}

.rea-work-model h2,
.rea-section-head h2,
.rea-contact-final h2{
    margin-bottom:14px;
    color:#111827;
    font-size:clamp(28px,3vw,38px);
    line-height:1.15;
    letter-spacing:-.025em;
}

.rea-work-model p:last-child{
    margin-bottom:0;
    color:var(--rea-muted);
    font-size:17px;
    line-height:1.75;
}

.rea-offices{
    padding:64px 0;
    background:var(--rea-soft);
    border-top:1px solid var(--rea-line);
    border-bottom:1px solid var(--rea-line);
}

.rea-section-head{
    display:flex;
    justify-content:space-between;
    gap:36px;
    align-items:flex-end;
    margin-bottom:28px;
}

.rea-section-intro{
    max-width:520px;
    margin-bottom:4px;
    color:var(--rea-muted);
    font-size:15px;
    line-height:1.65;
}

.rea-office-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.rea-office-card{
    padding:22px;
    border:1px solid var(--rea-line);
    border-radius:16px;
    background:#fff;
}

.rea-office-card.is-current{
    border-color:#99bdf1;
    box-shadow:inset 0 0 0 1px #d8e8ff;
}

.rea-office-title-row{
    display:flex;
    gap:10px;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}

.rea-office-title-row h3{
    margin:0;
    color:#111827;
    font-size:20px;
}

.rea-current-badge{
    flex:0 0 auto;
    padding:4px 8px;
    border-radius:999px;
    background:var(--rea-soft-blue);
    color:var(--rea-accent-dark);
    font-size:11px;
    font-weight:800;
}

.rea-office-address{
    min-height:44px;
    margin-bottom:12px;
    color:var(--rea-muted);
    font-size:14px;
    line-height:1.55;
}

.rea-office-phone{
    margin-bottom:7px;
}

.rea-office-phone a{
    color:var(--rea-accent-dark);
    font-size:16px;
    font-weight:750;
    text-decoration:none;
}

.rea-office-phone a:hover{
    text-decoration:underline;
}

.rea-office-hours{
    margin-bottom:0;
    color:#7b8495;
    font-size:12px;
}

.rea-region-site-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:15px;
    color:var(--rea-accent-dark) !important;
    font-size:13px;
    font-weight:800;
    text-decoration:none !important;
}

.rea-region-site-link span{
    transition:transform .16s ease;
}

.rea-region-site-link:hover span{
    transform:translateX(3px);
}

.rea-local-team{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(300px,1fr);
    gap:24px;
    margin-top:24px;
    padding:22px;
    border:1px solid #cfe6da;
    border-radius:16px;
    background:#f4fbf7;
}

.rea-local-team h3{
    margin-bottom:0;
    font-size:20px;
    color:#18372a;
}

.rea-local-team-item{
    display:grid;
    gap:4px;
    align-content:center;
}

.rea-local-team-item strong{
    font-size:17px;
}

.rea-local-team-item span{
    color:var(--rea-muted);
    font-size:13px;
}

.rea-local-team-item a{
    margin-top:3px;
    color:#12643f;
    font-weight:750;
    text-decoration:none;
}

.rea-local-team-item a:hover{
    text-decoration:underline;
}

.rea-geography{
    padding:64px 0;
    background:#fff;
}

.rea-geography-details{
    overflow:hidden;
    border:1px solid var(--rea-line);
    border-radius:16px;
    background:#fff;
}

.rea-geography-details summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px;
    cursor:pointer;
    list-style:none;
    color:#1f2937;
    font-size:16px;
    font-weight:800;
}

.rea-geography-details summary::-webkit-details-marker{
    display:none;
}

.rea-geography-details summary::before{
    content:"+";
    display:inline-flex;
    width:28px;
    height:28px;
    align-items:center;
    justify-content:center;
    margin-right:2px;
    border-radius:50%;
    background:var(--rea-soft-blue);
    color:var(--rea-accent-dark);
    font-size:20px;
    line-height:1;
}

.rea-geography-details[open] summary::before{
    content:"−";
}

.rea-geography-details summary > span:first-of-type{
    margin-right:auto;
}

.rea-geography-count{
    display:inline-flex;
    min-width:34px;
    height:28px;
    padding:0 9px;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:var(--rea-soft);
    color:var(--rea-muted);
    font-size:12px;
}

.rea-city-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    padding:4px 20px 20px;
}

.rea-city-item{
    display:flex;
    min-height:44px;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px 12px;
    border:1px solid var(--rea-line);
    border-radius:10px;
    background:#fafbfc;
    color:inherit;
    text-decoration:none;
    transition:
        background-color .16s ease,
        border-color .16s ease;
}

.rea-city-item:hover{
    border-color:#bfd1e9;
    background:#f1f6fc;
    text-decoration:none;
}

.rea-city-item::after{
    content:"↗";
    flex:0 0 auto;
    color:#8b9bb2;
    font-size:13px;
    line-height:1;
}

.rea-city-item.is-current{
    border-color:#a9c8f3;
    background:var(--rea-soft-blue);
}

.rea-city-name{
    color:#30394a;
    font-size:13px;
    font-weight:650;
}

.rea-city-type{
    flex:0 0 auto;
    margin-left:auto;
    color:var(--rea-muted);
    font-size:10px;
    text-transform:uppercase;
}

.rea-contact-final{
    padding:44px 0;
    background:#f4f7fb;
    border-top:1px solid var(--rea-line);
}

.rea-contact-final-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
}

.rea-contact-final h2{
    margin-bottom:8px;
}

.rea-contact-final p:last-child{
    max-width:720px;
    margin-bottom:0;
    color:var(--rea-muted);
    line-height:1.65;
}


/* Header/HFE submenu compatibility on contacts route */
@supports selector(body:has(main.rea-contacts-page)){
    body:has(main.rea-contacts-page) ul.sub-menu{
        background:#fff !important;
        border:1px solid rgba(15,23,42,.12) !important;
        box-shadow:0 14px 32px rgba(15,23,42,.14) !important;
        z-index:99999 !important;
    }

    body:has(main.rea-contacts-page) ul.sub-menu li{
        background:transparent !important;
    }

    body:has(main.rea-contacts-page) ul.sub-menu a{
        background:#fff !important;
        color:#0f172a !important;
    }

    body:has(main.rea-contacts-page) ul.sub-menu a:hover{
        background:rgba(15,23,42,.06) !important;
    }
}


@media (max-width:960px){
    .rea-contacts-hero .rea-contacts-wrap{
        grid-template-columns:1fr;
        gap:28px;
    }

    .rea-office-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .rea-city-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .rea-section-head,
    .rea-contact-final-inner{
        align-items:flex-start;
        flex-direction:column;
    }
}


@media (max-width:640px){
    .rea-contacts-wrap{
        width:min(100% - 28px,1160px);
    }

    .rea-contacts-hero{
        padding:48px 0 40px;
    }

    .rea-contacts-hero h1{
        font-size:36px;
    }

    .rea-contacts-lead{
        font-size:16px;
    }

    .rea-contacts-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .rea-contacts-btn{
        width:100%;
    }

    .rea-work-model,
    .rea-offices,
    .rea-geography{
        padding:44px 0;
    }

    .rea-office-grid,
    .rea-city-grid{
        grid-template-columns:1fr;
    }

    .rea-office-address{
        min-height:0;
    }

    .rea-local-team{
        grid-template-columns:1fr;
    }

    .rea-geography-details summary{
        padding:16px;
    }

    .rea-city-grid{
        padding:4px 14px 14px;
    }

    .rea-contact-final{
        padding:36px 0;
    }
}


@media (prefers-reduced-motion:reduce){
    .rea-contacts-btn{
        transition:none;
    }
}
