@font-face {
  font-family: "Garamond";
  src: url("../fonts/EBGaramond-Regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: "Garamond";
  src: url("../fonts/EBGaramond-Medium.woff") format("woff");
  font-weight: 500;
}

@font-face {
  font-family: "Garamond";
  src: url("../fonts/EBGaramond-SemiBold.woff") format("woff");
  font-weight: 600;
}

@font-face {
  font-family: "Garamond";
  src: url("../fonts/EBGaramond-Bold.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: "Postnaja";
  src: url("../fonts/triod-postnaja.woff") format("woff");
  font-weight: 500;
}

*::-webkit-input-placeholder {
  color: #000;
  opacity: 1;
}
*:-moz-placeholder {
  color: #000;
  opacity: 1;
}
*::-moz-placeholder {
  color: #000;
  opacity: 1;
}
*:-ms-input-placeholder {
  color: #000;
  opacity: 1;
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Garamond";
  padding: 0;
  margin: 0;
  background-color: #fff;
  color: #000;
}
button {
  cursor: pointer;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
}
input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
a,
button,
input,
img {
  transition: all 0.3s;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  font-weight: normal;
}
.wrapper {
  overflow: hidden;
}
a {
  text-decoration: none;
  outline: none;
  color: #000;
}
* {
  outline: none !important;
}
ul {
  padding: 0;
  margin: 0;
}
ul li {
  list-style-type: none;
  outline: none;
}
img {
  outline: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
p {
  padding: 0;
  margin: 0;
}
form {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

.container {
  max-width: 1320px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

.wrapper {
  display: flex;
  height: 100%;
}

h1 {
  font-size: 20px;
  font-family: "Postnaja";
  font-style: normal;
  font-weight: 500;
  line-height: 135%;
}

.sidebar {
  width: 23%;
  display: flex;
  flex-direction: column;
  padding: 3rem 2.5rem;
  background: #2c6798;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sidebar__logo img {
  width: 43px;
  height: 72px;
}

.sidebar__logo p {
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: 0.14px;
  max-width: 107px;
}

.sidebar__nav {
  margin: clamp(24px, 5vw, 64px) clamp(8px, 2vw, 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 32px);
}

.sidebar__nav li a {
  color: #fff;
  font-family: "Postnaja";
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.28px;
  transition: 0.4s all;
}

.sidebar__support {
  padding: clamp(6px, 2vw, 12px) clamp(12px, 4vw, 30px);
  border-radius: 1000px;
  background: #6366f1;
  color: #fff;
  font-family: "Postnaja";
  font-size: clamp(12px, 2vw, 24px);
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.24px;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.sidebar__links {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 16px;
}

.sidebar__links a {
  width: 34px;
  height: 34px;
}

.glavnaya {
  width: 100%;
  padding: clamp(2rem, 5vw, 6rem) clamp(1rem, 5vw, 10vw);

  background-color: #fff;

  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.9) 100%
    ),
    url("../img/background.png");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.about {
  width: 100%;
  padding: clamp(2rem, 5vw, 6rem) clamp(1rem, 5vw, 10vw);

  background-color: #fff;

  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.95) 100%
    ),
    url("../img/backgroundSecond.png");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.glavnaya__main,
.about__main {
  display: flex;
  align-items: center;
  gap: 120px;
}

.glavnaya__main-info,
.about__main-info {
  min-width: 0;
  width: clamp(320px, 50vw, 612px);
}

.glavnaya__main-info h1,
.about__main-info h1,
.news h1,
.singleNews h1,
.gallery h1 {
  font-family: "Postnaja";
  font-size: clamp(28px, 3vw, 48px);
  font-style: normal;
  font-weight: 500;
  line-height: 135%;
}

.glavnaya__main-info p,
.about__main-info p {
  margin-top: 44px;
  margin-top: clamp(16px, 2vw, 44px);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.2px;
}

.glavnaya__main-image,
.about__main-image {
  width: clamp(200px, 40%, 507px);
  height: auto;
  border-radius: 32px;
  overflow: hidden;
  flex-shrink: 1;
}

.glavnaya__info,
.about__info {
  margin-top: 152px;
  display: flex;
  gap: 120px;
}

.about__info {
  gap: 152px;
}

.glavnaya__news h2 {
  font-family: "Postnaja";
  font-size: clamp(24px, 3vw, 36px);
  font-style: normal;
  font-weight: 500;
  line-height: 135%;
  letter-spacing: 0.36px;
}

.glavnaya__news-line {
  width: 100%;
  max-width: clamp(320px, 60vw, 681px);
  padding: clamp(16px, 3vw, 40px) 0;
}

.glavnaya__news-items {
  width: 100%;
  max-width: clamp(320px, 60vw, 681px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(20px, 3vw, 40px);
}

.glavnaya__news-item-date {
  font-size: clamp(12px, 1vw, 14px);
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.14px;
}

.glavnaya__news-item-title {
  margin-top: clamp(6px, 1vw, 10px);
  font-size: clamp(16px, 1.5vw, 18px);
  font-style: normal;
  font-weight: 800;
  line-height: 135%;
  letter-spacing: 0.18px;
}

.glavnaya__news-item-image {
  margin-top: clamp(16px, 2vw, 24px);
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 507/291;
  border-radius: 8px;
  overflow: hidden;
}

.glavnaya__news-item-text {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(14px, 1.2vw, 16px);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: auto;
  overflow: hidden;
}

.timetable h3 {
  font-family: "Postnaja";
  font-size: clamp(24px, 3vw, 36px);
  font-style: normal;
  font-weight: 500;
  line-height: 135%;
  letter-spacing: 0.36px;
}

.timetable__descr {
  margin-top: clamp(2px, 1vw, 4px);
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  font-weight: 500;
  line-height: 135%;
  letter-spacing: 0.2px;
}

.timetable ul {
  margin-top: clamp(16px, 2vw, 30px);
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
}

.timetable ul li {
  padding: clamp(4px, 0.5vw, 7px) clamp(8px, 2vw, 16px);
  border-radius: 4px;
  background: #000;
  text-align: center;
  font-size: clamp(12px, 1vw, 16px);
  font-style: normal;
  font-weight: 700;
  line-height: 135%;
  letter-spacing: 0.16px;
  color: #000;
  background-color: #fff;
  border: 1px solid #000;
  cursor: pointer;
}

.timetable ul li:last-child {
  border: 1px solid #10b981;
  color: #10b981;
}

.timetable ul li.active {
  color: #fff;
  background-color: #000;
  border: 1px solid #000;
}

.timetable__info {
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid #cacaca;
  background: #fff;
  padding: clamp(8px, 1.5vw, 16px) clamp(8px, 1.5vw, 16px)
    clamp(10px, 2vw, 20px);
  display: none;
}

.timetable__info.active {
  display: block;
}

.timetable__date {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timetable__date p {
  color: #808080;
  text-align: right;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 135%;
  letter-spacing: 0.14px;
}

.timetable__line {
  padding: 16px 0;
  width: 100%;
}

.timetable__date-day {
  width: clamp(100px, 12vw, 155px);
  padding: clamp(4px, 1vw, 8px) clamp(12px, 2vw, 24px);
  font-size: clamp(12px, 1.2vw, 16px);
  border-radius: 4px;
  background: #f59e0b;
  text-align: center;
  font-style: normal;
  font-weight: 800;
  line-height: 135%;
  letter-spacing: 0.16px;
  color: #fff;
  white-space: nowrap;
}

.timetable__timing-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timetable__timing {
  display: flex;
  gap: 14px;
}

.timetable__time {
  width: clamp(40px, 5vw, 56px);
  font-size: clamp(12px, 1vw, 16px);
  font-style: normal;
  font-weight: 800;
  line-height: 135%;
  letter-spacing: 0.16px;
}

.timetable__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timetable__author p {
  font-size: clamp(14px, 1.2vw, 16px);
  font-style: normal;
  font-weight: 600;
  line-height: 135%;
  letter-spacing: 0.16px;
}

.timetable__author span {
  color: #666;
  font-size: clamp(12px, 1vw, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: 0.14px;
}

.glavnaya__news-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glavnaya__news-btn a {
  padding: clamp(6px, 1vw, 8px) clamp(16px, 3vw, 24px);
  font-size: clamp(14px, 1vw, 16px);
  background-color: black;
  width: fit-content;
  margin: 0 auto;
  font-style: normal;
  font-weight: 700;
  line-height: 135%;
  letter-spacing: 0.16px;
  color: #fff;
}

header {
  display: none;
}

.glavnaya__main-image-768,
.glavnaya__main-image-360,
.about__main-image-768,
.about__main-image-360 {
  display: none;
}

.header__info {
  display: none;
}

.mob__only {
  display: none;
}

.about__history h2 {
  color: #000;
  font-family: "Postnaja";
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 135%;
  letter-spacing: 0.36px;
}

.about__history-wrap {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.about__history-lines {
  margin-top: 20px;
  width: 2px;
  height: 914px;
  background: #6366f1;
  position: relative;
}

.about__history-line {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6366f1;
}

.about__history-line:nth-child(1) {
  top: 0;
  left: -5px;
}

.about__history-line:nth-child(2) {
  top: 224px;
  left: -5px;
}

.about__history-line:nth-child(3) {
  top: 454px;
  left: -5px;
}

.about__history-line:nth-child(4) {
  top: 684px;
  left: -5px;
}

.about__history-line:nth-child(5) {
  top: 914px;
  left: -5px;
}

.about__history-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 656px;
}

.about__history-date {
  margin-left: 16px;
  color: #6366f1;
  font-family: "Postnaja";
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.3px;
}

.about__history-title {
  margin-left: 16px;
  margin-top: 2px;
  color: #000;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 135%;
  letter-spacing: 0.22px;
}

.about__history-text {
  margin-top: 16px;
  padding: 16px 20px 20px 20px;
  border-radius: 12px;
  border: 1px solid #cacaca;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.16px;
}

.about__person h3 {
  color: #000;
  font-family: "Postnaja";
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 135%;
  letter-spacing: 0.36px;
}

.about__person-items {
  max-width: 434px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__person-item {
  padding: 20px 24px 24px 24px;
  border-radius: 12px;
  border: 1px solid #cacaca;
  background: #fff;
}

.about__person-name {
  color: #000;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 135%;
  letter-spacing: 0.24px;
}

.about__person-role {
  margin-top: 8px;
  color: #808080;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 135%;
  letter-spacing: 0.16px;
}

.about__person-text {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.16px;
}

.about__person-line {
  padding: 20px 0;
  width: 100%;
}

.news,
.singleNews,
.gallery {
  max-width: 1240px;
}

.news__line {
  padding: 40px 0;
}

.news__wrapper {
  display: flex;
  align-items: start;
  gap: 80px;
  justify-content: start;
}

.news__item {
  flex: 0 1 calc(50% - 40px);
  min-width: 600px;
  max-width: 500px;
}

/* Tablet */
@media (max-width: 1200px) {
  .news__item {
    flex: 0 1 calc(50% - 30px);
    min-width: 350px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .news__item {
    flex: 0 1 100%;
    min-width: unset;
    max-width: 400px;
    width: 100%;
  }
}

.news__date {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.14px;
}

.news__title {
  margin-top: 10px;
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  line-height: 135%;
  letter-spacing: 0.18px;
}

.news__image {
  width: 100%;
  height: 291px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 24px;
}

.news__text {
  margin-top: 24px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: auto;
  overflow: hidden;
}

.singleNews__date {
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.24px;
}

.singleNews h1 {
  margin-top: 10px;
}

.singleNews__image {
  height: 711px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}

.singleNews__text {
  font-size: clamp(16px, 1.3vw, 24px);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.24px;
}

.singleNews__wrap {
  margin-top: 40px;
  display: flex;
  gap: 40px;
}

.singleNews__image-small {
  width: 600px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery__items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gallery__item p {
  color: #6366f1;
  font-family: 'Postnaja';
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 135%;
  letter-spacing: 0.36px;
}

.gallery__images {
  margin-top: 28px;
  display: flex;
  align-items: start;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery__images img {
  width: fit-content;
  height: 180px;
}

.gallery__line {
  width: 100%;
  margin-top: 28px;
}

.sidebar nav li a:hover {
  color: #7FC5FF;
}

.sidebar nav li a.active, .header__info ul li a.active {
  color: #7FC5FF;
}