:root {
  --bg-white: #ffffff;
  --blue: #2696db;
  --bs-primary-rgb: 47, 142, 217;
  --bs-primary: #2f8ed9;
}

@font-face {
  font-family: "OpenSans";
  src:
    url("../fonts/OpenSans-Regular.woff2") format("woff2"),
    url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-display: swap;
}

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

@media screen and (min-width: 1921px) {
  html {
    zoom: 1.16;
  }
}

body {
  margin: 0;
  font-family: OpenSans, sans-serif;
  overflow-x: clip !important;
  max-width: 100%;
}

html:has(body.modal-open),
html:has(body.glightbox-open) {
  scrollbar-gutter: auto;
  overflow: hidden !important;
}

body.modal-open,
body.glightbox-open {
  overflow: clip !important;
}

html.glightbox-open {
  scrollbar-gutter: auto;
}

@supports (scrollbar-gutter: stable) {
  body.modal-open,
  body.modal-open > header.sticky-top {
    padding-right: 0 !important;
  }

  body.modal-open > header.sticky-top {
    margin-right: 0 !important;
  }
}

.btn-primary {
  --bs-btn-bg: #2f8ed9;
  --bs-btn-border-color: #2f8ed9;

  --bs-btn-hover-bg: #2678b8;
  --bs-btn-hover-border-color: #2678b8;

  --bs-btn-active-bg: #216aa3;
  --bs-btn-active-border-color: #216aa3;

  --bs-btn-disabled-bg: #2f8ed9;
  --bs-btn-disabled-border-color: #2f8ed9;
}

.text-dark-opacity {
  color: #333;
}



.bg-blue-10 {
  background-color: #2696db0d;
}


.bg-white-20 {
  background-color: #ffffff33;
}

.text-white-50 {
  color: #ffffff80 !important;
}

.bg-blurred {
  background: hsla(0, 0%, 100%, 0.08);
  backdrop-filter: blur(2px);
}

/* backdrop-filter makes .content its own stacking layer, so dropdowns inside it
   (z-index 1000) were painted under the footer that follows. Lift the layer. */
.content.bg-blurred {
  position: relative;
  z-index: 1;
}

.bg-dark-opacity {
  background-color: #3131310d;
}

.container {
  max-width: 1920px !important;
}

@media (max-width: 2400px) {
  .container {
    max-width: 1592px !important;
  }
}

@media (min-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 992px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

.top-bar {
  background: #2f8ed9;
}

.top-bar__menu a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  position: relative;
  transition: color 0.2s ease;
}

.top-bar__menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.top-bar__menu a.active::after {
  transform: scaleX(1);
}
@media (hover: hover) {
  .top-bar__menu a:hover::after {
    transform: scaleX(1);
  }
}

.top-bar__search input {
  color: #ffffff !important;
}

.top-bar__search input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.top-bar__menu a.active {
  border-bottom: none !important;
  text-decoration: none !important;
}

.top-bar__search img {
  filter: none;
}

.main-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-top: -80px;
}
.main-section > .hero-image,
.main-section > .main-content {
  grid-area: 1 / 1;
}

.main-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 40%) 30%, transparent 65%);
  pointer-events: none;
}

.main-content {
  padding-block: 6rem clamp(2.25rem, 6vw, 5rem);
}

.main-content :is(h1, p) {
  text-shadow:
    0 2px 12px rgb(0 0 0 / 45%),
    0 1px 2px rgb(0 0 0 / 35%);
}

.main-content h1 {
  max-width: 28ch;
  font-size: clamp(1.5rem, 2.5vw, 2.75rem);
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.main-content p {
  max-width: 48ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: balance;
}

#about-school .home-about-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: 76ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}

#about-school .home-about-more {
  min-height: 44px;
}

.enrollment-collage {
  grid-template-columns: 1fr 1fr;
}

.enrollment-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
@media (hover: hover) {
  .enrollment-shot:hover img {
    transform: scale(1.06);
  }
}

.enrollment-shot.s1 {
  grid-column: 1 / 3;
  aspect-ratio: 16 / 10;
}

.enrollment-shot.s2 {
  aspect-ratio: 16 / 11;
}

.enrollment-shot.s3 {
  aspect-ratio: 16 / 11;
}

@media (min-width: 1200px) {
  .enrollment-collage {
    position: sticky;
    top: 120px;
  }
}

@media (max-width: 1200px) {
  .profile-sidebar .list-group-item span {
    display: none !important;
  }
}

.lunch-row {
  background-color: #eeb8230d !important;
}

.swiper-button-prev,
.swiper-button-next {
  top: 10% !important;
  width: 50px !important;
  height: 50px !important;
  background-color: #4fca2d !important;
  border-radius: 50% !important;
  color: #fff;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  will-change: transform;
}

.swiper-button-prev {
  left: -4% !important;
}

.swiper-button-next {
  right: -4% !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: #fff;
  font-size: 22px !important;
}
@media (hover: hover) {
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    transform: scale(1.12) translateY(-2px);
  }
}

.swiper-button-prev:active,
.swiper-button-next:active {
  transform: scale(1.04);
}

.main-section-btn-prev {
  top: 55% !important;
  left: 8% !important;
}

.main-section-btn-next {
  top: 55% !important;
  right: 8% !important;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 40px !important;
  flex-direction: row;
  gap: 15px;
}

.swiper-pagination-bullet {
  width: 12px !important;
  height: 8px !important;
  border-radius: 100% !important;
  opacity: 1 !important;
  background-color: #4fca2d33 !important;
  border: none !important;
}

.swiper-pagination-bullet-active {
  width: 140px !important;
  height: 8px !important;
  background: #4fca2d !important;
  border-radius: 12px !important;
}

.gallery-tab.active {
  color: #0d6efd !important;
  font-weight: 700 !important;
}

.gallery-img {
  aspect-ratio: 4 / 3;
}

.footer-columns {
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.footer-columns > * {
  min-width: 0;
}

.footer-brand,
.footer-contacts {
  grid-column: 1 / -1;
}

.education-footer .footer-menu ul {
  align-items: flex-start;
  text-align: left !important;
  gap: 0.4rem !important;
}

.education-footer .footer-menu a {
  font-size: 0.9375rem !important;
  line-height: 1.6;
}

.education-footer .footer-contacts address {
  width: 100%;
  font-style: normal;
}

.education-footer .footer-contacts address > div > div {
  min-width: 0;
}

.education-footer .footer-contacts a {
  overflow-wrap: anywhere;
}

.education-footer .footer-border-top {
  border-color: #249fdd26;
}

.education-footer a::after {
  background-color: #249fdd;
}
@media (hover: hover) {
  .education-footer a:hover {
    color: #167caf !important;
  }
}

.education-footer :is(a, button):focus-visible {
  outline: 3px solid #249fdd66;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 991.98px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .footer-brand,
  .footer-contacts {
    grid-column: 1;
    width: min(100%, 360px);
  }
  .education-footer .footer-brand p {
    max-width: none;
    text-wrap: balance;
  }
}

@media (min-width: 992px) {
  .education-footer .footer-contacts a[href^="mailto:"] {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .footer-columns {
    grid-template-columns: minmax(0, 240px) repeat(3, max-content) max-content;
    gap: clamp(1rem, 2.5vw, 2.5rem);
  }

  .footer-brand,
  .footer-contacts {
    grid-column: auto;
  }

  .footer-contacts {
    justify-self: end;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .education-footer a,
  .education-footer a::after,
  .education-footer address img {
    transition: none;
  }
  @media (hover: hover) {
    .education-footer address:hover img {
      transform: none;
    }
  }
}

.footer-logo {
  max-width: 300px;
}

@media (max-width: 767.98px) {
  .education-footer .footer-columns {
    justify-items: stretch;
    gap: 0.75rem;
  }
  .education-footer :is(.footer-brand, .footer-contacts) {
    width: 100%;
  }
  .education-footer .footer-brand p {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.55;
    text-wrap: pretty;
  }
  .education-footer .footer-menu:not(.footer-menu-extra) {
    display: block !important;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.875rem;
    background: var(--bs-body-bg, #fff);
  }
  .education-footer .footer-menu-toggle {
    min-height: 44px;
    border-radius: inherit;
  }
  .education-footer .footer-menu-chevron {
    transition: transform 0.2s ease;
  }
  .education-footer .footer-menu-toggle[aria-expanded="true"] .footer-menu-chevron {
    transform: rotate(180deg);
  }
  .education-footer .footer-menu ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.75rem !important;
    padding: 0 1rem 0.5rem;
  }
  .education-footer .footer-menu li {
    min-width: 0;
  }
  .education-footer .footer-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.5rem;
    font-size: 0.875rem !important;
    overflow-wrap: anywhere;
  }
  .education-footer .footer-contacts {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.875rem;
    background: var(--bs-body-bg, #fff);
  }
  .education-footer .footer-contacts h5 {
    font-size: 1rem !important;
  }
  .education-footer .footer-contacts a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
  }
  .education-footer .footer-contacts address span {
    font-size: 0.8125rem !important;
    line-height: 1.5;
  }
  .education-footer .footer-accessibility > div:first-child {
    gap: 0.375rem !important;
  }
  .education-footer .footer-accessibility > div:first-child span {
    font-size: 0.875rem !important;
  }
  .education-footer .footer-accessibility .scale-widget {
    min-height: 44px;
  }
  .education-footer .footer-accessibility .scale-indicator {
    min-width: 3rem;
  }
  .education-footer .footer-accessibility :is(.scale-action-btn, .scale-reset-btn) {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
  .education-footer .footer-platform p {
    font-size: 0.8125rem !important;
  }
  @media (prefers-reduced-motion: reduce) {
    .education-footer .footer-menu-chevron {
      transition: none;
    }
  }
}
.footer-border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (hover: hover) {
  footer a:hover {
    color: #2696db !important;
    text-decoration: underline;
  }
}

footer address img {
  transition:
    transform 0.25s ease,
    filter 0.3s ease;
}
@media (hover: hover) {
  footer address:hover img {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%);
  }
}

#fontSlider {
  accent-color: #0d6efd;
}

.mobile-menu.offcanvas {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 9999;
}

.mobile-menu__link {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}
@media (hover: hover) {
  .mobile-menu__link:hover {
    background: rgba(0, 0, 0, 0.04);
  }
}

.mobile-menu__link.active {
  background: rgba(38, 150, 219, 0.1);
  color: #0b4f7d;
}

#events .swiper-wrapper {
  align-items: stretch !important;
}

#events .swiper-slide {
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-self: stretch !important;
}

#events .swiper-slide > img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

#events .swiper-slide > .p-3.shadow.rounded {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#events .swiper-slide > .p-3.shadow.rounded > div:last-child {
  margin-top: auto;
}

.schedule-filters {
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.schedule-label {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.schedule-select {
  height: 42px;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 6px;
  background: #fff;
}

.schedule-select:focus {
  border-color: rgba(38, 150, 219, 0.35);
}

.schedule-head {
  justify-content: space-between;
  padding: 10px 0 12px;
}

.schedule-arrow {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(38, 150, 219, 0.25);
  background: #fff;
  color: #2696db;
  font-size: 18px;
  line-height: 1;
}

.schedule-view {
  font-size: 12px;
}

.schedule-view-btn {
  border: 0;
  background: transparent;
  color: #111827;
  padding: 4px 0;
  opacity: 0.7;
}

.schedule-view-btn.active {
  opacity: 1;
  color: #2696db;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.time-cell {
  min-width: 120px !important;
}

.time-main {
  color: #111827;
}

.time-sub {
  font-size: 10px;
  color: #94a3b8;
}

.grade {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.class-cell {
  color: #111827;
}

.tag {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  font-weight: 700;
  text-transform: lowercase;
}

.lunch-row td {
  background: #fff7e6 !important;
  padding: 8px 0 !important;
}

.blue-icon {
  filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%);
}

.icon-filter-muted {
  filter: brightness(0) saturate(100%) invert(69%) sepia(8%) saturate(364%) hue-rotate(182deg) brightness(92%) contrast(87%);
}

.black-icon {
  filter: brightness(0);
}

.icon-btn {
  transition: all 0.25s ease;
  border-radius: 4px;
}

.header-top-tools .tool {
  height: 2.5rem;
}

header.sticky-top .header-top-tools #authDropdownToggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  justify-content: center;
}
header.sticky-top .header-top-tools #authDropdownToggle > img.avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
}
@media (hover: hover) {
  .icon-btn:hover {
    transform: scale(1.05) translateY(-1px);
  }
}

/* Header search: no zoom on hover (box or magnifier). */
@media (hover: hover) {
  .top-bar__search.icon-btn:hover,
  .top-bar__search .btn:hover img {
    transform: none;
  }
}

.btn[class*="btn-outline"] img {
  transition: 0.2s ease;
}
@media (hover: hover) {
  .btn[class*="btn-outline"]:hover img {
    filter: brightness(0) invert(1);
  }
}

.top-bar__search input:focus:not(:focus-visible) {
  outline: none !important;
}
@media (hover: hover) {
  .btn:hover img {
    transform: scale(1.12);
  }
}

.files-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 12px;
  margin-bottom: 10px;

  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f6fbff;
}
@media (hover: hover) {
  .files-row:hover {
    background: #eef7ff;
  }
}

.files-toggle {
  width: 26px;
  height: 26px;
  color: #0d6efd;
}

.files-row img {
  width: 20px;
  height: 20px;
}

.files-row.is-active {
  border-color: rgba(13, 110, 253, 0.35);
  background: #eaf5ff;
}

.collapse .files-row {
  margin-top: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}

.reply {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.login-dropdown {
  width: 360px;
}

@media (max-width: 420px) {
  .login-dropdown {
    width: min(360px, 92vw);
  }
}

:root {
  --svg-scale: 1;
}

svg,
img[src$=".svg"] {
  transform: scale(var(--svg-scale));
  transform-origin: center center;
}

@media (max-width: 500px) {
  .nav-logo img {
    --header-logo-width: 250px;
    width: calc(250px * var(--logo-font-scale, 1));
  }
}

.top-bar__menu a.active {
  font-weight: 700;
  opacity: 1;
  padding-bottom: 6px;
}

#menu .badge {
  font-weight: 500;
}

.profile-sidebar .list-group-item .blue-icon {
  transition: 0.2s ease;
}

.profile-sidebar .list-group-item.active {
  background-color: #2696db;
  color: #fff;
  border-color: #2696db;
}

.profile-sidebar .list-group-item.active .blue-icon {
  filter: brightness(0) invert(1);
}

.certificates-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.grade-tab {
  border: none !important;
  background: transparent !important;
  color: #333 !important;
  padding: 0 0 8px 0 !important;
}

.grade-tab.active {
  color: var(--bs-primary) !important;
}

.grade-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--bs-primary);
}

#lessons .form-check-input {
  width: 2rem;
  height: 1rem;
  cursor: pointer;
}

#lessons .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.header {
  height: 130px;
}

.header__top {
  height: 50px;
}

.header__bottom {
  width: calc(100%);
  height: 70px;
  top: 30px;
  border-bottom-left-radius: 90px;
  border-bottom-right-radius: 90px;
}

.header__bottom::before {
  content: "";
  position: absolute;
  top: 20px;
  left: calc(29px * -1);
  width: 50px;
  height: 40px;
  transform: rotateZ(270deg);
  background: radial-gradient(circle at 0% 0%, transparent 70%, var(--bg-white) 71%);
}

.header__bottom::after {
  content: "";
  position: absolute;
  top: 20px;
  right: calc(29px * -1);
  width: 50px;
  height: 40px;
  transform: rotateZ(-270deg);
  background: radial-gradient(circle at 100% 0%, transparent 70%, var(--bg-white) 71%);
}

.header_items {
  top: 40%;
}

.header_items > .d-lg-flex {
  min-width: 0;
}

footer .row > * {
  min-width: 0;
}

@media (max-width: 400px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header_items {
    width: 77%;
  }
}

.header_items a {
  text-decoration: none;
  color: #333;
  position: relative;
  transition: 0.2s;
}

.header_items a.active {
  color: #2696db;
  font-weight: 600;
}

.header_items a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #2696db;
  border-radius: 2px;
}

@media (min-width: 1620px) {
  .top-bar__menu a {
    font-size: 1.05rem;
  }

  #schedule h2 {
    font-size: 2rem;
  }

  .schedule-label {
    font-size: 1rem;
  }

  .schedule-select {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .time-main {
    font-size: 1.05rem;
    font-weight: 600;
  }

  .time-sub {
    font-size: 0.9rem;
  }
  .grade {
    font-size: 0.85rem;
  }
}

.gallery-item {
  border-radius: 10px;
}

.gallery-img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-card-link .gallery-img {
  cursor: pointer;
}
@media (hover: hover) {
  .gallery-img:hover {
    transform: scale(1.03);
  }
}

.btn-action {
  gap: 6px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action i {
  transition: transform 0.2s ease;
}

.action-btn {
  font-size: 0.8rem;
  padding: 4px 10px;
}

.scale-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.scale-control input[type="range"] {
  width: 120px;
  flex-shrink: 0;
}

.hero-banner {
  background: linear-gradient(135deg, #8b4cff, #ff4d94);
  color: white;
}

.product-card {
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.size-badge {
  background: #f1f3f5;
  color: #333;
  font-weight: 500;
  margin-right: 4px;
}

.price {
  color: #212529;
}

@keyframes waveform {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* In the hero the image sets the height; it only covers extra room when the
   text needs more space than the picture (narrow screens, large font scale). */
.main-section > .hero-image {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .header__top {
    height: 25px;
  }

  .header__bottom {
    top: 5px;
  }

  .header_items {
    top: 34%;
  }

  .header {
    height: 110px;
  }

  .header-menu-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  header.sticky-top .header-top-tools {
    --header-tools-gap: 0.5rem;
    gap: var(--header-tools-gap) !important;
  }

  header.sticky-top .header-top-tools [data-auth-region="account-tools"] {
    gap: var(--header-tools-gap) !important;
  }

  header.sticky-top .header-top-tools [data-auth-region="account-tools"]:not(:has(> *)) {
    display: none !important;
  }

  html:has(#authDropdown.auth-menu-open),
  body:has(#authDropdown.auth-menu-open) {
    overflow: hidden !important;
  }

  #authDropdown {
    transform: translateY(-50%) !important;
    box-shadow:
      0 0.75rem 2rem rgb(0 0 0 / 22%),
      0 0.125rem 0.5rem rgb(0 0 0 / 10%) !important;
  }

  .main-section {
    margin-top: 20px;
  }

  .main-content {
    /* Reserve space for the fixed two-row mobile header above the banner copy. */
    padding-top: 10.5rem;
  }
}

.thumbnail-img {
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.thumbnail-img.active {
  border-color: #000;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
}

.size-badge {
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
}

.size-badge.active {
  background: #000;
  color: white;
  border-color: #000;
}

.img-hover-lightbox {
  overflow: hidden;
  border-radius: 12px;
}

.img-hover-lightbox a {
  display: block;
  position: relative;
}

.img-hover-lightbox img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}

.img-hover-lightbox .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.35s ease;
}

.img-hover-lightbox i {
  color: #fff;
  font-size: 30px;

  transform: scale(0.6);
  opacity: 0;
  transition: 0.35s ease;
  z-index: 2;
}

.frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frame .top {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s ease;
}

.frame .bottom {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: 0.5s ease;
}

.frame .left {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  width: 2px;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.5s ease;
}

.frame .right {
  position: absolute;
  top: 15px;
  bottom: 15px;
  right: 15px;
  width: 2px;
  background: #fff;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: 0.5s ease;
}
@media (hover: hover) {
  .img-hover-lightbox:hover img {
    transform: scale(1.04);
  }
}
@media (hover: hover) {
  .img-hover-lightbox:hover .overlay {
    opacity: 1;
  }
}
@media (hover: hover) {
  .img-hover-lightbox:hover i {
    opacity: 1;
    transform: scale(1);
  }
}
@media (hover: hover) {
  .img-hover-lightbox:hover .top,
  .img-hover-lightbox:hover .bottom {
    transform: scaleX(1);
  }
}
@media (hover: hover) {
  .img-hover-lightbox:hover .left,
  .img-hover-lightbox:hover .right {
    transform: scaleY(1);
  }
}

@media (max-width: 767.98px) {
  #loginDropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1055 !important;
  }

  .dropdown.show #loginDropdown::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
    border-radius: 0;
  }
}

@media (max-width: 991px) {
  header.sticky-top {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
  }
}

#news .swiper-button-prev,
#news .swiper-button-next,
#events .swiper-button-prev,
#events .swiper-button-next {
  --slider-arrow-offset: -50%;
  top: 28% !important;
  transform: translateY(-50%);
}

#about-school .swiper-button-prev,
#about-school .swiper-button-next {
  --slider-arrow-offset: -50%;
  top: 33% !important;
  transform: translateY(-50%);
}
@media (hover: hover) {
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    transform: translateY(var(--slider-arrow-offset, 0%)) scale(1.12) !important;
    background-color: #43b923 !important;
    filter: brightness(1.08);
  }
}

.swiper-button-prev:active,
.swiper-button-next:active {
  filter: brightness(0.95);
}

.nav-link-custom {
  transition: all 0.3s ease;
  color: #212529;
  text-decoration: none;
}

.nav-link-custom::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2696db;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 2px;
}
@media (hover: hover) {
  .nav-link-custom:hover::after {
    transform: scaleX(1);
  }
}

.nav-link-custom.active::after {
  transform: scaleX(1);
}

.nav-link-custom.active {
  color: #0d6efd;
  font-weight: 600;
}

.nav-link-custom.active img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(84%) saturate(1454%) hue-rotate(183deg) brightness(92%) contrast(92%) !important;
}
@media (hover: hover) {
  .nav-link-custom:hover img {
    filter: brightness(0.7);
    transition: filter 0.3s ease;
  }
}

.section-title {
  border-bottom: 3px solid #2696db;
}

footer a {
  position: relative;
  color: #212529;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding-bottom: 3px;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2f8ed9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
@media (hover: hover) {
  footer a:hover::after {
    transform: scaleX(1);
  }
}

footer a.active {
  color: #2f8ed9;
  font-weight: 600;
}

footer a.active::after {
  transform: scaleX(1);
  background-color: #2f8ed9;
}
@media (hover: hover) {
  footer a:hover {
    color: #2f8ed9;
  }
}

.dropdown .form-select:focus {
  border-color: #ced4da;
}

.dropdown-menu .dropdown-item {
  transition: 0.2s ease;
}
@media (hover: hover) {
  .dropdown-menu .dropdown-item:hover {
    background-color: #2696db !important;
    color: #fff !important;
  }
}

.chat-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 420px;
  z-index: 3000;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .chat-window {
    right: 50% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(420px, calc(100vw - 40px)) !important;
    max-width: none !important;
    bottom: 20px !important;
    display: flex;
    flex-direction: column;
  }
}

header {
  position: relative;
}

.header-search-overlay {
  inset: 0;
}

.header-search-overlay {
  position: absolute;
  width: 96%;
  height: 60px;
  background: white;
  display: none;
  z-index: 9999;
  left: 50%;
  transform: translateX(-50%);
  top: 7px;
}

.header-search-overlay.active {
  display: flex;
}

.header-search-overlay .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-tabs {
  border-bottom: 2px solid #f1f6f9;
}

.nav-tabs .nav-link {
  border: none !important;
  background: none !important;
  color: #6c757d;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-tabs .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}
@media (hover: hover) {
  .nav-tabs .nav-link:hover {
    color: #007bff;
  }
}
@media (hover: hover) {
  .nav-tabs .nav-link:hover::after {
    transform: scaleX(1);
  }
}

.nav-tabs .nav-link.active {
  color: #007bff !important;
  font-weight: 500;
}

.nav-tabs .nav-link.active::after {
  transform: scaleX(1);
}

@media (max-width: 1000px) {
  .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #dee2e6;
    -webkit-overflow-scrolling: touch;
  }

  .nav-tabs .nav-item {
    flex: 0 0 auto;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

#chatList .list-group-item {
  background: #fff;
  color: #000;
}

#chatList .list-group-item h6 {
  color: #000;
}

#chatList .list-group-item p {
  color: #6c757d;
}

#chatList .list-group-item small {
  color: #6c757d;
}
@media (hover: hover) {
  #chatList .list-group-item:hover {
    background: #f5f7fa;
  }
}

#chatList .list-group-item.active {
  background: #2f8ed9 !important;
  color: #fff;
}

#chatList .list-group-item.active h6,
#chatList .list-group-item.active p,
#chatList .list-group-item.active small {
  color: #fff !important;
}

#chatList .list-group-item.active .badge {
  background: #fff;
  color: #2f8ed9;
}

.chat-input .btn {
  width: 44px;
  height: 44px;
  padding: 0;
}
@media (hover: hover) {
  .chat-input .btn:hover {
    background-color: #fff;
    color: inherit;
    border-color: #dee2e6;
  }
}
.chat-input .btn img {
  filter: none !important;
  transition: none;
}

.breadcrumb-link {
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
@media (hover: hover) {
  .breadcrumb-link:hover {
    color: #0d6efd !important;
    opacity: 0.85;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #adb5bd;
  font-weight: 600;
}

/* Контейнер виджета */
.scale-widget {
  min-height: 46px;
  border: 1px solid #dbe4ee;
}

/* Кнопки + и - */
.scale-action-btn {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #ffffff;
  color: #245b9e;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
}
@media (hover: hover) {
  .scale-action-btn:hover {
    background: #245b9e;
    color: #ffffff;
    transform: translateY(-1px);
  }
}

.scale-action-btn:focus-visible,
.scale-reset-btn:focus-visible {
  outline: 3px solid rgba(36, 91, 158, 0.35);
  outline-offset: 2px;
}

.scale-action-btn:active {
  transform: translateY(0);
}

/* Индикатор процента */
.scale-indicator {
  min-width: 3.625rem;
}

.scale-val {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: #24476d;
  letter-spacing: -0.02em;
}

/* Вертикальный разделитель */
.scale-divider {
  width: 1px;
  height: 18px;
  background-color: #cbd5e1;
}

/* Кнопка сброса */
.scale-reset-btn {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  transition: all 0.2s ease;
  cursor: pointer;
}
@media (hover: hover) {
  .scale-reset-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.08);
    transform: rotate(-90deg);
  }
}

.notification-window {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 416px;
  max-width: calc(100vw - 32px);
  z-index: 9999;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}
:is(#notificationWindow, #messageWindow) {
  width: 22.5rem;
}
.notification-window.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
/* Close header popups immediately when switching to another menu. */
:is(#messageWindow, #notificationWindow):not(.active) {
  transition: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
:is(#NotificationsDiv, #MessagesDiv) > ul {
  max-height: min(384px, calc(100dvh - 224px));
  overscroll-behavior: contain;
}
#notificationWindow .notifications-view-all {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
#notificationWindow .notifications-view-all:focus-visible {
  --bs-bg-opacity: 1;
  background-color: var(--bs-primary, #2f8ed9) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb, 38, 150, 219), 0.2);
}
@media (hover: hover) {
  #notificationWindow .notifications-view-all:hover {
    --bs-bg-opacity: 1;
    background-color: var(--bs-primary, #2f8ed9) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb, 38, 150, 219), 0.2);
  }
}
#notificationWindow .notifications-view-all:focus-visible {
  outline: 2px solid var(--bs-primary, #2f8ed9);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #notificationWindow .notifications-view-all {
    transition: none;
  }
}
@media (hover: hover) {
  #MessagesDiv .message-item:hover {
    background-color: #f5f9ff !important;
  }
}
#MessagesDiv .message-text-wrapper {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
/* Exact values without Bootstrap equivalents; JS controls display and badge colors. */
#notificationBtn .bullet-dot {
  display: none;
  padding: 4px 6px;
  font-size: 10px;
}
#messageBtn :is(.message-bullet-system, .message-bullet-user) {
  display: none;
  padding: 3px 5px;
  font-size: 10px;
}
#messageBtn .message-bullet-system {
  background-color: #fd7e14;
}
/* Новые сообщения и уведомления: компактный красный кружок с белой обводкой */
#messageBtn .message-bullet-user,
#notificationBtn .bullet-dot {
  min-width: 16px;
  padding: 2px 4px;
  border: 1.5px solid #fff;
  background-color: #e5383b !important;
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(229, 56, 59, 0.35) !important;
}
#NotificationsDiv .notification-sender-name {
  font-size: 14px;
}
#NotificationsDiv .notification-item > .flex-grow-1 {
  min-width: 0;
}
#NotificationsDiv .notification-content-wrapper {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
  font-size: 13px;
  line-height: 1.35;
  color: #212529;
}
:is(#NotificationsDiv .notification-time, #MessagesDiv .message-time) {
  font-size: 12px;
}
#MessagesDiv .avatar-container {
  width: 46px;
  height: 46px;
}
#MessagesDiv .sender-system-icon {
  display: none;
}
#MessagesDiv .message-type-indicator {
  width: 12px;
  height: 12px;
  right: -2px;
  bottom: -2px;
}
#MessagesDiv .message-item > .flex-grow-1 {
  min-width: 0;
}
:is(#MessagesDiv .message-sender-name, #MessagesDiv .message-text) {
  font-size: 16px;
}
:is(#NotificationsDiv, #MessagesDiv) .status {
  width: 8px;
  height: 8px;
}
:is(#NotificationsDiv, #MessagesDiv) .status-not-read {
  background-color: var(--blue);
}
:is(.dropdown-toggle-notification, .dropdown-toggle-message)::after {
  display: none;
}
/* Notification Badge NEW */
.notification-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  vertical-align: middle;
}
/* Five 68px rows + four 7px gaps + 16px list padding fit the existing 384px viewport. */
#NotificationsDiv > ul > .notification-item {
  height: 68px;
  margin-bottom: 7px;
}
#NotificationsDiv > ul > .notification-item:last-child {
  margin-bottom: 0;
}
#NotificationsDiv .notification-item .notification-sender-name {
  line-height: 16px;
}
#NotificationsDiv .notification-item .notification-content-wrapper {
  -webkit-line-clamp: 1;
  line-height: 18px;
}
#NotificationsDiv .notification-item .notification-type,
#NotificationsDiv .notification-item .notification-time {
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
#NotificationsDiv .notification-item .notification-type {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}
#NotificationsDiv .notification-item .notification-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* An unread dot doubles as the read action; the envelope appears on hover/focus. */
#NotificationsDiv .notification-item {
  background-color: var(--bs-body-bg, #fff);
  border-color: var(--bs-border-color, #dee2e6);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
#NotificationsDiv .notification-item.is-unread {
  background-color: rgba(var(--bs-primary-rgb, 47, 142, 217), 0.06);
  border-color: rgba(var(--bs-primary-rgb, 47, 142, 217), 0.2);
}
#NotificationsDiv .notification-item:focus-within {
  background-color: rgba(var(--bs-primary-rgb, 47, 142, 217), 0.1);
}
@media (hover: hover) {
  #NotificationsDiv .notification-item:hover {
    background-color: rgba(var(--bs-primary-rgb, 47, 142, 217), 0.1);
  }
}
#NotificationsDiv .notification-item:focus-visible,
#NotificationsDiv .notification-mark-read-btn:focus-visible {
  outline: 2px solid var(--bs-primary, #2f8ed9);
  outline-offset: 2px;
}
#NotificationsDiv .notification-mark-read-btn {
  flex-shrink: 0;
  position: relative;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--bs-primary, #2f8ed9);
  border: 0;
  border-radius: var(--bs-border-radius, 6px);
  cursor: pointer;
  padding: 0;
}
#NotificationsDiv .notification-item.is-unread .notification-mark-read-btn {
  display: inline-flex;
}
#NotificationsDiv .notification-mark-read-btn::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}
#NotificationsDiv .notification-mark-read-btn i {
  opacity: 0;
}
#NotificationsDiv .notification-mark-read-btn:focus-visible {
  background-color: rgba(var(--bs-primary-rgb, 47, 142, 217), 0.12);
}
@media (hover: hover) {
  #NotificationsDiv .notification-mark-read-btn:hover {
    background-color: rgba(var(--bs-primary-rgb, 47, 142, 217), 0.12);
  }
}
#NotificationsDiv .notification-mark-read-btn:focus-visible::before {
  opacity: 0;
}
@media (hover: hover) {
  #NotificationsDiv .notification-mark-read-btn:hover::before {
    opacity: 0;
  }
}
#NotificationsDiv .notification-mark-read-btn:focus-visible i {
  opacity: 1;
}
@media (hover: hover) {
  #NotificationsDiv .notification-mark-read-btn:hover i {
    opacity: 1;
  }
}
#NotificationsDiv .notification-item.is-unread > .status {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  #NotificationsDiv .notification-item {
    transition: none;
  }
}
/* Header Mark All Read Button */
.mark-all-notifications-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-primary, #2f8ed9);
  transition:
    color 0.15s ease,
    opacity 0.15s ease;
}
@media (hover: hover) {
  .mark-all-notifications-btn:hover {
    color: #1f6fb3;
    text-decoration: underline !important;
  }
}
.mark-all-notifications-btn.is-empty {
  opacity: 0.5;
  cursor: default;
  text-decoration: none !important;
}
@media (max-width: 991.98px) {
  :is(#notificationWindow, #messageWindow) {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    width: min(22.5rem, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    transform: translate(-50%, calc(-50% + 10px));
  }
  :is(#notificationWindow, #messageWindow).active {
    transform: translate(-50%, -50%);
  }
  :is(#NotificationsDiv, #MessagesDiv) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  /* The popup sits mid-screen like a dialog: scrolling inside it must not move the page. */
  html:has(#messageWindow.active, #notificationWindow.active),
  html:has(#messageWindow.active, #notificationWindow.active) body {
    overflow: hidden;
  }
  :is(#notificationWindow, #messageWindow) {
    overscroll-behavior: contain;
  }
}

#registration-form {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.auth-dropdown-menu.registration-open .login-card {
  --auth-form-gap: 1.625rem;
  padding-inline: var(--auth-form-gap) !important;
}

.auth-dropdown-menu #registration-form {
  max-height: none;
  overflow: visible;
  scrollbar-gutter: auto;
  padding-inline-end: 0;
}

#authDropdown {
  overscroll-behavior: none;
}

#authDropdown :is(.form-control, .form-select):focus {
  box-shadow: none;
  outline: none;
}
#authDropdown form:not(.was-validated) :is(.form-control, .form-select):focus:not(.is-valid):not(.is-invalid) {
  border-color: var(--bs-border-color, #dee2e6);
}

.cursor-pointer {
  cursor: pointer;
}

.template-logo-dark {
  display: none;
}
[data-bs-theme="dark"] .template-logo-light {
  display: none;
}
[data-bs-theme="dark"] .template-logo-dark {
  display: inline;
}
@media (hover: hover) {
  .support-footer-icon:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease;
    background-color: transparent !important ;
  }
}

#headerSearchOverlay #headerSearchInput {
  min-width: 0;
  flex: 1;
  width: 0;
}
#headerSearchOverlay #closeSearch {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #168bc6;
  cursor: pointer;
}
@media (hover: hover) {
  #headerSearchOverlay #closeSearch:hover {
    background: #127fbc;
  }
}
#headerSearchOverlay #closeSearch:focus-visible {
  outline: 3px solid #72c6ed;
  outline-offset: 2px;
}

/* Keep the existing header height; shorten navigation labels when width is limited. */

.header_items > .header-nav-labels {
  min-width: 0;
}

.header-nav-labels > .nav-link-custom {
  flex: 0 1 auto;
  min-width: 0;
}

/* Lock the page while Bootstrap's mobile menu is open or transitioning. */
#mobileMenu .offcanvas-body {
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* The root gutter already reserves scrollbar space; avoid Bootstrap adding it twice. */
@supports (scrollbar-gutter: stable) {
  body:has(#mobileMenu:is(.show, .showing, .hiding)) > header.sticky-top {
    margin-right: 0 !important;
  }
}

/* Upper navigation shares available width and truncates long labels. */
.header-top-row .top-bar__menu {
  min-width: 0;
}
.header-top-row .top-bar__menu > a {
  flex: 0 1 auto;
  min-width: 0;
}
.header-top-row .top-bar__menu > a::after {
  bottom: 0;
}

/* Keep open header menus above body-mounted chat and emoji overlays. */
body:not(.modal-open) > header.sticky-top:has(.auth-dropdown-menu.auth-menu-open, #notificationWindow.active, #messageWindow.active) {
  z-index: 10000002 !important;
}

/* Reusable education theme colors for buttons, forms, panels and account pages. */
.education-theme {
  --education-primary: #2696db;
  --education-primary-hover: #187fb4;
  --education-primary-active: #146b98;
  --education-account-primary: #249fdd;
  --education-account-ink: #167caf;
  --education-account-tint: #edf8fe;
}
/* Shared theme defaults; component rules below cover unique visuals and behavior. */
:is(.account-page, .contacts-page, .events-list-section, .products-page, .product-detail-section, #notificationWindow, #messageWindow) {
  overflow-wrap: anywhere;
}
.education-theme .btn-primary {
  --bs-btn-bg: var(--education-primary);
  --bs-btn-border-color: var(--education-primary);
  --bs-btn-hover-bg: var(--education-primary-hover);
  --bs-btn-hover-border-color: var(--education-primary-hover);
  --bs-btn-active-bg: var(--education-primary-active);
  --bs-btn-active-border-color: var(--education-primary-active);
}
.education-theme :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #70c9ec;
  outline-offset: 3px;
}
.education-theme a.glightbox:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .education-theme *,
  .education-theme *::before,
  .education-theme *::after {
    transition: none !important;
    animation: none !important;
  }
  @media (hover: hover) {
    .education-theme :is(.account-item-card, .account-stat, .friends-panel, .course-card, .btn, .event-card, .event-image, .product-thumb-btn, .product-img, .contacts-details a):hover {
      transform: none !important;
    }
  }
}

.account-page {
  --account-brand: var(--education-account-primary);
  --account-ink: var(--education-account-ink);
  --account-tint: var(--education-account-tint);
}
.account-page .account-page-heading {
  border: 1px solid #249fdd30;
  background: radial-gradient(ellipse at top right, #249fdd26, transparent 65%), var(--account-tint);
}

.account-page .btn-outline-primary {
  --bs-btn-color: var(--account-ink);
  --bs-btn-border-color: #249fdd66;
  --bs-btn-hover-bg: var(--account-brand);
  --bs-btn-hover-border-color: var(--account-brand);
}
.account-page .account-stat :is(.fs-4, .rounded-3),
.account-page .text-primary {
  color: var(--account-ink) !important;
}
.account-page .account-wallet-balance {
  background: radial-gradient(ellipse at top right, #249fdd1f, transparent 65%), #fff;
}
.account-page .account-wallet-balance .display-5 {
  color: var(--account-ink);
}
.account-page :is(.account-item-card, .account-stat, .friends-panel, .course-card, .btn) {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.account-page .account-item-card .card-footer {
  background: #f5fbff !important;
}
.account-page .account-coupon-details {
  border-top: 1px dashed #d4e6f1;
}
.account-page .form-control:focus {
  border-color: var(--account-brand);
}
#my-courses-page .account-course-image {
  aspect-ratio: 16 / 9;
}
#my-courses-page .progress-bar {
  background: var(--account-brand) !important;
}
#courses-catalog .course-card h4 a {
  color: #243447;
  text-decoration: none;
}
@media (hover: hover) {
  #courses-catalog .course-card h4 a:hover {
    color: var(--account-ink);
  }
}

#friends-page .friends-search-field {
  min-width: 0;
}
#friends-page .friends-search-field > i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #697789;
}

#friends-page :is(.friend-avatar, .friends-invite-icon, .friends-empty > i) {
  background: var(--account-tint);
  color: var(--account-ink);
}
#friends-page .table :is(th, td) {
  padding: 16px;
}
#friends-page .table th {
  background: #f5fbff;
}

/* Wallet: preserve the shared payment form and transaction table. */
#wallet .wallet-history > .container {
  min-width: 0;
}
#wallet .wallet-history h1 {
  margin-bottom: 24px;
}
#wallet .modern-table {
  border-collapse: collapse;
}
#wallet .modern-table :is(th, td) {
  padding: 16px;
  text-align: left;
}
#wallet .modern-table th {
  background: #f5fbff;
}
@media (hover: hover) {
  #wallet .modern-table tbody tr:hover {
    transform: none;
    background: #f0faff;
  }
}
#wallet .wallet-history :is(.succeeded, .refunded) {
  color: var(--bs-success);
}
#wallet .wallet-history :is(.error, .canceled) {
  color: var(--bs-danger);
}
#wallet .wallet-history .pending {
  color: #956a0a;
}
#wallet .wallet-history tr.child .dtr-details {
  flex-direction: column;
  align-items: stretch;
}
#wallet #paymentForm {
  margin: 0 !important;
}
#wallet [aria-controls="walletStripeDetails"][aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}
#wallet #topUpForm :is(.info-card, .pay-card, .bonus-item) {
  border-color: #249fdd30;
  border-radius: 16px;
}

#wallet #topUpForm :is(.info-card, .pay-card.active) {
  background: var(--account-tint);
}
#wallet #topUpForm .pay-card.active {
  border-color: var(--account-brand);
}
#wallet #topUpForm .pay-card-inner img {
  width: 40px;
  max-height: 28px;
  object-fit: contain;
}
#wallet #topUpForm :is(.pay-grid, .bonus-grid) {
  grid-template-columns: minmax(0, 1fr);
}
#wallet #topUpForm .input-label {
  color: #526e80;
}

@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    .account-page :is(.account-item-card, .account-stat, .friends-panel, .course-card):hover {
      transform: translateY(-3px);
    }
  }
  @media (hover: hover) {
    .account-page .btn:not(:disabled):hover {
      transform: translateY(-1px);
    }
  }
}
@media (max-width: 991.98px) {
  #friends-page .table thead {
    display: none;
  }
  #friends-page .table,
  #friends-page .table tbody {
    display: block;
    width: 100%;
  }
  #friends-page .table tbody tr {
    display: grid;
    border-bottom: 1px solid #e4eaf0;
  }
  #friends-page .table tbody td {
    display: block;
    border: 0;
    grid-column: 1 / -1;
  }
  #friends-page .table tbody td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  #friends-page .table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  #friends-page .table tbody td:is(:nth-child(3), :nth-child(4))::before {
    content: attr(data-label);
    display: block;
    color: #697789;
  }
}
@media (max-width: 575.98px) {
  #friends-page .friends-search-field {
    flex-basis: 100%;
  }
  #wallet .wallet-history .dt-layout-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Shared compact account styles and page-specific content. */
.account-page {
  min-width: 0;
}

.account-page .btn:not(.text-nowrap) {
  white-space: normal;
}
#wallet #topUpForm :is(.info-card, .pay-card, .bonus-item) {
  padding: 12px;
}
#wallet #topUpForm .block-title {
  margin: 14px 0 10px;
}
#wallet .wallet-history > .container {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}
#wallet .wallet-history h1 {
  margin: 0 0 14px !important;
}
#wallet .wallet-history .dt-layout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 10px;
}
#wallet .wallet-history .dt-layout-table {
  display: block;
}
@media (max-width: 991.98px) {
  #wallet .wallet-history .datatable-scroll {
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #8bbbd8 #edf5fb;
    padding-bottom: 8px;
  }
  #wallet .wallet-history .datatable-scroll:focus-visible {
    outline: 2px solid #2696db;
    outline-offset: 2px;
  }
  #wallet .wallet-history .datatable-scroll .modern-table {
    min-width: 880px;
    table-layout: auto;
  }
}
#wallet .wallet-history .datatable-scroll {
  width: 100%;
  min-width: 0;
  clear: both;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
#wallet .wallet-history .dataTables_wrapper {
  min-width: 0;
  max-width: 100%;
}
#wallet .wallet-history .dataTables_wrapper > .row {
  --bs-gutter-x: 0;
}
#wallet .wallet-history :is(.dt-search, .dt-length) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#wallet .wallet-history .dt-search input {
  width: 150px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
#wallet .wallet-history .modern-table {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}
#wallet .wallet-history .modern-table :is(th, td) {
  box-sizing: border-box;
}
.account-page .modern-table :is(th, td) {
  white-space: normal !important;
  word-break: normal;
}
#wallet .modern-table :is(a, span, button) {
  max-width: 100%;
  white-space: normal;
}
#wallet .modern-table .btn-group {
  display: flex;
  flex-wrap: wrap;
}
#wallet .wallet-history .dt-paging nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
#wallet .wallet-history .dt-paging-button {
  padding: 5px 8px !important;
  margin: 0 !important;
}
#wallet .wallet-history .dtr-details li {
  flex-wrap: wrap;
}

#friends-page :is(.friend-avatar, .friends-invite-icon, .friends-empty > i) {
  width: 36px;
  height: 36px;
}

#friends-page .friends-search-field input {
  padding-left: 36px !important;
}
#friends-page #friends-tabs {
  border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}
#friends-page #friends-tabs .nav-link {
  position: relative;
  z-index: 1;
  margin-bottom: calc(-1 * var(--bs-border-width));
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: var(--bs-border-width) solid transparent !important;
  border-radius: var(--bs-nav-tabs-border-radius) var(--bs-nav-tabs-border-radius) 0 0;
  background: transparent !important;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}
#friends-page #friends-tabs .nav-link .badge {
  min-width: 28px;
  padding: 5px 8px;
  background-color: #eef4f8 !important;
  color: #526579 !important;
  font-size: 0.8125rem;
  font-weight: 600;
}
#friends-page #friends-tabs .nav-link::after {
  content: none;
}
#friends-page #friends-tabs .nav-link:is(:hover, :focus) {
  border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color) !important;
}
@media (hover: hover) {
  #friends-page #friends-tabs .nav-link:not(.active):hover {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--education-primary) !important;
  }
}
#friends-page #friends-tabs .nav-link.active {
  border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg) !important;
  background-color: var(--bs-body-bg) !important;
  color: var(--education-primary) !important;
}
#friends-page #friends-tabs .nav-link.active .badge {
  background-color: var(--education-primary) !important;
  color: #fff !important;
}
@media (max-width: 991.98px) {
  #friends-page .table tbody tr {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }
  #friends-page .table tbody td {
    padding: 0;
  }
}
@media (max-width: 575.98px) {
  #wallet .wallet-history .dt-search input {
    flex: 1;
  }
  #friends-page .friends-invite form {
    width: 100%;
  }
}
#wallet #topUpForm .bonus-item {
  min-width: 0;
}
#wallet #topUpForm .bonus-grid {
  gap: 8px;
}
#wallet #topUpForm .pay-btn {
  padding: 9px 12px;
}
#friends-page :is(.friends-heading > div, .friends-invite-title, #add-friend-form) {
  min-width: 0;
  max-width: 100%;
}
#friends-page #add-friend-form input {
  min-width: 0;
}
/* Phones: the page title card is a compact header, not a banner. (!important: .p-3 / .mb-2 utilities) */
@media (max-width: 575.98px) {
  #friends-page .friends-heading h2 {
    margin-bottom: 0 !important;
    font-size: 1.125rem;
    line-height: 1.3;
  }
  #friends-page #friends-tabs .nav-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    white-space: nowrap;
  }
}

/* Shared account controls: Bootstrap utilities own layout and spacing. */
.account-page {
  --bs-body-font-size: 1rem;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-xl: 1rem;
}

#friends-page #add-friend-form {
  flex: 0 1 420px;
}
#friends-page #add-friend-form input {
  flex: 1 1 0;
  width: 0;
}
@media (max-width: 575.98px) {
  #friends-page #add-friend-form {
    flex-basis: 100%;
  }
}

/* Shared readable typography for account pages. */

/* Contacts: Bootstrap layout with responsive panels and accessible feedback. */
.contacts-page {
  --contacts-ink: #193e59;
  --contacts-muted: #687f91;
  --contacts-accent: var(--education-primary);
  color: var(--contacts-ink);
}
.contacts-heading {
  background: radial-gradient(ellipse at 95% 10%, #71d4ee55, transparent 55%), linear-gradient(120deg, #143b62, #176c9f);
}
.contacts-heading::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  bottom: -170px;
  border: 30px solid #ffffff0c;
  border-radius: 50%;
  pointer-events: none;
}
.contacts-heading p {
  color: #e0f1fa;
}
.contacts-heading-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff40;
  background: #ffffff18;
}
.contacts-panel {
  min-width: 0;
  border: 1px solid #e0eaf2;
}
.contacts-panel > .card {
  margin-bottom: 0;
  background: transparent;
}
.contacts-page :is(h2, h3, h4, h5) {
  color: var(--contacts-ink) !important;
}
.contacts-page h5 {
  margin-bottom: 12px !important;
}
.contacts-details :is(.row > [class*="col-"]) {
  min-width: 0;
}
.contacts-details .row > .col-md-6 {
  width: 100%;
}
.contacts-details a.d-flex {
  gap: 12px;
  border: 1px solid #e6edf4;
  background: #f6f9fc !important;
  color: var(--contacts-ink) !important;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contacts-details a.d-flex > span {
  min-width: 0;
}
.contacts-details a.d-flex > span:last-child {
  color: #176c9f;
}

.contacts-feedback :is(.form-control, .form-select) {
  border-color: #dbe6ee;
  background-color: #f8fafc;
  color: var(--contacts-ink);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.contacts-feedback .form-floating > label {
  color: var(--contacts-muted) !important;
}
/* Select2 subject field: same look as the other inputs. */
.contacts-feedback .select2-container--education .select2-selection {
  border-color: #dbe6ee;
  border-radius: var(--bs-border-radius-lg, 0.5rem);
  background-color: #f8fafc;
  color: var(--contacts-ink);
}
.contacts-feedback .select2-container--education.select2-container--open .select2-selection,
.contacts-feedback .select2-container--education .select2-selection:focus {
  background-color: #fff;
}
.contacts-feedback :is(.form-control, .form-select):focus {
  border-color: var(--contacts-accent);
  background-color: #fff;
}
.contacts-feedback textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
.contacts-feedback .input-group {
  gap: 8px;
}
.contacts-feedback .input-group-text {
  width: 100%;
  white-space: normal;
  justify-content: flex-start;
  padding: 10px 14px;
  border: 1px solid #dbe6ee !important;
  border-radius: 0.75rem !important;
  background: #f1f6fa !important;
}
.contacts-feedback #security_answer {
  width: 100%;
  flex-basis: 100%;
  min-width: 0;
  margin-left: 0;
  padding: 12px 14px !important;
  border: 1px solid #dbe6ee !important;
  border-radius: 0.75rem !important;
}
.contacts-feedback button[name="submit_feedback"] {
  --bs-btn-bg: var(--education-primary);
  --bs-btn-border-color: var(--education-primary);
  --bs-btn-hover-bg: var(--education-primary-hover);
  --bs-btn-hover-border-color: var(--education-primary-hover);
  padding: 9px 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    .contacts-details a.d-flex:hover {
      transform: translateY(-2px);
      border-color: #b8dcf2;
      background: #edf7fe !important;
    }
  }
  @media (hover: hover) {
    .contacts-feedback button[name="submit_feedback"]:hover {
      transform: translateY(-2px);
    }
  }
}
@media (max-width: 575.98px) {
  .contacts-heading > .d-flex {
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .contacts-heading-icon {
    width: 40px;
    height: 40px;
  }
  .contacts-feedback #security_answer {
    min-height: calc(3.5rem + 2px);
  }
  .contacts-feedback button[name="submit_feedback"] {
    min-height: 52px;
  }
}

.contacts-details .list-group-item > .d-flex {
  min-width: 0;
}
.contacts-details .list-group-item > i:first-child {
  width: 32px;
  text-align: center;
  color: var(--contacts-accent);
}
.contacts-feedback form > .row {
  --bs-gutter-y: 0.75rem;
}

/* Shared page toolbar: filter dropdowns and action buttons
   (school menu, school bus, sport, classes, news, events). */
.edu-filter {
  min-width: 12rem;
  max-width: 100%;
}
.edu-filter-label {
  display: block;
  margin: 0 0 0.4rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-secondary-color, #6c757d);
}
.edu-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.75rem;
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #243247);
  font-size: 0.9rem;
  text-align: left;
}
.edu-filter-btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}
.edu-filter-btn::after {
  flex-shrink: 0;
  color: var(--bs-secondary-color, #6c757d);
}
.edu-filter-btn:is(:hover, .show) {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.04);
}
.edu-filter-btn-danger {
  color: var(--bs-danger);
}
.edu-filter-btn-danger:hover {
  border-color: var(--bs-danger);
  background: rgba(var(--bs-danger-rgb), 0.04);
  color: var(--bs-danger);
}
.edu-filter-btn:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.25);
  outline-offset: 2px;
}
.edu-filter-menu {
  width: max-content;
  min-width: 100%;
  max-width: min(24rem, calc(100vw - 2rem));
  max-height: min(22rem, 60vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding: 0.4rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.85rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
.edu-filter-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: normal;
}
.edu-filter-menu .dropdown-item::after {
  content: "";
  width: 1rem;
  flex-shrink: 0;
}
.edu-filter-menu .dropdown-item.active,
.edu-filter-menu .dropdown-item:active {
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.1);
  font-weight: 600;
}
.edu-filter-menu .dropdown-item.active::after {
  content: "\2713";
}
@media (max-width: 575.98px) {
  .edu-filter {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Events list: shared Bootstrap cards, with styles scoped to this page. */
.events-list-section {
  min-width: 0;
}
.events-list-heading {
  color: #193e59;
}
.events-list-section .event-card {
  min-width: 0;
  border-color: #e0eaf2 !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.events-list-section .event-image {
  aspect-ratio: 16 / 10;
  background: #edf3f8;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}
.events-list-section .event-date-badge {
  z-index: 4;
  background: #193e59e6 !important;
}
.events-list-section .event-title {
  transition: color 0.2s ease;
}
.events-list-section .event-date-line {
  color: #687f91;
}
.events-list-section .event-date-line span {
  font-weight: 500 !important;
}
.events-list-section .event-countdown {
  min-width: 0;
}
.events-list-section .event-countdown-item {
  min-width: 0;
}
.events-list-section .event-countdown-item span {
  border: 1px solid #dcebf6;
  background: #edf7fe;
  color: #176c9f;
  font-variant-numeric: tabular-nums;
}
.events-list-section .event-countdown-item p {
  color: #687f91;
}
.events-list-section .event-countdown-separator {
  color: #86a1b7;
}
.events-list-section .img-hover-lightbox .overlay {
  inset: 0;
  background: #193e5940;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 3;
}
.events-list-section .overlay > i {
  color: #fff;
}

.events-empty {
  background: radial-gradient(ellipse at top, #edf8ff, #fff 75%);
  border-color: #e0eaf2 !important;
}
.events-empty-icon {
  width: 72px;
  height: 72px;
  color: var(--education-primary);
  background: #e2f2fc;
}
.events-list-section .pagination-wrapper :is(.pagination, ul) {
  gap: 0.5rem;
  flex-wrap: wrap;
}
.events-list-section .pagination-wrapper .page-link {
  border-radius: 0.75rem;
  border-color: #e0eaf2;
}
@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    .events-list-section .event-card:hover {
      transform: translateY(-4px);
      border-color: #b8dcf2 !important;
    }
  }
  @media (hover: hover) {
    .events-list-section .event-card:hover .event-image {
      transform: scale(1.04);
    }
  }
  @media (hover: hover) {
    .events-list-section .img-hover-lightbox:hover .overlay {
      opacity: 1;
      visibility: visible;
    }
  }
  @media (hover: hover) {
    .events-list-section a:hover .event-title {
      color: #176c9f;
    }
  }
}

/* Products: stationary Bootstrap cards, shared image hover, compact catalog. */
.products-page {
  min-width: 0;
}
.products-page .hero-banner {
  background: radial-gradient(ellipse at 95% 10%, #71d4ee40, transparent 55%), linear-gradient(120deg, #143b62, #176c9f);
}
.products-page .hero-product-visual {
  width: 160px;
  height: 160px;
}

.products-page .products-sidebar .card-body {
  overflow: visible;
}
.products-page .product-card,
.product-detail-section .product-card {
  cursor: auto;
  border-color: #e0eaf2 !important;
  transition: none;
}
@media (hover: hover) {
  .products-page .product-card:hover,
  .product-detail-section .product-card:hover {
    transform: none;
  }
}
.products-page .product-image-wrapper {
  min-height: 0;
}
.products-page .product-img-bg {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #f5f8fb;
}
.products-page .product-img {
  max-width: 92%;
}
.products-page .product-badges {
  top: 12px;
  left: 12px;
  right: 12px;
}
.products-page .product-title {
  min-height: 0;
  color: #193e59;
}
.products-page .product-desc {
  min-height: 0;
}
.products-page .product-price-box {
  min-width: 0;
}
.products-page .price {
  color: #176c9f;
}
.products-page .product-card .card-body {
  gap: 4px;
}
.products-page .product-card .form-control {
  min-width: 0;
}

.products-page .empty-products {
  border: 1px solid #e0eaf2 !important;
  background: radial-gradient(ellipse at top, #edf8ff, #fff 75%);
}
.products-page .pagination-wrapper :is(.pagination, ul) {
  flex-wrap: wrap;
}

/* Clear typography in the product category sidebar. */
.products-page .products-sidebar :is(h5, .module-filter-title) {
  color: #263d50;
  font-weight: 700 !important;
}
.products-page .products-sidebar .module-filter-category-btn {
  color: #34495c;
  font-weight: 600;
}
.products-page .products-sidebar .module-filter-category-btn.active {
  color: var(--education-primary-hover);
  font-weight: 600;
}
.products-page .products-sidebar :is(.form-select, .sort-bar, .sort-bar .fw-medium) {
  color: #34495c !important;
  font-weight: 600 !important;
}
.products-page .products-sidebar .sort-bar .fw-semibold {
  font-weight: 600 !important;
}

/* Product cards: visual refinement without changing layout or hover behavior. */
.products-page .products-grid .product-card {
  border-color: #cedeea !important;
  background: #fff;
}
.products-page .products-grid .product-img-bg {
  background: radial-gradient(ellipse at center, #fff 15%, #f2f6fa 100%);
  border-bottom: 1px solid #e8eef4;
}
.products-page .products-grid .product-badges .badge {
  border: 1px solid #ffffff60;
  border-radius: 0.5rem;
}
.products-page .products-grid .product-brand-row {
  color: #5b7082;
}
.products-page .products-grid .product-title {
  color: #213e54;
  letter-spacing: -0.015em;
}
.products-page .products-grid .product-desc {
  color: #526879;
}
.products-page .products-grid .product-quantity-group :is(.input-group-text, .form-control) {
  border-color: #e0e9f0;
  background-color: #f8fafc;
}

.products-page .products-grid .btn-outline-secondary {
  --bs-btn-color: #4e6476;
  --bs-btn-border-color: #d5e2ec;
  --bs-btn-hover-bg: #edf5fb;
  --bs-btn-hover-color: #176c9f;
  --bs-btn-hover-border-color: #b8d7eb;
}

/* Clearer product text while retaining the compact design. */
.products-page .products-grid .product-brand-row .text-muted {
  color: #5b7082 !important;
}

/* Product card details share Bootstrap's border and color vocabulary. */
.products-page .products-grid .product-card > .card-body {
  background: linear-gradient(180deg, #fff 70%, #f8fbfe);
}
.products-page .products-grid .add-to-cart-form {
  border-top: 1px solid #e1eaf2;
}
.products-page .products-grid .price {
  color: #153e60;
  letter-spacing: -0.025em;
}
.products-page .products-grid .product-quantity-group .input-group-text {
  background: #edf3f8;
  color: #435d72 !important;
}
@media (hover: hover) {
  .products-page .products-grid .product-card:hover {
    transform: none;
  }
}

/* Product filters: plain sidebar without heading icons, frames or shadows. */

.products-page .products-sidebar .card-body > .d-flex > img,
.products-page .products-sidebar .module-filter-head > img {
  display: none;
}
.products-page .products-sidebar :is(.module-filter-category-btn, .sort-bar) {
  border: 0 !important;
}

.products-page .products-grid .product-img-bg {
  height: clamp(150px, 13vw, 190px);
  aspect-ratio: auto;
}
.products-page .products-grid .product-card .card-body {
  flex-grow: 0;
  gap: 2px;
}
.products-page .products-grid .product-share {
  min-height: 0;
}

.products-page .products-grid .product-image-wrapper {
  min-height: 0;
  height: auto;
}

.product-detail-section {
  --product-ink: #183248;
  --product-muted: #62778a;
  color: var(--product-ink);
}

@media (hover: hover) {
  .product-detail-section .product-card:hover {
    border-color: #dce7f0 !important;
    transform: none;
    transition: none;
  }
}

.product-detail-section .product-image-wrapper {
  min-height: 0;
  height: auto;
}
.product-detail-section .product-detail-img-bg {
  min-height: 0;
  height: clamp(240px, 27vw, 350px);
  border: 1px solid #dce7f0;
  background: radial-gradient(ellipse at 50% 25%, #fff 5%, #e4eff8 100%);
}
.product-detail-section :is(.product-detail-main-img, .product-no-photo) {
  min-height: 0;
}

.product-detail-section .product-detail-badges {
  top: 12px;
  left: 12px;
  right: 12px;
}
.product-detail-section .product-detail-badges .badge {
  border-radius: 0.5rem;
}
.product-detail-section #thumbs {
  margin-top: 10px !important;
}
.product-detail-section .product-thumb-btn {
  border: 1px solid #dce7f0 !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.product-detail-section .product-thumb-btn.active {
  border-color: var(--education-primary) !important;
  transform: none;
}
.product-detail-section .product-category-pill {
  color: #176c9f;
  background: #e8f4fc;
  border: 1px solid #d6eaf7;
}
.product-detail-section .product-detail-title {
  letter-spacing: -0.025em;
  color: #183248;
}
.product-detail-section .product-brand-row .text-muted {
  color: var(--product-muted) !important;
}
.product-detail-section .product-purchase-panel {
  background: radial-gradient(ellipse at 100% 0, #278fbf55, transparent 60%), linear-gradient(120deg, #17354e, #1d4967);
}
.product-detail-section .product-detail-price {
  letter-spacing: -0.035em;
}
.product-detail-section .product-detail-old-price {
  color: #b6c9d8 !important;
}
.product-detail-section .product-purchase-panel .text-bg-success {
  background: #ffffff15 !important;
  border: 1px solid #ffffff25;
  color: #cdf8df !important;
}

.product-detail-section .product-detail-quantity {
  flex: 0 0 58px;
  min-width: 0;
}
.product-detail-section .product-detail-add-to-cart-form .form-control {
  height: 36px;
  border: 1px solid #ffffff40;
  border-radius: 0.6rem;
  color: #fff;
  background: #ffffff12;
  color-scheme: dark;
}

.product-detail-section .product-detail-add-to-cart-form .btn-primary {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-color: #17354e;
  --bs-btn-hover-bg: #e3f4ff;
  --bs-btn-hover-border-color: #e3f4ff;
  --bs-btn-hover-color: #17354e;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.product-detail-section .product-purchase-panel .btn:disabled {
  color: #d2e0eb;
  border-color: #ffffff40;
}

.product-detail-section .product-short-card .lh-lg {
  color: #526879 !important;
}
.product-detail-section :is(h2.h5, h2.h6) {
  color: #183248;
}
.product-detail-section .product-spec-box {
  border: 0;
  border-bottom: 1px solid #e7eef4;
}

.product-detail-section .product-spec-box > :last-child {
  min-width: 0;
  text-align: right;
}
.product-detail-section .product-characteristics-card .row > :last-child .product-spec-box {
  border-bottom: 0;
}
.product-detail-section .product-full-desc :is(table, pre) {
  max-width: 100%;
  overflow-x: auto;
}

.product-detail-section .product-share-box:not(:has(.share-buttons a, .share-buttons button)) {
  display: none;
}

.product-detail-section :is(#productSpecifications, #productDescription, #productReviews) {
  scroll-margin-top: 160px;
}
@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    .product-detail-section .product-thumb-btn:hover {
      transform: translateY(-2px);
      border-color: var(--education-primary) !important;
    }
  }
  @media (hover: hover) {
    .product-detail-section .product-detail-add-to-cart-form .btn-primary:hover {
      transform: translateY(-1px);
    }
  }
}

#ptcModal:has(.dish-suggestion-content) {
  --bs-modal-padding: clamp(1rem, 2.5vw, 1.5rem);
  --bs-modal-header-padding: var(--bs-modal-padding);
}
#ptcModal:has(.dish-suggestion-content) .modal-title {
  min-width: 0;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}
#dishSuggestionSubmitForm :is(.form-control, .form-select) {
  box-shadow: none;
  transition: none;
}
#dishSuggestionSubmitForm :is(.form-control, .form-select):not(:focus-visible) {
  outline: none;
}
#dishSuggestionSubmitForm :is(.form-control, .form-select):focus-visible {
  outline: 1px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Keep text fields visually steady while typing. */
.education-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):is(:focus, :active):not(:focus-visible) {
  outline: none !important;
}
.education-theme :is(.form-control, .form-select):focus:not(:focus-visible) {
  border-color: var(--bs-border-color, #dee2e6) !important;
}
:where(.education-theme) :is(.form-control, .form-select):focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
.education-theme .chat-widget-container .input-block:focus-within {
  border-color: var(--support-line) !important;
  background: var(--support-panel) !important;
}
.education-theme .pm-page .input-block:focus-within {
  border-color: var(--pm-line) !important;
  background: var(--pm-panel) !important;
}

.education-theme .chat-widget-container .chat-footer,
.education-theme .education-tickets-chat .chat-input {
  padding: 0 !important;
  border-top: 0 !important;
  background: var(--bs-body-bg, #fff);
}
body.education-theme :is(.emoji-picker, .ticket-emoji-picker) {
  translate: 0 -10px;
}

body.education-theme:is(.modal-open, .glightbox-open) .chat-widget-container {
  z-index: 1040 !important;
}

body:has(.education-tickets-chat) .emoji-picker__emoji {
  font-size: 1.6em;
}

/* Wallet balance overview */
#wallet .account-wallet-balance {
  background: var(--bs-body-bg, #fff);
  border-color: rgba(var(--bs-primary-rgb), 0.16) !important;
}

#wallet .wallet-overview {
  gap: 32px;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.08);
  background: linear-gradient(115deg, rgba(var(--bs-primary-rgb), 0.07), rgba(var(--bs-primary-rgb), 0.015));
}
#wallet .wallet-overview-main {
  min-width: 0;
}
#wallet .wallet-balance-label h2 {
  margin: 0;
  color: var(--bs-secondary-color, #536b7b);
  font-size: 15px;
  font-weight: 600;
}
#wallet .wallet-balance-icon {
  width: 36px;
  height: 36px;
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
}
#wallet .wallet-balance-amount {
  color: var(--bs-emphasis-color, #173b51);
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
#wallet .wallet-balance-value {
  min-width: 0;
}
#wallet .wallet-balance-currency {
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
  font-size: 16px;
  line-height: 1.2;
}
#wallet .wallet-balance-equivalent {
  color: var(--bs-secondary-color, #647e8e);
}
#wallet .wallet-equivalent-chip {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  background: var(--bs-body-bg, #fff);
  font-variant-numeric: tabular-nums;
}
#wallet .wallet-held-funds {
  border: 1px solid rgba(var(--bs-warning-rgb), 0.25);
  background: var(--bs-warning-bg-subtle, #fff9ed);
  color: var(--bs-warning-text-emphasis, #805b20);
}
#wallet .wallet-balance-actions {
  flex: 0 0 240px;
  border-left: 1px solid rgba(var(--bs-primary-rgb), 0.12);
}
#wallet .wallet-balance-actions .btn {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
}
#wallet .wallet-balance-actions .btn-outline-primary {
  background: var(--bs-body-bg, #fff);
}
@media (hover: hover) {
  #wallet .wallet-balance-actions .btn-outline-primary:hover {
    background: var(--account-brand);
  }
}
@media (max-width: 767.98px) {
  #wallet .wallet-balance-actions .btn {
    padding: 12px 8px;
  }
}
@media (max-width: 359.98px) {
  #wallet .wallet-balance-actions {
    grid-template-columns: 1fr;
  }
}
body.glightbox-open.gscrollbar-fixer {
  margin-right: 0 !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
html:has(#mobileMenu:is(.show, .showing, .hiding)),
body:has(#mobileMenu:is(.show, .showing, .hiding)) {
  overflow: hidden !important;
}
@supports (scrollbar-gutter: stable) {
  body:has(#mobileMenu:is(.show, .showing, .hiding)),
  body:has(#mobileMenu:is(.show, .showing, .hiding)) > header.sticky-top {
    padding-right: 0 !important;
  }
}
#wallet .wallet-history :is(.dt-container, .dt-layout-cell) {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 575.98px) {
  #wallet .wallet-history .dt-layout-cell {
    width: 100%;
    text-align: left;
  }
}

/* Mobile navigation panel. */
#mobileMenu {
  z-index: 10000004;
  --bs-offcanvas-width: min(360px, calc(100vw - 24px));
  --bs-offcanvas-bg: #f8fbff;
  border: 0;
  box-shadow: 16px 0 60px rgba(24, 55, 87, 0.2);
  overflow: hidden;
}
#mobileMenu .mobile-menu__header {
  padding: max(24px, env(safe-area-inset-top)) 20px 24px;
  background: radial-gradient(circle at 100% 0, #64c7f0 0, transparent 65%), linear-gradient(135deg, #176fba, #239bda);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#mobileMenu .mobile-menu__identity {
  min-width: 0;
}
#mobileMenu .mobile-menu__portrait {
  width: 52px;
  height: 52px;
  box-shadow: 0 6px 20px #124b7b26;
}
#mobileMenu .mobile-menu__heading {
  min-width: 0;
}
#mobileMenu .mobile-menu__heading small {
  display: block;
  color: #e1f5ff;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
#mobileMenu .mobile-menu__heading h6 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#mobileMenu .btn-close {
  margin: 0;
  padding: 12px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.9;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    #mobileMenu .btn-close:hover {
      transform: scale(1.08);
      background-color: #e1f5ff;
      opacity: 1;
      box-shadow: 0 0 0 4px #ffffff26;
    }
  }
}
#mobileMenu .btn-close:active {
  transform: scale(0.9);
}
#mobileMenu .offcanvas-body > nav {
  padding: 16px 12px !important;
  gap: 4px;
}
#mobileMenu .mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #46566b;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}
#mobileMenu .mobile-menu__icon {
  width: 22px !important;
  height: 22px !important;
}
#mobileMenu .mobile-menu__link span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#mobileMenu .mobile-menu__link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.35;
  flex-shrink: 0;
}
@media (hover: hover) {
  #mobileMenu .mobile-menu__link:hover {
    background: #edf5ff;
    color: #167bbb;
  }
}
#mobileMenu .mobile-menu__link:active {
  transform: scale(0.98);
}
#mobileMenu .mobile-menu__link.active {
  color: #126da7;
  background: linear-gradient(110deg, #e0f2ff, #eef8ff);
  border-color: #c9e6fa;
  font-weight: 600;
  box-shadow: 0 3px 10px #187db50a;
}
#mobileMenu .mobile-menu__link.active::after {
  opacity: 1;
}
#mobileMenu :is(.mobile-menu__link, .btn-close, .scale-action-btn, .scale-reset-btn):focus-visible {
  outline: 3px solid #2696db;
  outline-offset: 2px;
}
#mobileMenu nav hr {
  border-color: #d8e5f1;
  opacity: 1;
  margin: 10px 12px !important;
}
#mobileMenu .mobile-menu__scale {
  margin: 0 12px max(12px, env(safe-area-inset-bottom));
  border: 1px solid #dce8f3;
  background: linear-gradient(145deg, #fff, #edf6fd);
  box-shadow: 0 4px 18px #264e7208;
}
#mobileMenu .mobile-menu__scale-label {
  color: #536a80;
}
#mobileMenu .mobile-menu__scale .scale-widget {
  grid-template-columns: 40px minmax(0, 1fr) 40px 1px 40px;
  border: 1px solid #dae6f1;
  min-width: 0;
}
#mobileMenu .mobile-menu__scale :is(.scale-action-btn, .scale-reset-btn) {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef5fb;
  color: #326b96;
}
#mobileMenu .mobile-menu__scale .scale-indicator {
  min-width: 0;
}
#mobileMenu .mobile-menu__scale .scale-val {
  color: #234d70;
}
#mobileMenu .mobile-menu__scale .scale-divider {
  height: 20px;
  background: #dce7ef;
}
#mobileMenu .mobile-menu__scale .scale-reset-btn {
  color: #7a8797;
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    #mobileMenu .mobile-menu__scale :is(.scale-action-btn, .scale-reset-btn):hover {
      color: #fff;
      background: #3287bb;
      transform: translateY(-1px);
      box-shadow: 0 3px 8px #3287bb26;
    }
  }
}
#mobileMenu .mobile-menu__scale :is(.scale-action-btn, .scale-reset-btn):active {
  transform: scale(0.94);
}
body:has(#mobileMenu:is(.show, .showing, .hiding)) > .offcanvas-backdrop {
  z-index: 10000003;
}
body:has(#mobileMenu:is(.show, .showing, .hiding)) > header.sticky-top,
body:has(#mobileMenu:is(.show, .showing, .hiding)) .chat-widget-container {
  z-index: 1030 !important;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #mobileMenu,
  #mobileMenu * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767.98px) {
  #wallet.account-page .wallet-overview {
    gap: 12px;
  }
  #wallet.account-page .wallet-balance-actions {
    width: max-content;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    border: 0;
  }
  #wallet.account-page .wallet-balance-actions .btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
  }
  #wallet.account-page .wallet-balance-label h2 {
    font-size: 0.8125rem;
  }
  #wallet.account-page .wallet-balance-icon {
    width: 28px;
    height: 28px;
  }
  #wallet.account-page .wallet-balance-amount {
    font-size: 1.625rem;
  }
  #wallet.account-page .wallet-balance-currency {
    font-size: 0.75rem;
  }
}

/* Classes and courses: Bootstrap handles layout, spacing and responsive rows. */
#classes-page {
  --classes-ink: #243e55;
  --classes-muted: #6b8092;
  --classes-line: #dfe9f2;
  --classes-blue: #197eb8;
  color: var(--classes-ink);
  min-width: 0;
}
#classes-page :is(.classes-page-inner, .classes-course-grid, .classes-course-list, .classes-course-card, .classes-course-body, .classes-unit-body, .classes-material) {
  min-width: 0;
}
#classes-page :is(.classes-course-card, .classes-unit, .classes-material) {
  border-color: var(--classes-line) !important;
}
#classes-page .classes-grades {
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #b0d2e8 transparent;
}
#classes-page .classes-grades .nav-link {
  border-color: var(--classes-line) !important;
  background: #fff;
  color: var(--classes-muted);
  font-size: 0.875rem;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}
#classes-page .classes-grades .nav-link.active {
  border-color: var(--classes-blue) !important;
  background: var(--classes-blue);
  color: #fff;
  box-shadow: 0 4px 12px #197eb81a;
}
#classes-page .classes-course-heading > div {
  min-width: 0;
  flex: 1;
}
#classes-page :is(h4, h5, p, .badge, .classes-material) {
  overflow-wrap: anywhere;
}
#classes-page h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}
#classes-page .classes-course-heading p {
  font-size: 0.875rem;
  line-height: 1.7;
}
#classes-page .badge {
  white-space: normal;
  line-height: 1.5;
  font-weight: 500;
}
#classes-page .classes-course-toggle {
  width: 40px;
  height: 40px;
  border-color: var(--classes-line) !important;
  background: #f2f7fc;
}
#classes-page .classes-course-toggle i {
  transition: transform 200ms ease;
}
#classes-page .classes-course-toggle[aria-expanded="false"] i {
  transform: rotate(-90deg);
}
#classes-page .classes-course-meta {
  border-color: var(--classes-line) !important;
}
#classes-page .classes-course-meta > div {
  min-width: 0;
  flex: 1 1 220px;
}
#classes-page .classes-course-meta > div > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
#classes-page .classes-course-meta :is(.avatar-wrapper, .icon-wrapper) {
  flex-shrink: 0;
}
#classes-page .classes-stat {
  background: #f5f9fd !important;
  border-color: #e2edf5 !important;
}
#classes-page .classes-stat > :last-child {
  font-size: 1.375rem !important;
}
#classes-page .classes-stat > .mt-1 {
  font-size: 0.9375rem !important;
  line-height: 1.4;
}
#classes-page .classes-unit-heading h5 {
  font-size: 1rem;
  line-height: 1.5;
}
#classes-page .classes-unit-body .row i {
  color: #5591b5;
  flex-shrink: 0;
}
#classes-page .classes-material {
  background: #f8fbfe !important;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}
#classes-page .classes-material > div:first-child {
  min-width: 0;
  flex: 1;
}
#classes-page .classes-material > div:first-child > div:last-child {
  min-width: 0;
}
#classes-page .classes-restricted {
  border-color: #eedfbe !important;
  background: #fffaf0;
  color: #775b28;
}
#classes-page .classes-restricted img {
  flex-shrink: 0;
}
#classes-page .classes-empty {
  border-style: dashed !important;
  border-color: #bfd7e8 !important;
  background: #f7fbff;
}
#classes-page :is(a, button, select):focus-visible {
  outline: 3px solid #2696db66;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  @media (hover: hover) {
    #classes-page .classes-grades .nav-link:not(.active):hover {
      color: var(--classes-blue);
      border-color: #b8d8ec !important;
      background: #eef7ff;
    }
  }
  @media (hover: hover) {
    #classes-page .classes-course-toggle:hover {
      background: #e6f2fc;
      border-color: #b8d8ec !important;
    }
  }
  @media (hover: hover) {
    #classes-page .classes-material:hover {
      border-color: #bfd9eb !important;
      background: #f0f7fd !important;
    }
  }
}
@media (max-width: 767.98px) {
  #classes-page .classes-grades .nav-link {
    padding: 0.375rem 0.875rem !important;
    font-size: 0.8125rem;
  }
  #classes-page .classes-course-heading .badge {
    padding: 0.25rem 0.625rem !important;
    font-size: 0.6875rem;
  }
  #classes-page .classes-course-heading .mb-2:first-child {
    gap: 0.375rem !important;
  }
  #classes-page .classes-course-heading h4 {
    margin-bottom: 0.25rem !important;
    font-size: 1rem;
    line-height: 1.35;
  }
  #classes-page .classes-course-heading p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  #classes-page .classes-course-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px !important;
  }
  #classes-page .classes-course-meta > div {
    flex: 0 0 auto;
    gap: 0.625rem !important;
  }
  #classes-page .classes-course-meta :is(.avatar-wrapper, .icon-wrapper) {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    flex-shrink: 0;
  }
  #classes-page .classes-course-meta .avatar-wrapper img {
    width: 34px !important;
    height: 34px !important;
  }
  #classes-page .classes-course-meta .icon-wrapper i {
    font-size: 0.9375rem !important;
  }
  #classes-page .classes-course-meta .text-uppercase {
    font-size: 0.625rem;
    line-height: 1.3;
  }
  #classes-page .classes-course-meta .fs-6 {
    font-size: 0.875rem !important;
    line-height: 1.35;
  }
  /* Four compact stats in one row instead of a 2×2 grid of large tiles. */
  #classes-page .classes-course-stats {
    --bs-gutter-x: 0.375rem;
    --bs-gutter-y: 0.375rem;
  }
  #classes-page .classes-course-stats > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
  #classes-page .classes-stat > :first-child {
    margin-bottom: 0.125rem !important;
    overflow: hidden;
    font-size: 0.625rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #classes-page .classes-stat > :last-child {
    margin-top: 0 !important;
    font-size: 0.9375rem !important;
    line-height: 1.3;
  }
  #classes-page .classes-stat > .mt-1 {
    font-size: 0.6875rem !important;
    white-space: nowrap;
  }
  #classes-page .classes-unit {
    border-radius: 12px !important;
  }
  #classes-page .classes-unit-heading h5 {
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem;
  }
  #classes-page .classes-unit-heading p,
  #classes-page .classes-unit-body .small {
    font-size: 0.75rem !important;
  }
  #classes-page .classes-unit-body .row.mb-4 {
    --bs-gutter-y: 0.5rem;
    margin-bottom: 0.5rem !important;
  }
  #classes-page .classes-unit-body .row i.fs-5 {
    font-size: 0.875rem !important;
  }
  #classes-page .classes-material .fw-semibold {
    font-size: 0.8125rem !important;
  }
  #classes-page .classes-material .icon-box {
    width: 30px !important;
    height: 30px !important;
  }
  #classes-page .classes-material .badge {
    font-size: 0.625rem;
  }
  #classes-page .classes-restricted .fw-semibold {
    font-size: 0.8125rem !important;
  }
  #classes-page .classes-restricted p {
    font-size: 0.75rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #classes-page *,
  #classes-page .collapsing {
    transition: none !important;
  }
}

@media (max-width: 1600px) {
  .container {
    max-width: 1400px !important;
  }
}

@media (max-width: 1440px) {
  .container {
    max-width: 1300px !important;
  }
}

@media (max-width: 1300px) {
  .container {
    max-width: 1200px !important;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 1100px !important;
  }
}

@media (max-width: 1100px) {
  .container {
    max-width: 1000px !important;
  }
}

@media (max-width: 1000px) {
  .container {
    max-width: 900px !important;
  }
}

@media (max-width: 991px) {
  .header__bottom {
    max-width: 850px !important;
  }
  .header__top {
    height: 40px;
  }
  .header__bottom::before {
    content: "";
    position: absolute;
    top: 33px;
    left: calc(21px * -1);
    width: 50px;
    height: 38px;
    transform: rotateZ(264deg);
    background: radial-gradient(circle at 0% 0%, transparent 70%, var(--bg-white) 71%);
  }

  .header__bottom::after {
    content: "";
    position: absolute;
    top: 32px;
    right: calc(24px * -1);
    width: 52px;
    height: 39px;
    transform: rotateZ(-261deg);
    background: radial-gradient(circle at 100% 0%, transparent 70%, var(--bg-white) 71%);
  }
}

@media (max-width: 850px) {
  .header__bottom {
    max-width: 700px !important;
  }
}

@media (max-width: 750px) {
  .header__bottom {
    max-width: 500px !important;
  }
}

@media (max-width: 520px) {
  .header__bottom {
    max-width: 400px !important;
  }
}

/* Event Participants Table Sorting */
.event-participants-modal-content th.sortable-col {
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out;
}
@media (hover: hover) {
  .event-participants-modal-content th.sortable-col:hover {
    color: var(--bs-primary, #2696db) !important;
    background-color: rgba(38, 150, 219, 0.08) !important;
  }
}
.event-participants-modal-content th.sortable-col:focus-visible {
  outline: 2px solid var(--bs-primary, #2696db);
  outline-offset: -2px;
}
.event-participants-modal-content th.sortable-col .sort-icon {
  transition:
    opacity 0.15s ease-in-out,
    color 0.15s ease-in-out;
}

@media (max-width: 991.98px) {
  body.modal-open > header.sticky-top {
    z-index: 1030 !important;
  }
}

@media (max-width: 575.98px) {
  header.sticky-top .header-top-row {
    --header-tool-size: clamp(36px, 10vw, 40px);
    padding-inline: 0.75rem;
    -webkit-tap-highlight-color: transparent;
  }

  header.sticky-top .header-top-tools {
    --header-tools-gap: clamp(4px, 1.25vw, 6px);
    gap: var(--header-tools-gap) !important;
    min-width: 0;
  }

  header.sticky-top .header-top-row .icon-btn {
    transform: none;
    transition: none;
  }

  header.sticky-top .header-top-tools [data-auth-region="account-tools"] > .message-wrapper {
    margin-left: 0 !important;
  }

  header.sticky-top :is(.header-menu-toggle, #openSearch, #notificationBtn, #messageBtn, #headerCartLink, #languageDropdownBtn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--header-tool-size);
    min-width: var(--header-tool-size);
    height: var(--header-tool-size);
    min-height: var(--header-tool-size);
    padding: 0.375rem !important;
  }

  header.sticky-top :is(.header-menu-toggle, #openSearch, #notificationBtn, #messageBtn, #headerCartLink, #languageDropdownBtn) > :is(img, svg) {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  header.sticky-top .header-top-tools #authDropdownToggle {
    width: var(--header-tool-size);
    height: var(--header-tool-size);
    min-width: var(--header-tool-size);
    min-height: var(--header-tool-size);
    justify-content: center;
  }

  header.sticky-top .header-top-tools #authDropdownToggle > img.avatar {
    width: var(--header-tool-size);
    height: var(--header-tool-size);
    object-fit: cover;
  }

  header.sticky-top #headerSearchOverlay {
    inset: 0;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    transform: none;
    border-radius: 0 !important;
    background: #2f8ed9;
  }

  header.sticky-top #headerSearchOverlay > .container-fluid {
    height: 100%;
    padding: 0;
    gap: 0.5rem !important;
  }

  header.sticky-top #headerSearchInput {
    height: 36px;
    min-height: 36px;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--bs-border-radius, 0.375rem);
    font-size: 16px !important;
    line-height: 1.5;
    background: #fff;
    color: var(--bs-body-color, #212529);
  }

  header.sticky-top #headerSearchInput:focus {
    outline: none;
    box-shadow: none;
  }

  header.sticky-top #headerSearchOverlay #closeSearch {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--bs-border-radius, 0.375rem);
    background: rgba(255, 255, 255, 0.12);
  }
  @media (hover: hover) {
    header.sticky-top #headerSearchOverlay #closeSearch:hover {
      background: rgba(255, 255, 255, 0.2);
    }
  }

  header.sticky-top #headerSearchOverlay #closeSearch > svg {
    width: 16px;
    height: 16px;
  }
}

#languageDropdownMenu {
  --bs-dropdown-min-width: 100%;
}

#languageDropdownBtn .lang-chevron {
  transition: transform 0.2s ease;
}

#languageDropdownBtn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

@media (max-width: 575.98px) {
  #languageDropdownMenu {
    --bs-dropdown-min-width: 10rem;
    right: 0;
    left: auto !important;
  }
}

#MessagesList {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-x: hidden;
}
#MessagesList .message-item {
  flex-shrink: 0;
  height: 68px;
  min-height: 68px;
  margin: 0;
  padding: 10px;
  gap: 10px;
  border-radius: var(--bs-border-radius, 6px);
}
#MessagesList .avatar-container {
  width: 32px;
  height: 32px;
}
#MessagesList .message-sender-name {
  font-size: 14px;
}
#MessagesList .message-text-wrapper {
  -webkit-line-clamp: 1;
  font-size: 13px;
}
#MessagesList .message-time {
  font-size: 10px;
}

body.education-theme .simple-emoji-picker {
  position: fixed;
  z-index: 10000002;
  top: var(--emoji-top, 12px);
  left: var(--emoji-left, 12px);
  width: var(--emoji-width, 340px);
  max-width: calc(100vw - 24px);
  max-height: var(--emoji-max-height, calc(100dvh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.simple-emoji-picker[hidden] {
  display: none;
}
.simple-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 2px;
}
.simple-emoji-item {
  min-width: 0;
  aspect-ratio: 1;
  border: 0;
  font-size: 24px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  transition: background-color 0.12s ease;
}
.simple-emoji-item:focus-visible {
  background: var(--bs-tertiary-bg, #f0f4f8);
}
@media (hover: hover) {
  .simple-emoji-item:hover {
    background: var(--bs-tertiary-bg, #f0f4f8);
  }
}
.simple-emoji-item:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: -2px;
}

body.education-theme .simple-emoji-picker:not([hidden]) {
  display: flex;
  flex-direction: column;
}
.simple-emoji-picker > :not(.emoji-category-body) {
  flex-shrink: 0;
}
.emoji-category-tabs {
  display: flex;
  justify-content: space-between;
}
.emoji-category-tabs .btn {
  flex: 0 0 auto;
  min-width: 0;
  aspect-ratio: 1;
  width: calc(100% / 11);
  border: 0;
  font-size: 17px;
}
.emoji-category-tabs .active {
  background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.12);
}
.emoji-category-body {
  height: 260px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.simple-emoji-picker .form-control {
  min-height: 34px;
  font-size: 13px;
}
.emoji-category-tabs .btn:not(.active) {
  opacity: 0.7;
}
.emoji-category-tabs .btn:focus-visible {
  opacity: 1;
  background: var(--bs-tertiary-bg, #f0f4f8);
}
@media (hover: hover) {
  .emoji-category-tabs .btn:hover {
    opacity: 1;
    background: var(--bs-tertiary-bg, #f0f4f8);
  }
}
.emoji-category-body {
  scrollbar-width: thin;
  scrollbar-color: var(--bs-border-color, #d8e1ea) transparent;
}
.emoji-section-title {
  position: sticky;
  top: 0;
  z-index: 1;
}
.emoji-picker-empty {
  grid-column: 1 / -1;
  align-self: center;
}
@media (prefers-reduced-motion: reduce) {
  .simple-emoji-item {
    transition: none;
  }
}

@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="color"]),
  select,
  textarea {
    font-size: max(16px, 1em) !important;
  }
}

.tab-pane:focus,
.tab-pane:focus-visible {
  outline: 0;
}

@media (max-width: 767.98px) {
  header.sticky-top .top-bar__search,
  header.sticky-top .notification-wrapper,
  header.sticky-top .message-wrapper {
    display: none !important;
  }
}

.education-footer {
  background-color: #f2f6fa;
  border-top: 1px solid #d5e1ec;
}

[data-bs-theme="dark"] .education-footer {
  background-color: var(--bs-tertiary-bg);
  border-top-color: var(--bs-border-color);
}

@media (max-width: 767.98px) {
  header.sticky-top #headerCartLink {
    display: none !important;
  }
  header.sticky-top .header-mobile-brand {
    min-width: 0;
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  header.sticky-top #languageDropdownBtn {
    margin-right: 0.375rem;
  }
  header.sticky-top #languageDropdownBtn > img {
    width: 28px !important;
    height: 28px !important;
  }
  header.sticky-top > .header {
    display: none !important;
  }
}

#live-search-results {
  z-index: 10000010 !important;
}

#mobileMenu .mobile-menu__search-form .form-control {
  min-height: 48px;
  padding-left: 2.75rem;
  border: 1px solid #b9c6d3;
  border-radius: 14px;
  background-color: #fff;
  color: #243447;
  font-size: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

#mobileMenu .mobile-menu__search-form .form-control::placeholder {
  color: #6f7c8b;
}

#mobileMenu .mobile-menu__search-form .form-control:focus {
  outline: 0;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

#mobileMenu .mobile-menu__search-icon {
  left: 1rem;
  transform: translateY(-50%);
  color: #5f6d7d;
}

.breadcrumb-container > .container-fluid {
  background-color: #e9f1f8 !important;
  border-bottom: 1px solid #d3e0ec;
}

@media (max-width: 575px) {
  .breadcrumb-container {
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .breadcrumb-container {
    padding-top: 100px;
  }

  header.sticky-top .top-bar,
  header.sticky-top #headerSearchOverlay {
    background: #1d6aab;
  }
  #mobileMenu .mobile-menu__header {
    background: radial-gradient(circle at 100% 0, #3e9fd6 0, transparent 65%), linear-gradient(135deg, #0f5592, #1a77b8);
  }
}

@media (max-width: 991px) {
  .breadcrumb-container {
    padding-top: 180px;
  }
}

[data-bs-theme="dark"] .breadcrumb-container > .container-fluid {
  background-color: var(--bs-tertiary-bg) !important;
  border-bottom-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .breadcrumb-container .breadcrumb-link {
  background-color: var(--bs-body-bg) !important;
  border-color: var(--bs-border-color) !important;
}

.news-list-section {
  --news-ink: #20354b;
  --news-muted: #667b90;
  --news-line: #e2eaf2;
}
.news-list-section .news-list-heading {
  color: var(--news-ink);
}
.news-list-section .news-card {
  min-width: 0;
  border: 1px solid var(--news-line);
  box-shadow: 0 5px 20px rgba(32, 53, 75, 0.045);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
@media (hover: hover) {
  .news-list-section .news-card:hover {
    border-color: #b7d9ee;
    box-shadow: 0 10px 28px rgba(32, 53, 75, 0.09);
  }
  .news-list-section .news-card-content:hover {
    color: var(--news-ink);
  }
}
.news-list-section .news-card-img {
  aspect-ratio: 16 / 10;
}
.news-list-section .news-card-content {
  color: var(--news-ink);
}
.news-list-section .news-card-title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--news-ink);
  line-height: 1.4;
}
.news-list-section .news-card-meta {
  border-bottom: 1px solid var(--news-line);
  color: var(--news-muted);
}
.news-list-section .news-card-meta i {
  color: #2696db;
}
.news-list-section .news-card-desc {
  display: -webkit-box;
  min-height: 5.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: var(--news-muted);
  line-height: 1.7;
}
.news-list-section .pagination-wrapper :is(.pagination, ul) {
  gap: 8px;
  flex-wrap: wrap;
}
.news-list-section .pagination-wrapper .page-link {
  border: 1px solid var(--news-line);
  border-radius: 10px;
}
.news-list-section .news-empty {
  border: 1px dashed var(--news-line);
  color: var(--news-muted);
}
.news-list-section .news-empty-icon {
  width: 56px;
  height: 56px;
  background: #eaf4fb;
  color: #2696db;
}
.news-list-section .news-empty-title {
  color: var(--news-ink);
}

.ls-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #212529;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 38, 70, 0.18);
}
.ls-dropdown--wide {
  left: auto;
  right: 0;
  width: 420px;
}
.ls-dropdown.d-none {
  display: none !important;
}
.ls-dropdown a {
  color: inherit;
}
.ls-dropdown .ls-progress {
  position: sticky;
  top: 0;
  height: 3px;
  overflow: hidden;
  background: #e8f0fb;
  z-index: 2;
}
.ls-dropdown .ls-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: #0d6efd;
  border-radius: 3px;
  animation: ls-slide 1s ease-in-out infinite;
}
@keyframes ls-slide {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}
.ls-dropdown.is-loading .ls-body {
  opacity: 0.45;
  transition: opacity 0.15s;
  pointer-events: none;
}
.ls-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  color: #6c757d;
}
.ls-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d6e2f3;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: ls-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes ls-spin {
  to {
    transform: rotate(360deg);
  }
}
.ls-dropdown .ls-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 12px;
  color: #6c757d;
  border-bottom: 1px solid #f0f2f5;
}
.ls-dropdown .ls-snippet {
  font-size: 12.5px;
  color: #6c757d;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ls-dropdown .ls-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 12px;
  background: #f1f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a94a6;
}
.ls-dropdown .ls-all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  font-weight: 600;
  color: #0d6efd !important;
  text-decoration: none;
  border-top: 1px solid #f0f2f5;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.ls-dropdown .ls-hint {
  padding: 6px 16px 10px;
  font-size: 11.5px;
  color: #9aa3b2;
}
.ls-dropdown .ls-hint kbd {
  background: #f1f3f6;
  color: #555;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 11px;
  box-shadow: none;
}
@media (max-width: 767.98px) {
  .ls-dropdown,
  .ls-dropdown--wide {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
  }
  .ls-dropdown .ls-hint {
    display: none;
  }
}

header .top-bar:has(.ls-dropdown:not(.d-none)),
header .header-top-row:has(.ls-dropdown:not(.d-none)) {
  position: relative;
  z-index: 1060;
}
header:has(.ls-dropdown:not(.d-none)) > .header,
header:has(.ls-dropdown:not(.d-none)) .header {
  z-index: 1 !important;
}

.education-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):is(:focus, :focus-visible) {
  outline: none !important;
}
.education-theme :is(.form-control, .form-select):is(:focus, :focus-visible) {
  border-color: var(--bs-border-color, #dee2e6) !important;
  box-shadow: none !important;
}
.education-theme .form-check-input:focus {
  box-shadow: none !important;
}
html:not([data-focus-source="keyboard"]) .education-theme :is(a, button, summary, [tabindex], input[type="checkbox"], input[type="radio"], input[type="range"]):focus-visible {
  outline: none !important;
}
html:not([data-focus-source="keyboard"]) .education-theme .btn {
  --bs-btn-focus-box-shadow: none;
}

/* ===== Перенесено из inline style="" в main.tpl ===== */
#live-search-results {
  top: calc(100% + 5px);
  right: 0;
  min-width: 380px;
  max-height: 450px;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
header .header.header--shadow {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}
.nav-logo .nav-logo__img {
  width: calc(var(--header-logo-width, 272px) * var(--logo-font-scale, 1)) !important;
  max-width: 100%;
  height: auto;
}
/* display меняет JS (style.display / .hide()) — без !important */
.badge.header-count-badge {
  display: none;
  z-index: 3;
  padding: 0.25em 0.45em !important;
  font-size: 0.65rem !important;
}
.content-wrapper.content-wrapper--fit {
  height: fit-content;
}
