.about {
    background: #ffffff;
    padding: 60px 0 80px;
    border-top: 2px solid #1a5c9e;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vw;
}

.about__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    color: #333333;
    margin-bottom: 32px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    max-width: 100%;
    hyphens: auto;
}

.about__text p {
    margin-bottom: 16px;
}

.about__text p:last-child {
    margin-bottom: 0;
}

.about__person {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.about__person-photo {
    width: 128px;
    height: 128px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.about__person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__person-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about__person-name {
    font-weight: 600;
    font-size: 32px;
    line-height: 140%;
    color: #1a5c9e;
}

.about__person-position {
    font-weight: 400;
    font-size: 28px;
    line-height: 140%;
    color: #888888;
}

.about__btn-wrapper {
    display: none;
}

.about__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a5c9e;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    padding: 16px 48px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.about__btn:hover {
    background: #0d3a5c;
    transform: translateY(-2px);
}

.about__btn:active {
    transform: translateY(0);
}

.news-events {
    position: relative;
    background: #f5f7fa;
    padding: 80px 0;
    overflow: hidden;
}

.news-events__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vw;
}

.news-events__container::before {
    content: '';
    position: absolute;
    top: -260px;
    right: -500px;
    width: 800px;
    height: 600px;
    background: url('../img/background-pattern-2.png') center/contain no-repeat;
    pointer-events: none;
}

.news-events__container::after {
    content: '';
    position: absolute;
    bottom: -300px;
    right: 900px;
    width: 800px;
    height: 600px;
    background: url('../img/background-pattern-3.png') center/contain no-repeat;
    pointer-events: none;
}

.news {
    margin-bottom: 60px;
}

.news__list {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.news__item {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.news__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 92, 158, 0) 0%, rgba(26, 92, 158, 0.9) 100%);
    pointer-events: none;
}

.news__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news__content {
    position: relative;
    z-index: 2;
}

.news__title {
    font-weight: 600;
    font-size: 18px;
    line-height: 140%;
    color: #ffffff;
    margin-bottom: 12px;
}

.news__date {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.8);
}

.news__btn-wrapper {
    display: flex;
    justify-content: center;
}

.news__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a5c9e;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    padding: 16px 40px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.news__btn:hover {
    background: #0d3a5c;
    transform: translateY(-2px);
}

.events {
    margin-bottom: 40px;
}

.events__list {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.events__item {
    flex: 1;
    min-width: 260px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.events__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.events__title {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #1a5c9e;
    flex: 1;
}

.events__datetime {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.events__date {
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    color: #666666;
}

.events__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a5c9e;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.events__arrow img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.events__item:hover .events__arrow {
    background: #0d3a5c;
    transform: translateX(3px);
}

.events__btn-wrapper {
    display: flex;
    justify-content: center;
}

.events__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a5c9e;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    padding: 16px 40px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.events__btn:hover {
    background: #0d3a5c;
    transform: translateY(-2px);
}

.news-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.news-popup.active {
    opacity: 1;
    visibility: visible;
}

.news-popup__content {
    position: relative;
    display: flex;
    gap: 32px;
    background: #ffffff;
    border-radius: 16px;
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.news-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 10001;
    width: 36px;
    height: 36px;
}

.news-popup__close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.news-popup__close img {
    width: 20px;
    height: 20px;
}

.news-popup__text-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    padding-right: 10px;
}

.news-popup__title {
    font-weight: 700;
    font-size: 28px;
    line-height: 120%;
    color: #000000;
    margin-bottom: 12px;
}

.news-popup__subtitle {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
    margin-bottom: 24px;
}

.news-popup__section {
    margin-bottom: 24px;
}

.news-popup__body-content {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #000000;
}

.news-popup__body-content p {
    margin-bottom: 15px;
}

.news-popup__body-content p:last-child {
    margin-bottom: 0;
}

.news-popup__section-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #000000;
    margin-bottom: 12px;
}

.news-popup__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-popup__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #000000;
}

.news-popup__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000000;
    font-size: 18px;
    line-height: 150%;
}

.news-popup__link {
    color: #000000;
    text-decoration: underline;
    transition: color 0.2s;
}

.news-popup__link:hover {
    color: #000000;
}

.news-popup__paragraph {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #000000;
    margin-bottom: 12px;
}

.news-popup__paragraph:last-child {
    margin-bottom: 0;
}

.news-popup__image {
    flex-shrink: 0;
    width: 400px;
    border-radius: 12px;
    overflow: hidden;
    align-self: flex-start;
    position: sticky;
    top: 0;
}

.news-popup__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.events-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.events-popup.active {
    opacity: 1;
    visibility: visible;
}

.events-popup__content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.events-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 10001;
    width: 36px;
    height: 36px;
}

.events-popup__close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.events-popup__close img {
    width: 20px;
    height: 20px;
}

.events-popup__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 130%;
    color: #1a5c9e;
    margin-bottom: 16px;
}

.events-popup__datetime {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #666666;
    margin-bottom: 24px;
}

.events-popup__text {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #333333;
    overflow-y: auto;
    max-height: calc(85vh - 200px);
    padding-right: 10px;
}

.events-popup__text p {
    margin-bottom: 12px;
}

.events-popup__text p:last-child {
    margin-bottom: 0;
}

.events-popup__list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.events-popup__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.events-popup__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a5c9e;
    font-size: 18px;
    line-height: 150%;
}

@media (max-width: 430px) {
    .about {
        padding: 40px 0 40px;
        border-top-width: 1px;
    }

    .about__container {
        padding: 0 16px;
    }

    .about__text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .about__person {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 32px;
    }

    .about__person-photo {
        width: 56px;
        height: 56px;
    }

    .about__person-name {
        font-size: 14px;
    }

    .about__person-position {
        font-size: 12px;
    }

    .about__btn {
        width: 100%;
        padding-inline: 0;
    }

    .news-events {
        padding: 40px 0 48px;
    }

    .news-events__container {
        padding: 0 16px;
    }

    .news-events__container::before,
    .news-events__container::after {
        display: none;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .news {
        margin-bottom: 32px;
    }

    .news__list {
        gap: 12px;
        margin-bottom: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .news__list::-webkit-scrollbar {
        display: none;
    }

    .news__list > * {
        scroll-snap-align: start;
    }

    .news__item {
        flex: 0 0 232px;
        min-height: 324px;
        padding: 24px 16px;
    }

    .news__title {
        font-size: 14px;
    }

    .news__date {
        font-size: 12px;
    }

    .news__btn {
        width: 100%;
    }

    .events__list {
        flex-direction: column;
        gap: 12px;
    }

    .events__item {
        padding: 16px 14px;
    }

    .events__title {
        font-size: 14px;
    }

    .events__date {
        font-size: 12px;
    }

    .events__arrow {
        width: 32px;
        height: 32px;
    }

    .events__btn {
        width: 100%;
    }

    .news-popup {
        padding: 0;
    }

    .news-popup__content {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        padding: 60px 16px 20px;
        gap: 20px;
        overflow-y: auto;
    }

    .news-popup__text-wrapper {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .news-popup__title {
        font-size: 20px;
    }

    .news-popup__subtitle {
        font-size: 14px;
    }

    .news-popup__paragraph {
        font-size: 13px;
    }

    .news-popup__list li {
        font-size: 13px;
    }

    .news-popup__image {
        width: 100%;
        position: static;
    }

    .news-popup__close {
        top: 16px;
        right: 12px;
    }

    .events-popup {
        padding: 0;
    }

    .events-popup__content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        padding: 60px 16px 20px;
        overflow-y: auto;
    }

    .events-popup__title {
        font-size: 18px;
    }

    .events-popup__datetime {
        font-size: 14px;
    }

    .events-popup__text {
        font-size: 13px;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }

    .events-popup__close {
        top: 16px;
        right: 12px;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .news-popup__content {
        flex-direction: column;
    }

    .news-popup__image {
        width: 100%;
        position: static;
    }
}