/* Targeted host fixes: certificates, booking scrollbar and footer only. */
/* Certificate card: icon and heading on the same row, body spans the full width. */
.cert-conditions .certificate-guide-card {
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  column-gap:16px;
  row-gap:14px;
  align-content:start;
}
.cert-conditions .certificate-guide-card > .guide-icon {
  grid-column:1;
  grid-row:1;
  margin:0;
  align-self:center;
}
.cert-conditions .certificate-guide-card > h3 {
  grid-column:2;
  grid-row:1;
  margin:0;
  align-self:center;
  min-width:0;
  line-height:1.3;
}
.cert-conditions .certificate-guide-card > p,
.cert-conditions .certificate-guide-card > .erip-steps {
  grid-column:1 / -1;
  min-width:0;
}
.cert-conditions .certificate-guide-card > p + p {margin-top:0;}
/* Прокрутка внутри модального окна заявки */
.booking-dialog:not(.nk-profile) {
    overflow: hidden !important;
    max-height: min(92dvh, 850px);
    border-radius: 24px;
}

/* Прокручивается форма, а не dialog */
.booking-dialog:not(.nk-profile) > .booking-form {
    box-sizing: border-box;
    max-height: min(92dvh, 850px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9ebfb3 #f4f9f6;
}

/* Chrome, Edge, Safari */
.booking-dialog:not(.nk-profile) > .booking-form::-webkit-scrollbar {
    width: 7px;
}

.booking-dialog:not(.nk-profile) > .booking-form::-webkit-scrollbar-track {
    background: #f4f9f6;
    border-radius: 20px;
}

.booking-dialog:not(.nk-profile) > .booking-form::-webkit-scrollbar-thumb {
    background: #9ebfb3;
    border-radius: 20px;
}
/* Redistribute columns with less blank space on wide screens. */
@media (min-width:901px) {
  .site-footer .footer-grid {
    grid-template-columns:minmax(0,1.05fr) minmax(0,.70fr) minmax(0,1.15fr);
    gap:clamp(28px,4vw,70px);
    padding-bottom:40px;
  }
  .site-footer .footer-grid > :first-child {max-width:330px;}
  .site-footer .footer-grid > :last-child {max-width:430px;}
}
@media (max-width:900px) and (min-width:721px) {
  .site-footer .footer-grid {
    grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1.1fr);
    gap:22px;
    padding-bottom:35px;
  }
}

/* Сбалансированный футер */

.site-footer {
    padding-top: 52px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.75fr 1fr;
    column-gap: clamp(32px, 5vw, 90px);
    padding-bottom: 48px;
    align-items: start;
}

.site-footer .footer-about {
    max-width: 360px;
}

.site-footer .footer-about .footer-hours {
    margin-top: 30px;
    line-height: 1.7;
}

.site-footer .footer-bottom {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Планшеты */
@media (max-width: 900px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 0.65fr 1fr;
        column-gap: 24px;
    }
}

/* Мобильные */
@media (max-width: 720px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
        padding-bottom: 36px;
    }

    .site-footer .footer-about .footer-hours {
        margin-top: 20px;
    }
}
