@import 'fonts.css';

:root {
--primary: #66021F;
--primary-hover: #4d0217;
--secondary: #211110;
--secondary-hover: #211110;
--emphasis: #B88425;
--default: #666;
--meta: #999;
--muted: #FBFBEF;
--white: #fff;
--white-75: rgb(255, 255, 255, .75);
--white-25: rgb(255, 255, 255, .25);
--border-radius: 10px;
--font-family-default: "PT Sans";
--font-family-primary: 'Romul';
}

/*Cookie CSS*/
.tm-cookie-banner {
    background: var(--muted);
}
.tm-cookie-banner .uk-container {
  text-align: left !important;
}

.tm-cookie-banner .cookie-text {
	font-size: 0.877rem;
	line-height: 1;
}


@media(min-width: 960px){
  .tm-cookie-banner {
    max-width: 460px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/*-- BASE --*/
* {
    box-sizing: border-box;
}

textarea {
  resize: none;
}

@media(max-width: 640px){
  h3, .uk-h3 {
    font-size: 1.5rem;
  }
}

/*-- UIkit --*/
.uk-modal.uk-open {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.uk-button-default.uk-button-small {
  font-size: 1.125rem;
  text-transform: uppercase;
  border-radius: 30px;
}


@media (min-width: 960px) {
  .uk-container-expand-left, .uk-container-expand-right {
      max-width: calc(50% + (1200px / 2) - 0px);
      padding-right: 0;
  }
}

/* MARGINS */
.uk-margin-medium-top\@m {
  margin-top: 20px;
}
@media(max-width: 960px){
  .uk-margin-xlarge-top {
    margin-top: 40px !important;
  }
}

@media(min-width: 960px) {
  .uk-margin-large-top\@m {
    margin-top: 70px;
  }
  .uk-margin-medium-top\@m {
    margin-top: 40px;
  }
}


/*-- CUSTOM --*/
.c-text-underline {
    text-decoration: underline;
}
.c-heading-link .el-link,
.c-heading-link .el-link > span:first-child {
  display: flex;
}
.c-heading-link .el-link > span:first-child {
  flex: 1;
}

.c-heading-link .el-link > span:first-child > span {
  margin-left: auto;
  font-size: 1rem;
  text-transform: none;
}

.c-grid-item-link .el-item > .uk-panel {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.c-grid-item-link .el-title {
  flex: 1 1 1px;
}


.c-slidenav-top-right .el-slidenav {
    background: var(--primary);
    color: var(--white);
    width: 70px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
}

.c-slidenav-top-right .el-slidenav:hover {
    background: var(--primary-hover);
}

.c-slidenav-top-right .uk-position-center-left-out {
    top: -70px;
    right: calc(10% + 85px);
    transform: none;
    margin: 0;
}

.c-slidenav-top-right .uk-position-center-right-out {
    top: -70px;
    right: 10%;
    left: auto;
    transform: none;
    margin: 0;
}

@media(max-width: 640px) {
  .c-caregory-panel .el-image {
    aspect-ratio: 1;
    object-fit: cover;
  }
  .c-history-menu .el-title,
  .c-history-menu .el-content,
  .c-history-menu .el-meta {
      padding: 0 15px;
  }
  #article-modal .uk-close {
      color: var(--white);
  }
}

@media(max-width: 960px){
    .c-slidenav-top-right .uk-position-center-left {
        top: 15px;
        left: 15px;
        bottom: auto;
        margin: 0 !important;
        transform: none;
    }
    .c-slidenav-top-right .uk-position-center-right {
        top: 15px;
        left: 95px;
        bottom: auto;
        margin: 0 !important;
        transform: none;
    }
    .c-schedule-table .uk-button {
        display: none;
    }
}

@media(min-width: 960px) {
  .c-history-menu .el-title {
    margin-top: 70px !important;
  }
  .c-history-menu .el-content {
    margin-top: 40px !important;
    max-width: 460px;
  }
  .c-panel-slider-30 .uk-slider-items > * {
    width: 30%;
  }
}


/* ANIMATION */
.c-anim-promo {
  position: relative;
  overflow: hidden;

}

.c-anim-promo::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  background: #fff;
}

.s-anim-full-1-2 {
  position: relative;
  overflow: hidden;
}

@media(max-width: 640px) {
    .c-anim-img {
        max-width: 100vw;
        width: 100vw;
        margin-left: -15px !important;
        object-fit: cover;
        
    }
}
@media(max-width: 960px) {
  .s-anim-full-1-3 .uk-container > .uk-grid > div > .uk-panel {
    min-height: auto !important;
  }
}

@media(min-width: 960px){
  .s-anim-full-1-3{
    position:relative;
    overflow:hidden;
  }
  
  .s-anim-full-1-3 .uk-container{
    position:relative;
  }
  
  .s-anim-full-1-3 .c-anim-img{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:100vw;
    z-index:10;
    overflow:hidden;
  }
  
  .s-anim-full-1-3 .c-anim-img img,
  .s-anim-full-1-2 .c-anim-img img  {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .s-anim-full-1-2 .c-anim-img {
    position: absolute;
    top: 0;
    width: 1920px;
    max-width: none;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    z-index: 1;
  }
}


/* LANGUAGES */
.mod-languages .uk-subnav {
  margin-left: -10px;
}
.mod-languages .uk-subnav > * {
  padding-left: 10px;

}
.mod-languages .uk-subnav a {
  font-size: 1.125rem !important;
}
.mod-languages .uk-subnav a[href^="/"] {
  color: var(--primary);
}

/* FOOTER */
.uk-text-center .m-social > .uk-grid,
.s-footer .m-social > .uk-grid {
  justify-content: center;
}

@media(min-width: 960px){
  .uk-text-left\@m .m-social > .uk-grid,
  .m-social > .uk-grid {
    justify-content: start;
  }
  .s-footer .m-social > .uk-grid {
    justify-content: end;
  }
}


/* VESTNIK */
.c-vestnik-tabs {
  margin: 0;
  gap: 5px;
}
.c-vestnik-tabs li {
  width: 100%;
  padding: 0;
}

.c-vestnik-tabs a {
  min-height: 60px;
  width: 100%;
  border-radius: 5px;
  padding: 0 15px;
  color: var(--primary) !important;
  background: var(--muted);
}

.c-vestnik-tabs .uk-active > a,
.c-vestnik-tabs a:hover {
  background: var(--primary);
  color: var(--white) !important;
}

.c-vestnik-tabs a > span {
  font-family: var(--font-family-primary);
  font-size: 2rem;
  margin-right: 10px;
}

.c-vestnik-tabs a::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 12px;
  margin-left: auto;
  background-color: var(--meta);
  -webkit-mask: url("/images/icons/next.svg") center / contain no-repeat;
          mask: url("/images/icons/next.svg") center / contain no-repeat;
  transition: all ease .1s;
}

.c-vestnik-tabs .uk-active > a::after,
.c-vestnik-tabs a:hover::after {
  background-color: var(--white);
}

@media(max-width: 960px) {
  .c-vestnik-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .c-vestnik-tabs > li {
    width: auto;
  }
}

/* HISTORY */
@media(min-width: 960px) {
  .c-history-col {
    padding-top: 140px;
    padding-bottom: 140px;
  }
}

@media(max-width: 960px) {
  .s-history .uk-tile-xlarge {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* PRODUCTS */
.c-products-grid .el-item {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.c-products-grid picture {
  width: 100%;
}

.c-products-grid .el-title {
  flex: 1 1 1px;
  min-height: calc(2 * 1.4em);
}

.c-products-grid .el-meta {
  flex: none;
}

@media(min-width: 960px){
  .c-products-grid picture {
    margin-bottom: 20px;
  }
}

/*NEWS*/
.c-news-grid .el-item > a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.c-news-grid .el-title {
  width: 100%;
}

.c-news-grid .el-meta {
  flex: 1 1 1px;
}

/*gallery*/
.c-gallery > .uk-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.c-gallery > .uk-grid > div {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
}

.c-gallery > .uk-grid > div:has(.is-horizontal) {
    grid-column: span 2 !important;
}

.c-gallery > .uk-grid > div:has(.is-vertical) {
    grid-column: span 1 !important;
}

.c-gallery .el-item {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
}

.c-gallery .el-item.is-horizontal {
    aspect-ratio: 4 / 3;
}

.c-gallery .el-item > a,
.c-gallery .el-item picture,
.c-gallery .el-item .el-image {
    display: block;
    width: 100%;
    height: 100%;
}

.c-gallery .el-image {
    object-fit: cover;
}

@media(max-width: 640px){
    .c-gallery > .uk-grid {
        gap: 5px;
    }
}

/*SCROLLTOP*/
.c-scroll-top {
    position: fixed;
    z-index: 1000;
    right: 15px;
    bottom: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-hover);
    color: var(--white);
}

.c-scroll-top:hover {
    background: var(--primary);
    color: var(--white);
}

.c-scroll-top svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 960px) {
    .c-scroll-top {
        width: 60px;
        height: 60px;

        right: 40px;
        bottom: 40px;
    }

    .c-scroll-top svg {
        width: 24px;
        height: 24px;
    }
}


/* HR */
.c-hr-animate {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s ease;
}

.c-hr-animate.is-visible {
    transform: scaleX(1);
}

/*MAP*/
#map {
  filter: grayscale(1);
}
/* Если нужно, чтобы кастомный пин оставался цветным, используем такой трюк: */
#map .ymaps-2-1-79__pin-image,
#map .ymaps-2-1-79__balloon-content-image {
  filter: none !important;
}

@media(max-width: 640px){
    .s-map,
    .s-map .uk-container {
        padding: 0;
    }
}


/*REMARKED*/
.remarked-primary-widget__wrap {
    background: rgba(0, 0, 0, .6);
}

.remarked-primary-widget {
    border-radius: 0;
    font-family: var(--font-family-default);
}

.remarked-primary-widget__title {
    color: var(--title);
    font-family: var(--font-family-primary);
}

.remarked-primary-widget__restaurant-item {
    font-family: var(--font-family-primary);
}

.remarked-primary-widget__submit {
    background: var(--primary);
    box-shadow: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family-default);
    font-weight: 400 !important;
}

.remarked-primary-widget__submit:hover {
    background: var(--primary-hover);
    box-shadow: none;
}

.remarked-primary-widget__times-item, 
body .remarked-primary-widget input, 
.remarked-primary-widget__comment textarea, 
.remarked-primary-widget select, 
textarea.remarked-primary-widget__textarea,
.remarked-primary-widget .remarked-primary-widget__policy-checkbox {
    color: var(--default);
    border: 1px solid var(--meta) !important;
    border-radius: 5px;
}

.remarked-primary-widget__policy-checkbox--active::after {
    width: 7px;
    height: 15px;
}

@media(max-width: 640px) {
    .remarked-primary-widget {
        padding: 40px 15px;
    }
}
