/* Реестр Гарант — общий подвал. Отдельное пространство имён от старого V5. */
footer.rgf-footer {
  --rgf-ink: #f0f3ff;
  --rgf-muted: #b6c3dd;
  --rgf-line: #354562;
  background: #152440;
  color: var(--rgf-ink);
  margin: 0;
  padding: 42px 0 0;
  font: 400 14px/1.6 Manrope, Arial, sans-serif;
  text-align: left;
  position: relative;
}
.rgf-footer *, .rgf-footer *::before, .rgf-footer *::after { box-sizing: border-box; }
.rgf-footer [hidden] { display: none !important; }
.rgf-footer .rgf-shell { width: 100%; max-width: 1440px; padding: 0 32px; margin: 0 auto; }
.rgf-footer a { color: inherit; text-decoration: none; }
.rgf-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rgf-footer a:focus-visible, .rgf-footer summary:focus-visible, .rgf-footer input:focus-visible { outline: 3px solid #8d83d8; outline-offset: 5px; }
.rgf-footer p, .rgf-footer h2, .rgf-footer h3 { margin: 0; font-family: inherit; }
.rgf-footer .rgf-intro { display: grid; grid-template-columns: 1.15fr 1.1fr 1fr; gap: 48px; padding-bottom: 34px; }
.rgf-footer .rgf-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 750; line-height: 1.25; letter-spacing: -.04em; }
.rgf-footer .rgf-brand img { width: 44px; height: 44px; padding: 6px; background: #f0f3ff; border-radius: 5px; flex: none; }
.rgf-footer .rgf-brand small { display: block; margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--rgf-muted); }
.rgf-footer .rgf-identity>p { max-width: 290px; margin-top: 18px; color: var(--rgf-muted); }
.rgf-footer .rgf-next h2 { font-size: 28px; font-weight: 650; letter-spacing: -.04em; color: inherit; line-height: 1.25; }
.rgf-footer .rgf-next>p { margin-top: 8px; font-size: 13px; max-width: 340px; color: var(--rgf-muted); }
.rgf-footer .rgf-consult { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 11px 18px; background: #dce5ff; color: #172a50; margin-top: 18px; font-weight: 700; border: 1px solid #dce5ff; border-radius: 5px; min-height: 46px; }
.rgf-footer .rgf-contact { display: flex; flex-direction: column; align-items: flex-start; font-style: normal; border-left: 1px solid var(--rgf-line); padding-left: 32px; }
.rgf-footer .rgf-phone { font-size: 24px; line-height: 1.3; font-weight: 650; white-space: nowrap; letter-spacing: -.04em; }
.rgf-footer .rgf-email { font-size: 16px; margin-top: 9px; }
.rgf-footer .rgf-hours { margin-top: 10px; font-size: 12px; color: var(--rgf-muted); }
.rgf-footer .rgf-office { margin-top: 12px; font-size: 12px; }
.rgf-footer .rgf-navigation { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; border-top: 1px solid var(--rgf-line); padding: 28px 0; }
.rgf-footer summary { cursor: pointer; list-style: none; }
.rgf-footer summary::-webkit-details-marker { display: none; }
.rgf-footer .rgf-group>summary { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rgf-footer .rgf-group h3 { color: inherit; font-size: 15px; font-weight: 700; line-height: 1.45; }
.rgf-footer .rgf-group-no { display: none; }
.rgf-footer .rgf-toggle { margin-left: auto; font-size: 18px; line-height: 1; }
.rgf-footer details[open]>summary .rgf-toggle { transform: rotate(180deg); }
.rgf-footer ul { list-style: none; padding: 0; margin: 10px 0 0; }
.rgf-footer li { margin: 0; padding: 0; }
.rgf-footer li::before { display: none; }
.rgf-footer li>a { display: block; font-size: 13px; line-height: 1.5; padding: 7px 0; color: #c9d4eb; }
.rgf-footer .rgf-more { margin-top: 10px; }
.rgf-footer .rgf-more>summary { font-size: 12px; color: var(--rgf-muted); padding: 7px 0; }
.rgf-footer .rgf-more>summary span { margin-left: 7px; }
.rgf-footer .rgf-community { display: grid; grid-template-columns: 1fr 300px; gap: 40px; border-top: 1px solid var(--rgf-line); padding: 25px 0; }
.rgf-footer .rgf-social>p { color: var(--rgf-muted); font-size: 11px; margin-bottom: 10px; }
.rgf-footer .rgf-social nav { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.rgf-footer .rgf-social-link { display: inline-flex; align-items: center; min-height: 34px; font-size: 12px; }
.rgf-footer .rgf-regions>summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; padding: 8px 0; }
.rgf-footer .rgf-regions small { display: block; font-size: 11px; font-weight: 400; color: var(--rgf-muted); margin-top: 4px; }
.rgf-footer .rgf-region-body { max-height: 300px; overflow: auto; overscroll-behavior: contain; padding: 10px 12px; border: 1px solid var(--rgf-line); }
.rgf-footer .rgf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--rgf-line); padding: 20px 0; font-size: 11px; color: var(--rgf-muted); }
.rgf-footer .rgf-bottom nav { display: flex; gap: 24px; }
.rgf-footer .rgf-bottom a { display: inline-flex; align-items: center; min-height: 32px; }
.rgf-footer .rgf-top { gap: 12px; margin-right: 72px; }
@media(max-width:1100px) {
  .rgf-footer .rgf-intro { gap: 24px; }
  .rgf-footer .rgf-navigation { gap: 20px; }
  .rgf-footer .rgf-brand { font-size: 19px; }
  .rgf-footer .rgf-phone { font-size: 21px; }
}
@media(max-width:760px) {
  footer.rgf-footer { padding-top: 32px; }
  .rgf-footer .rgf-shell { padding: 0 20px; }
  .rgf-footer .rgf-intro { grid-template-columns: 1fr; gap: 24px; }
  .rgf-footer .rgf-contact { padding-left: 0; border-left: 0; }
  .rgf-footer .rgf-navigation { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rgf-footer .rgf-community { grid-template-columns: 1fr; gap: 20px; }
  .rgf-footer .rgf-bottom { flex-wrap: wrap; gap: 8px 24px; }
  .rgf-footer .rgf-bottom nav { flex-wrap: wrap; gap: 8px 20px; }
}
@media(max-width:480px) { .rgf-footer .rgf-navigation { grid-template-columns: 1fr; gap: 12px; } }

/* Графика маршрута и согласованный ритм четырёх колонок. */
footer.rgf-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,#7b8cb4 0 25%,#8d83d8 25% 50%,#bed0f4 50% 75%,#5e77ac 75%); }
.rgf-footer svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rgf-footer .rgf-route { display: flex; align-items: center; padding: 0; margin: 20px 0 0; list-style: none; gap: 0; }
.rgf-footer .rgf-route li { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; position: relative; }
.rgf-footer .rgf-route li:not(:last-child)::after { content: ''; display: block; flex: 1; margin: 0 9px; height: 1px; background: #596b94; }
.rgf-footer .rgf-route svg { width: 25px; height: 30px; flex: 0 0 25px; color: #b9b0ef; }
.rgf-footer .rgf-route span { font-size: 9px; line-height: 1.45; color: #d6dff1; }
.rgf-footer .rgf-route small { display: block; font-size: 8px; color: #aabbd8; margin-bottom: 2px; }
.rgf-footer .rgf-group-icon { width: 27px; height: 30px; flex: 0 0 27px; color: #b4a9ed; }
.rgf-footer .rgf-group h3 { font-size: 15px; letter-spacing: -.02em; }
.rgf-footer .rgf-toggle { color: #9daccc; font-weight: 400; }
.rgf-footer .rgf-group-body { padding-top: 6px; }
.rgf-footer .rgf-group-body>ul { margin: 0; }
.rgf-footer .rgf-group-body>ul>li>a { min-height: 35px; }
.rgf-footer .rgf-more, .rgf-footer .rgf-related { border-top: 1px solid #30415e; margin-top: 12px; padding-top: 4px; }
.rgf-footer .rgf-related>a { display: block; font-size: 12px; min-height: 34px; padding-top: 7px; color: var(--rgf-muted); }
.rgf-footer .rgf-region-body { background: #101e36; border-radius: 6px; }
.rgf-footer .rgf-consult:hover { background: #fff; text-decoration: none; }
.rgf-footer .rgf-brand:hover { text-decoration: none; }
.rgf-footer li>a:hover, .rgf-footer .rgf-social-link:hover { color: #fff; }

/* Итерация 3: видимые действия, город без выпадающего оверлея, состояния. */
.rgf-footer .rgf-toggle { display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; transition: transform .16s ease; }
.rgf-footer .rgf-toggle svg { width: 16px; height: 16px; }
.rgf-footer .rgf-price { display: block; width: fit-content; font-size: 12px; color: #c9d4eb; margin-top: 12px; min-height: 30px; }
.rgf-footer .rgf-price>span { margin-left: 12px; }
.rgf-footer .rgf-social nav { gap: 7px 16px; }
.rgf-footer .rgf-social-link { gap: 7px; min-height: 40px; }
.rgf-footer .rgf-social-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid #556588; border-radius: 5px; color: #dfd8ff; font-size: 10px; line-height: 1; font-weight: 650; }
.rgf-footer .rgf-city-search { padding: 8px 0 0; }
.rgf-footer .rgf-city-search label { display: block; color: #d2ddf4; font-size: 12px; margin-bottom: 7px; }
.rgf-footer .rgf-city-search input { width: 100%; height: 42px; padding: 9px 11px; border: 1px solid #64759a; border-radius: 4px; background: #1d3151; color: #fff; font: inherit; font-size: 16px; }
.rgf-footer .rgf-city-search input::placeholder { color: #b8c6e0; opacity: 1; }
.rgf-footer .rgf-city-status { font-size: 11px; color: var(--rgf-muted); min-height: 0; }
.rgf-footer .rgf-city-status:not(:empty) { margin-top: 7px; }
.rgf-footer .rgf-city-empty { font-size: 12px; color: #d6e1f6; padding: 12px 0; }
.rgf-footer .rgf-city-empty a { text-decoration: underline; }
.rgf-footer .rgf-region-body li>a { min-height: 38px; }
.rgf-footer [aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: #afa1e4; text-underline-offset: 6px; }
.rgf-footer .rgf-consult, .rgf-footer .rgf-social-mark, .rgf-footer li>a { transition: background-color .16s ease,color .16s ease,border-color .16s ease; }
.rgf-footer .rgf-social-link:hover .rgf-social-mark { background: #374565; border-color: #c3b8f3; }
.rgf-footer .rgf-route span { font-size: 10px; }
.rgf-footer .rgf-route small { font-size: 9px; }
@media(prefers-reduced-motion:reduce) {
  .rgf-footer *, .rgf-footer *::before, .rgf-footer *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Итерация 4: устойчивые колонки планшета и короткий, удобный подвал телефона. */
.rgf-footer .rgf-navigation { align-items: start; }
.rgf-footer .rgf-intro>* { min-width: 0; }
.rgf-footer .rgf-route { gap: 2px; }
.rgf-footer .rgf-route li { flex: 1 1 auto; }
.rgf-footer .rgf-route li:not(:last-child)::after { margin: 0 6px; min-width: 10px; }
.rgf-footer .rgf-route li:last-child { flex: 0 1 auto; }
.rgf-footer .rgf-route span { font-size: 11px; }
@media(min-width:761px) and (max-width:1100px) {
  .rgf-footer .rgf-shell { padding: 0 24px; }
  .rgf-footer .rgf-intro { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rgf-footer .rgf-identity { grid-column: 1; grid-row: 1 / 3; }
  .rgf-footer .rgf-contact { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .rgf-footer .rgf-next { grid-column: 2; grid-row: 2; }
  .rgf-footer .rgf-next h2 { font-size: 24px; }
  .rgf-footer .rgf-route { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 16px; }
  .rgf-footer .rgf-route li { flex: none; }
  .rgf-footer .rgf-route li:not(:last-child)::after { display: none; }
  .rgf-footer .rgf-route svg { width: 30px; height: 32px; flex-basis: 30px; }
  .rgf-footer .rgf-route small { display: inline; margin-right: 9px; }
  .rgf-footer .rgf-route span { font-size: 12px; }
  .rgf-footer .rgf-navigation { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 40px; }
  .rgf-footer .rgf-contact { align-self: start; }
  .rgf-footer .rgf-community { grid-template-columns: minmax(0,1fr) 250px; gap: 24px; }
}
@media(max-width:760px) {
  .rgf-footer .rgf-shell { padding: 0 20px; }
  .rgf-footer .rgf-intro { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .rgf-footer .rgf-identity { grid-row: 1; }
  .rgf-footer .rgf-contact { grid-row: 2; padding-bottom: 22px; border-bottom: 1px solid var(--rgf-line); }
  .rgf-footer .rgf-next { grid-row: 3; }
  .rgf-footer .rgf-identity>p { display: none; }
  .rgf-footer .rgf-brand { font-size: 23px; }
  .rgf-footer .rgf-brand small { font-size: 10px; }
  .rgf-footer .rgf-route { max-width: 410px; margin-top: 22px; }
  .rgf-footer .rgf-route span { font-size: 10px; }
  .rgf-footer .rgf-next h2 { font-size: 24px; }
  .rgf-footer .rgf-next>p { max-width: none; }
  .rgf-footer .rgf-phone { font-size: 26px; min-height: 36px; }
  .rgf-footer .rgf-email { margin-top: 3px; min-height: 38px; display: flex; align-items: center; }
  .rgf-footer .rgf-hours { margin-top: 3px; }
  .rgf-footer .rgf-office { margin-top: 5px; min-height: 35px; display: flex; align-items: center; }
  .rgf-footer .rgf-consult { width: 100%; margin-top: 16px; min-height: 48px; }
  .rgf-footer .rgf-price { margin-top: 6px; min-height: 40px; display: flex; align-items: center; }
  .rgf-footer .rgf-navigation { display: block; padding: 0; }
  .rgf-footer .rgf-group { border-bottom: 1px solid var(--rgf-line); }
  .rgf-footer .rgf-group>summary { min-height: 61px; gap: 12px; }
  .rgf-footer .rgf-group h3 { font-size: 15px; }
  .rgf-footer .rgf-group-body { padding: 0 0 20px 39px; }
  .rgf-footer .rgf-group-body>ul>li>a, .rgf-footer .rgf-more li>a { min-height: 44px; font-size: 13px; display: flex; align-items: center; }
  .rgf-footer .rgf-more>summary, .rgf-footer .rgf-related>a { min-height: 44px; display: flex; align-items: center; font-size: 12px; }
  .rgf-footer .rgf-community { border-top: 0; padding: 24px 0; gap: 24px; }
  .rgf-footer .rgf-social nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 16px; }
  .rgf-footer .rgf-social-link { min-height: 44px; gap: 6px; font-size: 11px; }
  .rgf-footer .rgf-social-mark { width: 24px; height: 26px; flex-shrink: 0; }
  .rgf-footer .rgf-regions>summary { min-height: 60px; padding: 0; }
  .rgf-footer .rgf-region-body { max-height: 340px; }
  .rgf-footer .rgf-region-body li>a { min-height: 44px; }
  .rgf-footer .rgf-bottom { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px 0 20px; }
  .rgf-footer .rgf-bottom>p { grid-row: 1; grid-column: 1; }
  .rgf-footer .rgf-top { grid-row: 1; grid-column: 2; min-height: 44px; }
  .rgf-footer .rgf-bottom nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 20px; }
  .rgf-footer .rgf-bottom nav>a { min-height: 40px; }
}
@media(max-width:360px) {
  .rgf-footer .rgf-shell { padding: 0 16px; }
  .rgf-footer .rgf-brand { font-size: 21px; }
  .rgf-footer .rgf-social nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rgf-footer .rgf-route { gap: 0; }
  .rgf-footer .rgf-route li { gap: 5px; }
  .rgf-footer .rgf-route svg { width: 22px; flex-basis: 22px; }
  .rgf-footer .rgf-route li:not(:last-child)::after { min-width: 5px; margin: 0 4px; }
}

@media(max-width:760px){.rgf-footer .rgf-phone,.rgf-footer .rgf-email,.rgf-footer .rgf-office,.rgf-footer .rgf-price,.rgf-footer .rgf-bottom nav>a{min-height:44px}.rgf-footer .rgf-route{justify-content:space-between;max-width:360px}.rgf-footer .rgf-route span{font-size:11px}.rgf-footer .rgf-route li{flex:1}.rgf-footer .rgf-route li:last-child{flex:0 0 auto}.rgf-footer .rgf-route li:not(:last-child)::after{margin:0 12px;min-width:15px}.rgf-footer .rgf-social-link{font-size:12px}}
