/*======================================================
                 ПОДКЛЮЧЕНИЕ ШРИФТОВ
=======================================================*/

/* Geologica */
@font-face {
    font-family: "Geologica";
    src: url("../fonts/Geologica/Geologica-Light.woff") format("woff"), url("../fonts/Geologica/Geologica-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Geologica";
    src: url("../fonts/Geologica/Geologica-Regular.woff") format("woff"), url("../fonts/Geologica/Geologica-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Geologica";
    src: url("../fonts/Geologica/Geologica-Medium.woff") format("woff"), url("../fonts/Geologica/Geologica-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Geologica";
    src: url("../fonts/Geologica/Geologica-SemiBold.woff") format("woff"), url("../fonts/Geologica/Geologica-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Geologica";
    src: url("../fonts/Geologica/Geologica-Black.woff") format("woff"), url("../fonts/Geologica/Geologica-Black.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
}

/* Lato */
@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-Light.woff") format("woff"), url("../fonts/Lato/Lato-Light.woff2") format("woff2");
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-Regular.woff") format("woff"), url("../fonts/Lato/Lato-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-Medium.woff") format("woff"), url("../fonts/Lato/Lato-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-SemiBold.woff") format("woff"), url("../fonts/Lato/Lato-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-Bold.woff") format("woff"), url("../fonts/Lato/Lato-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-LightItalic.woff") format("woff"), url("../fonts/Lato/Lato-LightItalic.woff2") format("woff2");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato/Lato-SemiboldItalic.woff") format("woff"), url("../fonts/Lato/Lato-SemiboldItalic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Roboto */

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto/Roboto-Regular.woff") format("woff"), url("../fonts/roboto/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/roboto/Roboto-Medium.woff") format("woff"), url("../fonts/roboto/Roboto-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

/*======================================================
                 КОНЕЦ ПОДКЛЮЧЕНИЯ ШРИФТОВ
=======================================================*/

/*======================================================
                 ПЕРЕМЕННЫЕ
=======================================================*/
:root {

    /*---------------------------
             Цвет текста
    ----------------------------*/
    --green: #78A956;
    --light-green: #89B868;
    --dark-green: #558931;
    --black-opacity-80: rgba(0, 0, 0, 0.8);
    --black-opacity-70: rgba(0, 0, 0, 0.7);
    --black-opacity-30: rgba(0, 0, 0, 0.3);
    --black-gradient-20: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(102, 102, 102, 0) 100%);
    --grey-opacity-30: rgba(239, 245, 249, 0.3);
    --grey-ton-06: #2F2F2F;
    --grey-ton-05: #4C4C4C;
    --grey-ton-04: #797979;
    --grey-ton-03: #A3A3A3;
    --grey-ton-02: #D9D9D9;
    --grey-ton-01: #EBEBEB;
    --red: #B90B0B;
    --light-red: #F1CDCD;
    --blue: #4E75FF;
    --light-blue: #7190FF;
}

/*======================================================
                 КОНЕЦ БЛОКА С ПЕРЕМЕННЫМИ
=======================================================*/
/*======================================================
                 ОБЩИЕ СТИЛИ
=======================================================*/
body {
    background-color: white;
    font-family: "Lato";
    font-size: 15px;
    color: black;
    box-sizing: border-box;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: black;
    cursor: pointer;
    outline: none;
    transition: opacity .3s ease-in-out;
    z-index: 9999;
    font-size: 2em;
    user-select: none;
    font-size: 40px;
}

.back-to-top:hover {
    color: var(--grey-ton-02);
}

.back-to-top:hover {
    opacity: 0.9;
}

/*======================================================
                 КОНЕЦ ОБЩИХ СТИЛЕЙ
=======================================================*/

/*======================================================
                 БЛОК С КНОПКАМИ
=======================================================*/
button {
    font-family: "Geologica";
    font-size: 18px;
    padding: 12.5px 64px;
    border-radius: 8px;
    color: white;
    border: none;
}

.btn-default {
    font-family: "Geologica";
    font-size: 18px;
    padding: 12.5px 64px;
    border-radius: 8px;
    color: white;
    border: none;
    background-color: black;
    text-decoration: none;
    text-align: center;
    text-wrap: nowrap;
}

.btn-default:hover {
    background-color: var(--grey-ton-05);
}

.btn-default:active {
    background-color: black;
}

/* Кнопка "Добавить героя" */
.btn-addPerson {
    font-family: "Geologica";
    font-size: 18px;
    padding: 12.5px 64px;
    border-radius: 8px;
    color: white;
    border: none;
    background-color: var(--green);
    text-decoration: none;
}

.btn-addPerson:hover {
    background-color: var(--light-green);
}

.btn-addPerson:active {
    background-color: var(--dark-green);
}

/* Иконки */
.btn-icon:hover path {
    fill: var(--grey-ton-05);
}

.btn-icon:active path {
    fill: black;
}

/* Кнопка поиска */
.btn-search-map {
    border-radius: 5px;
    padding: 0 20px;
    height: 48px;
    color: white;
    font-size: 22px;
    background-color: var(--green);
}

.btn-search-map:hover {
    background-color: var(--light-green);
}

.btn-search-map:active {
    background-color: var(--dark-green);
}

/*======================================================
                 HEADER
=======================================================*/
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 1000;
    font-family: "Lato";
    font-size: 18px;
    /* padding: 14px 230px; */
    padding: 14px 0;
    box-shadow: 0px 4px 20px 0px #0000001A;
    background-color: white;
    transition: padding 0.3s ease-in-out;
}

.header .logo-title {
    font-family: "Roboto";
    font-size: 28px;
    font-weight: 500;
    color: var(--grey-ton-06);
    transition: font-size 0.3s ease-in-out;
}

.header .logo-text {
    font-family: "Roboto";
    font-size: 20px;
    color: var(--green);
    transition: font-size 0.3s ease-in-out;
}

.header .icons {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 35px;
}

.header .icons a {
    display: flex;
    cursor: pointer;
}

.header .icons a svg path {
    transition: fill 0.1s ease-in-out;
}

.header .icons a:focus svg path {
    fill: var(--grey-ton-05);
}

.header .icons a:hover svg path {
    fill: var(--grey-ton-04);
}

/*-------------Меню--------------------*/

.header .navbar {
    max-width: 1460px;
    margin: auto;
}

.header .navbar-nav .nav-link {
    color: black;
}

.header .navbar-nav .nav-link:hover {
    color: var(--green);
}

.header .navbar-nav .nav-link.active {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 5px;
}

/*-------форма поиска-----------*/

.search-form {
    max-width: 300px;
    padding: 5px 16px;
    font-size: 18px;
    border-radius: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--grey-ton-01);
}

.search-form:hover {
    background-color: var(--grey-ton-02);
}

.search-form .form-control {
    font-size: 18px;
    color: var(--grey-ton-04);
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0;
}

.search-form .form-control:focus {
    color: var(--grey-ton-04);
    background-color: transparent;
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}

.search-form .btn-search {
    margin-left: 5px;
    padding: 0;
}

.search-form .btn-search i {
    font-size: 22px;
    color: var(--grey-ton-04);
}

/*======================================================
                 КОНЕЦ HEADER
=======================================================*/

/* =====================================================
                ОСНОВНОЙ КОНТЕНТ
=======================================================*/
.main {
    padding-top: 90px;
}

.info-block {
    position: relative;
    width: 100%;
    height: 100vh;
    color: white;
    padding: 80px 0;
    transition: padding 0.3s ease-in-out;
}

.info-block-title {
    font-family: "Geologica";
    color: black;
    font-weight: 600;
    font-size: 40px;
    margin: 0;
    z-index: 1;
}

.green-text {
    color: var(--green);
}

/* -----------Баннер--------------- */
.banner {
    background-image: url("/assets/image/banner.png");
    background-size: cover;
    background-repeat: no-repeat;
    height: calc(100vh - 110px);
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-opacity-70);
    z-index: 1;
}

.banner .banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    gap: 48px;
    z-index: 2;
    height: 100%;
    max-width: 1460px;
    margin: auto;
}

.banner .banner-title {
    font-family: "Geologica";
    font-size: 56px;
    font-weight: 900;
}

.banner .banner-text {
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    color: var(--grey-ton-01);
}

/* -----------Герои Бурятии--------------- */
.hero-block {
    display: flex;
    flex-direction: column;
    gap: 64px;
    transition: padding 0.3s ease-in-out;
    max-width: 1460px;
    margin: auto;
    padding: 160px 0;
    max-height: 1080px;
}

.hero-block .hero-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    height: 100%;
    max-height: 320px;
}

.hero-block .hero-photo .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.hero-block .profession {
    position: absolute;
    bottom: 31px;
    left: 0;
    color: white;
    font-size: 18px;
    padding: 4px 24px;
    background-color: var(--red);
    border-radius: 0 10px 10px 0;
    z-index: 2;
}

.hero-block .hero-name {
    font-size: 20px;
    color: black;
    transition: all 0.3s ease-in-out;
}

.hero-block .data-text {
    color: var(--grey-ton-04);
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

/*---------Карусель--------------*/
.hero-block .swiper {
    position: initial;
    width: 100%;
    height: 480px;
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: unset;
    top: unset;
}

.swiper-slide {
    max-width: 240px;
    text-align: center;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
}

.swiper-slide:hover .overlay {
    background-color: var(--black-opacity-30);
}

/* Пагинация */
.swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 1;
    background: var(--grey-ton-02);
}

.swiper-pagination-bullet-active {
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('/assets/image/pagination.png');
}


/* -----------Карта памяти--------------- */
.map-block {
    background-image: url("/assets/image/background-map.png");
    background-size: cover;
    background-repeat: no-repeat;
    max-height: 1080px;
}

.map-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--grey-opacity-30);
    z-index: 1;
}

.map-block .map-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: auto;
    max-width: 1460px;
}

/* Форма поиска */
.input-group {
    height: 48px;
}

.input-group .form-control {
    color: var(--grey-ton-03);
    border-radius: 5px;
    border-color: var(--green);
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--green);
}

.map-block .object-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 5px;
    width: 100%;
}

.map-block .object-list li {
    position: static !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    min-height: 130px;
    border-radius: 5px;
    border: 1px solid rgba(239, 239, 239, 1);
    background-color: white;
    cursor: pointer;
    transition: all 0.3 ease-in-out;
    color: black;
    transition: box-shadow 0.3s;
    flex-shrink: 0;
    margin: 0 16px 0 20px;
}

.map-block .object-list li:hover {
    box-shadow: 1px 4px 6px 0px rgba(34, 60, 80, 0.17);
}

.map-block .object-list li.selected:hover {
    box-shadow: none;
}

.map-block .object-list li.selected .object-address {
    color: var(--grey-ton-01);
}

.map-block .object-list li.selected {
    background-color: var(--green);
    color: white;
}

.map-block .object-title {
    font-weight: 400;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

.map-block .object-address {
    font-size: 18px;
    color: var(--grey-ton-03);
}

.map-block .nav-pills {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Скрытие / показ модального окна */
.hide-modal {
    display: none;
}

.show-modal {
    display: flex;
}

/*----------Меню------------*/
.map-block .nav-pills .nav-link {
    font-family: "Geologica";
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: none;
    width: auto;
    min-height: 48px;
    height: auto;
    color: var(--grey-ton-05);
    font-weight: 300;
    font-size: 15px;
    padding: 0 5px;
    cursor: pointer;
    background-color: white;
    box-shadow: 1px 4px 6px 0px rgba(34, 60, 80, 0.17);
    display: flex;
    gap: 6px;
    align-items: center;
}

.map-block .nav-pills .nav-link span {
    max-width: 125px;
}

.map-icons {
    width: 26px;
}

.map-block .nav-pills .nav-link:hover {
    background-color: var(--grey-ton-02);
}

.map-block .nav-pills .nav-link:active {
    background-color: var(--grey-ton-01);
}

.map-block .nav-pills .nav-link.active {
    color: white;
    background-color: black;
    font-weight: 500;
}

.modal-map {
    flex-direction: column;
    gap: 24px;
    position: absolute;
    max-width: 400px;
    min-width: 350px;
    max-height: calc(100% - 20px);
    top: 80px;
    right: 20px;
    background-color: var(--black-opacity-70);
    border-radius: 15px;
    color: white;
    font-size: 18px;
    padding: 32px;
    padding-right: 50px;
    z-index: 1;
}

.modal-map-title {
    font-size: 28px;
}

.modal-map .overflow-auto::-webkit-scrollbar {
    width: 8px;
}

.modal-map .overflow-auto::-webkit-scrollbar-thumb {
    background-color: var(--grey-ton-02);
    border-radius: 4px;
}

.modal-map .overflow-auto::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Стилизация для Firefox */
.modal-map .overflow-auto {
    scrollbar-width: thin;
    scrollbar-color: var(--grey-ton-02) transparent;
}

/* Кнопка закрытия модального окна */
.modal-map .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
}

.modal-map .close-btn:hover {
    color: var(--grey-ton-02);
}

.modal-map .object-link {
    background-color: white;
    border-radius: 5px;
    color: black;
    font-size: 18px;
    padding: 3px 14px;
    transition: all 0.3 ease-in-out;
    text-decoration: none;
}

.modal-map .object-link:hover {
    background-color: var(--grey-ton-01);
}

.object-list-block {
    display: none;
    flex-direction: column;
    height: calc(100% - 64px - 35px);
    max-height: calc(100% - 64px - 35px);
    background-color: white;
    padding-top: 20px;
    border-radius: 10px;
    box-shadow: 1px 4px 6px 0px rgba(34, 60, 80, 0.17);
    position: relative;
}

.hide-link {
    cursor: pointer;
    background-color: white;
    color: var(--green);
    bottom: 0;
    padding: 10px 0 20px 0;
    width: 100%;
}

.hide-link:hover {
    color: var(--light-green);
}

.hide-link:active {
    color: var(--dark-green);
}

.object-count {
    height: calc(100% - 24px);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--grey-ton-05);
    text-align: center;
}

/* Карта */
[class*=ymaps][class*=-ground-pane] {
    filter: grayscale(1);
    -ms-filter: grayscale(1);
    -webkit-filter: grayscale(1);
    -moz-filter: grayscale(1);
    -o-filter: grayscale(1);
}

.map-block #map {
    border-radius: 10px;
    z-index: 4;
}

#block-hidden {
    opacity: 1;
    z-index: 15;
    top: 0;
    left: 0;
    transition: opacity 0.8s;
}

#block-menu {
    z-index: 5;
    right: 0;
    top: 0;
}

/* -----------Сохраняя память--------------- */
.memory-block {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: 1460px;
    margin: auto;
    padding: 120px 0;
}

.memory-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px 40px;
    width: 100%;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey-ton-01);
    color: black;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.5s cubic-bezier(.25, .8, .25, 1), visibility 0.5s linear;
    height: 100%;
    text-decoration: none;
}

.overlay-text h3 {
    font-size: 28px;
    font-weight: 400;
}

.overlay-text p {
    font-weight: 300;
    font-size: 20px;
    display: -webkit-box;
    overflow: hidden;
    word-break: break-word;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

.memory-item-block:hover .memory-item {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(.25, .8, .25, 1);
}

.memory-item-block:hover .overlay-text {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(.25, .8, .25, 1);
}

.memory-item {
    width: 100%;
    min-height: 270px;
    height: 100%;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: end;
    padding: 24px;
    text-decoration: none;
    transition: opacity 0.5s cubic-bezier(.25, .8, .25, 1);
}

.memory-item-block {
    position: relative;
    display: inline-block;
    cursor: pointer;
    max-height: 300px;
}

.memory-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-opacity-80);
    z-index: 1;
    border-radius: 10px;
}

.memory-item-title {
    font-size: 28px;
    font-weight: 400;
}

/* -----------О проекте--------------- */
.about-project {
    height: auto;
    background-image: url("/assets/image/background-map.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.about-project-container {
    margin: auto;
    max-width: 1460px;
}

.about-project-container img {
    border-radius: 10px;
}

.about-project-title {
    color: black;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-project-text {
    font-size: 20px;
    font-weight: 400;
    padding: 0;
    margin: 0;
    color: var(--grey-ton-05);
    text-align: justify;
}

/* -----------Footer--------------- */
.footer {
    height: auto;
    background-color: var(--grey-ton-06);
}

.footer .container {
    margin: auto;
    max-width: 1460px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-title {
    font-family: 'Geologica';
    font-size: 30px;
    font-weight: 400;
}

.footer .navbar-nav .nav-link {
    font-size: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.footer .navbar-nav .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.footer .email-link {
    font-weight: 500;
    color: var(--blue);
    text-decoration: none;
}

.footer .email-link:hover {
    color: var(--light-blue);
}

.footer .email-link:active {
    color: var(--blue);
}

.footer a {
    color: white;
}

.footer a:hover {
    color: var(--grey-ton-02);
}

.footer a:active {
    color: var(--grey-ton-03)
}

.footer .icons {
    display: flex;
    align-items: end;
    justify-content: end;
    gap: 16px;
    padding: 0;
}

.footer .icons a svg path {
    transition: fill 0.1s ease-in-out;
}

.footer .icons a:hover svg path {
    fill: var(--grey-ton-02);
}

.footer .icons a:focus svg path {
    fill: var(--grey-ton-03);
}

/*--------------------------------
    Стили для детальной страницы   
--------------------------------*/
.main-detail {
    padding-top: 90px;
}

.main-detail .info-block {
    max-height: 100%;
    height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
    max-width: 1460px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 64px;

}

.detail-page-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 45px;
    justify-items: center;
}

.page-detail {
    height: auto;
    background-image: url('/assets/image/background-map.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.page-detail-container {
    display: flex;
    flex-direction: column;
    gap: 64px;
    color: var(--grey-ton-06);
}

.page-detail a {
    color: black;
    text-decoration: none;
    font-size: 18px;
}

.page-detail .page-detail-title {
    font-family: "Geologica";
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 32px;
}

.page-detail .detail-block-title {
    font-size: 32px;
    color: black;
    font-weight: 400;
    margin-bottom: 16px;
}

/*----------------------------------
       Страница список героев
-----------------------------------*/
.main-detail .info-block .hero-photo {
    min-height: 320px;
}

.hero-item {
    position: relative;
    max-width: 240px;
    text-align: center;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
}

.hero-item:hover .overlay {
    background-color: var(--black-opacity-30);
}

.hero-content {
    font-size: 20px;
    color: black;
    text-align: justify;
}

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-detail .data-text {
    font-size: 20px;
    color: var(--grey-ton-04);
    margin: 0;
}

/* Форма поиска */
.form .form-control {
    color: var(--grey-ton-04);
    border-radius: 8px;
    border: none;
    background-color: var(--grey-ton-01);
    font-size: 20px;
    padding: 12px 24px;
}

.form .form-control:hover {
    background-color: var(--grey-ton-02);
}

.form .form-control:focus {
    box-shadow: none;
}

/*----------------------------------
       Форма Добавить Героя
-----------------------------------*/

.form-add {
    margin: auto;
    max-width: 660px;
    display: flex;
    gap: 40px;
    flex-direction: column;
}

.form-add h1 {
    font-family: "Geologica";
    font-size: 30px;
    font-weight: 500;
    color: black;
}

.form-add .form-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-add .form-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--grey-ton-05);
    font-size: 18px;
}

.form-add .form-block .form-block-title {
    margin: 0;
    font-size: 20px;
    color: black;
}

.form-block .form-control {
    padding: 12px 24px;
    background-color: var(--grey-ton-01);
    color: var(--grey-ton-04);
    font-size: 20px;
    border: none;
    transition: all 0.3s;
}

.form-block .form-control:hover {
    background-color: var(--grey-ton-02);
}

.form-block .form-control:focus {
    box-shadow: none;
}

.form-container .form-check-input {
    width: 20px;
    height: 20px;
    border-color: black;
}

.form-container .form-check-input:checked {
    background-color: black;
}

.form-container .form-check-input:focus {
    border-color: black;
    box-shadow: none;
}

.form-container .form-check-label {
    font-size: 18px;
    color: black;
}

.dropzone {
    border-radius: 10px;
    border: 1px dashed var(--grey-ton-04);
    color: var(--grey-ton-04);
    font-size: 15px;
}

.dropzone:hover {
    border-color: var(--grey-ton-06);
    color: var(--grey-ton-05);
}

.dropzone i {
    font-size: 42px;
}

.dropzone .dropzone-title {
    font-size: 18px;
    font-weight: 400;
}

.required::after {
    content: " *";
    top: 0;
    right: 0;
    color: red;
}

/*----------------------------------
       Детальная страница Героя
-----------------------------------*/
.hero-image img {
    border-radius: 10px;
}

.personal-info-block {
    display: flex;
    gap: 40px;
}

.personal-info-text {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.personal-info-text .table>:not(caption)>*>* {
    background-color: transparent;
}

.personal-info-text .table th {
    font-size: 18px;
    font-weight: 400;
    color: var(--grey-ton-04);
}

.personal-info-text .table tr {
    color: black;
    font-size: 20px;
}

.detail-page-text p {
    text-align: justify;
    font-weight: 300;
    font-size: 20px;
}

.detail-page-text blockquote {
    font-weight: 300;
    font-style: italic;
    font-size: 22px;
    color: var(--grey-ton-05);
    display: block;
    text-align: center;
    width: 100%;
    padding: 48px;
    background-color: white;
    border-left: 8px solid var(--green);
    margin: 24px 0;
}

.detail-page-text cite {
    display: block;
    font-weight: 600;
    font-size: 22px;
    font-style: italic;
    color: var(--grey-ton-04);
    text-align: end;
    margin-top: 16px;
}

.detail-page-text cite::before {
    content: '—';
    margin-right: 5px;
    font-size: inherit;
    font-family: inherit;
    vertical-align: middle;
}

.detail-page-text a {
    color: var(--green);
    text-decoration: underline;
    font-weight: 300;
}

.detail-page-text a:hover {
    color: var(--dark-green);
}

/* ----------------------------
   Блок с галереей
-----------------------------*/
.gallery-container .gallery-block {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    justify-items: stretch;
}

.gallery-container .gallery-block img {
    width: auto;
    height: auto;
    max-height: 220px;
}

.lightgallery {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: rgb(201 201 201 / 37%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightgallery .overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black-opacity-30);
    color: white;
    font-size: 24px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.lightgallery:hover .overlay {
    visibility: visible;
    opacity: 1;
}

/* --------------------------------
  Страница Сохраняя память
---------------------------------*/
.detail-page-list .memory-item-block {
    min-width: 270px;
}

/* --------------------------------
  Страница c поиском
---------------------------------*/
.search-block {
    color: black;
    font-size: 18px;
}

.search-results-count {
    color: black;
    font-size: 18px;
}

.search-result {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.search-result .search-result-item {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #EFEFEF;
    padding: 20px 40px;
    text-decoration: none;
    color: black;
    font-size: 20px;
    background-color: white;
}

.search-result .search-result-item:hover {
    box-shadow: 1px 4px 6px 0px rgba(34, 60, 80, 0.17);
}

/* -----------Адаптация--------------- */

/* мобильные устройства */
@media screen and (max-width: 343px) {
    .header .logo-text {
        display: none;
    }
}

@media screen and (max-width: 470px) {
    .swiper-slide {
        width: 100%;
        max-width: 100%;
        padding-left: calc((100% - 240px) / 2);
        padding-right: calc((100% - 240px) / 2);
    }
}
@media screen and (max-width: 1640px) {
    .map-block .nav-pills .nav-link .map-icons {
        display: none;
    }
}
@media screen and (max-width: 359px) {
    .modal-map {
        max-width: 400px;
        min-width: auto;
    }

    .memory-container,
    .gallery-container .gallery-block {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 100%;
        max-width: 320px;
    }

    .navbar-brand img {
        width: 50px;
    }

    .navbar-toggler-icon {
        width: 25px;
        height: 25px;
    }

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .hero-block,
    .memory-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block {
        margin: 0;
        padding-left: 25px;
        padding-right: 25px;
        max-width: 100%;
    }

    .hero-block {
        gap: 35px;
    }

    /* Размер шрифта */
    .banner .banner-title {
        font-size: 34px;
    }

    .info-block-title {
        font-size: 30px;
    }

    .memory-item-title,
    .modal-map-title,
    .hero-block .hero-name,
    .about-project-title {
        font-size: 18px;
    }

    button,
    .btn-default,
    .hero-block .profession,
    .hero-block .data-text,
    .modal-map-text,
    .header .logo-title,
    .banner .banner-text,
    .map-block .object-address,
    .modal-map .object-link,
    .about-project-text {
        font-size: 16px;
    }

    .header .logo-text {
        font-size: 14px;
    }

    /* Отступы */
    .btn-addPerson,
    .btn-default {
        padding: 12.5px 25px;
    }

    .hero-block,
    .memory-block {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media screen and (min-width: 360px) and (max-width: 425px) {
    .modal-map {
        max-width: 400px;
        min-width: auto;
    }

    .memory-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .navbar-brand img {
        width: 50px;
    }

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .hero-block,
    .memory-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block {
        margin: 0;
        padding-left: 30px;
        padding-right: 30px;
        max-width: 100%;
    }

    /* Размер шрифта */
    .banner .banner-title {
        font-size: 34px;
    }

    .info-block-title {
        font-size: 30px;
    }

    .memory-item-title,
    .modal-map-title,
    .hero-block .hero-name,
    .header .logo-title,
    .about-project-title {
        font-size: 18px;
    }

    button,
    .btn-default,
    .hero-block .profession,
    .hero-block .data-text,
    .modal-map-text,
    .banner .banner-text,
    .map-block .object-address,
    .modal-map .object-link,
    .about-project-text {
        font-size: 16px;
    }

    .header .logo-text {
        font-size: 14px;
    }

    /* Отступы */
    .btn-default {
        padding: 12.5px 35px;
    }

    .hero-block {
        gap: 35px;
    }

    .hero-block,
    .memory-block {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media screen and (min-width: 426px) and (max-width: 586px) {

    .navbar-brand img {
        width: 58px;
    }

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .hero-block,
    .memory-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block {
        margin: 0;
        padding-left: 30px;
        padding-right: 30px;
        max-width: 100%;
    }

    /* Размер шрифта */
    .banner .banner-title {
        font-size: 36px;
    }

    .info-block-title {
        font-size: 30px;
    }

    .header .logo-title {
        font-size: 20px;
    }

    .overlay-text h3,
    .memory-item-title,
    .modal-map-title,
    .hero-block .hero-name,
    .banner .banner-text {
        font-size: 18px;
    }

    button,
    .btn-default,
    .hero-block .profession,
    .hero-block .data-text,
    .overlay-text p,
    .modal-map-text,
    .header .logo-text,
    .map-block .object-address,
    .modal-map .object-link {
        font-size: 16px;
    }

    /* Отступы */
    .btn-default {
        padding: 12.5px 48px;
    }

    .hero-block {
        gap: 35px;
    }

    .memory-block,
    .hero-block {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .memory-container div {
        flex-basis: 100%;
    }
}

/* планшетные экраны */
@media screen and (min-width: 587px) and (max-width: 768px) {

    /* Размеры шрифтов */
    .banner .banner-title {
        font-size: 40px;
    }

    .info-block-title {
        font-size: 34px;
    }

    .header .logo-title {
        font-size: 22px;
    }

    .about-project-title {
        font-size: 20px;
    }

    .memory-item-title,
    .modal-map-title,
    .overlay-text h3,
    .hero-block .hero-name,
    .banner .banner-text,
    .about-project-text {
        font-size: 18px;
    }

    .overlay-text p,
    .modal-map-text,
    .hero-block .profession,
    .hero-block .data-text,
    .header .logo-text,
    .map-block .object-address,
    .modal-map .object-link {
        font-size: 16px;
    }

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .memory-block,
    .hero-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block {
        margin: 0;
        padding-left: 80px;
        padding-right: 80px;
        max-width: 100%;
    }

    .hero-block {
        gap: 35px;
    }

    .hero-block,
    .memory-block {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .memory-container div {
        flex-basis: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    .banner .banner-title {
        font-size: 50px;
    }

    .info-block-title {
        font-size: 34px;
    }

    .header .logo-title {
        font-size: 24px;
    }

    .overlay-text h3,
    .banner .banner-text {
        font-size: 20px;
    }

    .memory-item-title,
    .modal-map-title,
    .overlay-text p,
    .header .logo-text {
        font-size: 18px;
    }

    .map-block .object-address,
    .modal-map .object-link {
        font-size: 16px;
    }

    .hero-item,
    .swiper-slide,
    .modal-map-text {
        gap: 16px;
    }

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .memory-block,
    .hero-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block {
        margin: 0;
        padding-left: 110px;
        padding-right: 110px;
        max-width: 100%;
    }

    .hero-block,
    .memory-block {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-block {
        gap: 35px;
    }

    .memory-container div {
        flex-basis: calc(50% - 40px);
    }
}

/* ноутбуки и небольшие мониторы */

@media screen and (min-width: 993px) and (max-width: 1545px) {
    .header .logo-title {
        font-size: 26px;
    }

    .overlay-text h3,
    .memory-item-title,
    .modal-map-title {
        font-size: 20px;
    }


    .header .logo-text,
    .overlay-text p,
    .map-block .object-title {
        font-size: 18px;
    }

    .map-block .object-address,
    .modal-map .object-link,
    .modal-map-text {
        font-size: 16px;
    }

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .hero-block,
    .memory-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block {
        margin: 0;
        padding-left: 150px;
        padding-right: 150px;
        max-width: 100%;
    }

    .hero-block {
        padding-top: 90px;
        padding-bottom: 90px;
        gap: 25px;
    }

    .memory-block {
        padding-top: 80px;
        padding-bottom: 80px;
    }

}

@media screen and (min-width: 1546px) and (max-width: 1940px) {

    .header .navbar,
    .banner .banner-content,
    .map-block .map-container,
    .memory-block,
    .hero-block,
    .about-project-container,
    .footer .container,
    .main-detail .info-block,
    .map-block.--alternative .map-container {
        margin: 0;
        padding-left: 230px;
        padding-right: 230px;
        max-width: 100%;
    }
}