
/* Scoped: never modifies existing card grid, media, pricing or purchase actions. */
#products .homeReviewSlot{display:none;min-width:0;margin:0 0 13px}
#products .homeReviewSlot.ready{display:block}
#products .homeReviewTrigger{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:28px;padding:0;border:0;background:none;color:#dce5e9;font:inherit;text-align:left;cursor:pointer;white-space:nowrap}
#products .homeReviewTrigger:hover .homeReviewCount{text-decoration:underline;color:#fff}
#products .homeReviewTrigger:focus-visible{outline:2px solid #ef2728;outline-offset:4px;border-radius:3px}
.homeReviewStars{display:inline-flex;gap:1px;align-items:center;line-height:1;flex-shrink:0}
.homeReviewStar{position:relative;display:inline-block;font-size:17px;line-height:1;letter-spacing:0;color:#45535c}
.homeReviewStarFill{position:absolute;inset:0 auto auto 0;display:block;overflow:hidden;white-space:nowrap;color:#ffbd4b;line-height:1}
.homeReviewAverage{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.homeReviewCount{font-size:12px;color:#9baab3}
.homeReviewArrow{font-size:16px;color:#9baab3}

/* REVIEWS_OPEN_ANIMATION_V1 */
.homeReviewOverlay:not([hidden]){
  animation:schoolModalShadeIn .22s ease-out both;
}
.homeReviewOverlay:not([hidden]) .homeReviewDialog{
  animation:schoolModalPanelIn .26s cubic-bezier(.2,.75,.25,1) both;
}
@media(prefers-reduced-motion:reduce){
  .homeReviewOverlay:not([hidden]),
  .homeReviewOverlay:not([hidden]) .homeReviewDialog{
    animation:none!important;
  }
}

.homeReviewOverlay[hidden]{display:none!important}
.homeReviewOverlay{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(0,4,7,.82);backdrop-filter:blur(8px)}
.homeReviewDialog{position:relative;display:block;width:min(820px,calc(100vw - 56px));max-height:min(820px,calc(100dvh - 56px));overflow:hidden;border:1px solid rgba(122,154,168,.35);border-radius:22px;background:linear-gradient(180deg,#0b1b22,#071116);box-shadow:0 30px 90px rgba(0,0,0,.58);color:#f5f0e7;font-family:Inter,"Segoe UI",Arial,sans-serif}
.homeReviewScroll{max-height:min(820px,calc(100dvh - 56px));overflow-y:auto;padding:48px 54px 42px;color-scheme:dark;overscroll-behavior:contain}
.homeReviewClose{position:absolute;z-index:2;right:18px;top:16px;width:42px;height:42px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(7,17,22,.82);color:#fff;font-size:29px;line-height:36px;cursor:pointer}
.homeReviewEyebrow{display:inline-block;padding:5px 12px;border-radius:999px;background:#b82229;color:#f5f0e7;font-size:11px;letter-spacing:.05em}
.homeReviewTitle{font-size:48px;line-height:1;font-weight:700;margin:12px 0 8px;text-transform:none}
.homeReviewTitle .productEmoji{font-size:35px;line-height:1;vertical-align:.055em;font-weight:400}
.homeReviewSubtitle{font-size:16px;font-weight:800;line-height:1.65;color:#b8c5cb;margin:0 0 12px}
.homeReviewSummary{display:flex;align-items:center;gap:14px;margin:0 0 24px}
.homeReviewSummaryNumber{font-size:38px;font-weight:900}
.homeReviewSummaryText{font-size:12px;color:#9daeb6;margin-top:5px}
.homeReviewItem{padding:16px;margin-top:13px;background:#101f28;border:1px solid #253944;border-radius:12px}
.homeReviewItemHead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.homeReviewAuthor{font-size:14px;font-weight:800}
.homeReviewDate{color:#8c9da6;font-size:11px;margin-top:4px}
.homeReviewText{white-space:pre-wrap;overflow-wrap:anywhere;color:#d3dde1;font-size:14px;line-height:1.6;margin-top:12px}
@media(max-width:900px){.homeReviewOverlay{padding:0;align-items:stretch}.homeReviewDialog{width:100%;height:100%;max-height:100%;border:0;border-radius:0}.homeReviewScroll{height:100%;max-height:none;padding:72px 22px 30px}.homeReviewClose{position:fixed;right:16px;top:16px}.homeReviewTitle{font-size:38px}.homeReviewTitle .productEmoji{font-size:30px}.homeReviewSubtitle{font-size:17px}}
@media(max-width:700px){.homeReviewTitle{font-size:clamp(28px,8vw,38px)}.homeReviewTitle .productEmoji{font-size:28px}#products .homeReviewTrigger{gap:6px}.homeReviewCount{font-size:11px}}
@media(max-width:360px){#products .homeReviewTrigger{gap:4px}.homeReviewStar{font-size:15px}.homeReviewCount{font-size:10px}}


/* school-home-reviews-polish-v2: scoped typography, spacing and course accent */
.homeReviewDialog{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:400}
.homeReviewEyebrow{font-weight:400;line-height:1.3;text-transform:uppercase}
.homeReviewTitle{display:block;font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:48px!important;line-height:1.1!important;font-weight:700!important;letter-spacing:-.025em!important;margin:16px 0 8px!important;text-transform:none!important;overflow-wrap:anywhere}
.homeReviewTitle .productAccent{color:#ef2728!important}
.homeReviewTitle .productEmoji{display:inline-block;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-size:35px!important;line-height:1!important;vertical-align:.055em!important;font-weight:400!important;letter-spacing:0!important;margin-right:0}
.homeReviewSubtitle{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px!important;font-weight:800!important;line-height:1.55!important;margin:0 0 17px!important}
.homeReviewSummary{margin:0 0 24px}
.homeReviewItem{font-family:Inter,"Segoe UI",Arial,sans-serif}
.homeReviewAuthor{font-weight:800}
@media(max-width:900px){.homeReviewTitle{font-size:38px!important}.homeReviewTitle .productEmoji{font-size:30px!important}}
@media(max-width:700px){.homeReviewTitle{font-size:clamp(28px,8vw,38px)!important}.homeReviewTitle .productEmoji{font-size:28px!important}}

/* school-reviews-tuning-v3: align review heading with product detail modal */
.homeReviewDialog .homeReviewTitle{font-size:50px!important;line-height:1!important;margin:12px 0 8px!important}
@media(max-width:900px){.homeReviewDialog .homeReviewTitle{font-size:38px!important}}
@media(max-width:700px){.homeReviewDialog .homeReviewTitle{font-size:clamp(28px,8vw,38px)!important}}

/* school-home-reviews-match-cabinet-v4 */
.homeReviewDialog .homeReviewTitle {
    font-family: Inter,"Segoe UI",Arial,sans-serif!important;
    font-size:48px!important;
    line-height:1!important;
    font-weight:700!important;
    letter-spacing:normal!important;
    margin:12px 0 8px!important;
}
.homeReviewDialog .homeReviewSubtitle {
    font-family:Inter,"Segoe UI",Arial,sans-serif!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.65!important;
    margin:0 0 12px!important;
}
.homeReviewDialog .homeReviewSummary {
    margin:0 0 24px!important;
}
.homeReviewIdentity {
    display:flex;
    align-items:baseline;
    gap:12px;
    flex-wrap:wrap;
    min-width:0;
}
.homeReviewIdentity .homeReviewDate {
    margin:0!important;
    font-size:11px;
    white-space:nowrap;
    color:#8c9da6;
}
@media(max-width:900px) {
    .homeReviewDialog .homeReviewTitle {
        font-size:38px!important;
    }
    .homeReviewDialog .homeReviewSubtitle {
        font-size:17px!important;
    }
}
@media(max-width:700px) {
    .homeReviewDialog .homeReviewTitle {
        font-size:clamp(28px,8vw,38px)!important;
    }
}

/* school-home-reviews-stars-alignment-v5 */

/* Звёзды и подпись — как в личном кабинете */
.homeReviewDialog .homeReviewSummary .homeReviewStars {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 1px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
}

.homeReviewDialog .homeReviewSummary .homeReviewStars > span {
    font-size: 17px !important;
    line-height: 1 !important;
}

.homeReviewDialog .homeReviewSummary .homeReviewSummaryText {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* school-home-review-stars-final-v6 */

/* Общий рейтинг: выравнивание звёзд */
.homeReviewDialog .homeReviewSummary .homeReviewStars {
    position: relative !important;
    top: -2px !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.homeReviewDialog .homeReviewSummary .homeReviewStars > span,
.homeReviewDialog .homeReviewSummary .homeReviewStars > span > span {
    font-size: 17px !important;
    line-height: 1 !important;
}

/* Звёзды отдельных отзывов */
.homeReviewDialog .homeReviewCard .homeReviewStars,
.homeReviewDialog .homeReviewCard .homeReviewStars > span {
    font-size: 17px !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}

/* school-home-review-item-stars-v7 */
.homeReviewDialog .homeReviewItemStars {
    display:inline-block;
    font-family:Inter,"Segoe UI",Arial,sans-serif;
    font-size:17px!important;
    font-weight:400!important;
    line-height:1!important;
    letter-spacing:1px!important;
    color:#ffbd4b!important;
    white-space:nowrap!important;
    flex-shrink:0;
}

/* school-home-review-card-spacing-v8 */
.homeReviewDialog .homeReviewItem .homeReviewText {
    margin-top:16px!important;
}


/* Верхняя строка только карточки #ТебеРешать */
#decisions .tebeCardHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
}

#decisions .tebeCardHeader .badge {
    flex-shrink: 0;
}

#decisions .tebeCardHeader .tebePublicStart {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

#decisions .tebeCardHeader .tebePublicStart[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    #decisions .tebeCardHeader {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    #decisions .tebeCardHeader .tebePublicStart {
        text-align: left;
    }
}


/* Отступ между характеристиками и стоимостью #ТебеРешать */
#decisions .bottom {
    margin-top: 16px;
}


/* Стандартные отступы характеристик и стоимости */

#decisions .bottom {
    margin-top: 22px !important;
}

/* Дополнительный воздух между плашкой и датой на телефонах */
@media (max-width: 700px) {
    #decisions .tebeCardHeader {
        row-gap: 16px !important;
    }
}


#decisions .productStats {
    margin-bottom: 24px !important;
}
#decisions .bottom {
    margin-top: 0 !important;
}


/* Compact, locked 36x36 SVG action: overrides global school button rules. */
.bankCourse .info h2{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:0 .14em!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
}
.bankCourse a.bankCoursePageLinkV1{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
@media(max-width:600px){
}
@media(prefers-reduced-motion:reduce){}


.bankCourse .info h2 button.bankInfoTiny.bankDetail {
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(195,215,225,.55) !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #d6e1e7 !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease !important;
}

.bankCourse .info h2 button.bankInfoTiny.bankDetail svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  flex: none !important;
  pointer-events: none !important;
}

@media (hover:hover) {
  .bankCourse .info h2 button.bankInfoTiny.bankDetail:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #ef3038 !important;
    box-shadow: 0 0 7px rgba(239,48,56,.16) !important;
    filter: none !important;
    transform: translateY(-2px) !important;
  }
}

.bankCourse .info h2 button.bankInfoTiny.bankDetail:focus-visible {
  outline: 2px solid #ef3038 !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion:reduce) {
  .bankCourse .info h2 button.bankInfoTiny.bankDetail {
    transition: none !important;
  }
}


.bankCourse .info h2 button.bankInfoTiny.bankDetail {
    margin-left: 5px !important;
}


html body button.schoolInfoMini.productDetail,
html body button.schoolInfoMini.productDetail:hover,
html body button.schoolInfoMini.productDetail:active,
html body button.schoolInfoMini.productDetail:focus {
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 0 0 5px !important;
  border: 1px solid rgba(195,215,225,.55) !important;
  border-radius: 50% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #d6e1e7 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease !important;
}

html body button.schoolInfoMini.productDetail svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  flex: none !important;
  pointer-events: none !important;
}

@media (hover:hover) {
  html body button.schoolInfoMini.productDetail:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #ef3038 !important;
    box-shadow: 0 0 7px rgba(239,48,56,.16) !important;
    transform: translateY(-2px) !important;
  }
}

html body button.schoolInfoMini.productDetail:focus-visible {
  outline: 2px solid #ef3038 !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion:reduce) {
  html body button.schoolInfoMini.productDetail {
    transition: none !important;
  }
}


/* Единый интервал между названием курса и иконкой. */
html body button.bankInfoTiny.bankDetail,
html body button.schoolInfoMini.productDetail {
    margin-left: 5px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Новые иконки не должны дополнительно отталкиваться
   от названия курса внешними правилами. */
html body button.schoolInfoMini.productDetail {
    position: static !important;
    float: none !important;
    transform-origin: center !important;
}


/* Выравнивание трёх иконок по образцу Б’АНК */
html body .productCourse .info h2 button.schoolInfoMini.productDetail {
    margin-left: 10px !important;
    margin-right: 0 !important;
}
