.history-bg img {
    width: 100%;
}

.history-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.history-text p,
.history-text ul {
    color: var(--color-9);
    font-family: "Open Sans", sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.005px;
    text-align: justify;
}

.history-text p {
    font-size: 25px;
}

.history-text ul {
    font-size: 20px;
    padding-left: 20px;
}

.history-photo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.history-photo p:first-child {
    text-align: right;
    margin-left: auto;
}

.history-photo p:last-child {
    text-align: left;
    margin-right: auto;
}

.history-photo p,
.history-description p {
    color: var(--color-9);
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.history-photo p {
    max-width: 500px;
}

.shadow-image {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Тень вокруг изображения */
    display: block; /* Изображение отображается как блочный элемент */
    margin: 25px auto;
    width: min(500px, 80%);
}

.history-zagolovok {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 35px;
  text-align: center;
  color: var(--h-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 30px 0 15px;
  text-shadow: 2px 2px 3px rgba(0,0,0,0.4);
}

.history-photo img {
  opacity: 0.9;
  filter: sepia(50%) contrast(85%) brightness(90%);
}

.history-description {
    max-width: 1020px;
    margin: 0 auto;
}

.svid2006 .history-photo img {
    opacity: 1;
    filter: none;
}



@media (max-width: 1080px) {
    .history-photo {
        flex-direction: column;
        align-items: center;
    }
    .history-description {
        max-width: 500px;
    }
}


@media (max-width: 768px) {
    .history-text,
    .history-photo,
    .svedenia-text {
        gap: 20px;
        margin-top: 20px;
    }

    .history-photo p,
    .history-text p,
    .svedenia-text p {
        font-size: 18px;
    }

    .history-text ul {
        font-size: 15px;
    }

    .history-zagolovok {
        font-size: 25px;
    }
}


@media (max-width: 640px) {
    .history-photo {
        gap: 10px;
    }

    .history-photo img {
        width: 100%;
    }
}