/* =============================================================================
   BRAND — Grandmed (site 1795)
   Same structure as 1990's public/components/brand.css. Loaded after the extra
   stylesheets so the button tokens below win.

   Values come from the live grandmed.mn (admin theme options):
   primary #00B2BE (teal) · secondary #EC3338 (red).
   Fonts: Noto Serif (headings) + Manrope (text) — the client's review 2026-11-02 (was GIP).

   ⚠️ Contrast: white text on #00B2BE is 2.59:1 (WCAG AA needs 4.5:1). Kept as the
   live brand for now; hover/emphasis tokens below are darkened to pass AA.
   ============================================================================= */

/* FONTS — h1 · h2 (and block titles) Noto Serif, everything else Manrope (both have Ө Ү Ё). Back to the old brand font: set both
   tokens to "GIP", sans-serif and restore the GIP stylesheet link in _start.php / layout.blade.php. */

:root {
  --gm-font-text: "Manrope", system-ui, sans-serif;
  --gm-font-heading: "Noto Serif", Georgia, serif;
}
body {
  font-family: var(--gm-font-text);
}
h1, h2,
.h1, .h2,
.heading-row > .heading-main > :is(h1, h2, h3),
.heading-row.heading-row-page > .heading-main > h1 {
  font-family: var(--gm-font-heading);
  font-weight: 500;
  letter-spacing: -.005em;
}


/* BRAND TOKENS — light */

:root,
[data-bs-theme="light"] {
  --bs-primary: #00b2be;
  --bs-primary-rgb: 0, 178, 190;
  --bs-primary-bg-subtle: #ccf0f2;
  --bs-primary-border-subtle: #99e0e5;
  --bs-primary-text-emphasis: #00474c;   /* on white 10.47:1 */

  --bs-secondary: #ec3338;
  --bs-secondary-rgb: 236, 51, 56;
  --bs-secondary-bg-subtle: #fbd6d7;
  --bs-secondary-border-subtle: #f7adaf;
  --bs-secondary-text-emphasis: #5e1416;

  --bs-link-color: #00b2be;
  --bs-link-color-rgb: 0, 178, 190;

  /* ×.70 of primary: 4.92:1 on white (×.85 would be only 3.53:1). Footer link hover reads this. */
  --bs-link-hover-color: #007d85;
  --bs-link-hover-color-rgb: 0, 125, 133;
}


/* BRAND TOKENS — dark */

[data-bs-theme="dark"] {
  --bs-primary-bg-subtle: #002426;
  --bs-primary-border-subtle: #006b72;
  --bs-primary-text-emphasis: #66d1d8;

  --bs-secondary-bg-subtle: #2f0a0b;
  --bs-secondary-border-subtle: #5e1416;
  --bs-secondary-text-emphasis: #f48588;
}


/* BUTTONS */

.btn-primary {
  --bs-btn-bg: #00b2be;
  --bs-btn-border-color: #00b2be;
  --bs-btn-hover-bg: #0097a2;
  --bs-btn-hover-border-color: #0097a2;
  --bs-btn-active-bg: #008e98;
  --bs-btn-active-border-color: #008e98;
  --bs-btn-disabled-bg: #00b2be;
  --bs-btn-disabled-border-color: #00b2be;
}
.btn-outline-primary {
  --bs-btn-color: #00b2be;
  --bs-btn-border-color: #00b2be;
  --bs-btn-hover-bg: #00b2be;
  --bs-btn-hover-border-color: #00b2be;
  --bs-btn-active-bg: #00b2be;
  --bs-btn-active-border-color: #00b2be;
  --bs-btn-disabled-color: #00b2be;
  --bs-btn-disabled-border-color: #00b2be;
}

.btn-secondary {
  --bs-btn-bg: #ec3338;
  --bs-btn-border-color: #ec3338;
  --bs-btn-hover-bg: #c92b30;
  --bs-btn-hover-border-color: #c92b30;
  --bs-btn-active-bg: #bd292d;
  --bs-btn-active-border-color: #bd292d;
  --bs-btn-disabled-bg: #ec3338;
  --bs-btn-disabled-border-color: #ec3338;
}
.btn-outline-secondary {
  --bs-btn-color: #ec3338;
  --bs-btn-border-color: #ec3338;
  --bs-btn-hover-bg: #ec3338;
  --bs-btn-hover-border-color: #ec3338;
  --bs-btn-active-bg: #ec3338;
  --bs-btn-active-border-color: #ec3338;
  --bs-btn-disabled-color: #ec3338;
  --bs-btn-disabled-border-color: #ec3338;
}


/* =============================================================================
   HEADING — every heading-row h2 gets a short primary line under it
   (after my.clevelandclinic.org). heading-main is a flex column, so in
   .heading-centered the line centres on its own.
   ============================================================================= */

.heading-row > .heading-main:has(> h2)::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: .25rem;
  margin-top: .5rem;
  margin-bottom: .5rem;
  background-color: var(--bs-primary);
}


/* =============================================================================
   RADIUS — square corners everywhere; buttons are pills.
   1) Bootstrap tokens (dropdown, badge, .rounded, .rounded-pill, form-check …)
   2) every extra rule with a radius, same selector / same @media, set to 0,
      generated from public/bootstrap-extra/{style,header,item-element,form-button}.css.
   Circles (rounded-circle, 50%) are shapes, not corners — left as they are.
   If extra adds a new rounded rule, regenerate this block.
   ============================================================================= */

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
}

@media (min-width: 576px) {
  .rounded-top-sm-1 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-sm-2 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-sm-3 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-sm-4 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-sm-5 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-bottom-sm-1 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-sm-2 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-sm-3 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-sm-4 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-sm-5 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-start-sm-1 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-sm-2 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-sm-3 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-sm-4 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-sm-5 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-end-sm-1 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-sm-2 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-sm-3 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-sm-4 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-sm-5 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}
@media (min-width: 768px) {
  .rounded-top-md-1 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-md-2 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-md-3 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-md-4 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-md-5 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-bottom-md-1 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-md-2 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-md-3 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-md-4 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-md-5 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-start-md-1 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-md-2 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-md-3 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-md-4 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-md-5 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-end-md-1 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-md-2 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-md-3 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-md-4 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-md-5 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}
@media (min-width: 992px) {
  .rounded-top-lg-1 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-lg-2 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-lg-3 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-lg-4 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-lg-5 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-bottom-lg-1 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-lg-2 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-lg-3 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-lg-4 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-lg-5 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-start-lg-1 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-lg-2 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-lg-3 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-lg-4 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-lg-5 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-end-lg-1 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-lg-2 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-lg-3 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-lg-4 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-lg-5 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}
@media (min-width: 1200px) {
  .rounded-top-xl-1 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-xl-2 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-xl-3 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-xl-4 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-top-xl-5 {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
  .rounded-bottom-xl-1 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-xl-2 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-xl-3 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-xl-4 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-bottom-xl-5 {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-start-xl-1 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-xl-2 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-xl-3 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-xl-4 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-start-xl-5 {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .rounded-end-xl-1 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-xl-2 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-xl-3 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-xl-4 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .rounded-end-xl-5 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}
.btn {
  --bs-btn-border-radius: 0;
}
.btn-sm {
  --bs-btn-border-radius: 0;
}
.btn-lg {
  --bs-btn-border-radius: 0;
}
.form-control, .form-select {
  border-radius: 0;
}
.form-control-sm, .form-select-sm {
  border-radius: 0;
}
.typography img {
  border-radius: 0;
}
.typography iframe {
  border-radius: 0;
}
@media (min-width: 992px) {
  .typography img, .typography iframe {
    border-radius: 0;
  }
}
.item-var-2 {
  border-radius: 0;
}
@media (min-width: 768px) {
  .item-var-2 {
    border-radius: 0;
  }
}
.card-item.item-var-3, .post-item.item-var-3, .product-item.item-var-3 {
  border-radius: 0;
}
@media (min-width: 768px) {
  .card-item.item-var-3, .post-item.item-var-3, .product-item.item-var-3 {
    border-radius: 0;
  }
}
.feature-item.item-element.item-var-4 {
  border-radius: 0;
}
.card-item.item-var-1 figure, .card-item.item-var-4 figure, .post-item.item-var-1 figure, .post-item.item-var-4 figure, .product-item.item-var-1 figure, .product-item.item-var-4 figure {
  border-radius: 0;
}
@media (min-width: 768px) {
  .item-element.item-var-4.feature-item {
    border-radius: 0;
  }
  .card-item.item-var-1 figure, .card-item.item-var-4 figure, .post-item.item-var-1 figure, .post-item.item-var-4 figure, .product-item.item-var-1 figure, .product-item.item-var-4 figure {
    border-radius: 0;
  }
}
.breadcrumb-var-1 .breadcrumb {
  border-radius: 0;
}
.breadcrumb-var-2 .breadcrumb-item.active span {
  border-radius: 0;
}
.breadcrumb-var-3 .breadcrumb {
  border-radius: 0;
}
.swiper-navigation-var-1 .swiper-button {
  border-radius: 0;
}
.swiper-pagination-bullet {
  border-radius: 0;
}
.swiper-pagination-var-2 .pagination-progress {
  border-radius: 0;
}
.page-item .page-link {
  border-radius: 0 !important;
}
.pagination-var-1 .pagination {
  border-radius: 0;
}
.pagination-var-2 .page-item .page-link {
  border-radius: 0 !important;
}
.accordion-item {
  border-radius: 0;
}
.accordion-item:first-child, .accordion-item:last-child {
  border-radius: 0;
}
@media (min-width: 768px) {
  .accordion-item, .accordion-item:first-child, .accordion-item:last-child {
    border-radius: 0;
  }
}
.modal {
  --bs-modal-border-radius: 0;
  --bs-modal-inner-border-radius: 0;
}
@media (min-width: 768px) {
  .modal {
    --bs-modal-border-radius: 0;
    --bs-modal-inner-border-radius: 0;
  }
}
.rounded-1 {
  border-radius: 0 !important;
}
.rounded-2 {
  border-radius: 0 !important;
}
.rounded-3 {
  border-radius: 0 !important;
}
.rounded-4 {
  border-radius: 0 !important;
}
.rounded-5 {
  border-radius: 0 !important;
}
@media (min-width: 576px) {
  .rounded-sm-1 {
    border-radius: 0 !important;
  }
  .rounded-sm-2 {
    border-radius: 0 !important;
  }
  .rounded-sm-3 {
    border-radius: 0 !important;
  }
  .rounded-sm-4 {
    border-radius: 0 !important;
  }
  .rounded-sm-5 {
    border-radius: 0 !important;
  }
  .rounded-sm-pill {
    border-radius: 0 !important;
  }
}
@media (min-width: 768px) {
  .rounded-md-1 {
    border-radius: 0 !important;
  }
  .rounded-md-2 {
    border-radius: 0 !important;
  }
  .rounded-md-3 {
    border-radius: 0 !important;
  }
  .rounded-md-4 {
    border-radius: 0 !important;
  }
  .rounded-md-5 {
    border-radius: 0 !important;
  }
  .rounded-md-pill {
    border-radius: 0 !important;
  }
}
@media (min-width: 992px) {
  .rounded-lg-1 {
    border-radius: 0 !important;
  }
  .rounded-lg-2 {
    border-radius: 0 !important;
  }
  .rounded-lg-3 {
    border-radius: 0 !important;
  }
  .rounded-lg-4 {
    border-radius: 0 !important;
  }
  .rounded-lg-5 {
    border-radius: 0 !important;
  }
  .rounded-lg-pill {
    border-radius: 0 !important;
  }
}
@media (min-width: 1200px) {
  .rounded-xl-1 {
    border-radius: 0 !important;
  }
  .rounded-xl-2 {
    border-radius: 0 !important;
  }
  .rounded-xl-3 {
    border-radius: 0 !important;
  }
  .rounded-xl-4 {
    border-radius: 0 !important;
  }
  .rounded-xl-5 {
    border-radius: 0 !important;
  }
  .rounded-xl-pill {
    border-radius: 0 !important;
  }
}
@media (min-width: 1400px) {
  .rounded-xxl-1 {
    border-radius: 0 !important;
  }
  .rounded-xxl-2 {
    border-radius: 0 !important;
  }
  .rounded-xxl-3 {
    border-radius: 0 !important;
  }
  .rounded-xxl-4 {
    border-radius: 0 !important;
  }
  .rounded-xxl-5 {
    border-radius: 0 !important;
  }
  .rounded-xxl-pill {
    border-radius: 0 !important;
  }
}
.item-var-2 {
  border-radius: 0;
}
@media (min-width: 768px) {
  .item-var-2 {
    border-radius: 0;
  }
}
.card-item.item-var-3, .post-item.item-var-3, .product-item.item-var-3 {
  border-radius: 0;
}
@media (min-width: 768px) {
  .card-item.item-var-3, .post-item.item-var-3, .product-item.item-var-3 {
    border-radius: 0;
  }
}
.feature-item.item-element.item-var-4 {
  border-radius: 0;
}
.card-item.item-var-1 .item-image, .card-item.item-var-4 .item-image, .post-item.item-var-1 .item-image, .post-item.item-var-4 .item-image, .product-item.item-var-1 .item-image, .product-item.item-var-4 .item-image {
  border-radius: 0;
}
@media (min-width: 768px) {
  .item-element.item-var-4.feature-item {
    border-radius: 0;
  }
  .card-item.item-var-1 .item-image, .card-item.item-var-4 .item-image, .post-item.item-var-1 .item-image, .post-item.item-var-4 .item-image, .product-item.item-var-1 .item-image, .product-item.item-var-4 .item-image {
    border-radius: 0;
  }
}
.btn, .form-control, .form-select, .input-group-text, .form-option {
  --bs-border-radius-sm: 0;
  --bs-border-radius: 0;
  --bs-border-radius-lg: 0;
}


/* =============================================================================
   BUTTONS — pill. Kept after the block above so it wins at equal specificity.
   ============================================================================= */

.btn,
.btn-sm,
.btn-lg {
  --bs-btn-border-radius: 50rem;
}


/* =============================================================================
   BTN-LINK — primary everywhere (extra paints it body colour inside .item-action
   and item-var-3 cards). Hover = link hover colour.
   ============================================================================= */

.btn-link {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-hover-color: var(--bs-link-hover-color);
  --bs-btn-active-color: var(--bs-link-hover-color);
}
.item-action > .btn.btn-link,
:is(.card-item, .post-item, .product-item).item-var-3 .item-action .btn.btn-link {
  color: var(--bs-primary) !important;
}
.item-action > .btn.btn-link:hover,
.item-action > .btn.btn-link:focus-visible,
:is(.card-item, .post-item, .product-item).item-var-3 .item-action .btn.btn-link:hover {
  color: var(--bs-link-hover-color) !important;
}

/* Every btn-link carries an icon. One that has its own <i> keeps it; the rest get the long arrow.
   It nudges right on hover (`.btn` is flex with a gap in extra, so the icon spaces itself). */
.btn-link:not(:has(> i, > svg))::after {
  content: "\f178";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .875em;
  line-height: 1;
  transition: transform var(--gm-dur) var(--gm-ease);
}
.btn-link > i.fa-arrow-right-long {
  transition: transform var(--gm-dur) var(--gm-ease);
}
.btn-link:hover::after,
.btn-link:focus-visible::after,
.btn-link:hover > i.fa-arrow-right-long,
.btn-link:focus-visible > i.fa-arrow-right-long {
  transform: translateX(.25rem);
}


/* =============================================================================
   SHADOWS — none anywhere on the site. Keyboard focus rings stay (accessibility).
   Panels that only had a shadow to stand apart (header bar, dropdowns) get a
   1px border instead.
   ============================================================================= */

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-box-shadow: none;
  --bs-box-shadow-sm: none;
  --bs-box-shadow-lg: none;
  --bs-box-shadow-inset: none;
}

.shadow,
.shadow-sm,
.shadow-lg {
  box-shadow: none !important;
}

.btn,
.btn:hover:not(:focus-visible),
.btn:active {
  box-shadow: none;
}

body.nav-open .header-transparent:not(.sticky) .navbar-collapse {
  box-shadow: none !important;
}

.header-v1 .navbar {
  border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}


/* =============================================================================
   1PX BORDERS — buttons and every form field (the extra draws them 2px).
   The lost pixel goes back into the vertical padding, so the 45 / 37 / 56px
   heights stay the same.
   ============================================================================= */

.btn,
.form-control,
.form-select,
.input-group-text,
.form-option,
.form-check-input {
  --bs-border-width: 1px;
}
.btn {
  --bs-btn-border-width: 1px;
  --bs-btn-padding-y: calc(.625rem + 1px);
}
.btn-sm {
  --bs-btn-padding-y: calc(.375rem + 1px);
}
.btn-lg {
  --bs-btn-padding-y: calc(.875rem + 1px);
}
.form-control,
.form-select,
.input-group-text,
.form-option {
  padding-top: calc(.625rem + 1px);
  padding-bottom: calc(.625rem + 1px);
}
.form-control-sm,
.form-select-sm,
.form-option-sm,
.input-group-sm > .btn,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text {
  padding-top: calc(.375rem + 1px);
  padding-bottom: calc(.375rem + 1px);
}
.form-control-lg,
.form-select-lg,
.form-option-lg,
.input-group-lg > .btn,
.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .input-group-text {
  padding-top: calc(.875rem + 1px);
  padding-bottom: calc(.875rem + 1px);
}
.header-v1 .dropdown-menu > ul {
  border: var(--bs-border-width) solid var(--bs-border-color);
}


/* =============================================================================
   PAGE TITLE — the h1 of every page is one calm size, the same step as the
   section h2 (extra: Bootstrap's h1, 2.5rem).
   ============================================================================= */

.heading-row.heading-row-page > .heading-main > h1 {
  font-size: calc(1.325rem + .9vw);
  line-height: 1.2;
}
@media (min-width: 1200px) {
  .heading-row.heading-row-page > .heading-main > h1 {
    font-size: 2rem;
  }
}


/* =============================================================================
   CRM FORM WIDGET (forms.greensoft.mn) — brought to the site's form look.
   The widget draws :is(#green_crm_form, .gm-crm) > .card > .card-body > form > .rendered-form
   and injects Bootstrap 3 + Chosen inside it (0,3,0), so every metric is stated
   again under :is(#green_crm_form, .gm-crm). Which field is half / full width belongs to the
   block that holds the form, not here.
   ============================================================================= */

:is(#green_crm_form, .gm-crm) .card,
:is(#green_crm_form, .gm-crm) .card-body {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* When the widget lays fields side by side (its own grid, no gap), keep them apart */
:is(#green_crm_form, .gm-crm) .rendered-form {
  column-gap: 1rem;
}

:is(#green_crm_form, .gm-crm) .rendered-form .form-group {
  margin-bottom: 1rem;
}

:is(#green_crm_form, .gm-crm) .rendered-form label {
  display: block;
  margin-bottom: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--bs-body-color);
}
:is(#green_crm_form, .gm-crm) .rendered-form label .formbuilder-required {
  color: var(--bs-danger);
}

:is(#green_crm_form, .gm-crm) .form-control {
  display: block;
  width: 100%;
  height: auto;
  padding: .75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--gm-dur) var(--gm-ease), box-shadow var(--gm-dur) var(--gm-ease);
}
:is(#green_crm_form, .gm-crm) .form-control:focus {
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}
:is(#green_crm_form, .gm-crm) textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}
:is(#green_crm_form, .gm-crm) .form-control::placeholder {
  color: var(--bs-secondary-color);
  opacity: 1;
}

:is(#green_crm_form, .gm-crm) .help {
  color: var(--bs-secondary-color);
  font-size: .75rem;
}
:is(#green_crm_form, .gm-crm) .help:empty {
  display: none;
}

/* The widget attaches Chosen to every select on the page — keep the native selects */
.chosen-container {
  display: none !important;
}
select:has(+ .chosen-container) {
  display: block !important;
}
:is(#green_crm_form, .gm-crm) .rendered-form select.form-control {
  display: block !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
}
:is(#green_crm_form, .gm-crm) .rendered-form select.form-control:has(option[value=""]:checked) {
  color: var(--bs-secondary-color);
}

:is(#green_crm_form, .gm-crm) .checkbox-group,
:is(#green_crm_form, .gm-crm) .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
:is(#green_crm_form, .gm-crm) .formbuilder-checkbox,
:is(#green_crm_form, .gm-crm) .formbuilder-radio {
  display: flex;
  align-items: center;
  gap: .5rem;
}
:is(#green_crm_form, .gm-crm) .formbuilder-checkbox label,
:is(#green_crm_form, .gm-crm) .formbuilder-radio label {
  margin: 0;
  font-weight: 400;
}
:is(#green_crm_form, .gm-crm) .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

/* Submit — the site's primary pill, whatever colour the form was given in the CRM */
:is(#green_crm_form, .gm-crm) .rendered-form .form-group.field-submit,
:is(#green_crm_form, .gm-crm) .rendered-form .formbuilder-button {
  margin-bottom: 0;
}
:is(#green_crm_form, .gm-crm) .rendered-form .btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.8125rem;
  padding: .625rem 1.5rem;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bs-white);
  background-color: var(--bs-primary);
  background-image: none;
  border: var(--bs-border-width) solid var(--bs-primary);
  border-radius: 50rem;
  box-shadow: none;
  text-shadow: none;
  transition: background-color var(--gm-dur) var(--gm-ease), border-color var(--gm-dur) var(--gm-ease);
}
:is(#green_crm_form, .gm-crm) .rendered-form .btn:hover,
:is(#green_crm_form, .gm-crm) .rendered-form .btn:focus {
  color: var(--bs-white);
  background-color: #0097a2;
  border-color: #0097a2;
}

/* Message shown after the form is sent */
:is(#green_crm_form, .gm-crm) #formaction > div[style*="none"] + div:not(#fb-editor):not(:empty) {
  padding: 1.5rem 0;
}
:is(#green_crm_form, .gm-crm) #formaction > div[style*="none"] + div:not(#fb-editor) :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
:is(#green_crm_form, .gm-crm) #formaction > div[style*="none"] + div:not(#fb-editor) p {
  margin: 0;
  font-weight: 600;
  color: var(--bs-link-hover-color);
}


/* MODAL — the round close button keeps its shape beside a long title */

.modal-header > .btn-close {
  flex-shrink: 0;
}


/* =============================================================================
   MOTION — one speed and one curve for every transition on the site: hovers,
   menus, modals, accordions, the extra's items, buttons, links. Blocks use the
   same tokens in their own <style>. AOS · Lenis (smooth scrolling) are set in
   _end.php / layout.blade.php.
   ============================================================================= */

:root {
  --gm-dur: .4s;
  --gm-ease: ease-in-out;
}

/* The extra's item parts (its own list, `all .4s ease-in-out`) */
.item-element,
.item-element video,
.item-element img,
.item-image,
.item-overlay,
.item-bg-overlay,
.item-details,
.item-title,
.item-title a,
.item-title span,
.item-title a span,
.item-info,
.item-list,
.item-desc,
.item-meta,
.item-category,
.item-category a,
.item-date,
.item-badge,
.item-price,
.item-price-old,
.item-spec,
.item-action,
.item-action a,
.item-action > .btn.btn-link {
  transition-duration: var(--gm-dur);
  transition-timing-function: var(--gm-ease);
}

/* Bootstrap components (.15s – .35s by default) */
.btn,
.btn-close,
.nav-link,
.dropdown-item,
.form-control,
.form-select,
.form-check-input,
.page-link,
.accordion-button,
.accordion-button::after,
.swiper-button,
.fade,
.modal.fade .modal-dialog,
.offcanvas,
.collapsing {
  transition-duration: var(--gm-dur);
  transition-timing-function: var(--gm-ease);
}

/* Plain text links: the colour fades */
a {
  transition: color var(--gm-dur) var(--gm-ease), background-color var(--gm-dur) var(--gm-ease),
    border-color var(--gm-dur) var(--gm-ease), text-decoration-color var(--gm-dur) var(--gm-ease);
}

/* Header menus open with a fade and a short drop (they had no transition) */
@media (min-width: 1200px) {
  .header-v1 .dropdown-menu {
    transition: opacity var(--gm-dur) var(--gm-ease), transform var(--gm-dur) var(--gm-ease),
      visibility var(--gm-dur) var(--gm-ease);
  }
}

/* In-page links stop below the sticky header (pages with a second sticky bar add its height as scroll-margin-top) */
html {
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --gm-dur: .01s;
  }
}


/* =============================================================================
   THIN SCROLLBAR — rows that scroll sideways (contents bar, department bar,
   news tabs): a 3px teal line under the row, stronger on hover. Shows only
   when the row overflows. Firefox gets its own thin bar.
   ============================================================================= */

.gm-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .375rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bs-primary-rgb), .45) rgba(var(--bs-primary-rgb), .08);
}
@supports selector(::-webkit-scrollbar) {
  .gm-scroll-x {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  .gm-scroll-x::-webkit-scrollbar {
    height: 3px;
  }
  .gm-scroll-x::-webkit-scrollbar-track {
    background-color: rgba(var(--bs-primary-rgb), .08);
  }
  .gm-scroll-x::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), .45);
    transition: background-color var(--gm-dur) var(--gm-ease);
  }
  .gm-scroll-x:hover::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
  }
}

/* Arrow buttons (layout/_site-modals script wraps each .gm-scroll-x in .gm-scroll-wrap): a round ‹ › at the end
   that has more, and the row's text fades out there — fully gone a little before the button, so it stands in
   clear white space — clearer than a scrollbar for people who don't read it as
   «there is more». The thin bar is then not needed. */
.gm-scroll-wrap {
  position: relative;
  min-width: 0;
}
.gm-scroll-wrap > .gm-scroll-x {
  padding-bottom: 0;
  scrollbar-width: none;
}
.gm-scroll-wrap > .gm-scroll-x::-webkit-scrollbar {
  display: none;
}
.gm-scroll-wrap.can-next > .gm-scroll-x {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 7rem), transparent calc(100% - 3.5rem));
  mask-image: linear-gradient(to right, #000 calc(100% - 7rem), transparent calc(100% - 3.5rem));
}
.gm-scroll-wrap.can-prev > .gm-scroll-x {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 7rem), transparent calc(100% - 3.5rem));
  mask-image: linear-gradient(to left, #000 calc(100% - 7rem), transparent calc(100% - 3.5rem));
}
.gm-scroll-wrap.can-prev.can-next > .gm-scroll-x {
  -webkit-mask-image: linear-gradient(to right, transparent 3.5rem, #000 7rem, #000 calc(100% - 7rem), transparent calc(100% - 3.5rem));
  mask-image: linear-gradient(to right, transparent 3.5rem, #000 7rem, #000 calc(100% - 7rem), transparent calc(100% - 3.5rem));
}
.gm-scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: 50%;
  background-color: var(--bs-body-bg);
  color: var(--bs-emphasis-color);
  font-size: .875rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition: opacity var(--gm-dur) var(--gm-ease), visibility var(--gm-dur) var(--gm-ease), color var(--gm-dur) var(--gm-ease), border-color var(--gm-dur) var(--gm-ease);
}
.gm-scroll-btn:hover,
.gm-scroll-btn:focus-visible {
  color: var(--bs-link-hover-color);
  border-color: var(--bs-primary);
}
.gm-scroll-prev {
  left: 0;
}
.gm-scroll-next {
  right: 0;
}
.can-prev > .gm-scroll-prev,
.can-next > .gm-scroll-next {
  opacity: 1;
  visibility: visible;
}


/* =============================================================================
   LAUREL — a gold laurel branch (the left one; mirror it with scaleX(-1) for the
   right). Decoration of the achievements / awards blocks on the About page:
   `background: var(--gm-laurel) center / contain no-repeat` on a box whose
   width = height × var(--gm-laurel-k).
   ============================================================================= */

:root {
  --gm-laurel-k: .4860;
  --gm-laurel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 69.5 143'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e2bb50'/%3E%3Cstop offset='1' stop-color='%23b0801a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M69.4 131.1L63.7 131.3L58.3 131L53.2 130.2L48.3 129L43.8 127.4L39.6 125.4L35.6 123L32 120.3L28.7 117.3L25.7 113.9L23 110.3L20.6 106.4L18.5 102.2L16.7 97.9L15.2 93.3L14 88.5L13.1 83.5L12.5 78.4L12.2 73.2L12.3 67.9L12.6 62.4L13.2 56.9L14.1 51.3L15.4 45.7L16.9 40.1L18.8 34.4L20.9 28.8L23.4 23.3L26.1 17.7L29.2 12.3L29.5 12.5L26.5 17.9L23.8 23.4L21.4 29L19.3 34.6L17.5 40.2L16 45.9L14.8 51.4L13.9 57L13.3 62.5L13 67.9L13 73.2L13.3 78.4L13.9 83.4L14.9 88.3L16.1 93L17.6 97.5L19.4 101.8L21.5 105.9L23.9 109.7L26.5 113.2L29.5 116.5L32.8 119.4L36.3 122L40.2 124.3L44.3 126.2L48.7 127.7L53.4 128.8L58.4 129.5L63.7 129.8L69.3 129.6ZM57.8 130.2Q44.4 129.1 37.4 142.8Q52.9 142.7 57.8 130.2ZM57.8 130.2Q56.3 119.5 44.1 118.6Q47 130.5 57.8 130.2ZM44.3 126.9Q32.2 122.4 22.2 133.3Q36.5 137.1 44.3 126.9ZM44.3 126.9Q45.6 116.6 34.6 112.6Q34.2 124.3 44.3 126.9ZM33.1 120.4Q23.3 113.1 11.2 120.3Q23.2 127.7 33.1 120.4ZM33.1 120.4Q37.1 111.4 28.1 104.8Q24.6 115.4 33.1 120.4ZM24.3 111.3Q17.2 102 4.3 105.6Q13.4 115.4 24.3 111.3ZM24.3 111.3Q30.3 104 23.7 95.7Q17.8 104.5 24.3 111.3ZM18 99.9Q13.5 89.8 0.8 90.2Q7 101.2 18 99.9ZM18 99.9Q25.1 94.5 20.9 85.4Q13.5 92.2 18 99.9ZM14.1 86.7Q11.8 76.5 0 74.4Q3.7 85.9 14.1 86.7ZM14.1 86.7Q21.7 83.1 19.6 73.8Q11.4 78.7 14.1 86.7ZM12.6 72.1Q12.2 62.3 1.5 58.4Q3.1 69.7 12.6 72.1ZM12.6 72.1Q20.3 70 19.8 61.1Q11.4 64.3 12.6 72.1ZM13.6 56.7Q14.6 47.5 5.3 42.4Q5.1 53 13.6 56.7ZM13.6 56.7Q21 55.8 21.9 47.4Q13.6 49.2 13.6 56.7ZM17 40.7Q19.2 32.3 11.3 26.4Q9.7 36.2 17 40.7ZM17 40.7Q24 41 25.9 33.3Q18.1 33.8 17 40.7ZM22.6 25.6Q25.6 18.1 19.1 11.6Q16.3 20.5 22.6 25.6ZM22.6 25.6Q29 26.6 31.7 19.8Q24.4 19.3 22.6 25.6ZM29.4 12.4Q36.8 9.3 36.7 0Q28.5 4.4 29.4 12.4Z'/%3E%3C/svg%3E");
}
