/* Подключение шрифта geometria-extralight.ttf */
@font-face {
  font-family: 'GeometriaExtraLight';
  src: url('../fonts/geometria-extralight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Подключение шрифта ofont.ru_Romul.ttf */
@font-face {
  font-family: 'Romul';
  src: url('../fonts/ofont.ru_Romul.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  font-size: 14px;
}
h1, h2, h3, h4, h5, h6, p, span, a, strong {
  font-family: Inter, sans-serif;
  margin: 0;
}
h3 {
  font-size: 55px;
  color: #004D1F;
  margin-top: 60px;
  margin-bottom: 27px;
}
h6 {
  color: #004D1F;
  font-size: 30px;
}
p {
  font-size: 18px;
  margin-bottom: 12px;
  color: #303D53;
}
@media screen and (max-width: 767px) {
  h3 {
    font-size: 35px;
    margin-top: 30px !important;
    margin-bottom: 14px !important;
  }
  h6 {
    font-size: 20px;
  }
  p {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }
}

@media (min-width: 767px) {
  html {
    font-size: 16px;
  }
}

/* ===================================================================================== */
/* The bootstrap columns
/* ===================================================================================== */
.col-1 {
  width: 12%;
}
.col-2 {
  width: 16.6%;
}
.col-3 {
  width: 25%;
}
.col-4 {
  width: 33.3%;
}
.col-5 {
  width: 41.6%;
}
.col-6 {
  width: 50%;
}
.col-7 {
  width: 58.3%;
}
.col-8 {
  width: 66.6%;
}
.col-9 {
  width: 75%;
}
.col-10 {
  width: 83.3%;
}
.col-11 {
  width: 91.6%;
}
.col-12 {
  width: 100%;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: #e8e8e8;
  position: relative; /* Необходимо установить для псевдоэлемента */
}
body::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/background.jpg');
  background-repeat: repeat;
  background-size: 30% auto;
  filter: grayscale(100%);
  opacity: 0.2;
  z-index: -1; /* Чтобы псевдоэлемент был под всеми остальными элементами */
}

@media screen and (max-width: 767px) {
  body::before {
    background-size: 50% auto !important;
  }
}

.main-container {
  max-width: 1320px;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0 16px;
}
@media screen and (max-width: 767px) {
  .main-container {
    flex-direction: column;
  }
}

header {
  background: #004D1F; /* linear-gradient(to right, #008f0b, #008f0b, #17ad00, #2eb800, #45c300, #5bcc00); */
  padding: 10px 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative; /* Необходимо установить для псевдоэлемента */
}
header::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/background.jpg');
  background-repeat: repeat;
  background-size: 30% auto;
  filter: grayscale(100%);
  opacity: 0.2;
  z-index: -1; /* Чтобы псевдоэлемент был под всеми остальными элементами */
}
@media screen and (max-width: 767px) {
  .main-container {
    padding: 10px 0 20px 0 !important;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  flex: 1;
}
@media screen and (max-width: 767px) {
  .header-logo {
    flex-direction: column;
    width: 100%;
    margin-bottom: 23px;
  }
  .header-logo > div {
    width: 80%;
    text-align: center;
  }
  .header-logo h3 {
    font-size: 28px !important;
  }
  .header-logo span {
    font-size: 19px !important;
  }
}

.header-logo__divider {
  height: 120px;
}
.header-logo > img {
  max-height: 160px;
}
.header-logo > div {
  display: flex;
  flex-direction: column;
}
.header-logo h3 {
  font-family: 'Romul', sans-serif;
  font-size: 48px;
  color: white;
  margin: 0;
}
.header-logo span {
  font-family: 'GeometriaExtraLight', sans-serif;
  font-size: 40px;
  letter-spacing: -0.4px;
}

.divider {
  width: 5px;
  background: white;
}

@media screen and (max-width: 767px) {
  .divider {
    height: 5px;
    background: white;
  }
  .header-logo span {
    font-family: 'GeometriaExtraLight', sans-serif;
    font-size: 40px;
    letter-spacing: 3px;
  }
}

.header-address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 277px;
  flex-wrap: wrap;
  color: white;
}
.header-address img {
  width: 37px;
}
.header-address > div:first-of-type {
  display: flex;
  flex-direction: column;
  width: 83%;
  gap: 6px;
}
.header-address h6 {
}
.header-address a {
  color: white;
  text-decoration: none;
}
.header-address span {
  text-wrap: nowrap;
}
.header-address span:first-child {
  margin-bottom: -2px;
}

.social-media {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.social-media > img {
  width: 37px;
}

.about {
  display: flex;
  background: white;
}
@media screen and (max-width: 767px) {
  .about {
    flex-direction: column;
  }
  .about-image {
    width: 100% !important;
    border-top: 7px solid #d6d6d6  !important;
    border-bottom: 3.5px solid #d6d6d6  !important;
    border-right: 7px solid #d6d6d6  !important;
    border-left: 7px solid #d6d6d6  !important;
    box-sizing: border-box;
  }
  .about-text {
    max-width: 100%  !important;
    padding: 0 20px 10px 20px !important;
    border-top: 3.5px solid #d6d6d6  !important;
    border-bottom: 7px solid #d6d6d6  !important;
    border-right: 7px solid #d6d6d6  !important;
    border-left: 7px solid #d6d6d6  !important;
  }
}

.about-image {
  width: 70%;
  border-top: 14px solid #d6d6d6;
  border-bottom: 14px solid #d6d6d6;
  border-right: 7px solid #d6d6d6;
  border-left: 14px solid #d6d6d6;
}

.about-image img {
  width: 100%;
  height: auto;
  margin-bottom: -4px;
}

.about-text {
  max-width: 30%;
  flex-grow: 1;
  padding: 0 20px;
  border-top: 14px solid #d6d6d6;
  border-bottom: 14px solid #d6d6d6;
  border-right: 14px solid #d6d6d6;
  border-left: 7px solid #d6d6d6;
}

.programs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 25px;
}
.programs > h3 {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .programs {
    padding: 0 10px;
  }
  .program {
    width: 100%;
  }
}
.program {
  padding: 10px;
  background: #ffffff;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.program > img {
  width: 100%;
  border-radius: 4%;
}
.program > h6 {
  padding: 10px;
  display: inline-flex;
}
.program > p {
  padding: 0 15px;
  text-align: justify;
}
.program > strong {
  padding: 0 15px;
  color: #004D1F;
  font-size: 18px;
  margin-bottom: 5px;
}
.material-symbols-outlined {
  font-size: 40px !important;
  margin-right: 10px !important;
}
@media screen and (max-width: 767px) {
  .material-symbols-outlined {
    font-size: 30px !important;
  }
}

.events {
  display: grid; /* Изменяем на grid */
  grid-template-columns: repeat(3, 1fr); /* Создаем три колонки */
  justify-items: center; /* Центрируем элементы по горизонтали */
  gap: 40px;
  margin: 0 auto; /* Добавляем, чтобы центрировать таблицу по горизонтали */
  padding: 0 40px;
}
@media screen and (max-width: 767px) {
  .events {
    grid-template-columns: repeat(1, 1fr) !important;
    justify-items: stretch !important;
    padding: 0 10px;
    gap: 25px;
  }
}

.events > h3 {
  grid-column: 1 / -1; /* Занимаем все три колонки, чтобы заголовок был по центру */
  text-align: center;
}
.event {
  padding: 10px;
  background: #ffffff;
  border-radius: 20px;
  text-align: center; /* Центрируем содержимое блока .event */
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.event > img {
  width: 100%;
  border-radius: 4%;
}
.event > h6 {
  padding: 10px;
  text-align: center;
}
.event > p {
  font-size: 18px;
  margin-bottom: 12px;
  color: #303D53;
  padding: 0 15px;
  text-align: justify;
}

.map {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 25px;
}
.map > h3 {
  text-align: center;
}
.map iframe {
  width: 90%;
}


footer {
  color: #303D53;
  padding: 35px 0;
  margin: auto 0;
}
footer > h5 {
  text-align: center;
}