:root {
  --bvps-blue: #1160BA;
  --bvps-blue-dark: #082E76;
  --bvps-black: #020D17;
  --bvps-muted: #6C7782;
  --bvps-stroke: #D9DDE2;
  --bvps-bg: #F6F7FA;
  --bvps-white: #FFFFFF;
  --bvps-pad: 100px;
  --bvps-content: 1560px;
  --bvps-header-shadow: 0 4px 24px rgba(2, 13, 23, 0.08);
  --bvps-dropdown-shadow: 0 8px 32px rgba(2, 13, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Google Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 400;
  font-size: 16px;
  color: var(--bvps-black);
  background: #222;
}

a {
  color: var(--bvps-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bvps-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

h2 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 400;
}

.site {
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* ========== HEADER ========== */

.site-header {
  background: var(--bvps-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--bvps-header-shadow);
}

.header-main {
  position: relative;
  z-index: 2;
  background: var(--bvps-white);
}

.header-top {
  background: var(--bvps-bg);
}

.header-top__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.header-top__contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bvps-black);
  font-size: 18px;
}

.contact-phone img {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-phone strong {
  font-weight: 700;
  color: var(--bvps-blue);
}

.contact-phone:hover,
.contact-phone:hover strong {
  color: var(--bvps-blue-dark);
  text-decoration: none;
}

.messengers {
  display: flex;
  align-items: center;
}

.messengers--header {
  gap: 4px;
}

.messengers--footer {
  gap: 8px;
}

.messenger-link {
  line-height: 0;
}

.messenger-link img {
  display: block;
  width: 24px;
  height: 24px;
}

.vip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--bvps-muted);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.vip-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

.vip-toggle:hover {
  color: var(--bvps-blue);
}

.vip-toggle.bvi-hide {
  display: none !important;
}

/* Keep BVI panel above sticky header */
.bvi-panel,
.bvi-panel.bvi-panel-fixed {
  z-index: 200;
}

/*
 * BVI paints every ::after with a solid theme color
 * (see bvi.min.css: `.bvi-color-white ::after`). Our stretch-link
 * overlays then cover images and titles — force them transparent.
 */
body .bvi-body.bvi-color-white .cat-card__label a::after,
body .bvi-body.bvi-color-black .cat-card__label a::after,
body .bvi-body.bvi-color-blue .cat-card__label a::after,
body .bvi-body.bvi-color-brown .cat-card__label a::after,
body .bvi-body.bvi-color-green .cat-card__label a::after,
body .bvi-body.bvi-color-white .infobanner__wrap a::before,
body .bvi-body.bvi-color-black .infobanner__wrap a::before,
body .bvi-body.bvi-color-blue .infobanner__wrap a::before,
body .bvi-body.bvi-color-brown .infobanner__wrap a::before,
body .bvi-body.bvi-color-green .infobanner__wrap a::before {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Hero / footer sliders: BVI solid backgrounds break fade & overlays */
body .bvi-body.bvi-color-white .hero-slides,
body .bvi-body.bvi-color-white .hero-slides *,
body .bvi-body.bvi-color-black .hero-slides,
body .bvi-body.bvi-color-black .hero-slides *,
body .bvi-body.bvi-color-blue .hero-slides,
body .bvi-body.bvi-color-blue .hero-slides *,
body .bvi-body.bvi-color-brown .hero-slides,
body .bvi-body.bvi-color-brown .hero-slides *,
body .bvi-body.bvi-color-green .hero-slides,
body .bvi-body.bvi-color-green .hero-slides *,
body .bvi-body.bvi-color-white .footer-carousel,
body .bvi-body.bvi-color-white .footer-carousel *:not(img),
body .bvi-body.bvi-color-black .footer-carousel,
body .bvi-body.bvi-color-black .footer-carousel *:not(img),
body .bvi-body.bvi-color-blue .footer-carousel,
body .bvi-body.bvi-color-blue .footer-carousel *:not(img),
body .bvi-body.bvi-color-brown .footer-carousel,
body .bvi-body.bvi-color-brown .footer-carousel *:not(img),
body .bvi-body.bvi-color-green .footer-carousel,
body .bvi-body.bvi-color-green .footer-carousel *:not(img) {
  background-color: transparent !important;
  background-image: none !important;
}

body .bvi-body.bvi-color-white .footer-carousel__list .swiper-slide::after,
body .bvi-body.bvi-color-black .footer-carousel__list .swiper-slide::after,
body .bvi-body.bvi-color-blue .footer-carousel__list .swiper-slide::after,
body .bvi-body.bvi-color-brown .footer-carousel__list .swiper-slide::after,
body .bvi-body.bvi-color-green .footer-carousel__list .swiper-slide::after {
  background: currentColor !important;
  background-color: currentColor !important;
  width: 1px !important;
}

/* Keep hero CTA button visible under BVI */
body .bvi-body .hero-slide__content .btn {
  background-color: var(--bvps-blue) !important;
  color: #fff !important;
  text-shadow: none !important;
}

body .bvi-body .hero-dot {
  background-color: #fff !important;
}

body .bvi-body .hero-dot.is-active {
  background-color: var(--bvps-blue) !important;
}

body .bvi-body .cat-card__img,
body .bvi-body .cat-card__img img,
body .bvi-body .hero-slide__bg,
body .bvi-body .hero-slide__bg img,
body .bvi-body .news-card__img,
body .bvi-body .news-card__img img,
body .bvi-body .media-card__img,
body .bvi-body .media-card__img img,
body .bvi-body .catalog-grid-item__img,
body .bvi-body .catalog-grid-item__img img,
body .bvi-body .catalog-children__img,
body .bvi-body .catalog-children__img img,
body .bvi-body .catalog-product__media,
body .bvi-body .catalog-product__media img,
body .bvi-body .tovar__media,
body .bvi-body .tovar__media img,
body .bvi-body .uslugi-block__media,
body .bvi-body .uslugi-block__media img {
  background-color: transparent !important;
  background-image: none !important;
}

/* Honor BVI "images off" / grayscale replace — do not force-show imgs */
body .bvi-body img.bvi-img-hidden,
body .bvi-body img:has(+ .bvi-img-off),
body .bvi-body img:has(+ .bvi-img-grayscale) {
  display: none !important;
  visibility: hidden !important;
}

body .bvi-body img.bvi-img-grayscale,
body .bvi-body img.bvi-img-grayscale-native {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}

body .bvi-body .bvi-img-off {
  display: block !important;
  box-sizing: border-box;
  width: auto !important;
  max-width: 100%;
  min-height: 0;
  height: auto !important;
  margin: 8px 0;
  padding: 6px 10px;
  border: 1px dashed currentColor !important;
  text-align: left;
  writing-mode: horizontal-tb;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.95em;
}

/* Compact alt for icon-only links (messengers etc.) */
body .bvi-body .messenger-link .bvi-img-off,
body .bvi-body a.messenger-link .bvi-img-off {
  display: inline-block !important;
  margin: 0 4px 0 0;
  padding: 2px 6px;
  font-size: 0.85em;
  line-height: 1.2;
  vertical-align: middle;
}

body .bvi-body .messenger-link {
  line-height: 1.2;
}

/* Safety: never keep the default "no alt" boxes if an old JS bundle created them */
body .bvi-body .bvi-img-off:empty,
body .bvi-body .bvi-img-off.bvi-img-decorative {
  display: none !important;
}

/* Decorative UI icons sit next to text — drop their alt boxes even if JS is cached */
body .bvi-body .site-brand > .bvi-img-off,
body .bvi-body .contact-phone > .bvi-img-off,
body .bvi-body .footer-mail > .bvi-img-off,
body .bvi-body .footer-col--address > .bvi-img-off,
body .bvi-body .footer-address__icon + .bvi-img-off,
body .bvi-body .footer-dev > .bvi-img-off,
body .bvi-body .vip-toggle > .bvi-img-off,
body .bvi-body .footer-partners li:not(.swiper-slide--banner) .bvi-img-off,
body .bvi-body .contacts-page__logo + .bvi-img-off,
body .bvi-body .contactstext > .bvi-img-off {
  display: none !important;
}

/* Collapse empty image frames when only decorative icons were hidden */
body .bvi-body .cat-card__img:has(> img.bvi-img-hidden):not(:has(.bvi-img-off)),
body .bvi-body .cat-card__img:has(img.bvi-img-hidden):not(:has(.bvi-img-off)) {
  height: auto;
  min-height: 0;
}

body .bvi-body .cat-card__img:has(.bvi-img-off),
body .bvi-body .news-card__img:has(.bvi-img-off),
body .bvi-body .media-card__img:has(.bvi-img-off),
body .bvi-body .catalog-grid-item__img:has(.bvi-img-off),
body .bvi-body .hero-slide__bg:has(.bvi-img-off) {
  height: auto;
  min-height: 0;
}

body .bvi-body .cat-card {
  border: 1px solid currentColor;
}

/* Language switcher block (Drupal) */
.header-top .block,
.header-top .block-language {
  margin: 0;
}

.header-top .block h2,
.header-top .block .visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.lang-switch,
.language-switcher-language-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.language-switcher-language-url li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch__item,
.language-switcher-language-url .language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  color: var(--bvps-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  border-bottom: 1px solid transparent;
  text-decoration: none;
}

.lang-switch__item:hover,
.language-switcher-language-url .language-link:hover {
  color: var(--bvps-black);
  text-decoration: none;
}

.lang-switch__item.is-active,
.language-switcher-language-url li.is-active .language-link,
.language-switcher-language-url .language-link.is-active {
  color: var(--bvps-black);
  border-bottom-color: var(--bvps-blue);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;  
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bvps-blue-dark);
  flex-shrink: 0;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__logo {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.site-brand__name {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}

.header-main__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-menu .menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu>.menu > .menu-item > a,
.header-menu>.menu > .menu-item > span {
  padding: 16px 0;
}

.header-menu .menu-item > a,
.header-menu .menu > .menu-item > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--bvps-black);
  font-size: 18px;
  padding: 36px 0;
  border-bottom: 1px solid var(--bvps-white);
}

.header-menu .menu > .menu-item > a:hover {
  color: var(--bvps-blue);
  text-decoration: none;
  border-bottom-color: var(--bvps-blue);
}

.header-menu .menu-item--expanded > a::after,
.header-menu .menu-item--expanded > span::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  background: url("../images/icons/fi_chevron-down.svg") center / contain no-repeat;
  transition: transform 0.25s ease;
}

.header-menu .menu-item--expanded {
  position: relative;
}

.header-menu .menu > .menu-item--expanded > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  margin: 0;
  padding: 20px;
  list-style: none;
  border-radius: 0 0 16px 16px;
  background: var(--bvps-white);
  box-shadow: var(--bvps-dropdown-shadow);
  z-index: 60;
  overflow: visible;
}

.header-menu .menu > .menu-item--expanded > ul::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.header-menu .menu > .menu-item--expanded:nth-last-child(-n+2) > ul {
  left: auto;
  right: 0;
}

.header-menu .menu-item--expanded:hover > ul,
.header-menu .menu-item--expanded.is-open > ul,
.header-menu .menu-item--expanded:focus-within > ul {
  display: block;
}

.header-menu .menu-item--expanded:hover > a,
.header-menu .menu-item--expanded.is-open > a,
.header-menu .menu-item--expanded.menu-item--active-trail > a,
.header-menu .menu-item--expanded:hover > span,
.header-menu .menu-item--expanded.is-open > span,
.header-menu .menu-item--expanded.menu-item--active-trail > span {
  color: var(--bvps-blue);
}

.header-menu .menu-item--expanded:hover > a::after,
.header-menu .menu-item--expanded.is-open > a::after,
.header-menu .menu-item--expanded:hover > span::after,
.header-menu .menu-item--expanded.is-open > span::after {
  transform: rotate(180deg);
}

.header-menu .menu-item--expanded > ul .menu-item {
  margin: 0;
}

.header-menu .menu-item--expanded > ul a {
  display: block;
  padding:  4px;
  color: var(--bvps-black);
  border: none;
  font-size: 16px;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.header-menu .menu-item--expanded > ul a:hover,
.header-menu .menu-item--expanded > ul .menu-item--active-trail > a,
.header-menu .menu-item--expanded > ul a.is-active {
  color: var(--bvps-blue);
  background: transparent;
  text-decoration: none;
}

/* Keep submenu chevron on the same row as long titles (e.g. BE). */
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > a,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > span {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > a::after,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > span::after {
  flex: 0 0 12px;
  margin-left: auto;
  margin-top: 2px;
}

/* Third level: flyout to the right. */
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded {
  position: relative;
}

.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 300px;
  margin: 0 0 0 8px;
  padding: 20px;
  list-style: none;
  border-radius: 16px;
  background: var(--bvps-white);
  box-shadow: var(--bvps-dropdown-shadow);
  z-index: 70;
}

.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded:nth-last-child(-n+2) > ul {
  top: auto;
  bottom: 0;
}

.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded:hover > ul,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded:focus-within > ul,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded.is-open > ul {
  display: block;
}

.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
}

.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > a::after,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > span::after,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded:hover > a::after,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded.is-open > a::after,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded:hover > span::after,
.header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded.is-open > span::after {
  transform: rotate(-90deg);
}

.header-search {
  width: 200px;
}

.header-search .form-item {
  margin: 0;
}

.header-search form,
#search-block-form,
#search-form .search-page-form__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 200px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--bvps-stroke);
  border-radius: 26px;
  background: transparent;
}

.header-search input[type="search"],
.header-search input[type="text"],
#search-block-form .form-search,
#search-form .form-search {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-style: italic;
  color: var(--bvps-black);
  padding: 0;
  height: auto;
}

.header-search input::placeholder,
#search-block-form .form-search::placeholder,
#search-form .form-search::placeholder {
  color: var(--bvps-muted);
  font-style: italic;
}

.header-search .form-submit,
#search-block-form .form-submit,
#search-form .form-submit {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("../images/icons/search.svg") center / 24px 24px no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
}

.header-search .form-actions {
  line-height: 0;
}

.header-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bvps-stroke);
  border-radius: 8px;
  background: var(--bvps-white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.header-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bvps-black);
}

/* ========== FOOTER ========== */

.site-footer {
  background: var(--bvps-bg);
  margin-top: auto;
}

.footer-inner {
  padding-top: 80px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bvps-black);
  font-size: 16px;
  justify-content: center;
}

.footer-mail:hover  {
  color: var(--bvps-blue-dark);
}

.footer-mail img {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.footer-col--address {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  max-width: 270px;
}

.footer-address__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-address__text p {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--bvps-black);
  line-height: 1.4;
}

.footer-map-link {
  color: var(--bvps-blue);
  font-size: 16px;
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: var(--bvps-stroke);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom__left {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;  
  color: var(--bvps-muted);
}

.footer-bottom__left a {
  color: var(--bvps-muted);
}

.footer-bottom__left a:hover {
  color: var(--bvps-blue-dark);
}

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bvps-muted);
}

.footer-dev:hover {
  color: var(--bvps-blue-dark);
}

.footer-dev img {
  width: 30px;
  height: 30px;
  display: block;
}

.footer-dev > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.footer-dev__label,
.footer-dev__name {
  font-size: 14px;
  color: var(--bvps-muted);
}

/* ========== Local tasks (Claro-like) ========== */

.tabs-wrapper {
  width: 100%;
  margin: 0 0 1.5rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-bottom: 1px solid var(--bvps-stroke);
}

.tabs__tab {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs__tab > a,
.tabs__link {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #55565b;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  background: transparent;
}

.tabs__tab > a:hover,
.tabs__link:hover {
  color: var(--bvps-black);
  text-decoration: none;
  background: #f3f4f9;
}

.tabs__tab.is-active > a,
.tabs__tab > a.is-active,
.tabs__link.is-active {
  color: var(--bvps-blue);
  background: #fff;
  border-color: var(--bvps-stroke);
  border-bottom-color: #fff;
  margin-bottom: -1px;
  box-shadow: inset 0 3px 0 0 var(--bvps-blue);
}

.tabs--secondary {
  margin-top: 0.5rem;
}

.tabs--secondary .tabs__tab > a,
.tabs--secondary .tabs__link {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.tabs--secondary .tabs__tab.is-active > a,
.tabs--secondary .tabs__tab > a.is-active,
.tabs--secondary .tabs__link.is-active {
  box-shadow: inset 0 -3px 0 0 var(--bvps-blue);
  border-color: transparent;
  margin-bottom: 0;
}

/* ========== Legacy / inner pages (baseline) ========== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--bvps-blue);
  color: #fff;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn--primary:hover {
  background: var(--bvps-blue-dark);
  color: #fff;
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 32px;
  border: 1px solid var(--bvps-blue);
  border-radius: 4px;
  background: transparent;
  color: var(--bvps-blue);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn--secondary:hover {
  background: var(--bvps-blue);
  color: #fff;
}

.main-layout {
  display: flex;
  gap: 2rem; 
  width: 100%;
}

.main-layout .content {
  flex: 1 1 auto;
  min-width: 0;
}

.main-layout .sidebar {
  flex: 0 0 300px;
}

/* ========== INNER PAGES ========== */

#block-bvps-theme-breadcrumbs {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

#block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.2;
  color: var(--bvps-muted);
}

#block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol li {
  display: inline-flex;
  align-items: center;
}

#block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--bvps-stroke);
}

#block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol a {
  color: var(--bvps-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

#block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol a:hover {
  color: var(--bvps-blue);
}

#block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol li:last-child {
  color: var(--bvps-black);
}

#main-content {
  flex: 1 1 auto;
  padding: 0 0 var(--bvps-pad);
}

#main-content > .main-layout {
  display: block;
  max-width: 1600px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

#main-content > .main-layout:has(.sidebar) {
  display: flex;
  gap: 2rem;
}

#main-content .content {
  max-width: var(--bvps-content);
  margin: 0 auto;
}

#block-bvps-theme-page-title {
  margin: 0;
}

#block-bvps-theme-page-title h1 {
  margin: 0 0 48px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  color: var(--bvps-black);
}

.search-page-form {
  margin: 0 auto 48px;
}

.search-page-form .form-item {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.search-page-form#search-form .search-page-form__field {
  width: 100%;
}

#main-content .node__content {
  font-size: 18px;
}

#main-content .node__content > .field > :last-child,
#main-content .node__content > :last-child {
  margin-bottom: 0;
}

#main-content .node__content p {
  margin: 0 0 16px;
}

#main-content .node__content ul,
#main-content .node__content ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

#main-content .node__content h2 {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

#main-content .node__content h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

#main-content .node__content em {
  font-style: italic;
}

#main-content .node__content table {
  width: 100%;
  margin: 24px auto 32px;
  border: 2px solid var(--bvps-black);
  border-collapse: separate;
  border-spacing: 0;
  word-break: break-word;
}

#main-content .node__content thead {
  background: var(--bvps-black);
  color: var(--bvps-white);
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

#main-content .node__content thead th {
  padding: 17px;
  border: 2px solid var(--bvps-black);
  text-align: center;
  vertical-align: middle;
  color: var(--bvps-white);
  font-weight: 500;
}

#main-content .node__content table td {
  padding: 10px;
  border: 2px solid var(--bvps-black);
  text-align: center;
  vertical-align: middle;
}

#main-content .node__content table th p,
#main-content .node__content table td p {
  margin: 0 0 8px;
}

#main-content .node__content table th p:last-child,
#main-content .node__content table td p:last-child {
  margin-bottom: 0;
}

#main-content .node__content .MsoNormal {
  margin-bottom: 16px;
  background: transparent !important;
}

/* ========== NEWS LIST & ARTICLE ========== */

.news-list {
  margin-top: 8px;
}

.news-list .views-exposed-form,
#views-exposed-form-novosti-page-1 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  margin: 0 0 48px;
  padding: 24px;
  border-radius: 12px;
  background: var(--bvps-bg);
}

.news-list .views-exposed-form .form-item,
#views-exposed-form-novosti-page-1 .form-item {
  margin: 0;
}

.news-list .form-item-newsmonth,
.news-list .form-item-newsyear,
#views-exposed-form-novosti-page-1 .form-item-newsmonth,
#views-exposed-form-novosti-page-1 .form-item-newsyear {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  max-width: 260px;
}

.news-list .form-item-newsmonth .description,
.news-list .form-item-newsyear .description,
#views-exposed-form-novosti-page-1 .form-item-newsmonth .description,
#views-exposed-form-novosti-page-1 .form-item-newsyear .description {
  order: -1;
  margin-top: 0;
  margin-bottom: 6px;
}

.news-list .form-select,
#views-exposed-form-novosti-page-1 .form-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--bvps-stroke);
  border-radius: 8px;
  background: var(--bvps-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236C7782' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") calc(100% - 16px) 50% / 12px 8px no-repeat;
  appearance: none;
  font: inherit;
  font-size: 16px;
  color: var(--bvps-black);
}

.news-list .description,
#views-exposed-form-novosti-page-1 .description {
  font-size: 14px;
  line-height: 1.2;
  color: var(--bvps-muted);
}

.news-list .form-actions,
#views-exposed-form-novosti-page-1 .form-actions {
  margin: 0;
}

.news-list .form-actions .form-submit,
#views-exposed-form-novosti-page-1 .form-actions .form-submit {
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 4px;
  background: var(--bvps-blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.news-list .form-actions .form-submit:hover,
#views-exposed-form-novosti-page-1 .form-actions .form-submit:hover {
  background: var(--bvps-blue-dark);
}

.news-list-row {
  display: grid;
  grid-template-columns: minmax(0, 508px) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: start;
  margin: 0 0 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--bvps-stroke);
}

.news-list-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.news-list-row .views-field-field-osnovnoe-izobrazenie {
  min-width: 0;
}

.news-list-photo {
  padding-right: 20px;
}

.news-list-photo a {
  display: block;
  overflow: hidden;
  border-radius: 0;
}

.news-list-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  padding-right: 20px;
  border-right: 4px solid var(--bvps-black);
  transition: transform 0.35s ease;
}

.news-list-row:hover .news-list-photo img {
  transform: scale(1.03);
}

.news-txt {
  min-width: 0;
}

.news-txt > span {
  display: block;
}

.news-list-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: var(--bvps-black);
}

.news-list-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-list-row:hover .news-list-title a {
  color: var(--bvps-blue);
}

.news-list-row time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--bvps-muted);
  font-style: normal;
}

.news-list-row time::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: url("../images/icons/calendar-03.svg") center / contain no-repeat;
}

.news-txt p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bvps-black);
}

.news-txt p:last-child {
  margin-bottom: 0;
}

/* List teaser: clamp first paragraph only (avoids mid-line cut from max-height). */
.news-txt > span > div:has(> p) {
  overflow: hidden;
}

.news-txt > span > div:has(> p) > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  margin: 0;
}

.news-txt > span > div:has(> p) > p ~ p,
.news-txt > span > div:has(> p) > p ~ ul,
.news-txt > span > div:has(> p) > p ~ ol {
  display: none;
}

.news-list-readmore {
  margin-top: 16px;
}

.news-list-readmore a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bvps-black);
  color: #fff;
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.news-list-readmore a:hover {
  background: var(--bvps-blue);
  color: #fff;
}

.news-list nav[aria-labelledby="pagination-heading"] {
  margin-top: 48px;
}

.news-list .js-pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--bvps-muted);
}

.news-list .js-pager__items a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bvps-stroke);
  border-radius: 8px;
  color: var(--bvps-black);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.news-list .js-pager__items a:hover {
  border-color: var(--bvps-blue);
  color: var(--bvps-blue);
}

#main-content article .node__content:has(> div time):has(> div img) {
  overflow: hidden;
}

#main-content article .node__content:has(> div time):has(> div img) > div:has(img) {
  float: left;
  max-width: 508px;
  margin: 0 40px 21px 0;
}

#main-content article .node__content:has(> div time):has(> div img) img {
  display: block;
  width: 100%;
  max-width: 508px;
  height: auto;
  border-radius: 0;
}

#main-content article .node__content:has(> div time):has(> div img) > div:has(time) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--bvps-muted);
}

#main-content article .node__content:has(> div time):has(> div img) > div:has(time)::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: url("../images/icons/calendar-03.svg") center / contain no-repeat;
}

#main-content article .node__content:has(> div time):has(> div img) time {
  font-style: normal;
}

#main-content article .node__content:has(> div time):has(> div img) h5 {
  margin: 32px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bvps-muted);
  clear: both;
}

/* ========== VIDEO GALLERY ========== */

.views-element-container:has(.video-card) > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 12px;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.video-card .views-field-field-image {
  width: 100%;
  border: 4px solid var(--bvps-black);
  background: #000;
  line-height: 0;
}

.video-card .views-field-field-image a {
  display: block;
  position: relative;
}

.video-card .views-field-field-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 539 / 299;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-card .views-field-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 72%;
  margin: 0;
  padding: 10px;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.video-card .views-field-title a {
  display: inline;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.3s ease;
}

.video-card:hover .views-field-field-image img {
  transform: scale(1.04);
  opacity: 0.9;
}

.video-card:hover .views-field-title a {
  color: #fff;
  text-decoration: none;
}

#main-content .video-embed-field-responsive-video {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 20px;
}

#main-content .video-embed-field-responsive-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

main {
  flex: 1 1 auto;
}

.front-hero {
  position: relative;
  overflow: hidden;
}

.hero-slides.swiper {
  position: relative;
  overflow: hidden;
}

.hero-slides .swiper-wrapper {
  display: flex;
}

.hero-slide {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 600px;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.hero-slide__content > * {
  max-width: 50%;
}

.hero-slide__title {
  font-size: 44px;
  font-weight: 400;
  margin: 0 0 20px;
  line-height: 1;
}

.hero-slide__body {
  font-size: 20px;
  margin: 0 0 40px;
}

.hero-dots.swiper-pagination {
  position: absolute;
  left: clamp(20px, calc((100% - 1560px) / 2), 50%);
  bottom: 40px;
  right: auto;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: auto;
}

.hero-dots li {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-dot {
  width: 27px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.hero-dots .hero-dot.is-active,
.hero-dot.is-active {
  background: var(--bvps-blue);
}

.front-promo {
  padding: var(--bvps-pad) 0;
}

.promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px;
  overflow: hidden;
  border-radius: 20px;
  background: #fffbe3 url("../images/promo_bg.jpg") center / cover no-repeat;
}

.promo-banner__logo {
  display: block;
  flex: 0 0 auto;
  width: 254px;
  height: 108px;
  margin-right: 60px;
  background: url("../images/logo-milex.svg") center / contain no-repeat;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

.promo-banner__text {
  flex: 1 1 auto;
  max-width: 640px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--bvps-black);
}

.promo-banner__date {
  flex: 0 0 auto;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--bvps-black);
}

.promo-banner .btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

.front-categories {
  padding: var(--bvps-pad) 0;
}

.front-categories .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bvps-bg);
}

.cat-card__img {
  flex: 0 0 auto;
  height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bvps-bg);
}

.cat-card__img > *,
.cat-card__img .field,
.cat-card__img .field__item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.cat-card__label {
  flex: 0 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 12px;
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  transition: background 0.3s ease;
}

.cat-card__label a {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--bvps-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cat-card__label a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cat-card:hover .cat-card__img img {
  transform: scale(1.08);
}

.cat-card:hover .cat-card__label {
  background: var(--bvps-white);
}

.cat-card:hover .cat-card__label a {
  color: var(--bvps-blue);
}

.front-news {
  padding: var(--bvps-pad) 0;
  background: #e2e5ed;
}

.front-news .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.front-news .block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bvps-white);
}

.news-card__img {
  flex: 0 0 auto;
  height: 305px;
  overflow: hidden;
  border-radius: 8px;
  background: #d8dee6;
}

.news-card__img > *,
.news-card__img .field,
.news-card__img .field__item {
  width: 100%;
  height: 100%;
  display: block;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__img img {
  transform: scale(1.08);
}

.news-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 8px;
  min-height: 0;
}

.news-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.news-card__title a {
  color: var(--bvps-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card__title a:hover {
  color: var(--bvps-blue);
}

.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--bvps-muted);
}

.news-card__date::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: url("../images/icons/calendar-03.svg") center / contain no-repeat;
}

.news-card__date time {
  font-style: normal;
}

.front-media {
  padding: var(--bvps-pad) 0;
}

.front-media .container,
.front-media .block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.media-card__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #d8dee6;
}

.media-card__img > *,
.media-card__img .field,
.media-card__img .field__item {
  width: 100%;
  height: 100%;
  display: block;
}

.media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.media-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(17, 96, 186, 0.9);
  pointer-events: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.media-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.media-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.media-card__title a {
  color: var(--bvps-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.media-card:hover .media-card__img img {
  transform: scale(1.04);
}

.media-card:hover .media-card__play {
  background: var(--bvps-blue);
  transform: translate(-50%, -50%) scale(1.06);
}

.media-card:hover .media-card__title a {
  color: var(--bvps-blue);
}

.front-infobanners {
  padding: var(--bvps-pad) 0;
  background: #f6f7fa;
}

.front-infobanners .block {
  margin: 0;
}

.infobanner__wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.infobanner__wrap a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 180px;
  padding: 30px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
  transition: color 0.3s ease;
}

.infobanner__wrap a img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.infobanner__wrap a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  background: linear-gradient(90deg, rgba(27, 36, 51, 0.72) 0%, rgba(27, 36, 51, 0.18) 58%, transparent 100%);
  pointer-events: none;
}

.infobanner__wrap a:first-child {
  padding-right: 42%;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.infobanner__wrap a:first-child::before {
  display: block;
}

.infobanner__wrap a:last-child {
  padding: 0;
}

.infobanner__wrap a:hover img {
  transform: scale(1.04);
}

.footer-partners {
  border-top: 1px solid  #E2E5ED;
  padding: var(--bvps-pad) 0;
  background: var(--bvps-white);
}

.footer-carousel {
  width: 100%;
}

.footer-carousel__viewport {
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.footer-carousel__viewport.swiper-dragging {
  cursor: grabbing;
}

.footer-carousel.is-static .footer-carousel__viewport {
  flex: 0 1 auto;
}

.footer-carousel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-carousel__list.swiper-wrapper {
  display: flex;
  align-items: center;
}

.footer-carousel.is-static .footer-carousel__list.swiper-wrapper {
  justify-content: center;
  transform: none !important;
  width: auto !important;
}

.footer-carousel__list .swiper-slide {
  display: flex !important;
  align-items: center;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0 30px 0 0;
  box-sizing: border-box;
}

.footer-carousel__list .swiper-slide::after {
  content: "";
  flex: 0 0 auto;
  align-self: stretch;
  width: 1px;
  margin-left: 30px;
  background: var(--bvps-stroke);
}

.footer-carousel__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  color: var(--bvps-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-carousel__list a:hover {
  color: var(--bvps-blue);
}

.footer-carousel__list img {
  flex: 0 0 auto;
  width: auto;
  height: 58px;
  max-width: 68px;
  object-fit: contain;
  display: block;
}

.footer-carousel__list .swiper-slide--banner img {
  max-width: 120px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 0;
}

.catalog-grid__item {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.catalog-grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bvps-bg);
  text-decoration: none;
  color: inherit;
}

.catalog-grid-item__img {
  flex: 0 0 auto;
  height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bvps-bg);
}

.catalog-grid-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.catalog-grid-item__placeholder {
  width: 100%;
  height: 100%;
  background: #d8dee6;
}

.catalog-grid-item__title {
  flex: 0 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 12px;
  margin-top: auto;
  padding: 12px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: var(--bvps-black);
  transition: background 0.3s ease, color 0.3s ease;
}

.catalog-grid-item:hover .catalog-grid-item__img img {
  transform: scale(1.08);
}

.catalog-grid-item:hover .catalog-grid-item__title {
  background: var(--bvps-white);
  color: var(--bvps-blue);
}

.catalog-grid-item:hover {
  text-decoration: none;
}

/* Catalog view wrapper: new cat-grid markup (fallback if templates missing). */
.view-vocabulary:has(.cat-grid) {
  display: block;
}

/* Legacy fallback when default Views markup is used (no cat-card templates). */
.view-vocabulary:not(:has(.cat-grid)) {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 2%;
}

.view-vocabulary:not(:has(.cat-grid)) > .view-content {
  display: contents;
}

.view-vocabulary:not(:has(.cat-grid)) > .views-row,
.view-vocabulary:not(:has(.cat-grid)) .views-row {
  position: relative;
  margin-bottom: 6%;
  overflow: hidden;
  border: 3px solid var(--bvps-black);
  background: transparent;
  border-radius: 0;
  transition: all 1s;
  min-width: 0;
}

.view-vocabulary:not(:has(.cat-grid)) .views-row:hover {
  border-color: #fff;
  box-shadow: 0 0 10px #888;
}

.view-vocabulary:not(:has(.cat-grid)) .views-field-field-izobrazhenie,
.view-vocabulary:not(:has(.cat-grid)) .views-field-field-izobrazhenie .field-content,
.view-vocabulary:not(:has(.cat-grid)) .views-field-field-izobrazhenie a {
  display: block;
  height: auto;
  line-height: 0;
}

.view-vocabulary:not(:has(.cat-grid)) .views-field-field-izobrazhenie img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: none;
}

.view-vocabulary:not(:has(.cat-grid)) .views-field-name {
  margin: 0;
  padding: 0;
  position: static;
  background: transparent;
}

.view-vocabulary:not(:has(.cat-grid)) .views-field-name a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  text-align: center;
  text-decoration: underline;
  color: var(--bvps-black);
  background-color: rgba(255, 255, 255, 0.5);
  transition: all 1s;
  font-size: 18px;
  line-height: 1.25;
}

.view-vocabulary:not(:has(.cat-grid)) .views-row:hover .views-field-name a {
  color: #fff;
  background-color: rgba(2, 13, 23, 0.8);
}

.view-vocabulary:not(:has(.cat-grid)) .views-row:hover .views-field-field-izobrazhenie img {
  transform: none;
}

@media (max-width: 900px) {
  .view-vocabulary:not(:has(.cat-grid)) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .view-vocabulary:not(:has(.cat-grid)) {
    grid-template-columns: 1fr;
  }
}

.catalog-description {
  margin-bottom: 1.5rem;
}

.catalog-description .body-term {
  margin-bottom: 1rem;
}

.catalog-galery {
  margin-top: 2%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

@media (max-width: 767px) {
  .catalog-galery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .catalog-galery {
    grid-template-columns: 1fr;
  }
}

/* Products list in page_2 footer (list-products), as on old site */
.list-products .views-row {
  width: 100%;
  margin-bottom: 3%;
  border: 0;
  box-shadow: none;
}

.list-products .views-row .field-content {
  display: flex;
}

.list-products .bl-left-products {
  width: 37%;
  padding-right: 2%;
}

.list-products .bl-left-products img {
  width: 100%;
  height: auto;
  display: block;
}

.list-products .bl-right-products {
  width: 63%;
  border-left: 5px solid var(--bvps-black);
  padding-left: 1%;
  padding-bottom: 90px;
  position: relative;
}

.list-products .bl-right-products h2 {
  text-align: left;
  margin-top: 0;
}

.list-products .bl-right-products h2 a {
  text-decoration: none;
  color: var(--bvps-black);
  background: transparent;
}

.list-products .bl-right-produts-link a,
.list-products .download-link-catalog a {
  display: inline-block;
  text-decoration: none;
  font-style: italic;
  padding: 5px 15px;
  color: #fff;
  font-size: 15px;
  border-radius: 18px;
  background-color: var(--bvps-black);
  position: absolute;
  border: 2px solid transparent;
  transition: all 0.5s;
}

.list-products .bl-right-produts-link a {
  bottom: 50px;
}

.list-products .download-link-catalog a {
  bottom: 0;
  margin-top: 15px;
}

.list-products .bl-right-produts-link a:hover,
.list-products .download-link-catalog a:hover {
  background-color: #fff;
  color: var(--bvps-black);
  border-color: var(--bvps-black);
}

.list-products header {
  display: none;
}

.catalog-galery {
  margin-top: 2%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

/* ========== PRODUCT DETAIL (TOVAR) ========== */

article.tovar {
  margin-top: 8px;
}

.tovar__layout {
  overflow: hidden;
}

.tovar__media {
  float: left;
  width: calc(50% - 12px);
  max-width: 508px;
  margin: 0 40px 24px 0;
}

.tovar__photo {
  text-align: center;
}

.tovar__photo-link {
  display: block;
  outline: none;
}

.tovar__photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
}

.tovar__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 80%;
  margin: 16px auto 0;
}

.tovar__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tovar__thumb.is-active,
.tovar__thumb:hover {
  border-color: var(--bvps-blue);
}

.tovar__thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0;
}

.tovar__content {
  min-width: 0;
}

.tovar__download {
  margin: 0 0 24px;
  text-align: center;
}

.tovar__download a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 15px;
  font-style: italic;
  color: var(--bvps-white);
  background: var(--bvps-black);
  border: 2px solid var(--bvps-black);
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tovar__download a:hover {
  color: var(--bvps-black);
  background: var(--bvps-white);
}

.tovar__body {
  font-size: 18px;
  line-height: 1.5;
}

.tovar__body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  word-break: break-word;
}

.tovar__body table td {
  padding: 8px 12px;
  border: 1px solid var(--bvps-stroke);
  vertical-align: top;
  text-align: left;
}

.tovar__body table tr:nth-child(even) td {
  background: var(--bvps-bg);
}

/* ========== TAXONOMY CATALOG (CHILD CATEGORIES & PRODUCTS) ========== */

.catalog-description {
  margin-bottom: 32px;
}

.catalog-description__body {
  font-size: 18px;
  line-height: 1.5;
}

.catalog-description__body img {
  float: left;
  max-width: 30%;
  height: auto;
  margin: 0 16px 16px 0;
  border-radius: 0;
}

.catalog-galery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.foto-galery {
  overflow: hidden;
  border-radius: 0;
}

.foto-galery a {
  display: block;
}

.foto-galery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.foto-galery img:hover {
  transform: scale(1.02);
}

.catalog-children {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.catalog-children__item {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--bvps-black);
  border-radius: 0;
  background: var(--bvps-bg);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.catalog-children__item:hover {
  border-color: var(--bvps-white);
  box-shadow: 0 8px 24px rgba(2, 13, 23, 0.16);
}

.catalog-children__img {
  aspect-ratio: 547 / 368;
  overflow: hidden;
}

.catalog-children__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.catalog-children__item:hover .catalog-children__img img {
  transform: scale(1.04);
}

.catalog-children__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e6eaf0 0%, #d1d9e6 100%);
}

.catalog-children__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.3s ease, color 0.3s ease;
}

.catalog-children__item:hover .catalog-children__title {
  background: rgba(2, 13, 23, 0.82);
}

.catalog-children__title a {
  font-size: 18px;
  line-height: 1.25;
  color: var(--bvps-black);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.catalog-children__item:hover .catalog-children__title a {
  color: var(--bvps-white);
  text-decoration: none;
}

.catalog-products {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.catalog-product {
  display: grid;
  grid-template-columns: minmax(0, 37%) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.catalog-product__media a {
  display: block;
  height: 100%;
}

.catalog-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
}

.catalog-product__placeholder {
  min-height: 220px;
  border-radius: 0;
  background: var(--bvps-bg);
}

.catalog-product__body {
  position: relative;
  min-height: 220px;
  padding: 0 0 96px 24px;
  border-left: 4px solid var(--bvps-black);
}

.catalog-product__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}

.catalog-product__title a {
  color: var(--bvps-black);
  text-decoration: none;
}

.catalog-product__title a:hover {
  color: var(--bvps-blue);
}

.catalog-product__summary {
  font-size: 18px;
  line-height: 1.5;
  color: var(--bvps-black);
}

.catalog-product__summary p {
  margin: 0 0 12px;
}

.catalog-product__summary p:last-child {
  margin-bottom: 0;
}

.catalog-product__link-wrap {
  position: absolute;
  left: 24px;
  right: 0;
  bottom: 48px;
}

.catalog-product__link-wrap a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 15px;
  font-style: italic;
  color: var(--bvps-white);
  background: var(--bvps-black);
  border: 2px solid var(--bvps-black);
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.catalog-product__link-wrap a:hover {
  color: var(--bvps-black);
  background: var(--bvps-white);
}

.catalog-product__download-wrap {
  position: absolute;
  left: 24px;
  right: 0;
  bottom: 0;
}

.catalog-product__download-wrap a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 15px;
  font-style: italic;
  color: var(--bvps-white);
  background: var(--bvps-black);
  border: 2px solid var(--bvps-black);
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.catalog-product__download-wrap a:hover {
  color: var(--bvps-black);
  background: var(--bvps-white);
}

.taxonomy-term--produkciya .pager {
  margin-top: 40px;
}

.taxonomy-term--produkciya .pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxonomy-term--produkciya .pager__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bvps-black);
  border-radius: 4px;
  color: var(--bvps-black);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.taxonomy-term--produkciya .pager__item a:hover,
.taxonomy-term--produkciya .pager__item.is-active a {
  color: var(--bvps-white);
  background: var(--bvps-black);
  border-color: var(--bvps-black);
}

.taxonomy-term--produkciya .pager__item--next a,
.taxonomy-term--produkciya .pager__item--previous a,
.taxonomy-term--produkciya .pager__item--first a,
.taxonomy-term--produkciya .pager__item--last a {
  min-width: 40px;
  padding: 0 12px;
}

/* ========== SERVICES (USLUGI) ========== */

article.uslugi {
  margin-top: 8px;
}

.uslugi__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.uslugi-block {
  overflow: hidden;
}

.uslugi-block__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.uslugi-block__body h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  color: var(--bvps-black);
}

.uslugi-block__body p {
  margin: 0 0 16px;
}

.uslugi-block__body ul,
.uslugi-block__body ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.uslugi-block__body li {
  margin-bottom: 8px;
}

.uslugi-block__body li:last-child {
  margin-bottom: 0;
}

.uslugi-block--text .uslugi-block__body {
  max-width: none;
}

@media (min-width: 992px) {
  .uslugi-block__media {
    float: left;
    width: 33.333%;
    max-width: 420px;
    margin: 0 40px 0 0;
    padding-right: 24px;
    border-right: 4px solid var(--bvps-black);
  }

  .uslugi-block__body {
    overflow: hidden;
  }
}

@media (max-width: 991px) {
  .uslugi-block__media {
    max-width: 420px;
    margin: 0 auto 24px;
  }

  .uslugi__content {
    gap: 32px;
  }
}

/* ========== CONTACTS PAGE ========== */

.contacts-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.contactstext {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px;
  text-align: center;
}

.contacts-page__logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.contacts-page__details .contactstext > img,
.contacts-page__details img.filter-image-invalid {
  display: none;
}

.contactstext h2 {
  margin: 24px 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--bvps-black);
}

.contactstext h2 span {
  white-space: nowrap;
}

.contactstext p {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--bvps-black);
}

.webform-submission-contact-form,
.contacts-form-messages {
  max-width: 649px;
  margin-inline: auto;
}

.webform-submission-contact-form {
  min-height: 756px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 48px 24px 56px;
  overflow: hidden;
  background: var(--bvps-bg);
  border: 4px solid var(--bvps-black);
}

.contacts-form-messages {
  margin-top: 16px;
  text-align: center;
}

.contacts-form-messages [data-drupal-messages] > div {
  margin: 0;
  padding: 14px 20px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--bvps-black);
  background: var(--bvps-bg);
  border: 2px solid var(--bvps-black);
}

.contactform h3,
.webform-submission-contact-form h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--bvps-black);
}

.webform-submission-contact-form :is(
  .form-item,
  .form-managed-file,
  #edit-mandatory,
  #edit-politica,
  .form-type-checkbox,
  .captcha
) {
  max-width: 475px;
  margin-inline: auto;
}

.webform-submission-contact-form .form-item {
  margin-top: 0;
  margin-bottom: 16px;
  text-align: center;
}

.webform-submission-contact-form .form-text,
.webform-submission-contact-form .form-email,
.webform-submission-contact-form .form-textarea {
  display: block;
  width: 100%;
  max-width: 475px;
  min-height: 45px;
  margin: 0 auto;
  padding: 10px 16px;
  font-size: 18px;
  color: var(--bvps-black);
  background: var(--bvps-white);
  border: 1px solid var(--bvps-stroke);
  border-radius: 13px;
}

.webform-submission-contact-form .form-textarea {
  min-height: 200px;
  resize: vertical;
}

.webform-submission-contact-form :is(.form-text, .form-email, .form-textarea)::placeholder {
  color: var(--bvps-muted);
}

.webform-submission-contact-form .form-managed-file label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--bvps-black);
}

.webform-submission-contact-form :is(#edit-mandatory, #edit-politica) {
  font-size: 14px;
  line-height: 1.4;
  color: var(--bvps-muted);
}

.webform-submission-contact-form :is(#edit-mandatory, #edit-politica) p {
  margin: 0 0 8px;
}

.webform-submission-contact-form .form-type-checkbox {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.webform-submission-contact-form .form-type-checkbox input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.webform-submission-contact-form .form-type-checkbox label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--bvps-black);
}

.webform-submission-contact-form .captcha {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--bvps-stroke);
  border-radius: 13px;
}

.webform-submission-contact-form .captcha .form-item {
  margin-bottom: 0;
  text-align: left;
}

.webform-submission-contact-form .captcha :is(.captcha__title, legend) {
  display: none;
}

.webform-submission-contact-form .captcha label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--bvps-black);
}

.webform-submission-contact-form .captcha :is(.description, .captcha__description) {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--bvps-muted);
  text-align: left;
}

.webform-submission-contact-form .webform-actions {
  text-align: center;
}

.webform-submission-contact-form .webform-button--submit {
  display: inline-block;
  min-width: 150px;
  margin: 20px auto 0;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--bvps-white);
  background: var(--bvps-black);
  border: 2px solid var(--bvps-black);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.webform-submission-contact-form .webform-button--submit:hover {
  color: var(--bvps-black);
  background: var(--bvps-white);
}

.contacts-map {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 60px 0 0;
  transform: translateX(-50%);
  overflow: hidden;
  border-top: 4px solid var(--bvps-black);
  border-bottom: 4px solid var(--bvps-black);
}

.contacts-map ymaps {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

#main-content:has(.contacts-map) {
  padding-bottom: 0;
  overflow-x: clip;
}

/* ========== MANAGEMENT PAGE (RUKOVODSTVO) ========== */

#main-content .node__content h2.page-header {
  margin: 48px 0 24px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--bvps-black);
}

.gerb {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gerb img {
  display: inline-block;
  max-width: 132px;
  height: auto;
}

.gerb-bg {
  height: 160px;
  margin: -160px 0 0;
  background: var(--bvps-black);
}

.rukovodstvo.invert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px 24px;
  margin: 0;
  padding: 0 0 50px;
  color: var(--bvps-white);
  background: var(--bvps-black);
}

.rukovodstvo.invert h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px 24px 20px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: var(--bvps-white);
}

.rukovodstvo.invert > div {
  padding: 10px 40px;
}

.rukovodstvo.invert > div:nth-child(3) {
  text-align: center;
}

.rukovodstvo.invert p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
}

.rukovodstvo.invert p:last-child {
  margin-bottom: 0;
}

.rukovodstvo.invert,
.rukovodstvo.invert a {
  color: var(--bvps-white);
}

.rukovodstvo.invert a {
  text-decoration: underline;
}

.rukovodstvo.invert a:hover {
  text-decoration: none;
  color: var(--bvps-white);
}

.rukovodstvo.invert .nowrap {
  white-space: nowrap;
}

@media (max-width: 991px) {
  .rukovodstvo.invert {
    grid-template-columns: 1fr;
  }

  .rukovodstvo.invert > div {
    padding: 10px 24px;
  }

  .rukovodstvo.invert > div:nth-child(3) {
    text-align: left;
  }

  #main-content .node__content h2.page-header {
    margin-top: 32px;
    font-size: 24px;
  }
}

/* ========== Responsive ========== */

@media (max-width: 1400px) {
  :root {
    --bvps-pad: 48px;
  }

  .footer-main .site-brand {
    flex-basis: 100%;
  }

  .header-menu .menu {
    gap: 16px;
  }

  .header-menu .menu > .menu-item > a,
  .header-menu .menu > .menu-item > span {
    font-size: 16px;
  }

  .hero-slide {
    min-height: 540px;
  }

  .hero-slide__content {
    padding: 52px 20px 76px;
  }

  .hero-slide__title {
    font-size: 36px;
  }

  #block-bvps-theme-page-title h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }

  #main-content .node__content h2 {
    font-size: 28px;
  }

  .news-list-title {
    font-size: 24px;
  }

  .hero-slide__body {
    font-size: 18px;
  }

  .hero-slide__content .btn {
    font-size: 16px;
  }

  .promo-banner {
    gap: 16px;
    padding: 32px;
    min-height: 180px;
  }

  .promo-banner__logo {
    width: 200px;
    height: 85px;
    margin-right: 32px;
  }

  .promo-banner__text {
    font-size: 32px;
  }

  .promo-banner__date {
    font-size: 24px;
  }

  .cat-card__label a {
    font-size: 16px;
  }
}

@media (max-width: 1180px) {
  .header-burger {
    display: inline-flex;
  }

  .header-main__right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .site-header.is-open .header-main__right {
    display: flex;
  }

  .header-main__inner {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-menu .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header-menu .menu > .menu-item > a,
  .header-menu .menu > .menu-item > span {
    padding: 0.5rem 0;
  }

  .header-menu .menu > .menu-item--expanded > ul {
    position: static;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-top: 4px;
    padding: 8px 0 8px 16px;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-menu .menu > .menu-item--expanded > ul::before {
    display: none;
  }

  /* Open only via .is-open on mobile (not hover/focus). */
  .header-menu .menu-item--expanded:hover > ul,
  .header-menu .menu-item--expanded:focus-within > ul {
    display: none;
  }

  .header-menu .menu > .menu-item--expanded.is-open > ul {
    display: flex;
  }

  .header-menu .menu > .menu-item--expanded > ul .menu-item > a,
  .header-menu .menu > .menu-item--expanded > ul .menu-item > span {
    padding: 4px 0;
  }

  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > a,
  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > a::after,
  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > span::after {
    flex: 0 0 12px;
    margin-left: auto;
    margin-top: 2px;
  }

  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > ul {
    position: static;
    top: auto;
    left: auto;
    display: none;
    min-width: 0;
    margin: 4px 0 0;
    padding: 0 0 0 16px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    z-index: auto;
  }

  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded.is-open > ul {
    display: flex;
  }

  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > a::after,
  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded > span::after {
    transform: none;
  }

  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded.is-open > a::after,
  .header-menu .menu > .menu-item--expanded > ul > .menu-item--expanded.is-open > span::after {
    transform: rotate(180deg);
  }

  .header-menu .menu-item--expanded > span {
    cursor: pointer;
  }

  .header-menu .menu-item--expanded:hover > a::after,
  .header-menu .menu-item--expanded:hover > span::after,
  .header-menu .menu-item--expanded.is-open > a::after,
  .header-menu .menu-item--expanded.is-open > span::after {
    transform: rotate(180deg);
  }

  .header-search,
  .header-search form,
  #search-block-form {
    width: 100%;
  }

  .cat-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-children,
  .catalog-galery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-product {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  }

  h2 {
    font-size: 28px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card__img {
    height: 240px;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infobanner__wrap {
    grid-template-columns: 1fr;
  }

  .infobanner__wrap a:first-child {
    font-size: 24px;
    padding-right: 30%;
  }

  .news-list-row {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 20px 32px;
  }

  .views-element-container:has(.video-card) > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  #main-content article .node__content:has(> div time):has(> div img) > div:has(img) {
    max-width: 360px;
    margin-right: 32px;
  }

  #main-content article .node__content:has(> div time):has(> div img) img {
    max-width: 360px;
  }

  .footer-bottom__left {
    gap: 4px 24px;
  }

  .hero-slide {
    min-height: 480px;
  }

  .hero-slide__content {
    padding: 48px 20px 72px;
  }

  .hero-dots.swiper-pagination {
    bottom: 28px;
  }

  .promo-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo text btn"
      "logo date btn";
    align-items: center;
    column-gap: 24px;
    row-gap: 8px;
    padding: 28px;
    min-height: 0;
  }

  .promo-banner__logo {
    grid-area: logo;
    width: 160px;
    height: 68px;
    margin-right: 0;
  }

  .promo-banner__text {
    grid-area: text;
    max-width: none;
    font-size: 24px;
  }

  .promo-banner__date {
    grid-area: date;
    font-size: 20px;
    white-space: normal;
  }

  .promo-banner .btn {
    grid-area: btn;
    margin-left: 0;
    align-self: center;
  }
}

@media (max-width: 768px) {
  :root {
    --bvps-pad: 20px;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero-slide {
    min-height: 1px;
  }

  .hero-slide__content {
    padding: 40px 15px 64px;
  }

  .hero-slide__content > * {
    max-width: none;
  }

  .hero-slide__title {
    font-size: 28px;
  }

  #block-bvps-theme-breadcrumbs {
    padding-top: 24px;
  }

  #block-bvps-theme-breadcrumbs nav[aria-labelledby="system-breadcrumb"] ol {
    margin-bottom: 16px;
    font-size: 12px;
  }

  #block-bvps-theme-page-title h1 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .contacts-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contacts-map > ymaps {
    height: 500px !important;
  }

  .webform-submission-contact-form {
    min-height: 0;
    padding: 32px 16px 40px;
  }

  .contactstext h2 {
    font-size: 24px;
  }

  .tovar__media {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
  }

  .tovar__thumbs {
    width: 100%;
  }

  .catalog-children,
  .catalog-galery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-description__body img {
    float: none;
    max-width: 100%;
    margin: 0 0 16px;
  }

  .catalog-product {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-product__body {
    padding-left: 0;
    padding-bottom: 0;
    border-left: 0;
    border-top: 4px solid var(--bvps-black);
    padding-top: 16px;
    min-height: 0;
  }

  .catalog-product__link-wrap,
  .catalog-product__download-wrap {
    position: static;
    margin-top: 16px;
  }

  .catalog-product__download-wrap {
    margin-top: 12px;
  }

  #main-content .node__content h2 {
    font-size: 24px;
  }

  #main-content .node__content {
    overflow-x: auto;
  }

  #main-content .node__content thead {
    font-size: 20px;
  }

  #main-content .node__content thead th,
  #main-content .node__content table td {
    padding: 12px 8px;
    border-width: 2px;
    font-size: 16px;
  }

  .news-list .views-exposed-form,
  #views-exposed-form-novosti-page-1 {
    padding: 16px;
    margin-bottom: 32px;
  }

  .news-list .form-item-newsmonth,
  .news-list .form-item-newsyear,
  #views-exposed-form-novosti-page-1 .form-item-newsmonth,
  #views-exposed-form-novosti-page-1 .form-item-newsyear {
    flex: 1 1 100%;
    max-width: none;
  }

  .news-list .form-actions,
  #views-exposed-form-novosti-page-1 .form-actions {
    flex: 1 1 100%;
  }

  .news-list .form-actions .form-submit,
  #views-exposed-form-novosti-page-1 .form-actions .form-submit {
    width: 100%;
  }

  .news-list-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .views-element-container:has(.video-card) > div {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-card .views-field-title a {
    font-size: 16px;
  }

  #main-content article .node__content:has(> div time):has(> div img) > div:has(img) {
    float: none;
    max-width: none;
    margin: 0 0 16px;
  }

  #main-content article .node__content:has(> div time):has(> div img) img {
    max-width: 100%;
  }

  .news-list-photo {
    padding-right: 0;
  }

  .news-list-photo img {
    padding-right: 0;
    border-right: 0;
    border-bottom: 4px solid var(--bvps-black);
    padding-bottom: 16px;
    border-radius: 0;
  }

  .news-list-title {
    font-size: 20px;
  }

  .news-list-row time {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .hero-slide__body {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .hero-slide__bg img {
    object-position: left;
  }

  .promo-banner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "text"
      "date"
      "btn";
    gap: 16px;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .promo-banner__logo {
    width: 140px;
    height: 60px;
    margin-right: 0;
  }

  .promo-banner__text {
    font-size: 22px;
  }

  .promo-banner__date {
    font-size: 18px;
    white-space: normal;
  }

  .promo-banner .btn {
    width: 100%;
    text-align: center;
  }

  h2 {
    font-size: 24px;
  }

  .cat-grid {
    gap: 10px;
  }

  .cat-card {
    border-radius: 16px;
  }

  .catalog-grid-item {
    border-radius: 16px;
  }

  .cat-card__img,
  .catalog-grid-item__img {
    height: 110px;
  }

  .cat-card__label,
  .catalog-grid-item__title {
    margin: 8px;
    padding: 8px;
  }

  .cat-card__label a,
  .catalog-grid-item__title {
    font-size: 14px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card__img {
    height: 220px;
  }

  .news-card__title {
    font-size: 18px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-card__title {
    font-size: 18px;
  }

  .media-card__play {
    width: 52px;
    height: 52px;
  }

  .infobanner__wrap a {
    min-height: 140px;
    padding: 24px;
    border-radius: 16px;
    font-size: 20px;
  }

  .infobanner__wrap a:first-child {
    padding-right: 24px;
  }

  .infobanner__wrap a:last-child {
    padding: 0;
  }

  .footer-partners {
    padding: var(--bvps-pad) 0;
  }

  .footer-carousel__list .swiper-slide {
    padding-right: 20px;
  }

  .footer-carousel__list .swiper-slide::after {
    margin-left: 20px;
  }

  .btn--secondary {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .hero-dots.swiper-pagination {
    left: 15px;
    bottom: 20px;
  }

  .header-top__contact {
    gap: 10px;
  }

  .vip-toggle {
    display: none;
  }

  .header-top .contact-phone {
    font-size: 16px;
  }

  .messengers--header img {
    width: 20px;
    height: 20px;
  }  

  .header-top__inner {
    justify-content: space-between;
    gap: 10px;
  }

  .site-brand__name {
    font-size: 16px;
  }
  .site-brand__logo {
    width: 48px;
    height: 48px;
}

  .lang-switch, .language-switcher-language-url {
    gap: 4px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-col--address {
    max-width: none;
  }

  .footer-inner {
    padding-top: 40px;
    gap: 20px
  }
}

