/* Цвета */

:root {
  --cassiopeia-color-primary: #4b1e1e;
  --cassiopeia-color-hover: #7c3724;
  --body-bg: #202423;
  --text-color: #e6dac7;
  --link-color: #e6dac7;
  --link-hover-color: #ffe5a8;
  --secondary-color: #a4a4a4;
}

.btn-secondary {
  --btn-active-color: #4b1e1e;
  --btn-active-bg: #ffe5a8;
}

/* Основное тело */

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

body.wrapper-fluid .site-grid {
  grid-gap: 0 0;
}

.container-component > * + * {
  margin-top: 0;
}

/* Страница выключенного сайта */

.offline-card {
  background-color: var(--cassiopeia-color-primary);
}

.offline-card > .header > h1,
.offline-card > .header > .logo-icon, 
.offline-card > .login {
  display: none;
}

/* Главное меню */

.container-header .metismenu > li > a:after,
.container-header .metismenu > li > button:before {
  background: none !important;
}

.container-header .mod-menu > li > a:hover {
  color: var(--link-hover-color);
}

.metismenu.mod-menu .mm-collapse {
  background-color: #3e1717;
}

.metismenu.mod-menu .metismenu-item {
  flex-wrap: unset;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.metismenu.mod-menu .metismenu-item > ul {
  top: 67px;
  box-shadow: none;
}

.metismenu.mod-menu .mm-toggler::after {
  margin-inline-start: unset;
}


.navbar-toggler {
  line-height: 1.5;
}

.navbar-toggler::after {
  content: "Меню";
}

@media (max-width: 992px) { 
  .metismenu.mod-menu {
    width: 100%;
    overflow-y: scroll;
  }
  
  .metismenu.mod-menu .metismenu-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1em;
  }
  
  .metismenu.mod-menu .metismenu-item > ul {
  	top: unset !important;
    min-width: unset !important;
  }
  
  .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: start;
    position: fixed;
    height: 100vh;
    width: 55%;
    left: -55%;
    top: 0;
    padding: 0.5em 0;
    transition: 0.2s;
    background-color: #3e1717;
  }
  
  .navbar-collapse.show {
    transition: 0.2s;
    left: 0;
  }
  
  .navbar-collapse .mm-collapse {
    display: block !important;
    width: 100%;
    height: auto !important;
    visibility: visible !important;
    position: relative !important;
  }

  .navbar-collapse .mm-toggler {
    display: none !important;
  }
}

/* Нижнее меню */

#menu-bottom-footer {
  text-transform: uppercase;
}

/* Хедер */

.container-header {
  display: flex;
  flex-direction: row;
  background-image: none;
}

.container-header .grid-child {
  padding: 0;
}

.container-header .brand-logo {
  height: fit-content;
  display: block;
}

.container-header .brand-logo img {
  width: 130px;
  min-width: 130px;
  height: 80px;
}

.container-header .container-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  padding-left: 0 !important
}

.container-header .container-nav nav {
  margin-top: 0;
}

.container-header .mod-menu {
  color: var(--text-color);
}

.container-header .navbar-toggler {
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

.header-contacts {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
}

.header-contact-icon {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
}

.header-contact-link {
  font-size: 0.875rem;
  text-wrap: nowrap;
}

@media (max-width: 992px) {
  .container-header > .grid-child:first-child {
    display: none;
  }
  
  .container-header .container-nav {
    justify-content: space-between;
    padding-left: 20px !important;
    padding-right: 10px !important;
  }
}

/* Поиск (позиция используется для контактов в хедере) */

.container-header .container-search {
  display: flex;
  justify-content: center;
  margin-top: 0px !important;
  padding: 10px 10px 10px 30px;
}


/* Подвал (футер) */

.footer {
  color: var(--text-color);
}

.container-footer {
  background-color: var(--body-bg);
  background-image: unset;
}

.container-footer > .grid-child{
  flex-direction: column;
}

/* Текст */

body {
  font-family: 'Times New Roman', sans-serif;
  font-size: 18px;
  color: var(--text-color);
}

h1 {
  font-family: 'Times New Roman', sans-serif;
  font-size: 36px;
  color: var(--text-color);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Times New Roman', sans-serif;
  font-size: 28px;
  color: var(--text-color);
  margin-bottom: 1rem;
}

h3 {
  font-family: 'Times New Roman', sans-serif;
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
}

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

.article-details .article-header h1 {
  font-size: 48px;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.menu.nav-pills > li > a,
.menu.nav-pills > li > span,
.menu.nav-pills .sp-dropdown li.sp-menu-item > a {
  font-family: 'Times New Roman', sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}

.breadcrumb {
  font-size: 20px;
}

.bigger-text {
  font-size: 24px;
}

input::placeholder {
  color: gray !important;
}

@media (max-width: 1199px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }
}

@media (max-width: 1023px) {
  body {
    font-size: 18px;
  }
  
  h1 {
    font-size: 42px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  .article-details .article-header h1 {
    font-size: 36px;
  }
  
  .breadcrumb {
    font-size: 16px;
  }
  
  .bigger-text {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  ul {
    padding-left: 1rem;
  }
  
  .article-details .article-header h1 {
    font-size: 24px;
  }
  
  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span,
  .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
  .menu.nav-pills > li > a,
  .menu.nav-pills > li > span,
  .menu.nav-pills .sp-dropdown li.sp-menu-item > a {
    font-size: 24px;
  }
  
  .breadcrumb {
    font-size: 14px;
  }
  
  .bigger-text {
    font-size: 18px;
  }

}

/* Блок для текста */

.text-box {
  padding: 70px 60px;
}

@media (max-width: 1023px) {
  .text-box {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .text-box {
    padding: 40px 20px;
  }
}

/* Материал */

.com-content-article {
  padding: 30px 75px 0 75px;
}

@media (max-width: 1023px) {
  .com-content-article {
    padding: 20px 20px 0 20px;
  }
}

@media (max-width: 768px) {
  .com-content-article {
    padding: 15px 15px 0 15px;
  }
}

.page-header {
  padding: 40px;
  text-align: center;
}

@media (max-width: 1023px) {
  .page-header {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 20px;
  }
}

.article-details, .padded-row {
  padding: 0px 200px;
}

@media (max-width: 1023px) {
  .article-details, .padded-row {
    padding: 0px 100px;
  }
}

@media (max-width: 768px) {
  .article-details, .padded-row {
    padding: 0px 25px;
  }
}

.article-image-custom {
  width: 100%;
}

.article-header-custom {
  margin-top: 20px;
  margin-bottom: 10px;
}

.article-wide-button {
  background-color: #7c3724;
  padding: 10px 30px;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 24px;
  margin: 40px 0 0 0;
}

/* Список материалов */

.mod-articlescategory {
  padding: 40px;
  background-color: #5c2f2c;
  border: none;
}

.mod-articles-category-title {
  font-weight: bold;
}

.mod-articles-category-date { 
  color: grey;
  text-wrap: nowrap;
}

.mod-articles-category-introtext { 
  font-style: italic;
  margin-top: 10px;
}

/* Блог категории */

.com-content-category-blog {
  padding: 50px; 
}


@media (max-width: 1023px) {
  .com-content-category-blog {
    padding: 20px 20px 0 20px;
  }
}

@media (max-width: 768px) {
  .com-content-category-blog {
    padding: 15px 15px 0 15px;
  }
}

.com-content-category-blog__item {
  padding: 40px !important;
  background-color: #5c2f2c;
}

@media (max-width: 1023px) {
  .com-content-category-blog__item {
    padding: 20px !important;
  }
}

@media (max-width: 768px) {
  .com-content-category-blog__item {
    padding: 15px !important;
  }
}

.com-content-category-blog__item .page-header {
  padding: 5px !important;
  text-align: left;
}

.com-content-category-blog__item .readmore {
  margin: 0;
}

.com-content-category-blog__item .readmore > a {
  width: 100%;
  color: var(--cassiopeia-color-primary);
  background-color: var(--text-color);
}

.com-content-category-blog__pagination {
  width: fit-content;
}

.com-content-category-blog__counter {
  margin: 0;
  padding: 5px 0 !important;
}

/* Навигационная цепочка */

.breadcrumb {
  --bs-breadcrumb-item-active-color: #ffe5a8;
  --bs-breadcrumb-margin-y: 1rem;
  background: none;
  margin-top: var(--bs-breadcrumb-margin-y);
  margin-bottom: var(--bs-breadcrumb-margin-y);
}

/* Пагинация */

.pagination__wrapper {
  width: fit-content;
}

.pagination {
  background-color: transparent;
  margin-right: 0 !important;
  margin-left: 0 !important;
  width: fit-content;
  --pagination-border-color: #e6dac7;
  --pagination-active-border-color: #e6dac7;
}

.page-item .page-link {
  background-color: transparent;
  padding: 5px 10px;
}

.page-item.active .page-link {
  background-color: #7b2525 !important;
}

.page-item:hover .page-link {
  background-color: #7b252587;
}

/* Главная - Приветствие */

.home-greetings-background {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  min-height: 400px;
  background-image: url('/images/backgrounds/home_2.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  margin: 0;
  padding: 0;
}

.home-greetings-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: rgb(0, 0, 0, 0.4);
  height: 100%;
  /* background-color: rgb(75, 30, 30, 0.9); */
  /* padding: 80px 0px; */
  padding-bottom: 100px;
  padding-left: 20px;
  padding-right: 20px;
}

.home-greetings-title {
  font-size: 48px;
  text-align: center;
  text-shadow: 2px 2px 2px black;
}

@media (max-width: 1023px) {
  .home-greetings-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .home-greetings-title {
    font-size: 36px;
  }
}

.home-greetings-subtitle {
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 2px black;
}

.home-greetings-button {
  text-align: center;
  background-color: #7c3724;
  padding: 10px 50px;
  font-size: 24px;
}


/* Главная - Наши услуги */

.service-item-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-item {
  display: flex;
  flex-direction: row;
  background-color: #5c2f2c;
  flex: 0 0 calc(33% - 10px);
}

@media (max-width: 1199px) {
  .service-item {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 992px) {
  .service-item {
    flex: 0 0 100%;
  }
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item-image-container {
  flex: 1.25;
  background-size: cover;
  background-position: top;
  min-width: 33%;
}

.service-item-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 20px 20px 20px 0;
}

.service-item-text-container > h2 {
  font-size: 18px;
}

@media (max-width: 1023px) {
  .service-item-text-container > h2 {
    font-size: 18px;
  }

  .service-item-image-container {
    flex: 0.5;
  }
}

@media (max-width: 992px) {
  .service-item-text-container > h2 {
    font-size: 26px;
  }
  
  .service-item-image-container {
    flex: 0.5;
  }
}

@media (max-width: 768px) {
  .service-item-text-container > h2 {
    font-size: 16px;
  }
  
  .service-item-image-container {
    flex: 1;
  }
}

.service-item-more-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #7c3724;
  padding: 10px 0;
  font-size: 16px;
}

.mask-pictogram {
  background-color: var(--text-color);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.mask-image-services-maid-pictogram {
  mask-image: url('/images/services/maid_pictogram.png');
}

.mask-image-services-domestic-worker-pictogram {
  mask-image: url('/images/services/domestic_worker_pictogram.png');
}

.mask-image-services-assistant-pictogram {
  mask-image: url('/images/services/assistant_pictogram.png');
}

.mask-image-services-family-couple-pictogram {
  mask-image: url('/images/services/family_couple_pictogram.png');
}

.mask-image-services-driver-pictogram {
  mask-image: url('/images/services/driver_pictogram.png');
}

/* Главная - О нас */

.about-us-item {
  display: flex;
  flex-direction: row;
  background-color: #7a6049;
}

.about-us-item-image-container {
  flex: 1;
  min-width: 300px;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.about-us-item-text-container {
  flex: 1;
  padding: 40px;
}

.about-us-item-text-container li {
  margin-bottom: 25px;
}

.about-us-item-more-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #7c3724;
  padding: 10px 0;
}

@media (max-width: 768px) {
  .about-us-item {
    flex-direction: column;
  }
}

/* Контакты - Основная информация */

.contacts {
  padding: 40px;
  background-color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}


@media (max-width: 768px) {
  .contacts {
    align-items: start;
    padding: 20px;
  }
}

.contact {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.contact-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

.mask-icon {
  background-color: var(--text-color);
  mask-size: contain;
  mask-repeat: no-repeat;
}

.mask-image-logo-enhanced {
  mask-image: url('/images/logos/logo_enhanced.png');
}

.mask-image-contacts-address {
  mask-image: url('/images/contacts/address.png');
}

.mask-image-contacts-email {
  mask-image: url('/images/contacts/email.png');
}

.mask-image-contacts-phone {
  mask-image: url('/images/contacts/phone.png');
}

.mask-image-contacts-telegram {
  mask-image: url('/images/contacts/telegram.png');
}

.mask-image-contacts-other {
  mask-image: url('/images/contacts/other.png');
}

.mask-image-socials-vkontakte {
  mask-image: url('/images/socials/vkontakte.png');
}

.mask-image-socials-facebook {
  mask-image: url('/images/socials/facebook.png');
}

.mask-image-socials-instagram {
  mask-image: url('/images/socials/instagram.png');
}

.mask-image-socials-whatsapp {
  mask-image: url('/images/socials/whatsapp.png');
}

.mask-image-socials-telegram {
  mask-image: url('/images/socials/telegram.png');
}

/* О нас - Цитата с фотографией */

.quote-with-photo {
  display: flex;
  flex-direction: row;
  background-color: #553739;
}

.quote-with-photo-image-container {
  flex: 4;
  min-width: 300px;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.quote-with-photo-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 6;
  padding: 40px;
}

@media (max-width: 768px) {
  .quote-with-photo {
    flex-direction: column;
  }
}

/* Forms */

.ba-form-footer {
  margin-top: 10px;
}
