@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

body {
  width: 1440px;
  max-height: 5596px;
  margin: 0 auto;
  overflow-y: auto;
  background-color: #FFFFFF;       /* белый фон */
  font-family: 'Inter', sans-serif; /* шрифт Inter с запасным sans-serif */
  box-sizing: border-box;
  color: #000000;                  /* цвет текста по умолчанию — черный (можно изменить) */
}




/* Общая обертка хедера */
header {
    width: 1216px;
    height: 226px;
    margin-left: 112px;
    margin-top: 40px;
}

/* Верхняя часть хедера: логотип и название сайта */
.header-top {
    display: flex;
    align-items: center; /* выравнивание по вертикали */
    justify-content: space-between; /* при необходимости */
}

/* Логотип */
.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Название сайта */
.site-name h1 {
    height: 98px;
    width: 769px;
    margin-left: 287px;
    margin-top: 21px;
    font-weight: 400;
    font-size: 34px;
    line-height: 1.45;
    color: #000000;
    text-align: right;
}

.main-nav ul {
    margin-left: 97px;   /* отступ слева */
    margin-top: 40px;
    width: 1022px;        /* ширина списка */
    height: 46px;         /* высота списка */
    padding: 0;           /* убираем стандартные отступы */
    list-style: none;     /* если хочешь убрать маркеры */
    box-sizing: border-box; /* чтобы ширина и высота учитывали padding и border */
    display: flex;        /* если нужно выстроить li в ряд, можно добавить */
    align-items: center;  /* вертикально выровнять элементы по центру */
    gap: 12px;
}

.main-nav li {
    padding: 12px 20px;   /* сверху/снизу 12px, справа/слева 20px */
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    text-align: center;
}
/* Стили для ссылок внутри li */
.main-nav ul li a {
  color: inherit;              /* наследует цвет от li или body */
  text-decoration: none;       /* убираем стандартное подчеркивание */
  display: block;              /* чтобы ссылка занимала всю площадь li */
  height: 100%;                /* чтобы ссылка занимала всю высоту li */
 position: relative;
}

/* Нижняя линия для активного li (например, класс active) */
.main-nav ul li.current::after {
  content: "";
  position: absolute;
  bottom: 0;                  /* линия снизу */
  left: 0;
  width: 100%;                /* растянуть по всей ширине li */
  height: 2px;                /* толщина линии */
  background-color: #005656;  /* цвет линии */
  pointer-events: none;       /* чтобы линия не мешала клику */
}


/* навигация сайта */
/* Убираем стандартные маркеры */
.tree-nav-wrapper {
    width: 384px;
    background-color: #3C4497;
    color: #ffffff;
    padding: 32px 32px 46px 32px;
    box-sizing: border-box;
    margin-top: 40px;
    margin-left: 112px;
    margin-right: 32px;
}

.tree-nav-wrapper a {
    color: #ffffff;
    text-decoration: none;
}

.tree-nav__title {
    margin-top: 0;
    margin-bottom: 21px;
    font-size: 25px;
}


.tree-nav,
.tree-nav__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Основной уровень */
.tree-nav__item {
    height: 24px;
    position: relative;
    padding-left: 40px; /* место для иконки */
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 20px;
}
.tree-nav__item::after {
  content: "";
  position: absolute;
  bottom: 0;                  /* линия снизу */
  left: 0;
  width: 100%;                /* растянуть по всей ширине li */
  height: 1px;                /* толщина линии */
  background-color: #7EB6E4;  /* цвет линии */
  pointer-events: none;       /* чтобы линия не мешала клику */
}

.tree-nav__item::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url("/media/xehhbprj/frame-2608977.png");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}
.tree-nav__item.current{
    background-color: #7EB6E4;
}
/* Подменю */
.tree-nav__subitem {
    height: 24px;
    position: relative;
    padding-left: 64px; /* место для иконки */
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.tree-nav__subitem::after {
  content: "";
  position: absolute;
  bottom: 0;                  /* линия снизу */
  left: 0;
  width: 100%;                /* растянуть по всей ширине li */
  height: 1px;                /* толщина линии */
  background-color: #7EB6E4;  /* цвет линии */
  pointer-events: none;       /* чтобы линия не мешала клику */
}

.tree-nav__subitem::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 24px;
    width: 24px;
    height: 24px;
    background-image: url("/media/xehhbprj/frame-2608977.png");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
}
.tree-nav__subitem.current{
    background-color: #7EB6E4;
}

/* footer */
footer{
    height: 454px;                /* заданная тобой высота */
}
.footer-wrapper {
    display: flex;                 /* включаем горизонтальное размещение */
}
.footer-left{
    margin-top: 76px;
    margin-left: 158px;
}
.footer-left p{
    margin: 0px;
    font-size: 16px;        /* размер шрифта */
    font-weight: 600;       /* semi bold */
}
.footer-logo {
    margin-top: 32px;
}
.footer-middle{
    margin-top: 64px;
    margin-left: 195px;
}
.footer-nav ul {
    list-style: none;         /* Убираем маркеры */
    padding: 0;               /* Убираем внутренние отступы по умолчанию */
    margin: 0;
}
.footer-nav__item {
    margin-bottom: 16px;      /* Отступ между пунктами */
    font-size: 16px;          /* Размер шрифта */
    font-weight: 400;         /* Regular */
}
.footer-nav__link {
    color: inherit;              /* Наследует цвет от родителя (обычно белый или чёрный) */
    text-decoration: none;       /* Убирает подчёркивание */
    font-weight: 400;            /* Regular */
    font-size: 16px;             /* Размер, если нужно задать явно */
}
.footer-right{
    margin-top: 68px;
    margin-left: 195px;
}
.footer-right p{
    margin: 0px;
    font-size: 16px;        /* размер шрифта */
}
.footer-right ul {
    list-style: none;         /* Убираем маркеры */
    padding: 0;               /* Убираем внутренние отступы по умолчанию */
    margin: 0;
    display: flex;
    align-items: center;
    margin-top: 12px;
}
.umb-block-list{
    display: flex;
}
.footer-right li{
    margin-right: 16px;      /* Отступ между пунктами */
    font-size: 16px;          /* Размер шрифта */
    font-weight: 400;         /* Regular */
}
.footer-bottom{
    margin-left: 982px;
    margin-top: 130px;
}

/* standart page */
.content {
	display: flex;

	align-items: flex-start; /* выравнивание сверху */
	flex-wrap: wrap; /* если мало места, блоки уходят вниз */
}
.content-wrapper{
    width: 800px;
    margin-top: 40px;
    margin-bottom: 70px;
}
/* Блок с изображением */
.content-image img {
    width: 800px;
    height: 400px;
	display: block;
	object-fit: contain; /* сохраняет пропорции при сжатии */
    margin-bottom: 32px;
}
.content-text{
    width: 800px;
}

/* documents page  */
.documents-title{
    margin-top: 0;
    margin-bottom: 32px;
    font-size: 34px;
    font-weight: 400;
}
.documents-list {
    list-style: none; /* убираем стандартные маркеры */
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 400; /* Regular */
}

.documents-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px; /* отступ между элементами */
}

.documents-list li::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px; /* отступ от картинки до текста */
    background-image: url("/media/21fbevdl/fluent_document-pdf-20-regular.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.documents-list a {
    color: inherit;          /* убираем синий цвет у ссылок */
    text-decoration: none;   /* убираем подчёркивание */
    cursor: default;         /* делает ссылку похожей на текст (по желанию) */
    transition: color 0.3s;
}

.documents-list a:hover {
    color: #649AC6;
    cursor: pointer;         /* при наведении всё же лучше оставить pointer, чтобы понять, что это ссылка */
}


/* swiper */
/* Container styles */
.swiper {
    width: 1200px;
    height: 530px;
    margin-top: 40px;
}

/* Image styles */
.swiper-slide img {
    width: 100%;
    height: 490px;
    object-fit: cover; /* This makes the image fill the container while maintaining its aspect ratio. You can also use 'contain' if you prefer the whole image to be visible, with letterboxing if needed. */
}

/* Pagination styles */
.swiper-pagination {

}

.swiper-pagination-bullet {
    background: #AED8D8; /* Inactive color */
}

.swiper-pagination-bullet-active {
    background: #005656; /* Active color */
}

/* Navigation button styles */
.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: rgba(60, 68, 151, 0.5); /* Color 3C4497 with 50% transparency */
    border-radius: 4px; /* Optional: adds a slight curve to the corners */
    margin: 0; /* Remove default margin */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for perfect vertical centering */
}

/* Position of navigation buttons */
.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}

/* Styles for the arrow inside the button */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 12px;
    color: white; /* White arrow color */
}

/* Adjust the icons for the buttons */
.swiper-button-prev::after {
    content: '❮';
}

.swiper-button-next::after {
    content: '❯';
}

/* newslist */
.news-list .news-item {
    width: 800px;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.news-list .news-photo {
    max-width: 800px;
    max-height: 400px;
    object-fit: cover;
}

.news-list .news-header {
    width: 800px;
    height: 120px;
    background-color: #005656;
    color: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.news-list .news-title {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.news-list .news-date {
    font-size: 16px;
    font-weight: 400;
}

.news-list .news-body {
    width: 800px;
    font-size: 18px;
    font-weight: 400;
}
/* news block */
/* Document Title and button */
.news-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
  margin-top: 60px;
  width: 1215px;
  margin-left: 112px;
}

.all-news-button {
  width: 138px;
  height: 39px;
  background-color: #F3F3F3;
  color: #000000;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  border-radius: 4px;
}

/* news block */
.news-block {
  display: flex;
  justify-content: space-between;
  gap: 24px; /* Отступы между блоками */
  width: 1215px;
  margin-left: 112px;
}

.news-block .news-item {
  width: calc(33.33% - 16px); /* Располагаем 3 элемента в ряд, учитывая gap */
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.news-block .news-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 16px; /* Отступ между фото и следующим элементом */
}

.news-block .news-header {
  background-color: transparent; /* Убираем фоновый цвет */
  height: auto; /* Снимаем жестко заданную высоту */
  padding: 0; /* Убираем внутренние отступы */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit; /* Используем цвет текста родителя */
}

.news-block .news-title {
  font-size: 20px; /* Уменьшаем размер заголовка */
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
  margin-top: 12px; /* Отступ от даты */
  /* Обрезаем заголовок, если он слишком длинный */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Ограничиваем двумя строками */
}

.news-block .news-date {
  font-size: 16px;
  font-weight: 400;
  color: #555; /* Более мягкий цвет для даты */
  margin: 0;
}

.news-block .news-body {
  display: none; /* Скрываем этот блок, как вы и просили */
}
/* gallery */
.gallery-collage {
    column-count: 3;          /* три колонки */
    column-gap: 12px;         /* расстояние между колонками */
    max-width: 1215px;
    margin-top: 88px;
    margin-left: 112px;
}

.gallery-collage .documents-title {
    column-span: all;         /* заголовок занимает всю ширину */
    display: block;
    margin-bottom: 24px;      /* отступ вниз до картинок */
}

.gallery-item {
    break-inside: avoid;      /* предотвращает разрыв */
    margin-bottom: 12px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
/* Форма пожертвование */
/* Модальное окно (фон) */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Используем flexbox для центрирования содержимого */
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    overflow: auto; /* Позволяет прокручивать, если контент длиннее */
    background-color: rgba(0,0,0,0.4);
}

/* Контейнер для содержимого модального окна */
/* Styling for the modal's internal content */
.modal-content {
    /* ... (your existing styles for modal-content) */
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 5px;
    display: flex; /* Using flexbox for better button alignment */
    flex-direction: column; /* Stacks children vertically */
}

/* Image container styling */
#modalIndividual {
    margin: 0 auto; /* Centers the div horizontally */
    margin-top: 20px;
    width: 100%;
}

/* Image itself */
#modalIndividual img {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto; /* Equal left and right margins */
}

/* Styling for the text container */
.modal-text {
    padding: 20px 15px 0 15px; /* Top: 20px, Sides: 15px, Bottom: 0 */
}
.btnModal{
    display: flex;
    justify-content: space-between; /* Распределяет элементы по краям */
    align-items: center; /* Выравнивает кнопки по центру по вертикали */
}
/* Button container to align buttons to the bottom */
.modal-content button {
    margin-top: 20px; /* Top margin for all buttons */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    background-color: #3C4497; /* Button color */
    color: #fff; /* Button text color */
}

/* Specific button margins */
#btnDone {
    margin-left: 15px;
}

#btnCancel {
    margin-right: 15px;
}
/* Общие стили для label */
form label {
    display: block;
    font-size: 18px;
    font-weight: 400; /* Regular */
    line-height: 150%;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

/* Все input кроме чекбоксов */
form input:not([type="checkbox"]),
form textarea {
    width: 800px;
    border: 2px solid #7EB6E4;
    box-sizing: border-box;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    padding: 0 15px;
}

/* Текстовые input */
form input:not([type="checkbox"]) {
    height: 48px;
    text-align: left;
    vertical-align: middle;
}

/* Комментарий */
form textarea {
    height: 220px;
    resize: none;
}

/* Чекбокс */
form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;           /* убираем стандартный стиль */
    border: 2px solid #000;     /* рамка */
    border-radius: 4px;         /* Закругленные края (можно настроить) */
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 8px;
    vertical-align: -3px;     /* Для лучшего выравнивания с текстом */
}

/* Изображение при активном состоянии */
form input[type="checkbox"]:checked::after {
    content: ""; /* Убираем текстовый символ */
    position: absolute;
    top: -6px;      /* Настраиваем позицию по вертикали */
    left: -6px;     /* Настраиваем позицию по горизонтали */
    width: 30px;    /* Делаем шире */
    height: 30px;   /* Делаем выше */
    background-image: url('/media/lbyhkyfi/check-in-sqaure-2.png'); /* Укажите путь к изображению */
    background-size: contain;   /* Растягиваем изображение, чтобы оно поместилось */
    background-repeat: no-repeat; /* Не повторяем изображение */
    background-position: center; /* Центрируем изображение */
}

/* Текст чекбокса */
form label[for="acceptOffer"] {
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    display: inline-block;
    margin: 0;
}

/* Ссылка внутри чекбокса */
form label[for="acceptOffer"] a {
    color: inherit;
    text-decoration: underline;
}
form label[for="acceptOffer"] a:hover {
    color: #649AC6;
}

/* Текст офферты */
.offer-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    margin-top: 10px;
}
.donation-switcher{
    display: flex;
}
/* Кнопки переключения (Физ. лицо / Юр. лицо) */
.donation-switcher{
    gap: 30px;
}
.donation-switcher button {
    width: 385px;
    height: 40px;
    padding: 0px;
    /* border-radius: 19px; */
    border: 2.5px solid #3C4497;
    font-size: 20px;
    font-weight: 500; /* Medium */
    line-height: 150%;
    color: #fff;
    cursor: pointer;
}

/* Активная кнопка */
.donation-switcher button.active {
    background-color: #7EB6E4;
}

/* Неактивная */
.donation-switcher button:not(.active) {
    background-color: #3C4497;
}

/* Сабмит */
#submitIndividual,
#submitLegal {
    width: 800px;
    height: 73px;
    background-color: #3C4497;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    line-height: 150%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
}
.field-error {
    color: red;
}
