/* Определение пользовательских шрифтов */
@font-face {
    font-family: Proximanova_regular;
    src: url(../fonts/ProximaNova/proximanova_regular.ttf);
}
@font-face {
    font-family: Russ_regular;
    src: url(../fonts/RussRegular/RussRegular.ttf);
}
@font-face {
    font-family: Playfair_regular;
    src: url(../fonts/Playfair_Display/static/PlayfairDisplay-Regular.ttf);
}

/* Стили для иконок соцсетей */
.vk-icon {
    background-image: url('../media/social/vk_logo.svg');
    background-repeat: no-repeat;
}
.rutube-icon_05 {
    background-image: url('../media/social/rutube-logo@0,52x.svg');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    background-size: contain;
    border-radius: 3px;
    display: inline-block;
}
.rutube-icon {
    background-image: url('../media/social/rutube-logo.svg');
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    background-size: contain;
    border-radius: 3px;
    display: inline-block;
}
.youtube-icon {
    background-image: url('../media/social/youtube_logo.svg');
    background-repeat: no-repeat;
}
.temple-icon {
    background-image: url('../media/social/church_small.svg');
    background-repeat: no-repeat;
}
.email-icon {
    background-image: url('../media/social/mail_small.svg');
    background-repeat: no-repeat;
}
.phone-number-icon {
    background-image: url('../media/social/phone_small.svg');
    background-repeat: no-repeat;
}

/* Стили логотипов */
.brand-logo {
    background-image: url('../media/social/logo_Serafim.png');
    background-repeat: no-repeat;
    width: 250px;
    height: 255px;
}
.seraphim-logo {
    background-image: url('../media/social/logo_footer-2.png');
    background-repeat: no-repeat;
    width: 250px;
    height: 255px;
}

/* Разделители */
.large-divider {
    background-image: url('../media/social/church-line-big.svg');
    background-repeat: no-repeat;
}
.small-divider {
    background-image: url('../media/social/church-line.svg');
    background-repeat: no-repeat;
}

/* Размеры иконок */
.icon-12px { width: 12px; height: 12px; }
.icon-14px { width: 14px; height: 14px; }
.icon-14px-8px { width: 14px; height: 8px; }
.icon-16px { width: 16px; height: 16px; }
.icon-19px { width: 19px; height: 19px; }
.icon-20px-min { min-width: 20px; min-height: 20px; }
.icon-21px { width: 21px; height: 21px; }
.small-icon { width: 24px; height: 24px; cursor: pointer; }
.medium-icon { width: 30px; height: 30px; }

/* Основные стили страницы */
body {
    font-family: Playfair_regular;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #EEE;
}

h1.title, h2.title {
    font-family: "Playfair_regular";
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    margin-block-start: 0px;
  }

header, main, footer { min-width: 1440px; }
main { flex-grow: 3; }
main .content { height: 100%; }
main aside {
    width: 320px;
    border-right: 1px solid #D4C9BD;
    padding-right: 60px;
}
footer { margin-top: auto; }

/* Стили боковой панели */
aside .divider-title {
    margin-bottom: 28px;
    margin-top: 50px;
}
aside ul.aside-menu {
    margin: 0px;
    margin-bottom: 50px;
    padding-left: 20px;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 0.01em;
    color: #223338;
}
aside ul.aside-menu li {
    margin-bottom: 20px;
    cursor: pointer;
}
aside ul.aside-menu li:hover a,
aside ul.aside-menu li.active a {
    color: #009ed1 !important;
}

/* Стили контента */
.page-content { width: 879px; }
.page-content .docs-title {
    font-family: Proximanova_regular;
    font-size: 30px;
    font-weight: 600;
}
.content, .header {
    max-width: 1440px;
    margin: 0 auto;
    background: #F9F6F2;
}
.header { min-height: 550px; }
.text-underline {
    text-decoration: underline;
    text-decoration-thickness: from-font;
}

/* Стили шапки */
.header .contact-info {
    display: flex;
    font-size: 20px;
    color: #223338;
    gap: 35px;
    padding-top: 35px;
    justify-content: end;
    padding-right: 60px;
}
.header .contact-info div { display: flex; gap: 10px; }
.header .main-area {
    display: flex;
    margin: 85px auto;
    width: 790px;
}
.main-area .brand-logo { cursor: pointer; }
.header .title-area { display: flex; flex-direction: column; justify-content: center; }
.header .title-area .title {
    font-family: Playfair_regular;
    font-size: 50px;
    border-bottom: 1px solid #D4C9BD;
    color: #121B1E;
    width: fit-content;
    font-weight: 500;
    width: 555px;
}
.header .title-area .subtitle {
    color: #223338;
    font-weight: 600;
    font-size: 24px;
    padding-top: 15px;
}

/* Навигация */
.header .navigation-header {
    background: rgba(0, 0, 0, 0.7);
    height: 95px;
    padding: 0 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .navigation-header-right {
    display: flex;
    gap: 40px;
    align-items: center;
}
.header .navigation-header-right div { cursor: pointer; }
nav {
    position: relative;
    color: #223338;
    display: flex;
    font-size: 20px;
    font-weight: 700;
    margin: 0 60px;
}
nav div {
    padding: 10px 16px;
    cursor: pointer;
    margin-right: 3px;
}
nav div:hover, nav div.active {
    color: #FFFFFF !important;
    background-color: #C4B6A8;
}
nav .nav-button-search {
    position: absolute;
    top: -5px;
    right: 0;
    margin-left: auto;
}
.nav-button-search {
    border: 1px solid #D4C9BD;
    border-radius: 5px;
    width: 100px;
    height: 54px;
    font-size: 18px;
    background: url('../media/social/search.svg') no-repeat scroll 35px 13px;
    cursor: pointer;
}
.nav-button-search:hover, .nav-button-search.active {
    background: url('../media/search-white/search-white.svg') no-repeat scroll 35px 13px;
    background-color: #D4C9BD;
}

/* Завершающие элементы шапки */
.header .header-end {
    height: 45px;
    position: relative;
    margin: 13px 60px 0px;
}
.header .header-end .divider {
    height: 1px;
    background-color: #C4B6A8;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.header .header-end .crest {
    width: 35px;
    height: 45px;
    margin: 0 auto;
}
.header .header-end .cross-symbol {
    width: 46px;
    height: 44px;
    position: absolute;
    top: 0px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    background-color: #F9F6F2;
    border-radius: 10px;
}

.decoration-icon {
    background-image: url('../media/mark-icon/5.png');
    background-repeat: no-repeat;
  }

/* Основной контент */
.search-page .breadcrumb-nav { padding-left: 0px; }
main .content .main {
    padding: 60px;
    display: row;
    flex-direction: row-reverse;
    gap: 60px;
    min-height: 60px;
}
main .content .main-without-spacing { padding: 0 60px; }
main article {
    width: auto;
    padding-right: 40PX;
}

/* Подвал */
.footer {
    min-height: 350px;
    max-width: 1320px;
    background: #E8E0D7;
    padding: 0 60px;
    color: #4A4039;
    margin: 0 auto;
}
.footer .footer-links {
    height: 251px;
    display: flex;
    justify-content: space-between;
}
.footer .footer-links > div { margin: 60px 0 40px 0; }
.footer .footer-links a {
    font-size: 22px;
    text-decoration: underline;
    text-decoration-thickness: from-font;
    cursor: pointer;
    margin: 0;
    color: #4A4039;
}
.footer .footer-links .column { display: grid; }
.footer .footer-links .contact-info { width: auto; display: grid; }
.footer .footer-links .contact-info .social-networks {
    width: 170px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.footer .footer-links .contact-info .social-networks a { display: contents; }

/* Социальные сети */
.social-networks { display: flex; gap: 15px; }

/* Кнопка архива */
.footer .footer-links .contact-info .archive-button {
    height: 45px;
    width: 219px;
    color: white;
    background-color: #C4B6A8;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    margin-bottom: 5px;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.footer .footer-links .contact-info .archive-button:hover {
    background-color: #A89A8C;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Логотип в подвале */
.footer .footer-links .logo {
    width: 213px;
    height: 220px;
    background-image: url('../media/social/logo_footer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Информация о правах */
.footer .rights-info-section {
    height: 77px;
    line-height: 77px;
    border-top: 1px solid #4A4039;
    border-bottom: 1px solid #4A4039;
    font-size: 22px;
}
.footer .rights-info {
    height: 80px;
    line-height: 80px;
    font-size: 16px;
    position: relative;
}

/* Плавающая кнопка */
.footer .fab {
    background-image: url('../media/social/floating_button.svg');
    position: absolute;
    width: 46px;
    height: 46px;
    top: 16px;
    right: 0;
    cursor: pointer;
    background-color: white;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Стили для плавающей кнопки в подвале */
.footer .fab:hover {
    background-color: #f0f0f0; /* Изменение цвета фона при наведении */
    transform: scale(1.1); /* Легкое увеличение кнопки */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}
.footer .fab:active {
    transform: scale(0.9); /* Кнопка слегка уменьшается при нажатии */
}

/* Навигационная цепочка (хлебные крошки) */
.breadcrumb-nav {
    width: 940px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: #005672;
    padding-left: 60px;
}

/* Стили для разделителей с заголовками */
.divider-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Russ_regular;
    font-size: 40px;
    text-align: center;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #121B1E;
}
.divider-title .small-divider,
.divider-title .large-divider {
    width: 33%;
    height: 17px;
    margin-bottom: 14px;
}
article .divider-title {
    margin-bottom: 45px;
    width: 879px;
}
.divider-title.wide {
    gap: 10px;
}
.divider-title.wide .large-divider,
.divider-title.wide .neutral-divider {
    flex-grow: 1;
    width: unset;
}
.neutral-divider {
    height: 1px;
    background-color: #9D9D9D;
    width: 33%;
}

/* Стили для изображений */
.image {
    display: flex;
    justify-content: center;
    margin: 50px 0 25px;
    position: relative;
}
.image img {
    max-width: 100%;
    height: 100%;
    margin: 0 15px 15px 0;
}

/* Стили текста статьи */
.article-text {
    font-size: 24px;
    margin-left: 40px;
    padding-bottom: 100px;
    position: relative;
    text-align: justify;
}
.article-text ul {
    list-style-image: url('../media/social/check-solid.svg');
}
ul li {
    margin-bottom: 25px;
}
.article-text a {
    color: #009ED1;
    text-decoration: none;
}
.article-text .list-image-icon,
.article-text .list-image-single-icon {
    position: absolute;
    left: -40px;
}
.article-text iframe {
    width: 100%;
}

/* Гибкие контейнеры */
.flex-box {
    display: flex;
    flex-wrap: wrap;
    gap: 45px;
}
.flex-box-33px {
    display: flex;
    flex-wrap: wrap;
    gap: 33px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .grid-item {
    break-inside: avoid; /* Предотвращает разрыв элементов между колонками */
  }
  
  

/* Ссылки */
a, p a span {
    color: #A89A8C;
    font-size: 20px;
}

/* Стили плиток */
.tile {
    position: relative;
    background: #FFFFFF;
    box-shadow: 3px 7px 18px rgb(0 0 0 / 25%);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}
.tile .tile-title {
    font-family: Playfair_regular;
    font-style: normal;
    font-weight: bold;
    font-size: 22px;
    color: #121B1E;
    text-align: center;
}
.tile .tile-text {
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    color: #223338;
    padding: 5px 0;
    text-align: justify;
}
.tile .tile-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tile .tile-image img {
    max-height: 100%;
    max-width: 100%;
}
.tile .tile-share {
    width: 14px;
    height: 18px;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 13px;
    right: 14px;
    cursor: pointer;
}
.tile .tile-meta {
    display: flex;
    justify-content: space-around;
    margin-bottom: -7px;
}
.tile .tile-meta a {
    z-index: 3;
}

/* Стили тегов и дат */
.tile .date-tag,
.tile .tile-meta .tile-tag-text {
    color: #009ED1;
    font-family: sans-serif;
    font-size: 17px;
    line-height: 35px;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}
.tile .date-tag::after,
.tile .tile-meta .tile-tag-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #009ED1;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.tile .date-tag:hover,
.tile .tile-meta .tile-tag-text:hover {
    color: #0077A8;
}
.tile .date-tag:hover::after,
.tile .tile-meta .tile-tag-text:hover::after {
    transform: scaleX(1);
}
.tile .date-tag {
    text-decoration: none;
}

/* Особые стили для плиток */
#news-container .tile.featured-tile .tile-image {
    cursor: pointer;
}
.tile.featured-tile {
    width: 839px;
    height: 652px;
    padding: 20px;
}
.tile.featured-tile .tile-title {
    font-size: 24px;
    margin-bottom: 20px;
}
.tile.featured-tile .tile-text {
    font-size: 22px;
}
.tile.top
-tile {
    width: 387px;
    max-height: 487px;
    cursor: pointer;
    padding-bottom: 30px;
}
.tile.regular-tile {
    width: 849px;
    display: flex;
    cursor: pointer;
}
.tile.regular-tile .tile-image {
    flex: 0 0 280px;
}
.tile.top
-tile .tile-text,
.tile.top
-tile .tile-title,
.tile.regular-tile .tile-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 22px;
}
.tile.regular-tile .tile-text {
    max-height: 59px;
    margin-right: 7px;
}
.tile.top
-tile .tile-text {
    max-height: 81px;
}
.tile.top
.tile .tile-title {
    max-height: 66px;
    margin-top: 15px;
    padding-bottom: 3px;
}

/* Стили кнопок поиска */
.search-button {
    display: flex;
    margin: 5px auto;
    font-family: Playfair_regular;
    font-size: 20px;
    padding: 20px 19px;
    color: #FFFFFF;
    background: #D4C9BD;
    box-shadow: 3px 5px 11px rgba(94, 105, 109, 0.5);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-button:hover {
    background: #C0B4A7;
    box-shadow: 3px 5px 15px rgba(94, 105, 109, 0.7);
    transform: translateY(-2px);
}
.search-button:active {
    transform: translateY(1px);
    box-shadow: 2px 3px 8px rgba(94, 105, 109, 0.5);
}
.search-button-outlined {
    background: #FFFFFF;
    border: 1px solid #D4C9BD;
    border-radius: 3px;
    font-family: 'Playfair_regular';
    font-size: 14px;
    color: #223338;
    cursor: pointer;
    padding: 8px 26px 9px;
    display: flex;
    margin: 0 auto;
}

/* Основной контент и боковая панель */
.main-content {
    flex-grow: 1;
    width: 940px;
    border-right: 1px solid #D4C9BD;
    padding-right: 60px;
}
.sidebar {
    width: 320px;
    position: sticky;
    top: 20px;
    flex-shrink: 0;
    padding-left: 40px;
}
.sidebar-widget .search-button-outlined {
    margin: 0 auto;
}
.sidebar-widget .framed-tile {
    padding: 15px 19px;
    margin-bottom: 20px;
}
.sidebar-widget .framed-tile .title {
    font-size: 18px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.sidebar-widget .framed-tile img {
    padding: 15px 0px;
}
.sidebar-widget .framed-tile .subtitle {
    font-family: 'Playfair_regular';
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Видео в плитках */
.tile.featured-tile .tile-video {
    height: 385px;
}
.tile.top
-tile .tile-video {
    height: 193px;
}
.tile .tile-image .tile-video {
    width: 100%;
    margin-bottom: 15px;
}

/* Обрамленные плитки */
.framed-tile {
    background: #FFFFFF;
    border: 1px solid #D4C9BD;
    box-sizing: border-box;
    border-radius: 5px;
    width: 320px;
    padding-bottom: 15px;
    text-align: center;
    color: #121B1E;
}
aside .framed-tile {
    margin-bottom: 30px;
}
.framed-tile img {
    padding-bottom: 25px;
}
.framed-tile.notice {
    height: 406px;
    width: 320px;
    cursor: pointer;
    padding: 15px;
}
.framed-tile.notice img {
    padding-top: 0px;
    padding-bottom: 20px;
    width: 280Px;
    height: auto;
}
.framed-tile .notice-title {
    font-weight: bold;
    font-size: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 27px;
}
.framed-tile.clergy {
    width: 270px;
    position: relative;
    font-family: 'Playfair_regular';
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.framed-tile.clergy img {
    padding-bottom: 0px;
    padding-top: 15px;
}
.framed-tile.clergy .person-name {
    padding: 10px 20px;
    font-weight: bold;
    font-size: 22px;
    line-height: 29px;
    color: #101010;
}
.framed-tile.clergy .person-status {
    font-size: 20px;
    color: #223338;
}
.framed-tile.clergy .small-icon {
    width: 20px;
    height: 26px;
    position: absolute;
    top: 10px;
    left: 13px;
    background-size: cover;
}
.framed-tile.clergy .tile-inform {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Стили для профиля епископа */
.biography-text,
.bishop-profile .biography-text p {
    font-family: 'Proximanova_regular';
    font-size: 22px;
    letter-spacing: 0.01em;
    text-align: justify;
}
.bishop-profile .divider-title {
    margin-top: 60px;
}
.bishop-profile .profile-photo {
    margin: 40px auto;
    display: flex;
    justify-content: center;
}
.bishop-profile .profile-info,
.temple-card .profile-info {
    display: flex;
    margin: 0px auto;
    justify-content: center;
}
.bishop-profile ul,
.temple-card .profile-info ul {
    list-style-image: url('../media/social/check-solid.svg');
}
.bishop-profile p {
    font-family: 'Proximanova_regular';
    font-size: 24px;
}

/* Стили для профиля епископа и храмовых карточек */
.bishop-profile ul li,
.bishop-profile ol li {
    font-family: 'Proximanova_regular';
    font-size: 24px;
    margin-bottom: 20px;
}
.bishop-profile ol {
    list-style-image: none;
}
.bishop-profile .profile-info ul,
.temple-card .profile-info ul {
    font-family: 'Playfair_regular';
    font-weight: bold;
    font-size: 22px;
    line-height: 29px;
    margin: 0px;
}
.bishop-profile .profile-info ul li,
.temple-card .profile-info ul li {
    margin-bottom: 15px;
}
.bishop-profile .profile-info ul li span,
.temple-card .profile-info ul li span {
    font-family: 'Proximanova_regular';
    font-weight: normal;
    font-size: 20px;
    line-height: 24px;
    margin-left: 15px;
}

/* Стили для боковой панели с иконами святых */
aside .framed-tile.holy-figures {
    height: 416px;
    font-family: 'Russ_regular';
    font-size: 28px;
    letter-spacing: 0.01em;
    padding: 20px 20px 25px;
    margin-bottom: 0px;
}
aside .framed-tile img {
    padding-top: 30px;
    padding-bottom: 0px;
    width: 280Px;
    height: auto;
}
.holy-figures-section button {
    margin: 25px auto;
}

/* Стили плиток с иконами святых */
.tile.featured-tile.holy-figures-tile {
    display: flex;
  flex-direction: column;
  align-items: center;
  height: 484px;
  max-width: 416px;
  text-align: center;
  box-sizing: border-box;
  padding:15px 20px;
}
.tile.featured-tile.holy-figures-tile .tile-image {
    height: 225px;
}
.tile.featured-tile.holy-figures-tile .tile-text {
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 16px;
}
.tile.featured-tile.holy-figures-tile .date-tag {
    margin-top: 10px;
    font-size: 15px;
    line-height: 17px;
    padding-bottom: 15px;
    padding-top: 5px;
}
.tile.featured-tile.holy-figures-tile .tile-title {
    font-size: 22px;
    margin-bottom: 18px;
}

/* Кнопки с иконками */
.search-button-outlined.button-with-image {
    font-weight: normal;
    font-size: 11px;
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0px 3px 7px rgb(0 0 0 / 25%);
    height: 32px;
    line-height: 32px;
    padding: 0 5px !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.search-button-outlined.button-with-image .media-icon.icon-21px {
    padding-right: 6px;
    margin: auto;
}

/* Кнопки профиля */
.page-content .profile-info-buttons,
.profile-info-buttons,
.temple-card .profile-info-buttons, 
.aside-temple .profile-info-buttons {
    display: flex;
    width: 35%;
    margin: 40px auto 0;
    justify-content: space-around;
}
.page-content .profile-info-buttons .search-button-outlined {
    margin: 0;
    font-size: 11px;
    box-shadow: 0px 3px 7px rgb(0 0 0 / 25%);
    padding: 7px 26px 9px;
    text-decoration: none;
}

/* Общие стили плиток и ссылок */
.tile-button {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}
.tile-button .search-button,
.tile-button .search-button-outlined {
    text-decoration: none;
}
.tile-link {
    text-decoration: none;
}
.social-networks a {
    width: 100%;
}
nav a.tile-link div {
    color: #223338;
}
.aside-menu a {
    font-size: 22px;
    text-decoration: none;
    color: #223338;
}
.holy-figures-section .tile-button,
.aside-temple .tile-button {
    margin: 20px 0 25px;
}

/* Стили для храмовых плиток */
.framed-tile.temple {
    width: 320px;
    min-height: 339px;
    cursor: pointer;
    padding: 25px;
    margin: 0;
}
.title-aside-temle {
    font-family: Playfair_regular;
    font-weight: bold;
    font-size: 22px;
    line-height: 29px;
}
.sidebar-item {
    font-family: Proximanova_regular;
    font-size: 18px;
    line-height: 16px;
    margin: 10px 0;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.aside-temple .framed-tile.temple img {
    width: 270px;
    height: 186px;
    padding: 0;
}

/* Текст статьи с иконками */
.article-text.single-icon-text {
    padding-bottom: 10px;
}
.title-image {
    font-size: 20px;
    line-height: 113.3%;
    width: 500px;
    margin: 0 auto;
    text-align: center;
}

/* Стили страницы поиска */
div.search-page {
    min-width: 945px;
    min-height: 1500px;
}
main.search-page {
    min-width: 1320px;
}

/* Компонент поиска */
.search-component {
    position: relative;
    display: flex;
    padding-top: 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid #6F6F6F;
}
.search-component .search-buttons {
    margin-left: auto;
    display: inline-flex;
    gap: 20px;
    position: relative;
}
.search-component .search-buttons .search-filter-button, 
.search-filter-tag, 
.filtr-tags .search-filter-button {
    padding: 10px 15px;
    max-height: 45px;
    border: 1px solid #54A1BA;
    border-radius: 5px;
    background-color: transparent;
    font-family: 'Proximanova_regular';
    font-size: 20px;
    color: #54A1BA;
    cursor: pointer;
    display: flex;
    gap: 13px;
    align-items: center;
}
.search-filter-tag {
    background-color: #fff;
    border-radius: 25px;
}
.search-component form {
    display: contents;
}
.search-component .search-buttons .search-filter-button.search {
    background: url(../media/q24guzew/search-icon-small.svg) no-repeat scroll 8px 9px;
    width: 45px;
    height: 45px;
}
.search-component input.search-input {
    width: 700px;
    border: none;
    background: transparent;
    font-family: 'Proximanova_regular';
    font-size: 25px;
    color: #6E6E6E;
}
.search-component input:focus {
    outline: none;
    color: #121B1E;
}

/* Попап фильтров поиска */
.search-component .search-filter-popup {
    position: absolute;
    left: 505px;
    top: 115px;
    background-color: white;
    width: 420px;
    font-family: 'Proximanova_regular';
    font-size: 20px;
    color: #121B1E;
    z-index: 999;
    box-shadow: 3px 7px 18px rgb(0 0 0 / 25%);
}
.search-filter-popup .separator-line {
    height: 1px;
    background-color: #B4B4B4;
    margin-left: 20px;
    margin-right: 10px;
}
.search-filter-popup .tag-section,
.search-filter-popup .chapter-section {
    padding: 35px;
}
.search-filter-popup div.popup-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.search-filter-popup .search-button-outlined {
    display: initial;
    margin: 30px 35px;
}

/* Стили для списка результатов */
.results-list {
    margin-top: 30px;
}
.results-list .tile.regular-tile {
    width: auto;
    margin-bottom: 45px;
}
.results-list .result-video .tile {
    width: auto;
    margin-bottom: 45px;
}
.results-list .result-video .tile.top
-tile .tile-video {
    height: 385px;
}
.results-list .default-result .tile.regular-tile {
    width: auto;
    align-items: center;
    margin-bottom: 45px;
}
.results-list .default-result .tile.regular-tile .tile-title {
    font-family: Proximanova_regular;
}
.results-list .default-result .tile.regular-tile .tile-image {
    flex: 0 0 150px;
}

/* Стили для результатов по умолчанию */
.default-result .tile-text {
    max-height: 70px;
}
.tile-title-tag {
    text-transform: uppercase;
    margin-top: 10px;
    font-size: 18px;
}

/* Навигация по страницам */
.page-nav-control {
    display: flex;
    margin: 45px auto;
    justify-content: center;
    gap: 8px;
}
.page-nav-control .page {
    width: 32px;
    height: 32px;
    background-color: #FFFFFF;
    background-position: center;
    border: 1px solid #919EAB;
    box-sizing: border-box;
    border-radius: 4px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    color: #212B36;
}
.page-nav-control .page.active,
.page-nav-control .page:hover {
    border: 1px solid #1ba6d4;
}
.page-nav-control .page.buttons {
    color: #009ED1;
    border: 1px solid #009ED1;
}
.page-nav-control .page.disabled {
    color: #101010;
    background-color: #fff;
    opacity: 0.5;
    border: 1px solid #919EAB;
}

/* Иконки навигации */
.rigth-icon-svg {
    background-image: url('../media/z23nhs1i/next-button.svg');
    background-repeat: no-repeat;
}
.rotate180 {
    transform: rotate(180deg);
}
select:focus {
    outline: none;
}

/* Галерея изображений */
.inline-gallery-container-white {
    width: 100%;
    height: 0;
    padding-bottom: 84%;
}
.inline-gallery-container-white .lg-inline .lg-backdrop,
.inline-gallery-container-white .lg-inline .lg-thumb-outer {
    background-color: transparent;
}
.inline-gallery-container-white .lg-inline .lg-toolbar {
    top: 50px;
}
.inline-gallery-container-white .lg-inline .lg-toolbar .lg-icon,
.inline-gallery-container-white .lg-inline .lg-next,
.inline-gallery-container-white .lg-inline .lg-prev {
    background-color: #54A1BA;
    color: white;
    opacity: 0.7;
}
.inline-gallery-container-white .lg-toolbar .lg-icon {
    background-color: rgba(0,0,0,.45);
    border-radius: 2px;
    margin-left: 5px;
    height: 38px;
    width: 42px;
    padding-top: 5px;
}
.inline-gallery-container-white .lg-outer .lg-thumb-item.active, 
.inline-gallery-container-white .lg-outer .lg-thumb-item:hover {
    border-color: #54A1BA;
}

/* Кнопки профиля храма */
.temple-details-page .profile-info-buttons .search-button-outlined.button-with-image,
.temple-card .profile-info-buttons .search-button-outlined.button-with-image,
.aside-temple .profile-info-buttons .search-button-outlined.button-with-image {
    font-family: Proximanova_regular;
    font-size: 12px;
    text-decoration: none;
}
.temple-details-page .profile-info-buttons {
    margin: 20px auto 50px;
}
.aside-temple .profile-info-buttons {
    width: 100%;
    margin: 15px auto 25px;
}

/* Адаптивные стили */
@media (max-width: 450px) {
    .divider-title.temple {
        font-size: 55px;
    }
    .temples-page ul.deanery-list a {
        font-size: 34px;
    }
}

/* Основные элементы интерфейса */
.brand-link {
    display: flex;
    align-items: center;
}
.tile-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0; 
    right: 0;
}

/* Карты и загрузки */
.location-map, .dowload-map {
    text-align: center;
    margin-bottom: 35px;
}
.location-map img {
    width: 100%;
}

/* Элементы боковой панели */
.sidebar-item.date-picker-item {
    overflow: visible;
    line-height: 22px;
    max-height: none;
}
.sidebar-item.date-picker-item a, 
.sidebar-item.date-picker-item span {
    color: #009ED1 !important;
}
.framed-tile.holy-figures.date-picker {
    height: auto;
}

/* Отображение иконок */
.icon-display img {
    width: 65%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: top;
}

/* Социальные сети в статьях */
.social-networks.article-layout-social {
    margin: 0 0 60px 40px;
}
.social-networks.article-layout-social a {
    width:auto;
}
.social-networks.article-layout-social a div {
    width: 40px;
    height: 40px;
    background-size: cover;
}

/* Текст статьи */
.article-text.article-layout {
    padding-bottom: 5px;
}
.article-date {
    margin: 0 0 0 auto;
    color: #000;
    padding: 5px 10px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);    
    border-radius: 5px;
    backdrop-filter: blur(10px);
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Навигация по страницам */
.page-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    border: #D4C9BD;
}
.page-nav a, .page-nav span {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #009ED1;
}
.page-nav .active-page {
    font-weight: bold;
    color: #000;
    border-color: #009ED1;
}
.page-nav a:hover {
    background-color: #f5f5f5;
}

/* Вспомогательные элементы */
.spacer {
    width: 120px;
    height: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    opacity: 0;
}

/* Анимации при наведении */
.physical-address div,
.email div,
.phone-number div {
    transition: transform 0.3s ease;
}
.physical-address div:hover,
.email div:hover,
.phone-number div:hover {
    transform: scale(1.05);
}

/* Плавающая кнопка */
.fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #C4B6A8;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 50px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}
.fab:hover {
    background-color: #A89A8C;
}

/* Иконки */
.fas.fa-cross {
    color: #A89A8C;
}

/* Основная разметка */
.main-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    padding-top: 20px;
    padding-bottom: 40px;
    box-sizing: border-box;
}
.main-area {
    flex-grow: 1;
    text-align: center;
}
.title-area {
    display: inline-block;
}

/* Логотипы */
.brand-logo {
    width: 320px;
    height: 270px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    padding-left: 0px;
    padding-top: 100px;
}
.seraphim-logo {
    width: 320px;
    height: 270px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    flex-shrink: 0;
    padding-left: 80px;
    padding-top: 100px;
}
.align-left {
    margin-right: auto;
}
.align-right {
    margin-left: auto;
}

/* Иконки */
.fa-book-open-reader {
    color: #A89A8C;
}

/* Заголовки */
.custom-title {
    font-family: 'Russ_regular', sans-serif;
    font-size: 55px;
    text-align: center;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #121B1E;
    margin-bottom: 30px;
}
.tile-text {
    text-align: justify;
}

/* Сетка */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    grid-auto-flow: row; /* (по умолчанию) */
}



/* Слайдер фотографий */
.photo-slider {
    margin: 20px 0;
}
.photo-slider img {
    max-width: 100%;
    height: auto;
}

/* Элементы результатов поиска */
.result-item {
    counter-increment: item;
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1a3e6f;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.result-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.result-item a {
    color: #1a3e6f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    display: block;
    margin-bottom: 5px;
}
.result-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}
.search-result-type {
    display: inline-block;
    background-color: #e1e8f0;
    color: #495057;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

/* Нумерация результатов */
.results-list ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}
.result-item::before {
    content: counter(item) ".";
    position: absolute;
    left: -25px;
    top: 12px;
    font-weight: bold;
    color: #121B1E;
    background: #e1e8f0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.9em;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .result-item {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .result-item::before {
        left: -20px;
        top: 10px;
        width: 18px;
        height: 18px;
        line-height: 18px;
    }
    .result-item a {
        font-size: 1em;
    }
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #C4B6A8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.scroll-to-top:hover {
    background-color: #ac9074;
}
.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top i {
    font-size: 20px;
}

/* Обертка контента */
.content-wrapper {
    position: relative;
    min-height: 100vh;
}
.content-spacer {
    height: 100vh;
}
.main-content {
    position: relative;
    z-index: 1;
    background: white;
    padding: 20px;
}

/* Отступ для контента */
.content-spacer {
    padding-bottom: 15px;
}
