

/* Start:/bitrix/templates/gl_showcase/assets/app.css?178909868177019*/
/* Minimal overrides on top of Bootstrap */

:root {
  --gl-accent: rgb(249, 104, 6);
  --gl-cta: rgb(16, 107, 60);
  --gl-hero-bg: rgb(246, 187, 36);
  --gl-header: rgb(33, 37, 41);
  --gl-bg-white: rgb(255, 255, 255);
  --gl-orange: rgb(249, 104, 6);
  --gl-blue: rgb(16, 107, 160);
  --gl-light-blue: rgb(203, 230, 247);
  --gl-yellow: rgb(246, 187, 36);
  --gl-page-bg: #14171b;
  --gl-surface: #212529;
  --gl-surface-raised: #2b3038;
  --gl-border-subtle: rgba(255, 255, 255, 0.12);
  --gl-text: #f1f3f5;
  --gl-text-muted: rgba(255, 255, 255, 0.62);
  --gl-heading: #ffffff;
  --gl-link: var(--gl-light-blue);
  --gl-input-bg: #1a1d21;
}

html {
  height: 100%;
}

html,
body {
  background-color: var(--gl-page-bg);
}

body.gl-showcase {
  background-color: var(--gl-page-bg);
  background-image: none;
  color: var(--gl-text);
  color-scheme: dark;
  /* Sticky footer: short pages still pin footer to viewport bottom */
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Bootstrap alignment (tokens) */
  --bs-body-bg: var(--gl-page-bg);
  --bs-body-color: var(--gl-text);
  --bs-emphasis-color: var(--gl-heading);
  --bs-secondary-color: var(--gl-text-muted);
  --bs-secondary-color-rgb: 255, 255, 255;
  --bs-border-color: var(--gl-border-subtle);
  --bs-link-color: var(--gl-link);
  --bs-link-hover-color: #fff;
  /* Keep Bootstrap .btn-primary usable on dark pages */
  --bs-primary: var(--gl-blue);
  --bs-primary-rgb: 16, 107, 160;
}

body.gl-showcase > header {
  flex-shrink: 0;
}

body.gl-showcase > main#main {
  flex: 1 0 auto;
  width: 100%;
}

body.gl-showcase > footer {
  flex-shrink: 0;
  margin-top: auto;
}

body[data-bs-theme="dark"] {
  background-color: var(--gl-page-bg);
}

body.gl-showcase::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/bitrix/templates/gl_showcase/assets/./backgrounds/World-Map-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.28;
}

body[data-bs-theme="dark"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/bitrix/templates/gl_showcase/assets/./backgrounds/World-Map-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.28;
}

.gl-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.skip-link.visually-hidden-focusable:focus {
  position: fixed;
  z-index: 1080;
}

.gl-wordmark {
  font-family: "CTC Splash Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
}

@media (max-width: 575.98px) {
  #heroCarousel .carousel-caption {
    font-size: 0.9rem;
  }
}

.gl-hero-pane {
  background-color: color-mix(in srgb, var(--gl-surface) 92%, transparent);
  color: var(--gl-text);
}

.gl-hero-carousel {
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

.gl-hero-pane .text-gl-blue {
  color: var(--gl-heading) !important;
}

.gl-hero-pane a:not(.btn) {
  color: var(--gl-link);
}

.gl-hero-pane a:not(.btn):hover,
.gl-hero-pane a:not(.btn):focus-visible {
  color: #fff;
}

.gl-how-card {
  background-color: rgba(16, 107, 160, 0.8);
  color: #fff;
}

.gl-how-card a:not(.gl-how-card--link) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gl-how-card a:not(.gl-how-card--link):hover,
.gl-how-card a:not(.gl-how-card--link):focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

.gl-how-card--link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.gl-how-card--link:hover {
  background-color: color-mix(in srgb, var(--gl-blue) 92%, #ffffff);
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.28) !important;
  color: #fff;
}

.gl-how-card--link:focus-visible {
  outline: 2px solid var(--gl-light-blue);
  outline-offset: 2px;
  color: #fff;
}

.gl-how-card--link:active {
  background-color: color-mix(in srgb, var(--gl-blue) 78%, #000000);
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.22) !important;
  transform: translateY(1px);
  color: #fff;
}

.gl-how-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.gl-how-card--link:hover .gl-how-card__icon,
.gl-how-card--link:focus-visible .gl-how-card__icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--gl-light-blue);
}

.gl-how-card--link:active .gl-how-card__icon {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gl-how-card__title {
  font-weight: 600;
  line-height: 1.35;
}

header .navbar > .container {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.btn-outline-gl {
  --bs-btn-color: var(--gl-accent);
  --bs-btn-border-color: var(--gl-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gl-accent);
  --bs-btn-hover-border-color: var(--gl-accent);
  --bs-btn-focus-shadow-rgb: 249, 104, 6;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gl-accent);
  --bs-btn-active-border-color: var(--gl-accent);
}

.btn-gl-cta {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--gl-accent);
  --bs-btn-border-color: var(--gl-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--gl-accent) 88%, #000000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--gl-accent) 88%, #000000);
  --bs-btn-focus-shadow-rgb: 249, 104, 6;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--gl-accent) 78%, #000000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--gl-accent) 78%, #000000);
}

.btn-gl-blue {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--gl-blue);
  --bs-btn-border-color: var(--gl-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--gl-blue) 86%, #ffffff);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--gl-blue) 86%, #ffffff);
  --bs-btn-focus-shadow-rgb: 16, 107, 160;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--gl-blue) 78%, #000000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--gl-blue) 78%, #000000);
}

.btn-outline-header {
  --bs-btn-color: var(--gl-header);
  --bs-btn-border-color: var(--gl-header);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gl-header);
  --bs-btn-hover-border-color: var(--gl-header);
  --bs-btn-focus-shadow-rgb: 33, 37, 41;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gl-header);
  --bs-btn-active-border-color: var(--gl-header);
}

.text-header {
  color: var(--gl-header) !important;
}

.text-gl-blue {
  color: var(--gl-blue) !important;
}

.text-gl-light-blue {
  color: var(--gl-light-blue) !important;
}

body.gl-showcase main .text-gl-blue {
  color: var(--gl-light-blue) !important;
}

body.gl-showcase main .text-secondary {
  color: var(--gl-text-muted) !important;
}

body.gl-showcase main .text-header {
  color: #dee2e6 !important;
}

body.gl-showcase main a:not(.btn):not(.dropdown-item):not(.alert-link):not(.link-light) {
  color: var(--gl-link);
}

body.gl-showcase main a:not(.btn):not(.dropdown-item):not(.alert-link):not(.link-light):hover,
body.gl-showcase main a:not(.btn):not(.dropdown-item):not(.alert-link):not(.link-light):focus-visible {
  color: #fff;
}

/* Заголовки страниц контента на тёмном фоне */
.gl-page-title {
  color: var(--gl-heading);
  font-weight: 700;
  text-shadow: none;
}

.gl-lead {
  color: var(--gl-text);
}

.gl-panel {
  background-color: var(--gl-surface);
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.gl-panel--raised {
  background-color: var(--gl-surface-raised);
}

.gl-surface-light {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 0.5rem;
  color: #212529;
}

.gl-surface-light .text-secondary {
  color: #6c757d !important;
}

.gl-surface-light .text-gl-blue {
  color: var(--gl-blue) !important;
}

.gl-hero-pane .text-gl-blue,
.gl-surface-light .text-gl-blue {
  color: var(--gl-blue) !important;
}

body.gl-showcase main code {
  color: #a5d8ff;
  background-color: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

body.gl-showcase main .form-control,
body.gl-showcase main .form-select {
  background-color: var(--gl-input-bg);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
}

body.gl-showcase main textarea.form-control {
  background-color: var(--gl-input-bg);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
}

body.gl-showcase main .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

body.gl-showcase main .form-control:focus,
body.gl-showcase main .form-select:focus {
  background-color: var(--gl-input-bg);
  border-color: var(--gl-blue);
  color: var(--gl-text);
  box-shadow: 0 0 0 0.2rem rgba(16, 107, 160, 0.35);
}

body.gl-showcase main .form-control:disabled,
body.gl-showcase main .form-select:disabled,
body.gl-showcase main textarea.form-control:disabled {
  background-color: color-mix(in srgb, var(--gl-input-bg) 92%, #000);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

body.gl-showcase main .form-control[readonly],
body.gl-showcase main textarea.form-control[readonly] {
  background-color: color-mix(in srgb, var(--gl-input-bg) 94%, transparent);
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
}

body.gl-showcase main .form-control:focus-visible,
body.gl-showcase main .form-select:focus-visible,
body.gl-showcase main textarea.form-control:focus-visible {
  outline: none;
}

body.gl-showcase main .form-label {
  color: var(--gl-text-muted);
}

body.gl-showcase main .form-check-label {
  color: var(--gl-text);
}

body.gl-showcase main .form-check-input {
  background-color: var(--gl-input-bg);
  border-color: rgba(255, 255, 255, 0.35);
}

body.gl-showcase main .form-check-input:focus {
  border-color: var(--gl-blue);
  box-shadow: 0 0 0 0.2rem rgba(16, 107, 160, 0.25);
}

body.gl-showcase main .form-check-input:checked {
  background-color: var(--gl-blue);
  border-color: var(--gl-blue);
}

body.gl-showcase main .form-check-input:disabled {
  opacity: 0.6;
}

body.gl-showcase main .form-text {
  color: var(--gl-text-muted);
}

body.gl-showcase main .invalid-feedback {
  color: #ff8787;
}

body.gl-showcase main .form-control.is-invalid,
body.gl-showcase main .form-select.is-invalid,
body.gl-showcase main textarea.form-control.is-invalid {
  border-color: rgba(255, 135, 135, 0.75);
}

body.gl-showcase main .form-control.is-invalid:focus,
body.gl-showcase main .form-select.is-invalid:focus,
body.gl-showcase main textarea.form-control.is-invalid:focus {
  border-color: rgba(255, 135, 135, 0.9);
  box-shadow: 0 0 0 0.2rem rgba(255, 135, 135, 0.18);
}

body.gl-showcase main .form-control.is-valid,
body.gl-showcase main .form-select.is-valid,
body.gl-showcase main textarea.form-control.is-valid {
  border-color: rgba(140, 233, 154, 0.65);
}

body.gl-showcase main .form-control.is-valid:focus,
body.gl-showcase main .form-select.is-valid:focus,
body.gl-showcase main textarea.form-control.is-valid:focus {
  border-color: rgba(140, 233, 154, 0.85);
  box-shadow: 0 0 0 0.2rem rgba(140, 233, 154, 0.16);
}

body.gl-showcase main .invalid-feedback.d-block:empty,
body.gl-showcase main .valid-feedback.d-block:empty {
  display: none !important;
}

body.gl-showcase main [data-gl-captcha-wrap] img {
  border-radius: 0.375rem;
  border: 1px solid var(--gl-border-subtle);
}

body.gl-showcase main .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--gl-text);
  --bs-table-border-color: var(--gl-border-subtle);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
}

body.gl-showcase main .table thead th {
  color: var(--gl-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ЛК: плашечный выбор услуги (/my/order/) */
.gl-order-tile {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.gl-order-tile:has(.gl-order-tile__input:checked) {
  border-color: var(--gl-accent);
  box-shadow: 0 0 0 1px var(--gl-accent);
}

.gl-order-tile__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gl-order-tile__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 1rem;
}

.gl-order-tile__continue {
  display: none;
}

.gl-order-tile:has(.gl-order-tile__input:checked) .gl-order-tile__continue {
  display: inline-block;
}

.gl-order-tile__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .gl-order-tile__media {
    width: 9rem;
    height: 9rem;
  }
}

.gl-order-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gl-order-tile__body {
  min-height: 7.5rem;
}

@media (min-width: 768px) {
  .gl-order-tile__body {
    min-height: 9rem;
  }
}

/* Сетка выбора услуги: 3 колонки на desktop (col-lg-4) */
@media (min-width: 992px) {
  .gl-order-tile-grid > .col-lg-4 .gl-order-tile__media {
    width: 5.5rem;
    height: 5.5rem;
  }

  .gl-order-tile-grid > .col-lg-4 .gl-order-tile__body {
    min-height: 5.5rem;
  }

  .gl-order-tile-grid > .col-lg-4 .gl-order-tile .h5 {
    font-size: 1.05rem;
    line-height: 1.3;
  }
}

/* Default dark surfaces for common Bootstrap components on new pages */
body.gl-showcase main hr {
  border-color: var(--gl-border-subtle);
  opacity: 1;
}

body.gl-showcase main .border,
body.gl-showcase main .border-top,
body.gl-showcase main .border-end,
body.gl-showcase main .border-bottom,
body.gl-showcase main .border-start {
  border-color: var(--gl-border-subtle) !important;
}

body.gl-showcase main .card {
  background-color: var(--gl-surface);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

body.gl-showcase main .card-header,
body.gl-showcase main .card-footer {
  background-color: color-mix(in srgb, var(--gl-surface) 94%, #000);
  border-color: var(--gl-border-subtle);
}

body.gl-showcase main .list-group {
  --bs-list-group-bg: var(--gl-surface);
  --bs-list-group-color: var(--gl-text);
  --bs-list-group-border-color: var(--gl-border-subtle);
  --bs-list-group-action-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-list-group-action-hover-color: var(--gl-text);
  --bs-list-group-action-active-bg: rgba(255, 255, 255, 0.09);
  --bs-list-group-action-active-color: var(--gl-text);
}

body.gl-showcase main .list-group-item {
  background-color: var(--bs-list-group-bg);
  color: var(--bs-list-group-color);
  border-color: var(--bs-list-group-border-color);
}

body.gl-showcase main .modal-content {
  background-color: var(--gl-surface);
  color: var(--gl-text);
  border-color: var(--gl-border-subtle);
}

body.gl-showcase main .modal-header,
body.gl-showcase main .modal-footer {
  border-color: var(--gl-border-subtle);
}

body.gl-showcase main .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.gl-showcase main .dropdown-menu {
  background-color: var(--gl-surface-raised);
  border-color: var(--gl-border-subtle);
}

body.gl-showcase main .dropdown-menu .dropdown-item {
  color: var(--gl-text);
}

body.gl-showcase main .dropdown-menu .dropdown-divider {
  border-color: var(--gl-border-subtle);
}

body.gl-showcase main .alert-light {
  --bs-alert-bg: rgba(255, 255, 255, 0.08);
  --bs-alert-border-color: var(--gl-border-subtle);
  --bs-alert-color: var(--gl-text);
}

/* Table states used in internal diagnostics (/local/tools/*) */
body.gl-showcase main .table-success {
  --bs-table-bg: rgba(25, 135, 84, 0.10);
  --bs-table-color: var(--gl-text);
  --bs-table-border-color: rgba(25, 135, 84, 0.25);
}

body.gl-showcase main .table-warning {
  --bs-table-bg: rgba(255, 193, 7, 0.10);
  --bs-table-color: var(--gl-text);
  --bs-table-border-color: rgba(255, 193, 7, 0.25);
}

body.gl-showcase main .table-bordered > :not(caption) > * {
  border-color: var(--gl-border-subtle);
}

body.gl-showcase main .alert-warning {
  --bs-alert-bg: rgba(255, 193, 7, 0.12);
  --bs-alert-border-color: rgba(255, 193, 7, 0.35);
  --bs-alert-color: #ffe066;
}

body.gl-showcase main .alert-danger {
  --bs-alert-bg: rgba(220, 53, 69, 0.15);
  --bs-alert-border-color: rgba(220, 53, 69, 0.4);
  --bs-alert-color: #ffa8a8;
}

body.gl-showcase main .alert-secondary {
  --bs-alert-bg: rgba(255, 255, 255, 0.08);
  --bs-alert-border-color: var(--gl-border-subtle);
  --bs-alert-color: var(--gl-text);
}

body.gl-showcase main .alert-success {
  --bs-alert-bg: rgba(25, 135, 84, 0.15);
  --bs-alert-border-color: rgba(25, 135, 84, 0.4);
  --bs-alert-color: #8ce99a;
}

body.gl-showcase main .alert-link {
  color: #fff;
  text-decoration: underline;
}

body.gl-showcase main .btn-outline-secondary {
  --bs-btn-color: #dee2e6;
  --bs-btn-border-color: rgba(255, 255, 255, 0.35);
  --bs-btn-hover-color: #212529;
  --bs-btn-hover-bg: #dee2e6;
  --bs-btn-hover-border-color: #dee2e6;
}

body.gl-showcase main .btn-outline-primary {
  --bs-btn-color: var(--gl-link);
  --bs-btn-border-color: var(--gl-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gl-blue);
  --bs-btn-hover-border-color: var(--gl-blue);
}

body.gl-showcase main .btn-outline-danger {
  --bs-btn-color: #ff8787;
  --bs-btn-border-color: rgba(255, 135, 135, 0.55);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #c92a2a;
  --bs-btn-hover-border-color: #c92a2a;
}

.gl-surface-light .form-control,
.gl-surface-light .form-select {
  background-color: #fff;
  border-color: var(--bs-border-color);
  color: #212529;
}

.gl-surface-light .form-control:focus {
  background-color: #fff;
  color: #212529;
}

.gl-surface-light .form-label,
.gl-surface-light .form-check-label {
  color: #212529;
}

/* Hero carousel (главная) */
.gl-hero-carousel-shell {
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  background: transparent;
}

.gl-hero-carousel {
  background: transparent;
  border: 0;
  box-shadow: none;
  --gl-hero-copy-min-height: calc(
    (3 * 1.2 * 1.35rem) +
    0.75rem +
    (6 * 1.55 * 0.8125rem) +
    0.75rem +
    (3 * (1.45 * 0.9375rem) + 2 * 0.35rem)
  );
  --gl-hero-media-ratio: 800 / 420;
}

.gl-hero-carousel .gl-hero-pane {
  background-color: transparent;
}

.gl-hero-carousel__body {
  justify-content: flex-start !important;
  align-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.gl-hero-carousel__title {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.gl-hero-carousel__copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  flex: 1 1 auto;
  width: 100%;
  min-height: var(--gl-hero-copy-min-height);
  margin: 0;
}

.gl-hero-carousel__lead {
  color: var(--gl-heading);
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
  flex: 0 0 auto;
}

.gl-hero-carousel__lead,
.gl-hero-carousel__lead * {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.gl-hero-carousel__lead--empty {
  visibility: hidden;
}

.gl-hero-carousel__features {
  color: var(--gl-heading);
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: auto 0 0;
  flex: 0 0 auto;
  min-height: calc(3 * (1.45 * 0.9375rem) + 2 * 0.35rem);
}

.gl-hero-carousel__features li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.35rem;
  min-height: calc(1.45 * 0.9375rem);
}

.gl-hero-carousel__feature--empty {
  visibility: hidden;
}

.gl-hero-carousel__feature-value {
  font-size: 1.1em;
  font-weight: 700;
}

.gl-hero-carousel__features li:last-child {
  margin-bottom: 0;
}

.gl-hero-carousel__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #198754;
  font-weight: 700;
  font-size: 0.95em;
}

.gl-hero-carousel .carousel-item-row {
  min-height: 420px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .gl-hero-carousel {
    --gl-hero-slide-min-height: 346px;
    --gl-hero-title-size: 3.0rem;
    --gl-hero-lead-size: 0.9rem;
    --gl-hero-features-size: 1.08rem;
    --gl-hero-copy-gap: 0.72rem;
    --gl-hero-body-padding-y: 1.08rem;
    --gl-hero-copy-min-height: calc(var(--gl-hero-slide-min-height) - 2 * var(--gl-hero-body-padding-y));
  }

  .gl-hero-carousel .carousel-item-row {
    min-height: var(--gl-hero-slide-min-height);
  }

  .gl-hero-carousel .carousel-item-row > .col-md-8 > .gl-hero-carousel__body,
  .gl-hero-carousel .carousel-item-row > .col-12 > .gl-hero-carousel__body {
    flex: 1 1 auto;
    align-self: stretch;
    justify-content: flex-start !important;
    min-height: 100%;
    max-height: var(--gl-hero-slide-min-height);
    padding-top: var(--gl-hero-body-padding-y);
    padding-bottom: var(--gl-hero-body-padding-y);
  }

  .gl-hero-carousel .carousel-item-row > .col-md-8,
  .gl-hero-carousel .carousel-item-row > .col-12 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    max-height: var(--gl-hero-slide-min-height);
  }

  .gl-hero-carousel__title {
    font-size: var(--gl-hero-title-size);
  }

  .gl-hero-carousel__copy {
    flex: 1 1 auto;
    margin-top: 0;
    gap: var(--gl-hero-copy-gap);
  }

  .gl-hero-carousel__lead {
    font-size: var(--gl-hero-lead-size);
  }

  .gl-hero-carousel__features {
    font-size: var(--gl-hero-features-size);
    min-height: calc(3 * (1.45 * var(--gl-hero-features-size)) + 2 * 0.35rem);
  }

  .gl-hero-carousel__features li {
    min-height: calc(1.45 * var(--gl-hero-features-size));
    padding-left: 1.75rem;
  }
}

.gl-hero-carousel .gl-hero-pane--media {
  padding: 18px;
}

.gl-hero-carousel .gl-hero-carousel-img {
  aspect-ratio: var(--gl-hero-media-ratio);
  object-fit: contain;
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 22px rgba(0, 0, 0, 0.18);
  height: auto;
}

@media (min-width: 768px) {
  .gl-hero-carousel .carousel-item-row > .col-md-4.gl-hero-pane--media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0.8rem;
    overflow: hidden;
    min-height: 100%;
    max-height: var(--gl-hero-slide-min-height);
  }

  .gl-hero-carousel .carousel-item-row > .col-md-4 .gl-hero-carousel-img {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
    padding: 0.6rem;
  }
}

.gl-hero-carousel__footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem 1rem;
  border-top: 0;
}

.gl-hero-carousel__footer-start {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gl-hero-carousel__footer-end {
  display: flex;
  justify-content: flex-end;
}

.gl-hero-carousel__indicators {
  position: static;
  right: auto;
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  justify-content: center;
  display: flex;
  gap: 0.35rem;
}

.gl-hero-carousel__dot {
  width: 1.75rem;
  height: 0.28rem;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.22);
  opacity: 1;
  transition: width 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.gl-hero-carousel__dot.active {
  width: 2.35rem;
  background-color: rgba(203, 230, 247, 0.95);
  transform: none;
}

.gl-hero-carousel__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(203, 230, 247, 0.35);
}

.gl-hero-carousel__control {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gl-hero-carousel__control:hover,
.gl-hero-carousel__control:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(203, 230, 247, 0.35);
}

.gl-hero-carousel__control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(203, 230, 247, 0.35);
}

.gl-hero-carousel__control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(203, 230, 247, 0.95);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
}

.gl-hero-carousel__control--footer {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 2.35rem;
  height: 2.35rem;
  opacity: 1;
  pointer-events: auto;
}

.gl-hero-carousel__control--footer .gl-hero-carousel__control-icon {
  font-size: 1.35rem;
}

.gl-hero-carousel .carousel-control-prev-icon,
.gl-hero-carousel .carousel-control-next-icon {
  display: none;
}

@media (min-width: 768px) {
  .gl-hero-carousel__indicators,
  .gl-hero-carousel__dot {
    display: none !important;
  }

  .gl-hero-carousel__footer {
    grid-template-columns: auto 1fr auto;
  }

  .gl-hero-carousel__footer-start {
    display: flex;
  }
}

@media (max-width: 767.98px) {
  .gl-hero-carousel .carousel-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .gl-hero-carousel .carousel-item {
    float: left;
    width: 100%;
    margin-right: -100%;
  }

  .gl-hero-carousel .carousel-item-next,
  .gl-hero-carousel .carousel-item-prev,
  .gl-hero-carousel .carousel-item.active {
    display: block;
  }

  .gl-hero-carousel .carousel-item.active,
  .gl-hero-carousel .carousel-item-next,
  .gl-hero-carousel .carousel-item-prev {
    top: 0;
    left: 0;
  }

  .gl-hero-carousel .carousel-item-row {
    display: flex;
    flex-direction: column;
    min-height: calc(
      ((100vw - 28px) * (420 / 800)) + 28px + 1.5rem + var(--gl-hero-copy-min-height)
    );
  }

  .gl-hero-carousel .carousel-item-row > .col-md-4 {
    flex: 0 0 auto;
  }

  .gl-hero-carousel .carousel-item-row > .col-md-8,
  .gl-hero-carousel .carousel-item-row > .col-12 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .gl-hero-carousel__body {
    flex: 1 1 auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .gl-hero-carousel .gl-hero-pane--media {
    padding: 14px;
  }

  .gl-hero-carousel__footer {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding-inline: 0.85rem;
  }

  .gl-hero-carousel__footer-start {
    display: flex;
  }

  .gl-hero-carousel__control--footer {
    width: 2.15rem;
    height: 2.15rem;
  }

  .gl-hero-carousel.gl-hero-carousel--dragging .carousel-inner {
    touch-action: none;
  }

  .gl-hero-carousel .carousel-inner {
    touch-action: pan-y;
  }

  .gl-hero-carousel__footer-end .gl-register-btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }

  .gl-hero-carousel__indicators,
  .gl-hero-carousel__dot {
    display: none !important;
  }
}

/* Навигация ЛК в тёмной шапке */
.gl-lk-nav-link {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem;
}

.gl-lk-nav-link:hover,
.gl-lk-nav-link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.gl-lk-nav-link svg {
  flex-shrink: 0;
}

/* Autofill: триггер валидации в auth.js (animationstart) */
@keyframes glAutofillStart {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.gl-register-form-js input:-webkit-autofill {
  animation-name: glAutofillStart;
  animation-duration: 0.01s;
}

header .dropdown-menu .dropdown-item:not(.text-danger):hover,
header .dropdown-menu .dropdown-item:not(.text-danger):focus {
  color: var(--gl-accent);
  background-color: transparent;
}

header .dropdown-menu .dropdown-item:not(.text-danger):active,
header .dropdown-menu .dropdown-item:not(.text-danger).active {
  color: #fff;
  background-color: var(--gl-accent);
}

@media (min-width: 992px) {
  header nav .dropdown-hover-lg > .dropdown-menu {
    margin-top: 0;
  }

  header nav .dropdown-hover-lg:hover > .dropdown-menu,
  header nav .dropdown-hover-lg:focus-within > .dropdown-menu {
    display: block;
  }
}

/* Карточка-кнопка «Аккаунт {LOGIN} / email» в шапке.
   Flex + обёртка .gl-account-label: стрелка дропдауна справа по центру, не под текстом слева. */
.gl-account-dropdown .gl-account-btn.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gl-account-dropdown .gl-account-btn {
  --bs-btn-padding-y: 0.35rem;
  --bs-btn-padding-x: 0.75rem;
  min-width: 12rem;
  max-width: 18rem;
  line-height: 1.15;
  border: none;
  box-shadow: none;
  background-color: transparent;
  color: #fff;
}

.gl-account-dropdown .gl-account-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gl-account-dropdown .gl-account-btn:active,
.gl-account-dropdown .gl-account-btn.show {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gl-account-dropdown .gl-account-btn:focus-visible {
  border: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.gl-account-dropdown .gl-account-btn .gl-account-email {
  color: rgba(255, 255, 255, 0.75);
}

.gl-account-dropdown .gl-account-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

.gl-account-dropdown .gl-account-btn .gl-account-line {
  font-size: 0.875rem;
}

.gl-account-dropdown .gl-account-btn .gl-account-email {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 400;
  max-width: 100%;
}

.gl-account-dropdown .dropdown-toggle::after {
  margin-left: 0;
  flex-shrink: 0;
  align-self: center;
  vertical-align: middle;
}

.gl-account-dropdown .dropdown-menu {
  min-width: 14rem;
}

/* Мобильная шапка (< lg): бургер слева от лого, auth/аккаунт справа. */
@media (max-width: 991.98px) {
  header .navbar-toggler.gl-navbar-toggler {
    border: 0;
    box-shadow: none;
    padding: 0.25rem 0.375rem;
    margin-right: 0.125rem;
  }

  header .navbar-toggler.gl-navbar-toggler:focus,
  header .navbar-toggler.gl-navbar-toggler:focus-visible {
    border: 0;
    box-shadow: none;
    outline: 0;
  }

  .gl-header-mobile-end .btn-sm {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .gl-account-dropdown--mobile-bar .gl-account-btn {
    min-width: 0;
    max-width: min(11rem, 42vw);
    --bs-btn-padding-x: 0.5rem;
  }

  .gl-account-dropdown--mobile-bar .gl-account-line {
    font-size: 0.8125rem;
  }

  .gl-account-dropdown--mobile-bar .gl-account-email {
    font-size: 0.6875rem;
  }

  header .navbar-brand {
    margin-right: 0;
  }

  header .navbar > .container {
    gap: 0.25rem;
  }

  body.gl-lk-cabinet header .navbar > .container {
    justify-content: space-between;
  }

  .gl-header-mobile-balance {
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .gl-header-mobile-balance .gl-live-balance {
    white-space: nowrap;
  }
}

/* ЛК: отступ под fixed bottom-nav — только там, где nav видна (< lg) */
@media (max-width: 991.98px) {
  body.gl-lk-cabinet {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.gl-lk-bottom-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom, 0px));
  background-color: var(--gl-surface-raised);
  border-top: 1px solid var(--gl-border-subtle);
  z-index: 1030;
}

.gl-lk-bottom-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.375rem;
  color: var(--gl-text-muted);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.gl-lk-bottom-nav__item:hover,
.gl-lk-bottom-nav__item:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.gl-lk-bottom-nav__item--active {
  color: var(--gl-accent);
}

.gl-lk-bottom-nav__item svg {
  flex-shrink: 0;
}

/* ЛК и витрина: кнопка «Назад» — круглая icon-link слева от заголовка */
.gl-my-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: var(--gl-surface-raised);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.18);
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.gl-my-back-btn:hover,
.gl-my-back-btn:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--gl-surface-raised) 88%, #ffffff);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.gl-my-back-btn:active {
  color: #fff;
  background: color-mix(in srgb, var(--gl-surface-raised) 78%, #ffffff);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.22);
}

.gl-my-back-btn:focus-visible {
  outline: 2px solid var(--gl-light-blue);
  outline-offset: 2px;
}

.gl-my-back-btn::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.875rem;
  margin-left: 0.125rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M6.5 1.5 1.5 7l5 5' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M6.5 1.5 1.5 7l5 5' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gl-my-page-header {
  gap: 0.5rem;
}

.gl-my-page-header .gl-page-title {
  line-height: 2.5rem;
}

.gl-login-btn {
  border: none;
  box-shadow: none;
  color: #fff;
  background-color: transparent;
}

.gl-login-btn:hover,
.gl-login-btn:focus {
  color: var(--gl-accent);
  background-color: transparent;
}

.gl-login-btn:focus-visible {
  border: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Кнопка «Создать аккаунт» (CTA) — без обводки, заливка акцентным цветом. */
.gl-register-btn {
  border: none;
  box-shadow: none;
  background-color: var(--gl-accent);
  color: #fff;
}

.gl-register-btn:hover,
.gl-register-btn:focus {
  background-color: color-mix(in srgb, var(--gl-accent) 88%, #000000);
  color: #fff;
}

.gl-register-btn:active,
.gl-register-btn.active {
  background-color: color-mix(in srgb, var(--gl-accent) 78%, #000000);
  color: #fff;
}

.gl-register-btn:focus-visible {
  border: none;
  box-shadow: 0 0 0 0.2rem rgba(249, 104, 6, 0.45);
}

/* Модалка регистрации: фон в цвет шапки, полностью непрозрачный.
   В шаблоне используется один модал, поэтому переопределение общее. */
.modal-backdrop.show {
  --bs-backdrop-bg: var(--gl-header);
  background-color: var(--gl-header);
  --bs-backdrop-opacity: 1;
  opacity: 1;
}

.gl-register-modal .modal-content {
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--gl-surface);
  color: var(--gl-text);
}

.gl-register-modal .modal-header {
  background-color: var(--gl-surface);
  border-bottom: 1px solid var(--gl-border-subtle);
}

.gl-register-modal .modal-header h1,
.gl-register-modal .modal-header .modal-title {
  color: var(--gl-light-blue);
}

.gl-register-modal .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.gl-register-modal .modal-body {
  background-color: var(--gl-surface);
}

.gl-register-modal .invalid-feedback {
  display: block;
  min-height: 0;
}

.gl-register-modal .invalid-feedback:empty {
  display: none;
}

/* Селектор «Физлицо / Юрлицо» и активный чекбокс — в gl-blue. */
.gl-register-modal .btn-group .btn.btn-outline-primary {
  --bs-btn-color: var(--gl-blue);
  --bs-btn-border-color: var(--gl-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gl-blue);
  --bs-btn-hover-border-color: var(--gl-blue);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gl-blue);
  --bs-btn-active-border-color: var(--gl-blue);
  --bs-btn-focus-shadow-rgb: 16, 107, 160;
}

.gl-register-modal .btn-group .btn.btn-primary,
.gl-register-modal .btn-group .btn.active {
  background-color: var(--gl-blue);
  border-color: var(--gl-blue);
}

.gl-register-modal .btn-group .btn.btn-primary:hover,
.gl-register-modal .btn-group .btn.btn-primary:focus,
.gl-register-modal .btn-group .btn.active:hover,
.gl-register-modal .btn-group .btn.active:focus {
  background-color: color-mix(in srgb, var(--gl-blue) 86%, #ffffff);
  border-color: color-mix(in srgb, var(--gl-blue) 86%, #ffffff);
}

.gl-register-modal .form-check-input:checked {
  background-color: var(--gl-blue);
  border-color: var(--gl-blue);
}

.gl-register-modal .form-check-input:focus {
  border-color: var(--gl-blue);
  box-shadow: 0 0 0 0.2rem rgba(16, 107, 160, 0.25);
}

/* То же для fallback-страницы регистрации (/auth/?register=yes). */
.gl-register-page .btn-group .btn.btn-outline-primary {
  --bs-btn-color: var(--gl-blue);
  --bs-btn-border-color: var(--gl-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gl-blue);
  --bs-btn-hover-border-color: var(--gl-blue);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gl-blue);
  --bs-btn-active-border-color: var(--gl-blue);
  --bs-btn-focus-shadow-rgb: 16, 107, 160;
}

.gl-register-page .btn-group .btn.btn-primary,
.gl-register-page .btn-group .btn.active {
  background-color: var(--gl-blue);
  border-color: var(--gl-blue);
}

.gl-register-page .btn-group .btn.btn-primary:hover,
.gl-register-page .btn-group .btn.btn-primary:focus,
.gl-register-page .btn-group .btn.active:hover,
.gl-register-page .btn-group .btn.active:focus {
  background-color: color-mix(in srgb, var(--gl-blue) 86%, #ffffff);
  border-color: color-mix(in srgb, var(--gl-blue) 86%, #ffffff);
}

.gl-register-page .form-check-input:checked {
  background-color: var(--gl-blue);
  border-color: var(--gl-blue);
}

.gl-register-page .form-check-input:focus {
  border-color: var(--gl-blue);
  box-shadow: 0 0 0 0.2rem rgba(16, 107, 160, 0.25);
}

/* intl-tel-input: высота как у Bootstrap, список стран поверх модалки. */
.gl-register-modal .iti,
.gl-register-page .iti {
  width: 100%;
  display: block;
}

.gl-register-modal .iti__tel-input,
.gl-register-page .iti__tel-input {
  width: 100%;
}

.gl-register-modal .iti__tel-input::placeholder,
.gl-register-page .iti__tel-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.gl-register-modal .iti__country-list,
.gl-register-page .iti__country-list {
  z-index: 2000;
}

/* Автокомплит Dadata (ИНН / организация) */
.gl-dadata-autocomplete {
  top: 100%;
  left: 0;
  margin-top: 2px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 2000;
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.375rem;
  background-color: var(--gl-surface-raised);
  color: var(--gl-text);
}

.gl-dadata-autocomplete .gl-dadata-item {
  cursor: pointer;
  border-left-width: 0;
  border-right-width: 0;
}

.gl-dadata-autocomplete .gl-dadata-item:first-child {
  border-top-width: 0;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.gl-dadata-autocomplete .gl-dadata-item:last-child {
  border-bottom-width: 0;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.gl-dadata-autocomplete .gl-dadata-item:hover,
.gl-dadata-autocomplete .gl-dadata-item:focus {
  /* Лёгкое затемнение на фоне --gl-light-blue, без полупрозрачной заливки */
  background-color: color-mix(in srgb, var(--gl-light-blue) 88%, #000000);
}

/* Сообщение входа: ссылка на подтверждение email. */
[data-gl-auth-alert] a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

[data-gl-auth-alert] a:hover,
[data-gl-auth-alert] a:focus-visible {
  color: var(--gl-blue);
}

/* Чекбокс «Запомнить меня» на странице входа (/my/). */
.gl-auth-form .form-check-input:checked {
  background-color: var(--gl-blue);
  border-color: var(--gl-blue);
}

.gl-auth-form .form-check-input:focus {
  border-color: var(--gl-blue);
  box-shadow: 0 0 0 0.2rem rgba(16, 107, 160, 0.25);
}

/* Бутлоадер auth: полностью перекрывает gl-panel до загрузки следующей страницы. */
.gl-panel--busy-host {
  position: relative;
  overflow: hidden;
}

.gl-panel-busy {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gl-surface);
  border-radius: inherit;
}

.gl-panel-busy.d-none {
  display: none !important;
}

.gl-panel-busy__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.gl-panel-busy__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--gl-light-blue);
  animation: gl-panel-busy-spin 0.85s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.gl-panel-busy__text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--gl-text-muted);
  max-width: 18rem;
}

.gl-panel-busy--success .gl-panel-busy__spinner {
  display: none;
}

.gl-panel-busy--success .gl-panel-busy__text {
  color: var(--gl-text);
  font-weight: 600;
}

@keyframes gl-panel-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gl-panel-busy__spinner {
    animation-duration: 1.5s;
  }
}

/* Outline-кнопка в цвет gl-blue (например, «Отправить ещё раз» на /auth/?forgot_password=sent). */
.gl-btn-outline-blue {
  --bs-btn-color: var(--gl-blue);
  --bs-btn-border-color: var(--gl-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--gl-blue);
  --bs-btn-hover-border-color: var(--gl-blue);
  --bs-btn-focus-shadow-rgb: 16, 107, 160;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--gl-blue);
  --bs-btn-active-border-color: var(--gl-blue);
}

/* Правовые документы (/legals/). */
.gl-legals-panel {
  background-color: var(--gl-header);
}

.gl-legals-intro {
  line-height: 1.55;
  max-width: 52rem;
}

.gl-legals-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gl-legals-item:last-child {
  border-bottom: none;
}

.gl-legals-item-title {
  flex: 1 1 12rem;
  min-width: 0;
}

.gl-legals-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.gl-legals-pdf-icon {
  display: inline-flex;
  color: #fff;
}

.gl-legals-pdf-svg {
  display: block;
}

.gl-legals-pdf-label {
  letter-spacing: 0.04em;
  user-select: none;
}

.gl-legals-download:hover,
.gl-legals-download:focus-visible {
  color: var(--gl-light-blue) !important;
  opacity: 1;
  text-decoration: none !important;
}

.gl-legals-download:hover .gl-legals-pdf-icon,
.gl-legals-download:focus-visible .gl-legals-pdf-icon {
  color: var(--gl-light-blue);
}

/* Ссылки в чекбоксах согласия при регистрации. */
body.gl-showcase main .form-check-label a,
.gl-register-modal .form-check-label a {
  color: var(--gl-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.gl-showcase main .form-check-label a:hover,
body.gl-showcase main .form-check-label a:focus-visible,
.gl-register-modal .form-check-label a:hover,
.gl-register-modal .form-check-label a:focus-visible {
  color: #fff;
}

.gl-surface-light .form-check-label a {
  color: var(--gl-blue);
}

.gl-surface-light .form-check-label a:hover,
.gl-surface-light .form-check-label a:focus-visible {
  color: color-mix(in srgb, var(--gl-blue) 80%, #000);
}

header .dropdown-menu {
  background-color: var(--gl-surface-raised);
  border-color: var(--gl-border-subtle);
}

header .dropdown-menu .dropdown-item {
  color: var(--gl-text);
}

header .dropdown-menu .dropdown-divider {
  border-color: var(--gl-border-subtle);
}

/* Баннер согласия на cookies. */
.gl-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1090;
  width: calc(100% - 2rem);
  max-width: 56rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background-color: var(--gl-header);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.gl-cookie-banner.is-hidden {
  display: none;
}

.gl-cookie-banner__text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.gl-cookie-banner__link {
  color: var(--gl-light-blue);
  text-decoration: underline;
}

.gl-cookie-banner__link:hover,
.gl-cookie-banner__link:focus-visible {
  color: #fff;
}

.gl-cookie-banner__error {
  flex: 1 1 100%;
  text-align: center;
}

.gl-cookie-banner__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  background-color: var(--gl-accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.gl-cookie-banner__btn:hover,
.gl-cookie-banner__btn:focus-visible {
  background-color: rgb(220, 92, 5);
  color: #fff;
}

@media (max-width: 575.98px) {
  .gl-cookie-banner {
    border-radius: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .gl-cookie-banner__btn {
    width: 100%;
  }
}

/* QA-витрина: /local/tools/gl_ui_showcase_test.php */
.gl-ui-test-sticky-nav {
  top: 4.5rem;
  z-index: 2;
  width: max-content;
  max-width: 12.5rem;
}

.gl-ui-test-nav-card {
  width: 100%;
}

.gl-ui-test-section {
  scroll-margin-top: 6rem;
}

.gl-ui-test-swatch {
  width: 100%;
  min-height: 3.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--gl-border-subtle);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.gl-ui-test-swatch-label {
  color: var(--gl-text-muted);
}

.gl-ui-test-nav-card .nav-link {
  color: var(--gl-text-muted);
}

.gl-ui-test-nav-card .nav-link:hover,
.gl-ui-test-nav-card .nav-link:focus-visible {
  color: var(--gl-accent);
}

.gl-ui-test-nav-card .card-body {
  border-radius: 0.5rem;
}

.gl-ui-test-badge {
  background-color: var(--gl-surface-raised) !important;
  color: var(--gl-link) !important;
  border: 1px solid var(--gl-border-subtle);
}

.gl-ui-test-dark-strip {
  background-color: var(--gl-header);
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.5rem;
}

.gl-ui-test-cookie-frame {
  background-color: #0d0f12;
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.5rem;
  padding: 1rem;
}

.gl-ui-test-footer {
  border-color: var(--gl-border-subtle) !important;
  color: var(--gl-text-muted);
}

/* Admin tools index (/local/tools/) */
.gl-tools-index__filters .card-body {
  padding: 1rem 1.25rem;
}

.gl-tools-index__pill.is-active {
  pointer-events: none;
}

.gl-tools-index__card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gl-tools-index__card-link {
  display: block;
  color: inherit;
}

.gl-tools-index__card-link:hover .gl-tools-index__card,
.gl-tools-index__card-link:focus-visible .gl-tools-index__card {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.22);
}

.gl-tools-index__card-link:hover h3,
.gl-tools-index__card-link:focus-visible h3 {
  color: var(--gl-light-blue) !important;
}

.gl-tools-index__card-link:focus-visible {
  outline: 0;
}

.gl-tools-index__card-link:focus-visible .gl-tools-index__card {
  outline: 2px solid var(--gl-light-blue);
  outline-offset: 2px;
}


/* Admin tool pages: на всю ширину контейнера шаблона (без вложенного .container) */
.gl-tools-page,
.gl-tools-index {
  width: 100%;
}

/* Admin tool pages: тёмные pre/code/json и таблицы */
.gl-tools-page pre,
.gl-tools-page .gl-tools-pre {
  color: var(--gl-text);
  background-color: var(--gl-surface-raised) !important;
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

.gl-tools-page pre code {
  color: inherit;
}

.gl-tools-page .table-bordered > :not(caption) > * > * {
  border-color: var(--gl-border-subtle);
}

.gl-tools-page .table-bordered th {
  background-color: var(--gl-surface-raised);
  color: var(--gl-text-muted);
}

.gl-tools-page .table-bordered td {
  background-color: transparent;
  color: var(--gl-text);
}

.gl-tools-page code {
  color: var(--gl-light-blue);
  background-color: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

.gl-tools-phpinfo {
  max-width: 100%;
  border-radius: 0.375rem;
  background: var(--gl-surface-raised);
  color: var(--gl-text);
  padding: 0.5rem;
  border: 1px solid var(--gl-border-subtle);
}

.gl-tools-phpinfo table {
  width: 100%;
}

.gl-tools-page .alert-secondary {
  background-color: var(--gl-surface-raised);
  border-color: var(--gl-border-subtle) !important;
  color: var(--gl-text);
}

.gl-tools-page .alert-secondary a {
  color: var(--gl-light-blue);
}

/* Превью писем: /local/tools/gl_mail_preview.php */
.gl-mail-preview-lang {
  width: 18.5rem;
  max-width: 100%;
}

.gl-mail-preview-nav {
  top: 4.5rem;
  z-index: 2;
  width: 18.5rem;
  max-width: 100%;
}

.gl-mail-preview-nav-card {
  width: 100%;
}

.gl-mail-preview-nav-card .card-body {
  border-radius: 0.5rem;
}

.gl-mail-preview-nav-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.375rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
}

.gl-mail-preview-nav-link:hover,
.gl-mail-preview-nav-link:focus-visible {
  color: inherit;
  background-color: var(--gl-surface-raised);
  border-color: var(--gl-border-subtle);
}

.gl-mail-preview-nav-link.is-active {
  background-color: var(--gl-surface-raised);
  border-color: rgba(203, 230, 247, 0.35);
}

.gl-mail-preview-nav-title {
  display: block;
  color: var(--gl-heading);
}

.gl-mail-preview-nav-link.is-active .gl-mail-preview-nav-title {
  color: var(--gl-light-blue);
}

.gl-mail-preview-nav-meta,
.gl-mail-preview-nav-code {
  display: block;
  color: var(--gl-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.gl-mail-preview-nav-empty {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--gl-text-muted);
}

.gl-mail-preview-letter {
  background: #fff;
  color: #212529;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}

.gl-mail-preview-chrome {
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  color: #212529;
}

.gl-mail-preview-fields {
  display: grid;
  gap: 0.45rem 0.75rem;
}

.gl-mail-preview-fields > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
}

.gl-mail-preview-fields dt {
  margin: 0;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-top: 0.15rem;
}

.gl-mail-preview-fields dd {
  margin: 0;
  color: #212529;
  word-break: break-word;
}

.gl-mail-preview-subject {
  font-weight: 600;
}

.gl-mail-preview-empty,
.gl-mail-preview-empty-body {
  color: #6c757d;
}

.gl-mail-preview-empty-body {
  padding: 1.25rem;
}

.gl-mail-preview-iframe {
  display: block;
  width: 100%;
  min-height: 36rem;
  border: 0;
  background: #14171b;
}

.gl-tools-page .gl-mail-preview-text-body {
  margin: 0;
  padding: 1rem 1.25rem;
  background-color: #fff !important;
  color: #212529;
  border: 0;
  border-radius: 0;
  white-space: pre-wrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.gl-mail-ph {
  background: #fff3a0;
  color: #1a1a1a;
  padding: 0 0.2em;
  border-radius: 0.15em;
  font-style: normal;
}

.gl-mail-preview-chrome .gl-mail-ph,
.gl-mail-preview-text-body .gl-mail-ph {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gl-mail-preview-hrefs {
  padding-left: 1.1rem;
}

.gl-mail-preview-hrefs li {
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.gl-mail-preview-meta {
  display: grid;
  gap: 0.55rem 1rem;
}

.gl-mail-preview-meta > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.25rem 0.75rem;
}

.gl-mail-preview-meta dt {
  margin: 0;
  color: var(--gl-text-muted);
  font-weight: 500;
}

.gl-mail-preview-meta dd {
  margin: 0;
}

.gl-mail-preview-macros summary {
  cursor: pointer;
  list-style: none;
}

.gl-mail-preview-macros summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 991.98px) {
  .gl-mail-preview-fields > div,
  .gl-mail-preview-meta > div {
    grid-template-columns: 1fr;
  }
}

/* Legacy: светлые pre вне admin tools (если остались на витрине) */
body.gl-showcase pre.bg-light:not(.gl-tools-pre) {
  color: #212529;
  background-color: #f8f9fa !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.gl-showcase pre.bg-light code {
  color: inherit;
}

/* ЛК: баланс и история платежей */
.gl-personal-account {
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.gl-personal-account__label {
  margin-right: 0.35rem;
}

.gl-personal-account__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.gl-balance-hero__amount {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}

.gl-balance-hero__currency {
  font-size: 0.9em;
  font-weight: 700;
  color: #fff;
}

.gl-balance-hero__icon svg {
  width: 28px;
  height: 28px;
}

.gl-balance-hero__runway {
  font-size: 0.875rem;
  line-height: 1.4;
}

.gl-balance-tabs {
  border-bottom-color: var(--gl-border-subtle);
}

.gl-balance-tabs .nav-link {
  color: var(--gl-text-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.5rem 1rem;
}

.gl-balance-tabs .nav-link:hover {
  color: var(--gl-text);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.gl-balance-tabs .nav-link.active {
  color: var(--gl-accent, #5eb3ff);
  background: transparent;
  border-bottom-color: var(--gl-accent, #5eb3ff);
}

.gl-balance-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gl-text-muted);
  border-bottom-color: var(--gl-border-subtle);
  white-space: nowrap;
}

.gl-balance-table td {
  border-bottom-color: var(--gl-border-subtle);
  vertical-align: middle;
}

.gl-balance-amount--credit {
  color: #6ee7a0;
  font-weight: 600;
  white-space: nowrap;
}

.gl-balance-amount--debit {
  color: #f87171;
  font-weight: 600;
  white-space: nowrap;
}

.gl-balance-loading {
  min-height: 4rem;
}

.gl-balance-history .gl-skeleton--block {
  min-height: 8rem;
}

.gl-balance-autopay-list li:last-child {
  border-bottom: 0 !important;
}

.gl-balance-topup-form {
  --gl-balance-control-width: min(100%, 24rem);
}

.gl-balance-pending {
  margin-bottom: 1.5rem;
}

.gl-balance-pending__list {
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.5rem;
  padding: 0.25rem 1rem;
  background-color: rgba(0, 0, 0, 0.15);
}

.gl-balance-pending__item + .gl-balance-pending__item {
  border-top: 1px solid var(--gl-border-subtle);
}

.gl-balance-pending__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.5rem 0;
}

.gl-balance-pending__meta {
  min-width: 0;
}

.gl-balance-pending__ps {
  overflow-wrap: anywhere;
}

.gl-balance-pending__title {
  font-weight: 600;
}

.gl-balance-pending__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  justify-self: end;
}

.gl-balance-pending__sum {
  font-variant-numeric: tabular-nums;
}

.gl-balance-pending__pay {
  min-width: 6.5rem;
}

.gl-balance-pending__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gl-text-muted, #9aa4b2);
  background: transparent;
  border: 1px solid var(--gl-border-subtle);
  border-radius: 0.375rem;
}

.gl-balance-pending__cancel:hover,
.gl-balance-pending__cancel:focus-visible {
  color: #fff;
  border-color: #c45c5c;
  background-color: rgba(196, 92, 92, 0.25);
}

.gl-balance-pending__cancel:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.gl-balance-topup-form .form-control {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
}

.gl-balance-topup-form .form-control:focus {
  border-color: var(--gl-accent, #5eb3ff);
  box-shadow: 0 0 0 0.2rem rgba(94, 179, 255, 0.15);
}

.gl-balance-hero__icon {
  color: #fff;
  opacity: 1;
}

.gl-balance-hero__row {
  min-width: 0;
}

.gl-balance-hero__row .gl-balance-hero__amount {
  white-space: nowrap;
}

.gl-balance-amount-field {
  max-width: var(--gl-balance-control-width);
}

.gl-balance-amount-input {
  width: 100%;
}

.gl-balance-field-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gl-text-muted);
  margin-bottom: 0.75rem;
}

.gl-balance-ps-select {
  max-width: var(--gl-balance-control-width);
  width: 100%;
}

.gl-balance-amount-input .form-control {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
  font-size: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  -moz-appearance: textfield;
}

.gl-balance-amount-input .form-control::-webkit-outer-spin-button,
.gl-balance-amount-input .form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gl-balance-amount-input--invalid .form-control,
.gl-balance-amount-input--invalid .input-group-text {
  border-color: #f87171 !important;
}

.gl-balance-amount-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.gl-balance-amount-input .input-group-text {
  background-color: rgba(0, 0, 0, 0.15);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text-muted);
}

.gl-balance-ps-row {
  gap: 0.5rem;
}

.gl-balance-ps-tile {
  cursor: pointer;
  min-width: 5.5rem;
  padding: 0.35rem 0.65rem !important;
  border: 1px solid var(--gl-border-subtle);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gl-balance-ps-tile:has(.gl-order-tile__input:checked),
.gl-balance-ps-tile--selected {
  border-color: var(--gl-accent, #5eb3ff);
  box-shadow: 0 0 0 1px var(--gl-accent, #5eb3ff);
}

.gl-balance-ps-tile__name {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.gl-balance-loading-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.gl-balance-debug,
.gl-debug-footer {
  position: relative;
  z-index: 999;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #1a2332;
  color: #e8eef5;
  font: 12px/1.45 monospace;
  border-top: 3px solid #72c3f2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gl-debug-footer.bx-component-debug,
.bx-component-debug.gl-debug-footer {
  background: #1a2332 !important;
  color: #e8eef5 !important;
}

.gl-debug-footer__head {
  margin-bottom: 0.75rem;
}

.gl-debug-footer__title,
.gl-debug-footer__shm-title,
.gl-debug-footer__client-title,
.gl-debug-footer__log-title {
  font-weight: 700;
  font-size: 13px;
  color: #72c3f2;
  margin: 0.75rem 0 0.35rem;
}

.gl-debug-footer__title {
  margin: 0;
}

.gl-debug-footer__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.gl-debug-footer__table--compact {
  font-size: 11px;
}

.gl-debug-footer__table td {
  padding: 0.15rem 0.35rem;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gl-debug-footer .bx-debug-content-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gl-debug-footer__client {
  margin-top: 0.5rem;
}

.gl-debug-footer__log,
.gl-balance-debug pre {
  margin: 0.5rem 0 0;
  max-height: 12rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--gl-text-muted, #9ca3af);
  background: #0d1117;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.gl-balance-history-warn {
  font-size: 0.8125rem;
}

.gl-balance-debug pre {
  color: var(--gl-text-muted);
}

.gl-balance-history-kind-btn {
  font-size: 1rem;
  font-weight: 600;
}

.gl-balance-history-kind-btn::after {
  margin-left: 0.35rem;
}

.gl-balance-history .dropdown-menu .dropdown-item.active,
.gl-balance-history .dropdown-menu .dropdown-item.active:hover,
.gl-balance-history .dropdown-menu .dropdown-item.active:focus {
  background-color: var(--gl-blue);
  color: #fff;
}

.gl-balance-history .dropdown-menu .dropdown-item:active:not(.active) {
  background-color: var(--gl-blue);
  color: #fff;
}

.gl-balance-table--history th:nth-child(1),
.gl-balance-table--history td:nth-child(1) {
  width: 1%;
}

.gl-balance-table--history .gl-balance-date-cell {
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: normal;
  min-width: 8.5rem;
}

.gl-th-tz {
  font-weight: 400;
  color: var(--gl-text-muted);
}

.table-dark .gl-th-tz {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 575.98px) {
  .gl-balance-table--history .gl-balance-date-cell {
    font-size: 0.8125rem;
    min-width: 0;
  }
}

.gl-balance-table--history th:nth-child(2),
.gl-balance-table--history td:nth-child(2) {
  width: 1%;
  white-space: nowrap;
  padding-left: 1rem;
  text-align: left;
}

.gl-balance-table--history .gl-balance-amount--debit {
  color: var(--gl-text-muted);
}

.gl-balance-table__chevron-col {
  width: 2rem;
}

.gl-balance-row-expand[data-expand-target] {
  cursor: pointer;
}

.gl-balance-chevron {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--gl-text-muted);
  border-bottom: 2px solid var(--gl-text-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  vertical-align: middle;
}

.gl-balance-row-expand[aria-expanded="true"] .gl-balance-chevron,
.gl-balance-row-expand--open .gl-balance-chevron {
  transform: rotate(-135deg);
}

.gl-balance-expand-details {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--gl-border-subtle);
}

.gl-balance-expand-details li + li {
  border-top: 1px solid var(--gl-border-subtle);
}

.gl-balance-period-popover {
  min-width: 14rem;
  color-scheme: dark;
}

.gl-balance-date-field {
  position: relative;
}

.gl-balance-date-field .gl-balance-date-input {
  width: 100%;
  padding-right: 2.25rem;
  background-color: var(--gl-input-bg);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
  color-scheme: dark;
  accent-color: var(--gl-accent);
}

.gl-balance-date-field .gl-balance-date-input:focus {
  background-color: var(--gl-input-bg);
  border-color: var(--gl-accent);
  color: var(--gl-text);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--gl-accent) 28%, transparent);
}

.gl-balance-date-field .gl-balance-date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.gl-balance-date-field::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.82;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='3.5' width='12' height='10' rx='1.5' stroke='%23f1f3f5' stroke-width='1.25'/%3E%3Cpath d='M2 7h12' stroke='%23f1f3f5' stroke-width='1.25'/%3E%3Cpath d='M5 2.5v2.5M11 2.5v2.5' stroke='%23f1f3f5' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E");
}

.gl-balance-period-popover input[type="date"].form-control:not(.gl-balance-date-input) {
  background-color: var(--gl-input-bg);
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
  color-scheme: dark;
  accent-color: var(--gl-accent);
}

.gl-balance-period-popover input[type="date"].form-control:not(.gl-balance-date-input):focus {
  background-color: var(--gl-input-bg);
  border-color: var(--gl-accent);
  color: var(--gl-text);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--gl-accent) 28%, transparent);
}

.gl-balance-period-popover .gl-balance-period-preset.active {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.gl-balance-pager .page-link {
  background: transparent;
  border-color: var(--gl-border-subtle);
  color: var(--gl-text);
  min-width: 2.25rem;
  text-align: center;
}

.gl-balance-pager .page-item.active .page-link {
  background: rgba(94, 179, 255, 0.15);
  border-color: var(--gl-accent, #5eb3ff);
  color: var(--gl-accent, #5eb3ff);
}

.gl-balance-pager .page-item.disabled .page-link {
  opacity: 0.45;
}

.gl-order-tile[href] {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gl-order-tile[href]:hover {
  border-color: var(--gl-accent, #5eb3ff);
  transform: translateY(-1px);
}

/* ЛК live: skeleton placeholders while lk_state loads */
.gl-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.375rem;
}

.gl-skeleton--block {
  min-height: 6rem;
}

.gl-skeleton--hero {
  min-height: 5.5rem;
}

.gl-skeleton--text {
  min-height: 1.25rem;
  max-width: 14rem;
}

.gl-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: gl-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes gl-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.gl-live-balance.gl-live-busy,
.gl-live-busy .gl-skeleton {
  opacity: 0.85;
}

/* ЛК: slot-loader баланса в шапке */
.gl-live-balance {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  vertical-align: baseline;
  white-space: nowrap;
}

.gl-balance-value,
.gl-balance-slots__amount {
  display: inline-flex;
  align-items: center;
}

.gl-balance-currency,
.gl-balance-slots__suffix {
  flex-shrink: 0;
  margin-inline-start: 0.35em;
}

.gl-balance-slots {
  display: inline-flex;
  align-items: baseline;
}

.gl-balance-slots__reels {
  display: inline-flex;
  align-items: center;
}

.gl-balance-slot {
  display: inline-block;
  overflow: hidden;
  width: 1ch;
  min-width: 1ch;
  height: 1em;
  line-height: 1;
  flex-shrink: 0;
}

.gl-balance-slot__reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.gl-balance-slot__digit {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.gl-balance-digit {
  display: inline-block;
  width: 1ch;
  min-width: 1ch;
  text-align: center;
  flex-shrink: 0;
}

.gl-balance-slots--spinning .gl-balance-slot__reel {
  animation: gl-balance-reel-spin 0.6s linear infinite;
}

.gl-balance-slots--spinning .gl-balance-slot:nth-child(2) .gl-balance-slot__reel {
  animation-delay: -0.12s;
}

.gl-balance-slots--spinning .gl-balance-slot:nth-child(3) .gl-balance-slot__reel {
  animation-delay: -0.24s;
}

.gl-balance-slots--spinning .gl-balance-slot:nth-child(4) .gl-balance-slot__reel {
  animation-delay: -0.08s;
}

.gl-balance-slots--spinning .gl-balance-slot:nth-child(5) .gl-balance-slot__reel {
  animation-delay: -0.18s;
}

.gl-balance-slots--spinning .gl-balance-slot:nth-child(6) .gl-balance-slot__reel {
  animation-delay: -0.28s;
}

.gl-balance-slots--spinning .gl-balance-slot:nth-child(7) .gl-balance-slot__reel {
  animation-delay: -0.04s;
}

.gl-balance-slots--settling .gl-balance-slot__reel {
  animation: none;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes gl-balance-reel-spin {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gl-balance-slots--spinning .gl-balance-slot__reel {
    animation: none;
    transform: translateY(-40%);
  }

  .gl-balance-slots--settling .gl-balance-slot__reel {
    transition: none;
  }
}

/* ЛК: таблица «Мои услуги» */
.gl-my-svc-table-responsive.table-responsive:has(.dropdown.show) {
  overflow: visible;
}

.gl-my-svc-kebab .dropdown-menu {
  z-index: 1080;
}

.gl-my-svc-table .gl-my-svc-row {
  cursor: pointer;
}

.gl-my-svc-table .gl-my-svc-row:hover {
  background-color: rgba(var(--bs-emphasis-color-rgb, 255, 255, 255), 0.04);
}

.gl-my-svc-avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  object-fit: cover;
  background-color: var(--bs-secondary-bg);
  vertical-align: middle;
}

.gl-my-svc-avatar--lg {
  width: 96px;
  height: 96px;
  border-radius: 0.75rem;
}

.gl-my-svc-avatar--placeholder {
  background: linear-gradient(135deg, var(--bs-secondary-bg), rgba(var(--bs-primary-rgb), 0.15));
}

.gl-my-svc-th-avatar,
.gl-my-svc-td-avatar {
  width: 3rem;
}

.gl-my-svc-th-actions,
.gl-my-svc-td-actions {
  width: 3.25rem;
  white-space: nowrap;
}

.gl-my-svc-kebab-btn {
  padding: 0.125rem 0.375rem;
  line-height: 1;
  text-decoration: none;
}

.gl-my-svc-kebab-btn.dropdown-toggle::after {
  display: none;
}

.gl-my-svc-kebab-btn span {
  font-size: 1.25rem;
  line-height: 1;
}

.gl-my-svc-detail__fields dt {
  margin-bottom: 0.25rem;
}

.gl-my-svc-detail__fields dd {
  margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
  .gl-my-svc-detail__fields dt {
    margin-bottom: 0.75rem;
  }
}

/* ЛК: вкладки кабинета (/my/) */
.gl-my-cabinet-tabs {
  border-bottom-color: var(--gl-border-subtle);
}

.gl-my-cabinet-tabs .nav-link {
  color: var(--gl-text-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.5rem 1rem;
}

.gl-my-cabinet-tabs .nav-link:hover {
  color: var(--gl-text);
  border-bottom-color: rgba(var(--bs-emphasis-color-rgb, 255, 255, 255), 0.15);
}

.gl-my-cabinet-tabs .nav-link.active {
  color: var(--gl-accent);
  border-bottom-color: var(--gl-accent);
  background: transparent;
}

/* ЛК: таблица заявок */
.gl-my-rent-table-responsive.table-responsive:has(.dropdown.show) {
  overflow: visible;
}

.gl-my-rent-kebab .dropdown-menu {
  z-index: 1080;
}

.gl-my-rent-table .gl-my-rent-row {
  cursor: pointer;
}

.gl-my-rent-table .gl-my-rent-row:hover {
  background-color: rgba(var(--bs-emphasis-color-rgb, 255, 255, 255), 0.04);
}

.gl-my-rent-th-avatar,
.gl-my-rent-td-avatar {
  width: 3rem;
}

.gl-my-rent-th-actions,
.gl-my-rent-td-actions {
  width: 3.25rem;
  white-space: nowrap;
}

.gl-my-rent-kebab-btn {
  padding: 0.125rem 0.375rem;
  line-height: 1;
  text-decoration: none;
}

.gl-my-rent-kebab-btn.dropdown-toggle::after {
  display: none;
}

/* ЛК: мобильные карточки списков услуг и заявок */
@media (max-width: 991.98px) {
  body.gl-lk-cabinet main,
  .gl-my-cabinet-page {
    overflow-x: clip;
  }

  .gl-my-svc-table-responsive.table-responsive:has(.dropdown.show),
  .gl-my-rent-table-responsive.table-responsive:has(.dropdown.show) {
    overflow: visible;
  }

  .gl-my-svc-table thead,
  .gl-my-rent-table thead {
    display: none;
  }

  .gl-my-svc-table tbody tr,
  .gl-my-rent-table tbody tr {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, max-content);
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    position: relative;
    padding: 0.5rem 0.25rem 0.5rem 0.625rem;
    margin-bottom: 0.625rem;
    border: 1px solid var(--gl-border-subtle);
    border-radius: 0.5rem;
    background: rgba(var(--bs-emphasis-color-rgb, 255, 255, 255), 0.02);
  }

  .gl-my-svc-table tbody tr {
    grid-template-areas:
      "avatar name actions"
      "expire expire ."
      "cost cost status";
  }

  .gl-my-rent-table tbody tr {
    grid-template-areas:
      "avatar name actions"
      "date . status";
  }

  .gl-my-svc-table tbody tr:hover,
  .gl-my-rent-table tbody tr:hover {
    background: rgba(var(--bs-emphasis-color-rgb, 255, 255, 255), 0.05);
  }

  .gl-my-svc-table tbody td,
  .gl-my-rent-table tbody td {
    display: block;
    border: 0;
    padding: 0;
    width: auto;
    min-width: 0;
    text-align: left !important;
  }

  .gl-my-svc-table tbody td::before,
  .gl-my-rent-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gl-text-muted);
    margin-bottom: 0.125rem;
  }

  .gl-my-svc-table tbody td[data-label=""]::before,
  .gl-my-rent-table tbody td[data-label=""]::before,
  .gl-my-svc-td-cost::before,
  .gl-my-svc-td-status::before,
  .gl-my-rent-td-date::before,
  .gl-my-rent-td-status::before {
    content: none;
    display: none;
  }

  .gl-my-svc-td-avatar,
  .gl-my-rent-td-avatar {
    grid-area: avatar;
    align-self: start;
    margin: 0;
  }

  .gl-my-svc-td-avatar {
    grid-row: 1 / 2;
  }

  .gl-my-rent-td-avatar {
    grid-row: 1 / 2;
  }

  .gl-my-svc-td-name {
    grid-area: name;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    padding-right: 0;
  }

  .gl-my-svc-td-cost {
    grid-area: cost;
    align-self: end;
    justify-self: start;
    text-align: left;
    font-size: 0.8125rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  .gl-my-svc-cost-amount {
    font-weight: 700;
  }

  .gl-my-svc-cost-suffix {
    font-weight: 400;
    color: var(--gl-text-muted);
  }

  .gl-my-svc-td-expire {
    grid-area: expire;
    align-self: end;
    justify-self: start;
    text-align: left;
    font-size: 0.8125rem;
    color: var(--gl-text-muted);
    line-height: 1.3;
    margin-top: 0.625rem;
    padding-bottom: 0.125rem;
  }

  .gl-my-svc-td-status,
  .gl-my-rent-td-status {
    grid-area: status;
    justify-self: end;
    align-self: end;
    width: max-content;
    max-width: 100%;
    line-height: 1.2;
  }

  .gl-my-svc-td-status-inner,
  .gl-my-rent-td-status-inner {
    display: block;
    text-align: right;
  }

  .gl-my-svc-td-status-inner .badge,
  .gl-my-rent-td-status-inner .badge {
    display: inline-block;
    max-width: min(100%, 11rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }

  .gl-my-rent-td-name {
    grid-area: name;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    padding-right: 0;
  }

  .gl-my-rent-td-date {
    grid-area: date;
    align-self: end;
    justify-self: start;
    font-size: 0.8125rem;
    color: var(--gl-text-muted);
    line-height: 1.3;
    white-space: nowrap;
    margin-top: 0.625rem;
  }

  .gl-my-svc-td-actions,
  .gl-my-rent-td-actions {
    grid-area: actions;
    position: static;
    align-self: start;
    justify-self: end;
    width: max-content;
    max-width: 100%;
    padding: 0;
    text-align: right !important;
  }
}


/* End */
/* /bitrix/templates/gl_showcase/assets/app.css?178909868177019 */
