:root {
  --body-font-size-pfb: 16px;
  --main-color: #a08148;  
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@400;500;600;700;800&display=swap');

body {
    padding-top: 40px;  
    font-size: var(--body-font-size-pfb) !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400;
    line-height: 1.6em;
    overflow-x: hidden;
    transition: padding-top 0.15s ease;
}
body.scrolled {
  padding-top: 0;
}


/* ==========================================================================
   Бургер - меню
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Кнопка-бургер — зробити видимою */
    .navbar-toggler {
        color: #a08148 !important; /* або ваш колір --btnbg */
        border-color: #a08148 !important;
        background-color: transparent !important;
    }
    
    .navbar-toggler .icon-menu::before {
        color: #a08148;
    }

    /* container-nav — flex, логотип і бургер в один рядок */
    .container-nav {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Меню — прихований блок що спливає під хедером */
    .navbar-collapse {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: -200px !important;
        right: 0 !important;
        width: 350px !important;
        box-sizing: border-box !important;
        z-index: 1050 !important;
        background-color: var(--headerbg, #fff) !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
        padding: 1rem 20px !important;
        border-radius: 7px;
    }

    .navbar-collapse.show {
        display: block !important;
    }

    /* Пункти меню — вертикально */
    .navbar-collapse .mod-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-collapse .mod-list li a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.07);
    }

    .container-header .metismenu .metismenu-item.current.active > a::after,
    .container-header .metismenu .metismenu-item.active > a::after,
    .container-header .metismenu .metismenu-item.current > a::after {
        display: none !important;
    }
}

/* ==========================================================================
   Адаптивність
   ========================================================================== */
/* START фікс відступів */
@media (max-width: 1400px) {
    .footer .container,
    .container-footer .container,
    .footer .grid-child,
	.site-grid,
    main.container,
    .container-main .container	{
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
    
    /* Внутрішні грид-елементи */
    .container-header .grid-child,
    .container-header .container-nav,
    .container-header .container-below-top {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 992px) {
    .site-grid,
    main.container,
    .container-main .container,
    .footer .container,
    .container-footer .container,
    .footer .grid-child	{
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 576px) {
    .footer .container,
    .container-footer .container,
    .footer .grid-child,
	.site-grid,
    main.container,
    .container-main .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Контакти в topbar — відступи на внутрішній div */
@media (max-width: 1400px) {
    .container-topbar .top-bar-contacts {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    /* Логотип */
    .container-nav .mod-custom {
        padding-left: 50px;
    }
    
    /* Меню — navbar всередині container-nav */
    .container-nav .navbar {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 992px) {
    .container-topbar .top-bar-contacts {
        padding-left: 40px;
        padding-right: 40px;
    }
    .container-nav .mod-custom {
        padding-left: 40px;
    }
    .container-nav .navbar {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 576px) {
    .container-topbar .top-bar-contacts {
        padding-left: 10px;
        padding-right: 10px;
    }
    .container-nav .mod-custom {
        padding-left: 10px;
    }
    .container-nav .navbar {
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* END фікс відступів */

/* START контакти над хедером */
.top-bar-contacts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: end;
  background-color: #white;
  line-height: 40px;
  box-shadow: inset 0 -4px 6px -4px rgba(160, 129, 72, 0.7);
  font-size: 14px !important;
  padding-right: calc((100% - min(100%, 1320px)) / 2);
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.15s ease;
  will-change: transform, opacity;
}

.top-bar-contacts.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.top-bar-contacts a,
.top-bar-contacts i {
    font-size: 14px !important;
    text-decoration: none !important;
    color: #e0e0e0 !important;
    transition: .5s ease;
}

.top-bar-contacts a:hover {
    color: #9d9d9d !important;
}

@media (max-width: 1400px) {
    .top-bar-contacts {
        padding-right: 70px !important;
    }
}
@media (max-width: 992px) {
    .top-bar-contacts {
        padding-right: 40px;
    }
}
@media (max-width: 576px) {
    .top-bar-contacts {
        padding-right: 20px;
    }
}
/* END контакти над хедером */

/* Заголовки */
h1 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 800 !important;
}

h2 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
}

h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
}

/* Для меню та інших елементів */
.nav-link, 
.metismenu .metismenu-item > a {
    font-family: 'Open Sans', sans-serif !important;
}

hr {
  color: var(--main-color);
}

/* START приглушене підкресленя посилань */
a {
  font-size: var(--body-font-size-pfb) !important;
  font-weight: normal;
  text-decoration: underline !important;
  text-decoration-color: rgba(160, 129, 72, 0.3) !important;
  -webkit-text-decoration-color: rgba(160, 129, 72, 0.3) !important;
}

a:hover {
  text-decoration-color: rgba(218, 74, 17, 0.7) !important;
  -webkit-text-decoration-color: rgba(218, 74, 17, 0.7) !important;
}

li > a,
li > a:hover {
  text-decoration: none !important;
}
/* END приглушене підкресленя посилань */

.iframe-style {
  border: none;
}

.footer a:not(.btn), .footer .btn-link {
  color: var(--main-color);
}

.footer a:not(.btn):hover, .footer a:not(.btn):focus, .footer .btn-link:hover, .footer .btn-link:focus {
  color: #da4a11;
}

/* Логотип + меню в одному рядку */
.container-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container-header .mod-custom {
    flex-shrink: 0;
}

/* фікс для лого */
#mod-custom112 p {
  margin-bottom: 0;
}

/* Адаптивність */
@media (max-width: 991px) {
    .container-header .navbar {
        justify-content: center;
    }
}

/* START Головне меню */
/* Базовий вигляд пунктів */
.container-header .metismenu .metismenu-item > a {
    font-size: 14px !important;
    position: relative !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease;
    color: #333;
}

/* Зменшуємо відступи між кнопками */
.metismenu.mod-menu .metismenu-item {
  padding: 0 3px !important;
}

/* При наведенні */
.container-header .metismenu .metismenu-item > a:hover {
    background-color: var(--main-color) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

/* Активний пункт */
.container-header .metismenu .metismenu-item.current.active > a,
.container-header .metismenu .metismenu-item.active > a {
    color: var(--main-color) !important;
    background-color: transparent !important;
    font-weight: 600;
}

/* Плашка 10px над активним пунктом */
.container-header .metismenu .metismenu-item.current.active > a::after,
.container-header .metismenu .metismenu-item.active > a::after,
.container-header .metismenu .metismenu-item.current > a::after {
    content: '' !important;
    position: absolute !important;
    top: -73px !important;
    left: 0 !important;
    right: 0 !important;
    height: 10px !important;
    background-color: #e1d8c6 !important;
    z-index: 20 !important;
    border-radius: 0 0 3px 3px;
    opacity: 1 !important;
}

/* для роботи ::before */
.container-header .metismenu .metismenu-item > a {
    position: relative !important;
    overflow: visible !important;
}
/* END Головне меню */

/* Тінь знизу для липкого хедера */
.container-header {
    box-shadow: 0 4px 6px -4px rgba(160, 129, 72, 0.7) !important;
}

/* фікс зависокого меню */
.container-header .container-nav {
    padding-bottom: 0 !important;
}
.container-header .grid-child {
  padding: 0 !important;
}

/* Стилізація page-header, content-category */
.page-header,
.content-category {
    margin-top: 100px !important;
    margin-bottom: 1em;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eaeaea !important;
    color: #eaeaea !important;
    user-select: none;
}

/* Стилізація заголовка H1 всередині */
.page-header h1,
.content-category h1 {
    font-size: 2.1rem !important;
    font-weight: 1200 !important;
    color: #eaeaea !important;
    margin: 0 !important;
    line-height: 1.3;
}

.com-content-article__body {
  padding-top: 20px;
}

/* FOOTER */
.smallfont {
  font-size: 12px;
  color: #7f7f7f;
}

.smallfont a,
.smallfont:visited a {
  color: var(--main-color) !important;
  font-size: 12px !important;
}

.smallfont a:active,
.smallfont a:hover {
  color: #da4a11 !important;
}

.footer {
    margin-top: 3em;
}

/* Колонки в футері */
.custom-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.footer-col {
    min-width: 0;
}

/* Планшети */
@media (max-width: 900px) {
    .custom-footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Телефони */
@media (max-width: 500px) {
    .custom-footer-columns {
        grid-template-columns: 1fr;
    }
}

.custom-footer-columns p {
    margin-top: 0;
    line-height: 1.5;
}

.custom-footer-columns a {
    word-break: break-word;
}

.footer .grid-child {
    display: block;
  padding: 1em 0 0 0;
}

/* для вирівнювання тексту по ширині */
.text-justify {
    text-align: justify !important;
}

/* додаткова інформація */
.add-info {
    padding-bottom: 9px;
    margin: 30px 0 20px;
}

.add-column {
  float: left;
  width: 50%;
}

.add-row:after {
  content: "";
  display: table;
  clear: both;
}

.add-left {
  padding: 0 15px 0 0;
}

.add-right {
  padding: 0 0 0 15px;
}

/* темний футер */
.copyright {
  font-weight: bold;
  text-shadow: 1px 1px 1px #d3af6c;
  background-color: var(--main-color);
  text-align: center;
  color: #222222;
  line-height: 64px;
  width: 100vw;  
  position: relative; 
  left: 50%;
  right: 50%;
  margin: 0;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer {
    padding-bottom: 0 !important;
}

.footer .grid-child {
    padding-bottom: 0 !important;
}

/* фікс для футера */
.copyright p {
  margin: 0;
}

.table-custom-height td,
.table-custom-height th {
    padding-top: .8em !important;
    padding-bottom: .8em !important;
    vertical-align: center;
}

.table-not-bordered {
    border-color: transparent !important;
}

.list-disc-style {
   list-style-type: disc;
}

.archivedata{
  background: url(/images/img/archive2.png) repeat, url(/images/img/bg-gr-top.png) left top repeat-x, url(/images/img/bg-gr-bottom.png) left bottom repeat-x;
  border-bottom: 3px solid #f0f0f0;
  border-top: 3px solid #f0f0f0;
  padding: 10px 15px;
  margin-bottom: 1.5em;
}

.archivetag{
  color: #c5c5c5;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  text-align: right;
  text-shadow: 1px 1px 1px white;
}

/* перевизначення класів bootstrap */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-striped-bg: rgba(224, 224, 224, 0.01);
  background-color: var(--bs-table-striped-bg) !important;
}

.table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-bg-type: transparent;
  background-color: transparent;
}

/* для мапи сайту */
.sitemapcl p {
  margin-bottom: 0px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitemapcl img {
  display: inline-block !important;
}

#paymschedule {    
  table-layout: auto;
  word-break: normal;
  border-collapse: collapse;
  border: 1px solid #ddd;  
}

#paymschedule tr {
  line-height: 1.2em;
}

#paymschedule th {
  font-weight: bold;
  background-color: rgb(245, 245, 245);  
  white-space: normal !important;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
} 

/* Ненумерований список з мінусом */
.list-minus {
  list-style-type: none;
  padding-left: 0;
}

.list-minus li::before {
  content: "—";
  padding-right: 8px;
  color: #6c757d; /* Matches Bootstrap's secondary text color */
}

/* ==========================================================================
   Перевизначення зовнішнього вигляду пошуку
   ========================================================================== */
.mod-finder {
    max-width: 300px;
}

.mod-finder .form-control {
    height: 35px;
    font-size: 14px;
    padding: 5px 10px;
}

.mod-finder .btn {
    padding: 5px 12px;
    font-size: 14px;
}

/* ==========================================================================
   Перевизначення зовнішнього вигляду акордеону
   ========================================================================== */

.accordion-item {
    border-bottom: 1px dotted #363636;
    border: none;
    border-left: none;
    border-right: none;
    transition: all 0.3s ease; /* Анімація розгортання */
    background-color: transparent;
}

/* Прибрати стандартні рамки Bootstrap */
.accordion-item,
.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-bottom: 1px dotted #363636;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* Стилі для кнопки акордеону */
.accordion-button {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Стиль при наведенні */
.accordion-button:hover {
    background-color: #bff4ff;
}

.accordion-button:not(.collapsed) {
    background-color: #bff4ff !important;
    border-bottom: 1px dotted #363636;
}

/* Анімація розгортання - ОСНОВНЕ */
.accordion-collapse {
    transition: height 0.35s ease !important;
}

.accordion-collapse.collapsing {
    transition: height 0.35s ease !important;
}

/* Для плавної появи вмісту */
.accordion-body {
    animation: fadeIn 0.35s ease;
}

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

/* Додаємо кружальце перед h2 */
.accordion-button {
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease;
    position: relative;
    padding-left: 35px;
}

/* Додаємо кружальце всередину кнопки */
.accordion-button::before {
    content: '';
    position: absolute;
    left: 10px;  /* Позиція зліва всередині кнопки */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #a08148;
    border-radius: 50%;
    pointer-events: none; /* Щоб не заважало клікам */
}

/* Кружальце для 2-го рівня акордеону */
.accordion-item .accordion-item .accordion-button::before {
    width: 12px;
    height: 12px;
}

/* Менша висота для 2-го рівня акордеону */
.show .accordion-button {
  height: 2.6rem;
}

/* Мобільні відступи для 2-го рівня акордеону */
@media (max-width: 700px) {
    .accordion-item .accordion-item .accordion-button {
        padding-left: 28px;
        padding-right: 8px;
        height: 4.6rem;
    }

    /* Зсуваємо кружальце ближче до краю */
    .accordion-item .accordion-item .accordion-button::before {
        left: 6px;
    }
}