/* Наверх: градиент как у шапки */
.back-to-top{
  position:fixed;
  z-index:1025;
  right:max(1rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
  left:auto;
  bottom:max(1rem, env(safe-area-inset-bottom, 0px));
  width:48px;
  height:48px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(128,21,45,.72) 0%, rgba(82,27,24,.72) 100%);
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  box-shadow:var(--shadow);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .4s ease, visibility .4s ease, transform .4s ease, filter .28s ease;
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.back-to-top:hover{
  filter:brightness(1.06);
}
.back-to-top:focus{
  outline:none;
}
.back-to-top:focus-visible{
  outline:2px solid rgba(255,255,255,.55);
  outline-offset:3px;
}
.back-to-top svg{
  width:22px;
  height:22px;
  display:block;
}
@media (max-width: 991.98px){
  .back-to-top{
    display:none !important;
  }
}
/* Мобайл, тариф: к первому разделу «Договоры…» при открытом разделе и скролле */
@media (min-width: 992px){
  .tariff-mob-to-first{
    display:none !important;
  }
}
@media (max-width: 991.98px){
  .tariff-mob-to-first{
    position:fixed;
    z-index:1025;
    right:max(1rem, calc(var(--bs-gutter-x, 1.5rem) * 0.5));
    left:auto;
    bottom:max(1rem, env(safe-area-inset-bottom, 0px));
    width:38px;
    height:38px;
    padding:0;
    display:grid;
    place-items:center;
    border:0;
    border-radius:var(--radius);
    background:linear-gradient(180deg, rgba(64, 36, 46, 0.88) 0%, rgba(128, 21, 45, 0.88) 100%);
    color:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(10px);
    transition:opacity .4s ease, visibility .4s ease, transform .4s ease, filter .28s ease;
  }
  .tariff-mob-to-first.is-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }
  .tariff-mob-to-first:hover{
    filter:brightness(1.05);
  }
  .tariff-mob-to-first:focus{
    outline:none;
  }
  .tariff-mob-to-first:focus-visible{
    outline:2px solid rgba(255,255,255,.55);
    outline-offset:3px;
  }
  .tariff-mob-to-first svg{
    width:17px;
    height:17px;
    display:block;
  }
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){
  .tariff-mob-to-first{
    transition:opacity .15s ease, visibility .15s ease;
  }
  .tariff-mob-to-first.is-visible{
    transform:none;
  }
}
@media (prefers-reduced-motion: reduce){
  .back-to-top{
    transition:opacity .15s ease, visibility .15s ease;
  }
  .back-to-top.is-visible{
    transform:none;
  }
}

.section-services{
  background:#fff;
  color:var(--text);
}
#services.section-services{
  /* Нативный переход к #services: чуть больше прокрутки, чтобы тень hero был пройден */
  scroll-margin-top:0.5rem;
}
@media (max-width: 991.98px){
  .section-services{
    padding-top:3.25rem;
  }
  .section-services .section-head{
    margin-bottom:1.4rem;
  }
  .section-services .row.g-4.g-lg-5{
     --bs-gutter-y:2.35rem;
  }
  .section-services .service-card{
    padding:.12rem 0;
  }
  .section-services .service-divider{
    margin:.55rem 0 .6rem;
  }
  .section-services .service-list--arrows{
    gap:.2rem;
  }
  .section-services .service-list--arrows li{
    gap:.32rem;
    margin:.14rem 0;
  }
}

.service-card{
  background:transparent;
  border:0;
  padding:.15rem 0;
  display:block;
}

.section-contacts{
  background:#fafbfc;
  border-top:1px solid var(--border);
}
.contact-card{
  background:#fff;
  border:1px solid var(--border);
  padding:1.6rem 1.4rem;
}
.contact-title{
  font-size:1.35rem;
  font-weight:600;
  margin:0;
  line-height:1.15;
}
.contact-title--thin{
  font-weight:300;
}
.contact-subtitle{
  margin-top:.55rem;
  color:var(--text);
}
.contact-features{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:.55rem;
}
.contact-features li{
  display:flex;
  gap:.55rem;
  align-items:flex-start;
}
.contact-features svg{
  width:18px;
  height:18px;
  color:var(--brand);
  margin-top:.12rem;
  flex:0 0 auto;
}
.worktime__k{
  display:inline-block;
  min-width:74px;
  font-weight:600;
  color:rgba(15,16,18,.88);
}
.contact-address{
  display:flex;
  align-items:flex-start;
  gap:.35rem;
  text-decoration:none;
  color:var(--text);
  transition:color .2s ease;
}
.contact-address__text{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  min-width:0;
  flex:1 1 auto;
}
.contact-address__street{
  display:block;
}
.contact-address:hover{
  color:var(--accent);
  text-decoration:none;
}
.contact-address:focus-visible{
  text-decoration:none;
}
.contact-address svg{
  width:24px;
  height:24px;
  color:var(--brand);
}
.contact-address-group{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.contact-address-note{
  margin:0;
  line-height:1.35;
}
.contact-tel-mail{
  display:grid;
  gap:.55rem;
}
.contact-tel-mail__row{
  display:flex;
  align-items:center;
  gap:.55rem;
}
.contact-tel-mail__row:last-child{
  justify-content:flex-end;
}
.contact-tel-mail__row svg{
  width:18px;
  height:18px;
  color:var(--brand);
  flex:0 0 auto;
}
.contact-tel-mail__link{
  color:var(--text);
  text-decoration:none;
  font-weight:500;
  transition:color .2s ease;
}
.contact-tel-mail__row:last-child .contact-tel-mail__link{
  text-align:right;
}
.contact-tel-mail__link:hover{
  color:var(--accent);
}
@media (min-width: 992px){
  .contact-tel-mail{
    grid-template-columns:1fr 1fr;
    column-gap:1.25rem;
    row-gap:.55rem;
    align-items:start;
  }
}
@media (max-width: 991.98px){
  html:has(body.page-home.has-hero-section),
  body.page-home.has-hero-section{
    background-color:var(--hero-top);
  }
  #notary-odintsova{
    scroll-margin-top:3.5rem;
  }
  .section-contacts .contact-features{
    gap:.32rem;
  }
  .section-contacts .contact-features li{
    gap:.38rem;
  }
  .contact-address > i,
  .contact-address > svg{
    line-height:0;
    display:block;
    flex-shrink:0;
    align-self:flex-start;
  }
  .contact-address i svg{
    display:block;
  }
  .contact-address svg{
    width:18px;
    height:18px;
    display:block;
  }
  .contact-address__text{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:flex-start;
    column-gap:.55rem;
    row-gap:.15rem;
  }
  .contact-address__street{
    line-height:1.25;
    padding-top:0;
  }
  .contact-address-note{
    display:inline;
    padding-left:0;
  }
  .contact-tel-mail{
    grid-template-columns:1fr;
    gap:0.2rem;
  }
  .contact-tel-mail__row{
    display:block;
    width:100%;
  }
  .contact-tel-mail__row:last-child{
    justify-content:flex-start;
    margin-top:0;
  }
  .contact-tel-mail__row .contact-tel-mail__link{
    display:block;
    width:100%;
    text-align:left;
  }
  .contact-tel-mail__row:last-child .contact-tel-mail__link{
    text-align:left;
  }
}
.license{
  font-size:.82rem;
  color:rgba(15,16,18,.55);
}
.map-card{
  border:1px solid var(--border);
  background:#fff;
  overflow:hidden;
}
.map-card__canvas{
  width:100%;
  max-width:100%;
  height:min(420px, 60vh);
}

/* Footer */
.site-footer{
  background:linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  color:#fff;
  padding:3rem 0 2rem;
}
.footer-title{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  font-weight:600;
  letter-spacing:.01em;
  font-size:1.1rem;
}
.footer-title img{
  width:34px;
  height:34px;
  flex:0 0 34px;
  object-fit:contain;
}
.footer-title span{
  display:block;
  line-height:1.2;
}
.footer-links{
  display:grid;
  gap:.7rem;
}
.footer-links--contacts{
  gap:.38rem;
}
.footer-link{
  display:inline-flex;
  align-items:flex-start;
  gap:.55rem;
  color:rgba(255,255,255,.9);
  text-decoration:none;
  transition:color .2s ease;
}
.footer-link:hover{
  color:#fff;
}
.footer-nav-links{
  gap:.65rem;
  margin-top:.85rem;
}
.site-footer .footer-hover{
  opacity:.88;
  transition:opacity .2s ease, color .2s ease;
}
.site-footer .footer-hover:hover{
  opacity:1;
}
.site-footer .footer-privacy.footer-hover{
  opacity:.48;
}
.site-footer .footer-privacy.footer-hover:hover{
  opacity:.72;
  color:rgba(255,255,255,.72);
}
.footer-link svg{
  width:18px;
  height:18px;
  margin-top:.12rem;
  flex:0 0 auto;
}
.footer-address.footer-hover:hover{
  color:rgba(255,255,255,.98);
  text-decoration:none;
}
.footer-address.footer-hover:focus-visible{
  text-decoration:none;
}
.footer-address-block{
  display:grid;
  gap:.08rem;
  margin-top:.35rem;
}
.footer-address-line{
  display:flex;
  align-items:flex-start;
  gap:.38rem;
  color:rgba(255,255,255,.9);
}
.footer-address-line svg{
  width:16px;
  height:16px;
  margin-top:.12rem;
  flex:0 0 auto;
}
.footer-address-line span{
  line-height:1.3;
}
.footer-address-block .footer-muted{
  line-height:1.25;
  padding-left:calc(16px + .38rem);
}
.footer-muted{
  color:rgba(255,255,255,.72);
  font-size:.95rem;
}
.footer-muted svg{
  width:16px;
  height:16px;
  margin-right:.35rem;
  vertical-align:-2px;
}
.footer-meta{
  display:grid;
  gap:.45rem;
}
.footer-meta-col .footer-meta{
  gap:.2rem;
}
.footer-meta-col .footer-muted{
  line-height:1.35;
}
.footer-meta-col .footer-nav-links{
  margin-top:.4rem;
  gap:.45rem;
}
@media (max-width: 991.98px){
  .footer-meta-col{
    margin-bottom:1rem;
  }
  .footer-meta-col .footer-nav-links{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:.8rem;
  }
  .footer-meta-col .footer-nav-links .footer-link{
    white-space:nowrap;
  }
  .footer-links--contacts{
    gap:.2rem;
  }
  .footer-address-line svg{
    display:none;
  }
  .footer-address-block .footer-muted{
    padding-left:0;
  }
  .footer-address-block{
    gap:0;
    margin-top:.58rem;
    margin-bottom:.38rem;
  }
  .footer-mobile-actions{
    margin-top:.72rem;
  }
  .footer-mobile-action-btn{
    width:100%;
    justify-content:center;
    margin-top:0;
    background:transparent !important;
    color:#fff !important;
    border:1px solid rgba(255,255,255,.56) !important;
  }
  .footer-mobile-action-btn:hover,
  .footer-mobile-action-btn:focus-visible{
    background-color:#fff !important;
    border-color:#fff !important;
    color:var(--text) !important;
  }
}
@media (min-width: 992px){
  .footer-meta-col .footer-meta{
    padding-top:1.55rem;
  }
  .footer-meta-col .footer-meta.footer-meta--aligned{
    padding-top:1.3rem;
  }
}
.footer-actions{
  display:flex;
  flex-direction:column;
  gap:1.1rem;
}
.footer-actions__buttons{
  width:100%;
}
/* Hero и блок «Контакты»: на мобильных кнопки друг под другом на всю ширину колонки */
@media (max-width: 991.98px){
  .hero-cta{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch;
    width:100%;
    max-width:100%;
  }
  .hero-cta > .btn{
    width:100%;
    flex:none;
    justify-content:center;
  }
  #contacts .contact-card .d-grid{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch;
    width:100%;
    max-width:100%;
  }
  #contacts .contact-card .d-grid > .btn{
    width:100%;
    flex:none;
    justify-content:center;
  }
}
.site-footer .footer-actions .btn-rect{
  font-weight:300;
}
.footer-privacy{
  color:rgba(255,255,255,.48);
  text-decoration:underline;
  text-underline-offset:.2em;
  font-size:.82rem;
  font-weight:300;
  letter-spacing:.02em;
  transition:color .2s ease, opacity .2s ease;
}
.footer-privacy + .footer-privacy{
  margin-top:-.7rem;
}
.footer-privacy:hover{
  color:rgba(255,255,255,.72);
}
@media (min-width: 992px){
  .site-footer .footer-actions-col{
    display:flex;
    justify-content:flex-start;
    align-items:flex-start;
  }
  .site-footer .footer-actions{
    width:100%;
    max-width:min(20rem, 100%);
    align-items:stretch;
  }
}
.footer-bottom{
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.15);
}

/* Tariff page — таблицы и блоки ниже оглавления */
.tariff-table-wrap{
  padding-top:1.65rem;
  padding-bottom:2rem;
  overflow-x:hidden !important;
}
.tariff-cat-sub td{
  padding:.65rem 1rem;
  border:0;
  background:transparent;
  vertical-align:top;
}
.tariff-cat .tariff-cat__cell{
  background-color:#fff !important;
  color:var(--text) !important;
  font-size:1rem;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1.42;
  padding:1.38rem 1.1rem;
  border:0 !important;
  border-top:1px solid rgba(128,21,45,.28) !important;
  border-bottom:1px solid rgba(128,21,45,.28) !important;
  border-left:0 !important;
  border-right:0 !important;
  box-shadow:none;
  box-sizing:border-box;
  vertical-align:top;
}
.tariff-cat__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  margin:0;
  text-align:left;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  line-height:inherit;
  cursor:pointer;
}
.tariff-cat__label{
  display:block;
  flex:1 1 auto;
  transition:transform .18s ease;
  transform-origin:left center;
}
.tariff-cat__chevron{
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  width:2.25rem;
  height:2.25rem;
  border:0;
  border-radius:999px;
  background:transparent;
  font-size:1.62rem;
  line-height:1;
  color:var(--brand);
  position:relative;
  transition:transform .26s ease, background .2s ease, color .2s ease;
  opacity:1;
}
.tariff-cat__chevron::before{
  content:"+";
  display:block;
  transform:translateY(-1px);
}
.tariff-cat__chevron::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:999px;
  background:transparent;
  opacity:0;
  transform:scale(.82);
  transition:opacity .2s ease, transform .2s ease;
  z-index:-1;
}
.tariff-cat.is-open .tariff-cat__chevron{
  transform:rotate(45deg);
}
.tariff-cat.is-open .tariff-cat__chevron::before{
  content:"+";
}
.tariff-cat__toggle:hover .tariff-cat__chevron,
.tariff-cat__toggle:focus-visible .tariff-cat__chevron{
  background:linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  color:#fff;
}
.tariff-cat__toggle:hover .tariff-cat__chevron::after,
.tariff-cat__toggle:focus-visible .tariff-cat__chevron::after{
  opacity:1;
  transform:scale(1);
}
.tariff-cat__toggle:focus-visible{
  outline:2px solid rgba(128,21,45,.42);
  outline-offset:2px;
}
.tariff-cat__toggle:hover .tariff-cat__label,
.tariff-cat__toggle:focus-visible .tariff-cat__label{
  transform:scale(1.02);
}
/* Воздух под шапкой таблицы перед первым разделом */
.tariff-table tbody tr.tariff-cat:first-child .tariff-cat__cell{
  border-top:1px solid rgba(128,21,45,.28) !important;
}
/* Воздух перед каждым следующим заголовком раздела */
.tariff-table tbody tr.tariff-cat ~ tr.tariff-cat .tariff-cat__cell{
  border-top:1px solid rgba(128,21,45,.28) !important;
}
@media (min-width: 992px){
  .tariff-cat .tariff-cat__cell{
    background-color:#fff !important;
    color:var(--text) !important;
    border-color:var(--brand) !important;
  }
}
.tariff-cat__cell[id]{
  scroll-margin-top:5.75rem;
}
/* Якорь на строке: на мобильных ячейка «№» скрыта — id на <tr>, чтобы верх карточки был под фикс. шапкой */
.tariff-table tbody tr[id^="tariff-item-"]{
  scroll-margin-top:5.75rem;
}
#razmer-tarifa-2026{
  scroll-margin-top:5.75rem;
}
.tariff-download{
  margin-top:0;
  padding-bottom:.25rem;
}
.tariff-download .btn-equal{
  min-width:min(100%, 320px);
}

/* Тарифная таблица: выравнивание по верху, акценты как в PDF МГНП */
.tariff-table > :not(caption) > * > *{
  vertical-align:top;
}
.tariff-table.table-bordered > :not(caption) > * > *{
  border-left:0;
  border-right:0;
}
.tariff-table thead th,
.tariff-table thead td{
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  border-left:0 !important;
  border-right:0 !important;
  border-top:0 !important;
  border-bottom:1px solid var(--border) !important;
}
.tariff-table tbody td{
  font-size:.85rem;
}
.tariff-table tbody td[data-label="№"]{
  font-weight:600;
  white-space:nowrap;
}
.tariff-table tbody td[data-label="Действие"],
.tariff-table tbody td[data-label="Ситуация"]{
  font-weight:500;
}
.tariff-table tbody td[data-label="Федеральный тариф"]{
  font-weight:300;
}
.tariff-table tbody td[data-label="Региональный тариф"],
.tariff-table tbody td[data-label="Тариф"]{
  font-weight:300;
}
.tariff-table tbody td[data-label="Примечание"]{
  font-weight:300;
}
.tariff-table tbody td.is-collapsible{
  position:relative;
}
.tariff-cell__content{
  position:relative;
}
.tariff-table tbody td.is-collapsible .tariff-cell__content{
  position:relative;
  overflow:hidden;
  max-height:var(--tariff-collapse-max, 9rem);
}
.tariff-table tbody td.is-collapsible .tariff-cell__content::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2.3em;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.96) 78%);
}
.tariff-table tbody td.is-expanded .tariff-cell__content{
  max-height:none;
}
.tariff-table tbody td.is-expanded .tariff-cell__content::after{
  content:none;
}
.tariff-cell__toggle{
  margin-top:.38rem;
  border:0;
  background:transparent;
  padding:0;
  color:var(--brand);
  font-size:.8rem;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.25;
  cursor:pointer;
  transition:color .2s ease, opacity .2s ease;
}
.tariff-cell__toggle:hover,
.tariff-cell__toggle:focus-visible{
  color:var(--accent);
}

.tariff-num-inline{
  display:none;
}

/* Десктоп: шапка таблицы тарифов под сайт-хедером при скролле */
@media (min-width: 992px){
  .tariff-table thead{
    position:relative;
    z-index:1018;
  }
  .tariff-table thead th,
  .tariff-table thead td{
    position:relative;
    top:auto;
    z-index:1018;
    padding:.78rem 1rem;
    background-color:var(--bs-table-bg, #e9ecef);
    box-shadow:0 1px 0 var(--border);
    transition:background-color .2s ease, color .2s ease, border-color .2s ease;
  }
  .tariff-table tbody tr:not(.tariff-cat):not(.tariff-cat-sub) td{
    padding:.72rem 1rem;
  }
  .tariff-table thead.table-light th,
  .tariff-table thead.table-light td{
    background-color:#f8f9fa;
  }
  /* Зафиксированная шапка — те же оттенки и тень, что у thead до прокрутки */
  .tariff-table.is-head-stuck thead th,
  .tariff-table.is-head-stuck thead td{
    background-color:var(--bs-table-bg, #e9ecef) !important;
    color:var(--text);
    border-color:var(--border);
    letter-spacing:.05em;
    box-shadow:0 1px 0 var(--border);
  }
  .tariff-table.is-head-stuck thead.table-light th,
  .tariff-table.is-head-stuck thead.table-light td{
    background-color:#f8f9fa !important;
  }
  .tariff-head-fixed{
    position:fixed;
    z-index:1030;
    pointer-events:none;
    visibility:hidden;
    opacity:0;
    overflow:hidden;
    border-radius:0;
  }
  .tariff-head-fixed.is-visible{
    visibility:visible;
    opacity:1;
  }
  .tariff-head-fixed .tariff-table{
    margin:0;
    table-layout:fixed;
    width:100%;
    background:transparent;
    border-color:var(--border);
  }
  .tariff-head-fixed .tariff-table thead th,
  .tariff-head-fixed .tariff-table thead td{
    background-color:var(--bs-table-bg, #e9ecef) !important;
    color:var(--text) !important;
    border-color:var(--border) !important;
    letter-spacing:.05em;
    box-shadow:0 1px 0 var(--border);
  }
  .tariff-head-fixed .tariff-table thead.table-light th,
  .tariff-head-fixed .tariff-table thead.table-light td{
    background-color:#f8f9fa !important;
  }
}

@media (max-width: 991.98px){
  .tariff-table-wrap{
    margin-left:0;
    margin-right:0;
    overflow-x:hidden !important;
  }
  .tariff-table{
    width:100%;
    table-layout:fixed;
  }
  .tariff-table thead{
    display:none;
  }
  .tariff-table tbody tr{
    display:block;
    margin-bottom:.6rem;
    border:0;
    border-bottom:1px solid var(--border);
    background:#fff;
  }
  .tariff-table tbody tr:not(.tariff-cat):not(.tariff-cat-sub){
    border-bottom:0;
  }
  .tariff-table tbody tr.tariff-cat{
    border:0;
    margin-top:.9rem;
    margin-bottom:.15rem;
  }
  .tariff-table tbody tr.tariff-cat:first-child{
    margin-top:.2rem;
  }
  .tariff-table tbody tr.tariff-cat-sub{
    border:0;
    margin-top:0;
    margin-bottom:.55rem;
    background:transparent;
  }
  .tariff-table tbody tr.tariff-cat td{
    display:block;
    width:100%;
    border:0 !important;
    border-top:1px solid rgba(128,21,45,.28) !important;
    border-bottom:1px solid rgba(128,21,45,.28) !important;
    padding:.75rem .7rem .5rem;
  }
  .tariff-cat__chevron{
    width:2.05rem;
    height:2.05rem;
    font-size:1.38rem;
  }
  .tariff-cat .tariff-cat__cell{
    font-size:.75rem;
    letter-spacing:.09em;
    line-height:1.28;
  }
  .tariff-table tbody tr.tariff-cat:first-child .tariff-cat__cell,
  .tariff-table tbody tr.tariff-cat ~ tr.tariff-cat .tariff-cat__cell{
    border-top:1px solid rgba(128,21,45,.28) !important;
  }
  /* «Прочие нотариальные…» — выше блок заголовка раздела */
  tr.tariff-cat td#cat-prochie-deystviya.tariff-cat__cell{
    min-height:4.75rem;
    padding:1.05rem .8rem .75rem;
    font-size:.82rem;
    line-height:1.34;
    letter-spacing:.08em;
  }
  tr.tariff-cat td#cat-prochie-deystviya .tariff-cat__chevron{
    width:2.2rem;
    height:2.2rem;
    font-size:1.45rem;
  }
  /* У свёрнутых разделов снимаем нижнюю кромку (кроме «Прочие…»): #cat-prochie-deystviya на <td> — оставляем 1px снизу из правила tr.tariff-cat td */
  .tariff-table tbody tr.tariff-cat:not(.is-open) td:not(#cat-prochie-deystviya){
    border-bottom:0 !important;
  }
  .tariff-table tbody tr.tariff-cat-sub td{
    display:block;
    width:100%;
    border:0 !important;
    padding:.5rem .2rem .2rem;
  }
  .tariff-table tbody tr.tariff-cat-sub td::before{
    content:none;
  }
  .tariff-table tbody td{
    display:grid;
    grid-template-columns:minmax(0, 42%) 1fr;
    align-items:start;
    gap:.3rem .55rem;
    padding:.58rem .65rem;
    border:0;
    border-bottom:1px solid var(--border);
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .tariff-table tbody td:last-child{
    border-bottom:0;
  }
  .tariff-table tbody td::before{
    content:attr(data-label);
    font-weight:600;
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--muted);
  }
  .tariff-table tbody td[data-label="№"]{
    display:none !important;
  }
  .tariff-table tbody td[data-label="Действие"],
  .tariff-table tbody td[data-label="Ситуация"]{
    display:block;
    background-color:rgba(128,21,45,.08) !important;
    color:var(--text) !important;
    border-bottom:1px solid rgba(128,21,45,.2);
    padding:.62rem .75rem;
  }
  .tariff-table tbody td[data-label="Действие"]::before{
    content:none;
  }
  .tariff-table tbody td[data-label="Ситуация"]::before{
    content:none;
  }
  .tariff-table tbody td[data-label="Федеральный тариф"],
  .tariff-table tbody td[data-label="Региональный тариф"],
  .tariff-table tbody td[data-label="Тариф"]{
    font-weight:500;
  }
  .tariff-cell__toggle{
    margin-top:.35rem;
    letter-spacing:.06em;
    display:block;
    margin-left:0;
  }
  /* Моб.: «Федеральный тариф» и «Примечание» — не выше 400px до «Подробнее»; :not(.is-expanded) — чтоб «Свернуть» не ломал max-height */
  .tariff-table:not(.tariff-table--visit) tbody td[data-label="Федеральный тариф"].is-collapsible:not(.is-expanded) .tariff-cell__content,
  .tariff-table:not(.tariff-table--visit) tbody td[data-label="Примечание"].is-collapsible:not(.is-expanded) .tariff-cell__content{
    max-height:min(400px, var(--tariff-collapse-max, 400px)) !important;
  }
  .tariff-table tbody td.is-collapsible .tariff-cell__content,
  .tariff-table tbody td.is-collapsible .tariff-cell__toggle{
    grid-column:2;
  }
  .tariff-table tbody td.is-collapsible .tariff-cell__toggle{
    justify-self:start;
  }
  .tariff-num-inline{
    display:inline !important;
    font-weight:600;
    margin-right:.25em;
    color:inherit;
  }
  /*
    Mobile Safari: суммы вроде «10 000 000» в ячейках таблицы распознаются как телефон,
    оборачиваются в <a>, съезжают из колонки значения и выглядят как ссылки.
    Meta telephone=no на tariff.html отключает автоопределение; ниже — подстраховка.
  */
  .tariff-table tbody td a[x-apple-data-detectors]{
    color:inherit !important;
    -webkit-text-fill-color:inherit;
    font:inherit !important;
    letter-spacing:inherit;
    text-decoration:none !important;
    pointer-events:none;
  }
  /* низ раздела «Прочие…» (п. 87) при раскрытом аккордеоне: линия внизу карточки */
  #razmer-tarifa-2026 .tariff-table > tbody > tr:last-child {
    border-bottom: 0 !important;
    margin-bottom: 1.1rem;
  }
  #razmer-tarifa-2026 .tariff-table > tbody > tr:last-child > td:last-child {
    position: relative;
    z-index: 0;
  }
  #razmer-tarifa-2026 .tariff-table > tbody > tr:last-child > td:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(128, 21, 45, 0.4);
    pointer-events: none;
    z-index: 1;
  }
}
