/* RUSCRUIZ front shell — modern clean header */
:root{
    --rc-red:#e00000;
    --rc-red-dark:#bd0000;
    --rc-text:#111827;
    --rc-muted:#667085;
    --rc-line:#edf0f5;
    --rc-bg:#ffffff;
    --rc-soft:#f7f8fb;
    --rc-radius:18px;
    --rc-shadow:0 14px 36px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
body.rc-front{margin:0;font-family:Inter,Arial,sans-serif;color:var(--rc-text);background:#fff;line-height:1.45}
a{color:inherit}
.rc-container{width:min(1180px, calc(100% - 32px));margin:0 auto}

/* Новый компактный header */
.rc-header--clean{
    position:relative;
    z-index:50;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid var(--rc-line);
    box-shadow:0 6px 22px rgba(17,24,39,.04);
    backdrop-filter:saturate(130%) blur(8px);
}
.rc-header__inner{
    min-height:76px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:28px;
    align-items:center;
}
.rc-logo{
    display:inline-flex;
    flex-direction:column;
    align-items:flex-start;
    text-decoration:none;
    line-height:1;
    min-width:190px;
}
.rc-logo img{width:188px;max-width:100%;height:auto;display:block}
.rc-logo span{
    margin-left:66px;
    margin-top:-4px;
    color:var(--rc-red);
    font-size:12px;
    font-weight:800;
    letter-spacing:.26em;
    text-transform:lowercase;
    white-space:nowrap;
}
.rc-desktop-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
}
.rc-desktop-nav a{
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:0 12px;
    border-radius:999px;
    color:#1f2937;
    font-size:15px;
    font-weight:750;
    text-decoration:none;
    white-space:nowrap;
}
.rc-desktop-nav a:hover{background:#f3f4f6;color:var(--rc-red)}
.rc-header-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    white-space:nowrap;
}
.rc-phone{
    color:#202533;
    font-size:15px;
    font-weight:800;
    text-decoration:none;
}
.rc-phone:hover{color:var(--rc-red)}
.rc-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 18px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--rc-red),#ff3d3d);
    color:#fff!important;
    font-size:14px;
    font-weight:850;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(224,0,0,.20);
}
.rc-cta:hover{background:linear-gradient(135deg,var(--rc-red-dark),var(--rc-red));transform:translateY(-1px)}

.rc-burger{
    display:none;
    width:42px;
    height:42px;
    border:1px solid var(--rc-line);
    border-radius:12px;
    background:#fff;
    padding:9px;
    cursor:pointer;
}
.rc-burger span{display:block;height:2px;background:#111827;border-radius:2px;margin:5px 0;transition:.18s ease}
.rc-burger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.rc-burger.active span:nth-child(2){opacity:0}
.rc-burger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.rc-mobile-nav{
    display:none;
    border-top:1px solid var(--rc-line);
    background:#fff;
    padding:8px 16px 14px;
}
.rc-mobile-nav.active{display:grid}
.rc-mobile-nav a{
    display:flex;
    align-items:center;
    min-height:42px;
    padding:0 6px;
    border-bottom:1px solid #f2f3f6;
    color:#111827;
    font-size:15px;
    font-weight:750;
    text-decoration:none;
}
.rc-mobile-nav a:hover{color:var(--rc-red)}

/* Опциональный баннер ниже хедера, перед слайдером */
.rc-top-banner{
    width:min(1180px, calc(100% - 32px));
    margin:14px auto 0;
}
.rc-top-banner img,
.rc-top-banner iframe{
    display:block;
    width:100%;
    max-width:100%;
    border:0;
    border-radius:16px;
    overflow:hidden;
}

@media (max-width:1120px){
    .rc-header__inner{gap:18px;grid-template-columns:auto 1fr auto}
    .rc-logo{min-width:170px}.rc-logo img{width:170px}.rc-logo span{margin-left:58px;font-size:11px}
    .rc-desktop-nav a{padding:0 9px;font-size:14px}
    .rc-phone{display:none}
}

@media (max-width:860px){
    .rc-container{width:min(100% - 24px,1180px)}
    .rc-header__inner{min-height:62px;display:flex;justify-content:space-between;gap:12px}
    .rc-logo{min-width:0}.rc-logo img{width:150px}.rc-logo span{margin-left:52px;font-size:10px;letter-spacing:.22em}
    .rc-desktop-nav{display:none}
    .rc-cta{min-height:38px;padding:0 13px;font-size:13px}
    .rc-burger{display:block;flex:0 0 auto}
    .rc-header-actions{gap:8px}
}

@media (max-width:520px){
    .rc-container{width:calc(100% - 18px)}
    .rc-header__inner{min-height:56px}
    .rc-logo img{width:136px}.rc-logo span{margin-left:47px;font-size:9px;letter-spacing:.19em}
    .rc-cta{display:none}
    .rc-burger{width:40px;height:40px;border-radius:11px}
    .rc-mobile-nav{padding-left:12px;padding-right:12px}
    .rc-top-banner{width:calc(100% - 18px);margin-top:10px}
}
