/**
 * @file
 * Subtheme specific CSS.
 */
@font-face {
  font-family: "Geometria Regular";
  font-style: normal;
  font-weight: 400;
  src: local("Geometria Regular"),
    url("../fonts/Geometria-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geometria Bold";
  font-style: normal;
  font-weight: 600;
  src: local("Geometria Bold"),
    url("../fonts/Geometria-Bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geometria Bold Italic";
  font-style: normal;
  font-weight: 400;
  src: local("Geometria Bold Italic"),
    url("../fonts/Geometria-BoldItalic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Baskervville";
  font-style: normal;
  font-weight: 600;
  src: local("Baskervville"),
    url("../fonts/Baskervville-Bold.ttf") format("ttf");
  font-display: block;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
  padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
  list-style: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
  max-width: 100%;
  display: block;
}

/* Указываем понятную периодичность в потоке данных у article*/
article>*+* {
  margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
  font: inherit;
}

.path-frontpage .page-title {
  display: none;
}

.node--type-page .node__content p,
.node--type-article .node__content p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.node--type-page .node__content li {
  margin-bottom: 8px;
}

.slider-text {
  position: absolute;
  top: 45%;
  left: 10%;
  width: 30%;
}

.slider-text p {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;

}

h2 {
  font-size: 2.2em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  margin: 60px 0 0 0;
}

h2 span {
  color: #fff;
  font-size: 0.75em;
}

h4 {
  font-size: 1.5em;
  text-transform: uppercase;
  color: #fff;
  font-family: "Geometria Bold", sans-serif;
  margin-bottom: 20px;
}

.w-40 {
  width: 40% !important;
}

.w-45 {
  width: 45% !important;
}

.w-30 {
  width: 30% !important;
}

.mr-20 {
  margin-right: 20px;
}

.field--type-image img,
.field--name-field-user-picture img {
  margin: 20px auto;
}

.path-frontpage h2 {
  display: grid;
}

.navbar-nav .ramka {
  border: 1px solid #80888A;
  margin-left: 30px;
  padding: 10px 20px !important;

}

.pidpys {
  display: flex;
  border-top: 1px solid #846D4B;
  justify-content: flex-end;
  padding: 20px 0;
  margin-top: 20px;
}

.img-fon {
  opacity: 1;
  transition: .45s all;
  -webkit-transition: .45s all;
  -moz-transition: .45s all;
  -ms-transition: .45s all;
  -o-transition: .45s all;
  z-index: 1;
  position: relative;
}

.img-main {
  position: absolute;
  z-index: 0;
  top: 0;
}

.my-news .new-card:hover .img-fon {
  opacity: 0;
  z-index: 0;
}

.my-news .field-content {
  position: relative;
}

.my-news .card a:hover {
  color: #01a9b4;
}

.my-news .card a,
.news-title a {
  text-decoration: none;
  color: #80888A;
}

.news-title {
  margin-top: 20px;
}

#views-bootstrap-news-page-1 .new-card .views-field {
  height: 100%;
}

.but-news {
  display: inline-block;
  border: 1px solid #000;
  font-size: 1.2em;
  color: #333;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  text-decoration: none;
  padding: 20px 30px;
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
}

.but-nap {
  display: inline-block;
  border: 1px solid #fff;
  font-size: 1em;
  color: #fff;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  text-decoration: none;
  padding: 8px 13px;
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
}

.but-nap:hover,
.but-news:hover {
  color: #fff;
  background: #01a9b4;
  border: 1px solid transparent;
  -webkit-transform: scale(.95);
  -ms-transform: scale(.95);
  transform: scale(.95);
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  -moz-transform: scale(.95);
  -o-transform: scale(.95);
}

.view-footer {
  margin: 60px 60px;
  text-align: center;
}

.text-per-title {
  color: #846D4B;
  font-size: 1.6em;
  text-align: center;
  margin: 30px 0;
  font-weight: 600;
}

.text-per-title2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 30px;
}

.button-center {
  text-align: center;
}

#block-nashiperevagitacinnosti {
  padding: 30px 0;
}

.text-per {
  margin-bottom: 10px;
  font-style: italic;

}

#g-tab-napryamky button,
#p-tab-napryamky button {
  width: 45%;
  text-align: left;
  padding: 10px 0;
  margin-left: 25px;
}

#block-napryami .nav-link.active {
  background: none;
  border-bottom: 1px solid #846D4B;
  color: #80888A;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
}

.tab-content-f {
  width: 84.5%;
  min-height: 329px;
  background-color: rgb(128, 136, 138, 0.8);
  ;
  position: absolute;
  z-index: 0;
  display: block;
}

#block-napryami .tab-pane {
  z-index: 1;
  position: relative;
  height: 100%;

}

.p-tab-text-body {
  padding: 0 25px;
  text-align: center;
  font-size: 0.95em;
  line-height: 1.3;
  color: #fff;

}

.p-tab-text-title {
  color: #fff;
  font-size: 1.2em;
  border-bottom: 1px solid #fff;
  text-align: center;
  width: 75%;
  margin: 0 auto;
}

#block-napryami .tab-content {
  padding: 50px;
  min-height: 429px;
  position: relative;
}

#p-tab-napryamkyContent {
  background-image: url(/themes/contrib/mosmedia/img/photo_nap_1.webp);
  background-repeat: no-repeat;
}

#g-tab-napryamkyContent {
  background-image: url(/themes/contrib/mosmedia/img/photo_nap_2.webp);
  background-repeat: no-repeat;
}

.p-tab-text .text-per-title {
  color: #fff;
  font-size: 1.6em;
  text-align: center;
  margin: 0;
}

.p-tab-text {
  display: grid;
  height: 100%;
  align-content: space-evenly;

}

.page-praktyky h2 {
  display: grid;
}

.text-page-prak {
  margin-top: 30px;
}

.text-page-prak span {
  color: #fff;
  font-size: 1.2em;
}

.text-page-prak p {
  margin-bottom: 20px;
}

.featured-bottom-1-1 {
  background-color: #ffffff;
  padding: 30px 0 60px;
}




/*************************************************************************************************************media**************************************************/
@media (min-width: 560px) {
  .node .field--type-image {
    float: none;
    margin: 0 auto;
  }


}

@media (max-width: 768px) {
  #block-napryami .container .row:nth-child(1) {
    flex-direction: column-reverse;
  }

  #block-napryami .container .row:nth-child(2) {
    margin-top: 0px;
  }

  #g-tab-napryamky button,
  #p-tab-napryamky button {
    width: 50%;
    text-align: left;
    padding: 7px 5px;
    margin-left: 0px;
    font-size: .8em;
  }

  #block-napryami .tab-pane {
    height: 325px;
  }

  .new-card {
    margin-bottom: 25px;
  }

  .new-card:last-child {
    margin-bottom: 0;
  }

  .img-fon img,
  .img-main img {
    margin: 0 auto;
  }

  .img-fon,
  .img-main {
    width: 100%;
  }
}