/* Base styles */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: #333;
  background-color: #f8f6fb;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px 20px;
}

section {
  padding: 30px 0 30px;
}

h3 {
  font-size: 36px;
  color: #000000;
  text-transform: uppercase;
  font-weight: 400;
}

.uniquequalities h3, .news h3, .questions h3, .akcii h3, .gallery h3, .contactmap h3 {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 60px;
    width: 100%;
}

/* header */
.header {
  width: 100%;
  background: #0021a0;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-inner {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

/* header top */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}

.header-col.left {
  display: flex;
  align-items: center;
}

.header-col.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-col.right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

/* header button */
.header-btn {
  display: inline-block;
  background-color: #ffb800;
  color: #0021a0;
  font-weight: 400;
  font-size: 16px;
  padding: 9px 20px 7px;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #ffb800;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.header-btn:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.header-btn:active {
  transform: scale(0.97);
  background-color: #e6a700;
  border-color: #e6a700;
  box-shadow: none;
}

/* header menu */
.header-menu {
  display: flex;
  gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.3s;
}

.header-menu li a:hover {
  opacity: 0.8;
}

/* header phones and socials */
.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-phones a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: opacity 0.3s;
}

.header-phones a:hover {
  opacity: 0.8;
}

.header-socials {
  display: flex;
  gap: 10px;
  line-height: 1;
}

.header-socials i {
  font-size: 65px;
  color: #fff;
  transition: color 0.3s, transform 0.2s;
}

.header-socials i:hover {
  color: #ffb800;
  transform: scale(1.1);
}

/* header divider */
.header-divider {
  position: relative;
  left: 50%;
  width: 99vw;
  height: 1px;
  background: #fff;
  transform: translateX(-50%);
}

/* header bottom */
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
}

.header-logo {
  font-size: 28px;
  font-weight: 700;
}

.header-company {
  font-size: 36px;
  font-weight: 400;
}

/* responsive */
@media (max-width: 992px) {
  .header-inner {
    padding: 15px;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header-menu {
    gap: 30px;
  }

  .header-col.right {
    flex-direction: column;
    gap: 8px;
  }

  .header-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .header-company {
    font-size: 18px;
  }

  .header-btn {
    font-size: 15px;
    padding: 10px 22px;
  }
}

@media (max-width: 768px) {
  #header {
    display: block;
  }
  #header .container {
    padding: 0px;
  }
  .header-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .header-menu li a {
    font-size: 15px;
  }

  .header-phones a {
    font-size: 16px;
  }

  .header-socials i {
    font-size: 55px;
  }

  .header-logo {
    font-size: 24px;
  }

  .header-company {
    font-size: 23px;
  }

  .header-btn {
    font-size: 14px;
    padding: 8px 20px;
  }
}

/* header end */

/* topmenu */

#topmenu {
    height: 80px;
    display: flex;
    align-items: center;      /* вертикальное центрирование */
    justify-content: flex-start; /* выравнивание по левому краю */
    padding: 0 20px;         /* отступы слева/справа при необходимости */
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
}

#topmenu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* небольшой контраст, чтобы меню выделялось */
    background: #f8f6fb;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

#topmenu .container {
    /* max-width: 1400px; */
    margin: 0;
    padding: 0px;
}

/* Основное меню */
#topmenu .mod-menu.mod-list.nav {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

#topmenu .mod-menu.mod-list.nav > li {
    position: relative;
    display: inline-block;
    padding-right: 20px;
}

#topmenu .mod-menu.mod-list.nav > li > a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 22px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    text-transform: uppercase;
    position: relative;
    padding-right: 20px;
}

#topmenu .mod-menu.mod-list.nav > li > a:hover,
#topmenu .mod-menu.mod-list.nav > li.current.active > a {color: #ffb800;text-shadow: 1px 1px 1px #fff;}

.nav-item.deeper > a::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    font-size: 12px;
}

#topmenu .mod-menu.mod-list.nav > li > a:hover::before,
#topmenu .mod-menu.mod-list.nav > li.current.active > a::before {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

.nav-item.deeper:hover > a::after,
.nav-item.deeper.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Подменю */
#topmenu .mod-menu__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0021a0;
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    border-radius: 4px;
}

#topmenu .mod-menu__sub.active {
    display: block;
}

#topmenu .mod-menu__sub li a {
    display: block;
    padding: 8px 20px;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

#topmenu .mod-menu__sub li a:hover {
    background: rgba(255,255,255,0.1);
}

/* Показ подменю при наведении */
#topmenu .nav-item.deeper.parent:hover > .mod-menu__sub {
    display: block;
}

/* Адаптив */
@media (max-width: 992px) {
    #topmenu .mod-menu.mod-list.nav {
        flex-direction: column;
        display: none;
        background: #0021a0;
        width: 100%;
    }

    #topmenu .mod-menu.mod-list.nav.active {
        display: flex;
    }

    #topmenu .mod-menu.mod-list.nav > li {
        width: 100%;
    }

    #topmenu .mod-menu__sub {
        position: relative;
        top: 0;
        padding-left: 20px;
        border-radius: 0;
    }

    #topmenu .nav-item.deeper.parent:hover > .mod-menu__sub {
        display: none;
    }
}

/* ===========================
      БУРГЕР
=========================== */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.burger span {
    height: 3px;
    background: #000;
    width: 100%;
    border-radius: 2px;
}

/* ===========================
    MOBILE MENU WRAPPER
=========================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100%;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    z-index: 9999;

    /* выезд справа */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* ===========================
      КРЕСТИК ЗАКРЫТИЯ
=========================== */
.mobile-close {
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    text-align: right;
    padding: 5px 0 15px 0;
    user-select: none;
}

/* ===========================
      СТИЛИ МЕНЮ
=========================== */
.mobile-menu .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu .mod-menu > li > a {
    display: block;
    padding: 8px 0;
    font-size: 17px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

/* ===========================
    СТРЕЛКА ПОДМЕНЮ
=========================== */
.submenu-toggle {
    cursor: pointer;
    margin-left: 6px;
    user-select: none;
    font-size: 16px;
    transition: transform 0.25s ease;
}

.submenu-toggle.open {
    transform: rotate(180deg);
}

/* ===========================
     ПОДМЕНЮ — ACCORDION
=========================== */
.mobile-menu ul.mod-menu__sub {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-left: 12px;
    padding-left: 10px;
    border-left: 2px solid #e5e5e5;
    transition: max-height 0.3s ease;
}

.mobile-menu ul.mod-menu__sub.active {
    max-height: 500px; /* достаточно для любых пунктов */
}

.mobile-menu ul.mod-menu__sub a {
    font-size: 15px;
    padding: 4px 0;
    color: #444;
    text-decoration: none;
}

/* ===========================
      DESKTOP
=========================== */
@media (min-width: 993px) {
    .mobile-menu {
        display: none !important;
    }
    .burger {
        display: none;
    }
}

/* topmenu end */

/* Breadcrumbs */

#breadcrumbs {
  padding: 0px;
}

#breadcrumbs .mod-breadcrumbs {
    display: flex;           /* горизонтальное расположение */
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    list-style: none;        /* убираем цифры */
    margin: 0;
    padding: 10px 20px;
    background: #0021a0;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}

#breadcrumbs .mod-breadcrumbs li {
    display: flex;
    align-items: center;
}

#breadcrumbs .mod-breadcrumbs li + li::before {
    content: "/";           /* разделитель */
    margin: 0 5px;
    color: #fff;
}

#breadcrumbs .mod-breadcrumbs li a.pathway {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

#breadcrumbs .mod-breadcrumbs li a.pathway:hover {
    opacity: 0.7;
}

#breadcrumbs .mod-breadcrumbs li.active span {
    font-weight: 600;
    color: #fff;
}

/* Адаптив */
@media (max-width: 768px) {
    #breadcrumbs .mod-breadcrumbs {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* breadcrumbs end */

/* banner */
#banner {
    padding: 0px 0px 40px;
}

.banner-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

#banner .container {
    max-width: none;
    padding: 0px;
}
.banner-slider {
  width: 100%;
  height: 600px;
  position: relative;
}

.banner-swiper .swiper-slide {
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  position: absolute;
  top: 50%;
  right: 30px;
  transform:  translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  padding: 45px;
  max-width: 400px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid #0021a0;
}

.banner-content h2 {
  font-size: 24px;
  margin-bottom: 40px;
  color: #000;
  font-weight: 500;
  margin-top: 0px;
}

.banner-content p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.banner-btn {
  display: inline-block;
  background-color: #0021a0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 40px;
}

.banner-btn:hover {
  background-color: #002cdb;
}

.banner-btn:active {
  transform: scale(0.97);
  background-color: #001a80;
}

.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
}

/* responsive */

/* up to 992px */
@media (max-width: 992px) {
  .banner-slider {
    height: 450px;
  }

  .banner-content {
    max-width: 450px;
    padding: 15px 20px;
  }

  .banner-content h2 {
    font-size: 20px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .banner-btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* up to 768px */
@media (max-width: 768px) {
  .banner-slider {
    height: 350px;
  }

  .banner-content {
    max-width: 60%;
    padding: 12px 15px;
    margin-left: auto;
    margin-right: auto;
    position: initial;
    margin-top: 100%;
  }

  .banner-content h2 {
    font-size: 18px;
  }

  .banner-content p {
    font-size: 13px;
  }

  .banner-btn {
    padding: 7px 18px;
    font-size: 13px;
  }
}

/* banner end */

/*unique*/

.features-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #0021a0;
  border-radius: 12px;
  padding: 10px 10px 25px 10px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.feature-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.feature-item i {
  font-size: 36px;
  color: #fff;
  flex-shrink: 0;
  background-color: #0021a0;
  border-radius: 40px;
  width: 45px;
  margin-top: 14px;
  padding-left: 10px;
  box-shadow: 0 5px 15px rgba(169, 121, 197, 0.6);
  margin-left: 5px;
}

.feature-text h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #222;
  text-transform: none;
  min-height: 57px;
  display: block;
}

.feature-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #555;
}

.feature-text {
  padding-top: 14px;
}

/* адаптив */
@media (max-width: 900px) {
  .features-blocks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-blocks {
    grid-template-columns: 1fr;
  }
}

/*unique end*/

/* news */
.junewsultra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* jn */
.jn {
  position: relative;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.jn-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.jn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 33, 160, 0.35);
  transition: background 0.4s ease;
  z-index: 1;
}

.jn:hover::before {
  background: rgba(0, 33, 160, 0.6);
}

.jn:hover .jn-image img {
  transform: scale(1.05);
}

/* jn-card */
.jn-card {
  position: absolute;
  inset: 0;
  padding: 30px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

/* jn-title */
.jn-title {
  font-size: 18px;
  font-weight: 400 !important;
  text-decoration: none;
  color: #fff;
  line-height: 1.3;
  transition: color 0.3s;
}

.jn-title:hover {
  color: #ffb800;
}

/* jn-info */
.jn-info {
  font-size: 14px !important;
  opacity: 0.9;
  margin-bottom: 10px;
  color: #000000 !important;
  background: #ffffff;
  display: inline-block;
  padding: 0px 6px;
}

/* jn-intro */
.jn-intro {
  font-size: 14px;
  color: #eee;
  line-height: 1.4;
}

/* jn-button */
.jn-button {
  background: #ffb800;
  color: #0021a0;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.jn-button:hover {
  background: #e0a300;
  transform: translateY(-2px);
}

.jn-button:active {
  background: #cc9200;
  transform: translateY(0);
}

.allnews {
  text-align: center;
}

/* responsive */
@media (max-width: 992px) {
  .junewsultra {
    grid-template-columns: repeat(2, 1fr);
  }

  .jn {
    height: 350px;
  }

  .jn-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .junewsultra {
    grid-template-columns: 1fr;
  }

  .jn {
    height: 320px;
  }

  .jn-title {
    font-size: 18px;
  }
}

/* news end*/

/* question */

.questions .moduletable {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.polling_container_wrapper {
  flex: 1 1 45%;
  border-radius: 5px;
  /* padding: 16px; */
}

.polling_container {
    box-shadow: none !important;
    padding: 25px;
    min-height: 180px;
}

.polling_name {font-size: 22px !important;font-weight: 500 !important;padding-bottom: 30px;border-bottom: 1px solid #000;margin-bottom: 30px;}

.polling_ul {
    margin: 0px 0px 0px 25px;
}

.polling_li {}

.answer_name {}

.twoglux_label {}

.polling_submit {
  display: inline-block;
  background-color: #0021a0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: none !important;
  float: none;
  margin-left: 30px;
}

#close_sexy_alert {
  background-color: #0021a0;
  color: #fff;
  box-shadow: none;
  padding: 10px 35px;
}

.polling_submit:hover, #close_sexy_alert:hover {
  background-color: #002cdb !important;
  box-shadow: none !important;
}

.polling_submit:active, #close_sexy_alert:active {
  transform: scale(0.97);
  background-color: #001a80 !important;
  box-shadow: none !important;
}

.poll-period {
  float:right;
  margin-top: 25px;
}

/* questions end */

/* gallery */

a.sigplus-image {
    display: inline-block !important;
    box-sizing: border-box !important;
    margin: 0px 5px;
}

/* gallery end */

/* contactmap */

#contactmap {
  padding: 30px 0 60px;
}

.contacts-map-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
}

.map-side {
  flex: 0 0 59%;
}

.info-side {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: normal;
  font-size: 20px;
  line-height: 1.6;
  padding: 0px 0px 0px 20px;
}

.info-side h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #333;
  margin-top: 0px;
  line-height: 1.2em;
}

.info-side a {
  color: #0078ff;
  text-decoration: none;
}

.info-side a:hover {
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 900px) {
  #gallery {
    display: none;
  }
  .contacts-map-block {
    flex-direction: column;
  }
  .map-side, .info-side {
    flex: 0 0 100%;
    text-align: center;
  }
  .map-side iframe {
    height: 300px;
  }
}

/*contaactmap end*/

/* footer */

#footer {
  background-color: #001880;
  padding-top: 30px;
}

.footer h3 {
  font-size: 24px;
  color: #fff;
  margin-top: 0px;
  text-transform: none;
}

.footer-modules {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    color: #fff;
}

.footer-column {
    flex: 1; /* равная ширина для всех трёх блоков */
    min-width: 200px; /* не сжимать слишком сильно */
}

/* Нижняя строка с копирайтом */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.footer-contact .footer-logo-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo {
    width: 50px; /* размер логотипа */
    height: auto;
}

.footer-name {
    font-weight: bold;
    font-size: 24px;
}

.footer-address,
.footer-contacts,
.footer-hours {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer ul {
    margin-left: 0px;
    padding-left: 0px;
}
.footer ul li {
    list-style: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 7px;
    margin-bottom: 7px;
}
.footer ul li a {
    color: #fff;
    text-decoration: none;
}
.footer ul li a:hover {
  opacity: 0.9;
}

/* Адаптив */
@media (max-width: 768px) {
    .footer-modules {
        flex-direction: column;
        gap: 15px;
    }
    .footer-column {
        min-width: 100%;
    }
}


/* footer end */




/*content*/

.site-content {
    padding: 0px;
}

/* --- Стили для основного контейнера материала и контента --- */
main#content .item-page {
	max-width: 1000px;
	margin: 40px auto;
	padding: 40px;
	background: #ffffff;
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
	border-radius: 12px;
	box-sizing: border-box;
	font-family: "Roboto", Arial, sans-serif;
	line-height: 1.7;
	color: #333;
}

/* --- Заголовки внутри материала --- */
.item-page h1 {
	font-size: 2.0em;
	margin: 0 0 20px 0;
	font-weight: 600;
	color: #0021a0;
	line-height: 1.5;
}
.item-page h2 {
	font-size: 1.8em;
	margin: 30px 0 15px 0;
	font-weight: 500;
	color: #673ab7;
	line-height: 1.3em;
}
.item-page h3 {
	font-size: 1.4em;
	margin: 25px 0 12px 0;
	font-weight: 500;
	color: #444;
}
.item-page h4,
.item-page h5,
.item-page h6 {
	font-size: 1.1em;
	margin: 20px 0 10px 0;
	font-weight: 500;
	color: #555;
}

/* --- Параграфы, ссылки, списки --- */
.item-page p {
	margin: 0 0 18px 0;
	font-size: 1.05em;
	color: #444;
}
.item-page a {
	color: #a979c5;
	text-decoration: none;
	transition: color 0.18s ease, text-decoration 0.18s ease;
}
.item-page a:hover {
	color: #7b52a3;
	text-decoration: underline;
}
.item-page ul,
.item-page ol {
	margin: 0 0 20px 26px;
	padding: 0;
}
.item-page li {
	margin-bottom: 8px;
	font-size: 1.05em;
}

/* --- Инфоблок статьи (дата, автор, категория) --- */
.article-info,
.item-page .article-info {
	font-size: 0.95em;
	color: #fff;
	margin-bottom: 35px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	background-color: #ccc;
	padding: 5px 20px;
	width: 96%;
	max-width: 1000px;
}

.category-name a {
  color: #fff;
  text-decoration: underline;
}

/* --- Цитаты --- */
.item-page blockquote {
	border-left: 4px solid #a979c5;
	padding: 14px 18px;
	margin: 25px 0;
	font-style: italic;
	color: #555;
	background: #faf7fc;
	border-radius: 6px;
}

/* --- Таблицы --- */
.item-page table {
	width: 100%;
	border-collapse: collapse;
	margin: 25px 0;
	font-size: 0.95em;
	background: #fafafa;
	border-radius: 8px;
	overflow: hidden;
}
.item-page th,
.item-page td {
	padding: 12px 15px;
	border: 1px solid #e6e0ea;
	vertical-align: middle;
}
.item-page th {
	background: #f1ebf7;
	color: #5a2d80;
	font-weight: 600;
	text-align: left;
}
.item-page table p {
  margin: 0px;
}

/* --- Адаптивные таблицы с горизонтальным скроллом --- */
@media (max-width: 992px) {
  .item-page table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* плавный скролл на мобильных */
    white-space: nowrap; /* чтобы текст не переносился */
  }

  .item-page th,
  .item-page td {
    padding: 12px 15px; /* оставляем отступы */
    min-width: 120px; /* чтобы колонки не съезжали */
  }

  /* обёртка для удобного свайпа (если нужно) */
  .item-page .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .item-page .table-scroll table {
    width: 100%;
    min-width: 600px; /* при необходимости менять */
    border-collapse: collapse;
  }
}

/* --- Код и преформатированный текст --- */
.item-page pre,
.item-page code {
	background: #f5f2f8;
	color: #222;
	font-family: "Fira Code", SFMono-Regular, Menlo, monospace;
	border-radius: 6px;
	padding: 6px 8px;
}
.item-page pre {
	display: block;
	padding: 16px;
	overflow-x: auto;
	margin: 20px 0;
}

/* --- Изображения и обтекания --- */
.item-page img {
	max-width: 100%;
	height: auto;
	display: block;
	/* margin: 22px auto; */
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.item-page .img-left {
	float: left;
	margin: 0 18px 18px 0;
	max-width: 45%;
}
.item-page .img-right {
	float: right;
	margin: 0 0 18px 18px;
	max-width: 45%;
}

/* Очистка плавающих элементов */
.item-page::after {
	content: "";
	display: table;
	clear: both;
}

/* --- Read more / call-to-action --- */
.readmore,
a.readmore {
	display: inline-block;
	margin-top: 7px;
	padding: 10px 0px;
	color: #fff;
	font-weight: 500;
	border-radius: 8px;
	transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.18s ease;
	text-decoration: none;
}
.readmore:hover,
a.readmore:hover {
	transform: translateY(-2px);
}
.readmore:active,
a.readmore:active {
	transform: translateY(1px);
}

/* --- Кнопки внутри текста --- */
.item-page .btn,
.item-page button {
	display: inline-block;
	padding: 10px 16px;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1em;
	transition: background 0.22s ease, transform 0.18s ease;
}
.item-page .btn:hover,
.item-page button:hover {
	transform: translateY(-2px);
}

/* --- Пагинация Joomla --- */
.pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 35px 0 15px;
	gap: 8px;
}
.pagination a,
.pagination span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	color: #5a2d80;
	font-size: 0.95em;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}
.pagination a:hover {
	background: #e7ddf2;
}
.pagination .active,
.pagination span.active {
	color: #fff;
	font-weight: 600;
}

/* --- Вложенные медиа --- */
.item-page .embed-responsive,
.item-page iframe,
.item-page video {
	width: 100%;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
	margin: 20px 0;
}

/* --- Метаданные, тэги и авторы --- */
.item-page .tags {
	margin-top: 18px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.item-page .tags a {
	padding: 6px 10px;
	background: #f4eff8;
	color: #5a2d80;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.95em;
}
.item-page .meta-sep {
	margin: 0 6px;
	color: #aaa;
}

/* карточки ссылок на материалы */

.related-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.article-card {
  display: block;
  padding: 15px;
  background: #fff;
  color: #0021a0;
  border-radius: 6px;
  /* Усиленная тень */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  flex: 1 1 250px;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.article-card h4 {
  margin: 0 0 5px;
  font-size: 16px;
}

.article-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* команда */

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.team-leader {
  display: flex;
  justify-content: center;
}

.team-members {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.team-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  text-align: center;
  padding: 15px;
  width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0px;
}

.team-card h4 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #0021a0;
}

.team-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Контакты */

.contacts-block {
  max-width: 700px;
  margin: 0 auto;
  background: #f8f9fc;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  font-family: Arial, sans-serif;
  color: #0021a0;
}

.contacts-block h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
}

.contact-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-section h3 {
  font-size: 16px;
  margin-bottom: 8px;
  text-decoration: underline;
}

.contact-section p {
  margin: 4px 0;
}

.contact-section a {
  color: #0021a0;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* ссылки на документы */

.doc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f0f2f5;
    color: #0021a0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s, box-shadow 0.3s;
    position: relative;
}

.doc-link:hover {
    background: #e0e4eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fancybox__caption {
  display: none;
}

/* Настройка галерей в материале */

/* Универсальная галерея для всех JO Image Gallery */
.joimagegallery .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

/* Блок одной картинки — 3 в ряд */
.joimagegallery .gallery-item {
    flex: 0 0 calc(33.333% - 50px); /* три колонки */
    background-color: #ffffff;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    overflow: hidden;
}

/* Картинка */
.joimagegallery .gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 6px;
}

/* Затемнение */
.joimagegallery .gallery-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* --- Адаптив --- */
@media (min-width: 1200px) {
	main#content .item-page {
		padding: 56px;
	}
}
@media (max-width: 1024px) {
	main#content .item-page {
		padding: 32px;
	}
	.item-page h1 { font-size: 2.1em; }
	.item-page h2 { font-size: 1.6em; }
	.item-page p,
	.item-page li { font-size: 1.02em; }
	.item-page .img-left,
	.item-page .img-right { max-width: 48%; }
	.pagination a,
	.pagination span {
		padding: 8px 12px;
		font-size: 0.92em;
	}
}
@media (max-width: 768px) {
    .article-info, .item-page .article-info {
        display: flex;
        gap: 0px;
        width: 86%;
        text-align: center;
        justify-content: center;
    }
  .createdby, .published {
    margin: 0px;
    padding: 0px;
  }
	main#content .item-page {
		max-width: 100%;
		margin: 18px auto;
		padding: 20px;
		border-radius: 10px;
	}
	.item-page h1 {
		font-size: 1.6em;
		margin-bottom: 12px;
	}
	.item-page h2 { font-size: 1.3em; margin-top: 18px; }
	.item-page h3 { font-size: 1.15em; }
	.item-page p,
	.item-page li { font-size: 1em; }
	.item-page .img-left,
	.item-page .img-right {
		float: none;
		display: block;
		margin: 14px auto;
		max-width: 90%;
	}
	.readmore,
	a.readmore {
		display: block;
		width: 100%;
		text-align: center;
		padding: 12px 16px;
	}
	.item-page .btn,
	.item-page button {
		width: 100%;
		padding: 12px 16px;
	}
	.pagination { gap: 6px; }
  .team-members {
    flex-direction: column;
    gap: 20px;
  }
  .joimagegallery .gallery-item img {
    max-height: 50px;
    }
}
@media (max-width: 480px) {
	main#content .item-page {
		padding: 14px;
		margin: 0px;
	}
	.item-page h1 { font-size: 1.4em; }
	.item-page p,
	.item-page li { font-size: 0.98em; }
	.item-page th,
	.item-page td { padding: 10px 8px; }
  .contacts-block {
    padding: 20px 10px;
  }

  .contacts-block h2 {
    font-size: 18px;
  }

  .contact-section h3 {
    font-size: 14px;
  }

  .contact-section p {
    font-size: 13px;
  }
  .doc-link { font-size: 13px; padding: 6px 10px; }
}

/* --- Утилитарные классы --- */
.letter-drop {
	font-size: 3.2em;
	float: left;
	margin-right: 10px;
	line-height: 0.8;
	color: #5a2d80;
}
.small-muted {
	font-size: 0.9em;
	color: #888;
}

/*content end*/

/* Блог */

.blog-items {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 30px;
}

.blog-item {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.blog-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 160, 0.35);
    transition: background 0.4s ease;
    z-index: 1;
}

.blog-item:hover .overlay {
    background: rgba(0, 33, 160, 0.6);
}

.blog-item:hover {
    transform: scale(1.02);
}

.item-title-top {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    font-size: 18px;
    font-weight: 600;
}

.item-title-top a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
    text-transform: none;
    font-weight: 400;
}

.item-title-top a:hover {
    color: #ffb800;
}

.item-content-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-info {
    font-size: 14px;
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 0 6px;
    width: fit-content;
}

.item-introtext {
    font-size: 14px;
    color: #eee;
}

.readmore a {
    background: #ffb800;
    color: #0021a0 !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 400;
    text-align: center;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.readmore a:hover {
    background: #e0a300;
    transform: translateY(-2px);
}

.readmore a:active {
    background: #cc9200;
    transform: translateY(0);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: block;
    padding: 8px 12px;
    background: #f0f0f0;
    color: #0021a0;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    font-weight: 600;
}

.pagination .page-link:hover {
    background: #0021a0;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background: #ffb800;
    color: #0021a0;
}

.pagination .page-item.disabled .page-link {
    background: #e0e0e0;
    color: #999;
    cursor: default;
}

.pagination .page-link .icon-angle-left,
.pagination .page-link .icon-angle-right,
.pagination .page-link .icon-angle-double-left,
.pagination .page-link .icon-angle-double-right {
    font-size: 14px;
    vertical-align: middle;
}

.pagination .page-item:first-child,
.pagination .page-item:nth-child(2),
.pagination .page-item:last-child,
.pagination .page-item:nth-last-child(2) {
    display: none;
}

/* Адаптив */
@media (max-width: 992px) {
    .blog-items { grid-template-columns: repeat(2,1fr); }
    .blog-item { height: 350px; }
}
@media (max-width: 768px) {
    .blog-items { grid-template-columns: 1fr; }
    .blog-item { height: 320px; }
}

/* Блог конец */

/* Вверх */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0021a0;
    backdrop-filter: blur(4px);
    border: none;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 999;
}

#scrollTopBtn.show {
    display: flex;
    animation: fadeIn 0.25s ease forwards;
}

#scrollTopBtn:hover {
    transform: translateY(-4px) rotate(-5deg);
    background: #002cdb;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

#scrollTopBtn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    transition: transform 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* вверх конец */