/* Header */
:root{
  --brand: #5c2f2f;
  --brand-2:#9b4747;
  --ink:   #2b2b2b;
  --muted: #7a7a7a;
  --hair:  #e8e4e4;
  --bg:    #ffffff;

  --radius-1: 14px;
  --radius-2: 22px;
  --shadow-1: 0 10px 30px rgba(0,0,0,.08);
  --shadow-2: 0 18px 60px rgba(0,0,0,.12);

  --container: 1120px;
  --gutter: clamp(16px, 2.6vw, 28px);
  --nav-h: 48px;

  /* Typography */
  --ff-heading: Georgia, "Times New Roman", serif;
  --ff-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-mono: "SF Mono", Consolas, monospace;
}

.head {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #d7d7d7;
}

.page-public .head {
  border-bottom: 0;
}

.page-public .head > div {
  width: 100% !important;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  border-bottom: 1px solid rgba(232,228,228,.75);
}

.head-divider {
    border-top: 1px solid #d7d7d7;
    margin-bottom: 10px;
}

/* Public header: remove the extra line above the menu */
.page-public .head-divider {
    display: none;
}

.head__inner {
  width: 1100px;
  margin: 0 auto;
}

.head__top {
  width: 100%;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Segoe UI Light', arial;
}

/* =========================
  Desktop NAV (public)
========================== */

.page-public .main-nav{
  background: #fff;
  border-bottom: 1px solid rgba(232,228,228,.75);
}

.page-public .main-nav .nav-level-1{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display:flex;
  align-items:center;
  gap: 14px;
  list-style:none;
  box-sizing: border-box;
}

.page-public .main-nav .nav-level-1 > li{ position:relative; }

.page-public .main-nav .nav-level-1 > li > a{
  color: var(--brand);
  font-weight: 600;
  padding: 7px 7px;
  border-radius: 12px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  transition: .18s ease;
  text-decoration:none;
  cursor: pointer;
}

.page-public .main-nav .nav-level-1 > li > a:hover{
  background: rgba(92,47,47,.06);
  color: var(--brand-2);
}

/* Accent links ("Контакты", "Читаемое") */
.page-public .main-nav .nav-level-1 > li > a.nav-main-link--accent{
  color: #2a5bd7;
}

.page-public .main-nav .nav-level-1 > li > a.nav-main-link--accent:hover{
  background: rgba(42,91,215,.08);
  color: #1e4bbf;
}

/* Caret for dropdown items */
.page-public .main-nav .nav-level-1 > li.has-sub > a::after{
  content:"▾";
  font-size: 11px;
  opacity: .8;
  margin-left: 2px;
}

.page-public .main-nav .nav-level-1 > li.active > a{
  color: #b04040;
}

.page-public .main-nav .nav-level-1 > li.active > a.nav-main-link--accent{
  color: #1e4bbf;
}

.page-public .main-nav .nav-level-2{
  display:block;
  position:absolute;
  left:0;
  top: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(232,228,228,.9);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  padding: 14px 10px 10px;
  overflow: hidden;
  z-index: 100;
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 220ms;
}

.page-public .main-nav .has-sub{
  /* Give a little extra hover area under the label */
  padding-bottom: 6px;
}

.page-public .main-nav .has-sub:hover .nav-level-2,
.page-public .main-nav .has-sub:focus-within .nav-level-2{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 140ms ease, visibility 0s linear 0s;
}

.page-public .main-nav .nav-level-2 li a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-radius: 14px;
  color: #5d3434;
  font-weight: 500;
  text-decoration:none;
}

.page-public .main-nav .nav-level-2 li a:hover{
  background: rgba(92,47,47,.06);
  color: var(--brand-2);
}

.page-public .main-nav .nav-level-2 li.active > a{
  font-weight: 700;
  color: #8f3d3d;
}

.head__date {
  color: #999;
  font-size: 14px;
  white-space: nowrap;
}

.head__icons {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
}

.head__icon-link {
  color: #666;
}

.head__branding {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 10px;
}

.head__text {
  display: flex;
  flex-direction: column;
}

.head__logo {
  height: 70px;
}

.head__title {
  font-family: 'Segoe UI Light', arial;
  font-size: 38px;
  color: #444;
  letter-spacing: 3px;
}

.head__subtitle {
  font-family: 'Segoe UI Light', arial;
  color: #999;
  font-size: 14px;
  margin-top: 5px;
}

.head__divider {
  border-top: 1px solid #d7d7d7;
  margin-bottom: 10px;
}

/* Search popup */
.search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
}

.search-popup__content {
  width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 120px auto;
  text-align: center;
  font-family: Arial;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.search-popup__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.search-popup__input {
  width: 90%;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 16px;
}

.search-popup__button {
  padding: 8px 18px;
  border: none;
  background: #444;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* Index layout */
/*  */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /*background: radial-gradient(circle at top, #f2f5ff 0, #e6ecff 30%, #f9fbff 70%, #ffffff 100%);*/
    color: #333;
}

a {
    color: #4a4a95;
    text-decoration: none;
}

a:hover {
    color: #26266e;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/*   */

.page-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 16px 24px 16px;
    /*box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);*/
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Internal pages: move the white surface under the menu */
.page-internal .page-wrapper {
    position: relative;
    z-index: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-internal .page-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--surface-top, 140px);
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.page-internal .layout {
    margin-top: 0;
}

.page-internal #footer {
    margin-top: 0;
}

/*   */

.layout {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.sidebar {
    flex: 0 0 32%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile menu overlay (public pages) */
.page-public .mobile-burger {
    display: none;
}

.mobile-menu {
    display: none;
}

.page-public.mobile-menu-open .mobile-menu {
    display: block;
}

.page-public.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10010;
}

.mobile-menu__panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: min(92vw, 420px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10011;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    display: flex;
    flex-direction: column;
}

.page-public.mobile-menu-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #6c2f2f;
}

.mobile-menu__icons {
    display: inline-flex;
    gap: 14px;
    font-size: 18px;
}

.mobile-menu__icons a {
    color: #6c2f2f;
    text-decoration: none;
}

.mobile-menu__content {
    padding: 14px 14px 24px;
    overflow: auto;
}

.mobile-nav-level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-level-1 > li > a {
    display: block;
    font-size: 18px;
    color: #6c2f2f;
    padding: 6px 2px;
    font-weight: 800;
    text-decoration: none;
}

.mobile-nav-level-1 > li.has-sub > a {
    cursor: default;
}

.mobile-nav-level-1 > li:not(.has-sub) > a {
    cursor: pointer;
}

.mobile-nav-level-1 > li > a:hover {
    color: #9b4747;
}

.mobile-nav-level-1 .nav-level-2 {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    border-left: 2px solid rgba(108, 47, 47, 0.12);
}

.mobile-nav-level-1 .nav-level-2 a {
    display: block;
    padding: 6px 2px;
    color: #5c2f2f;
    text-decoration: none;
    font-size: 16px;
}

.mobile-nav-level-1 .nav-level-2 a:hover {
    color: #9b4747;
}

@media (max-width: 900px) {
    .head > div {
        width: 100% !important;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .page-public .main-nav {
        padding: 0;
        border-bottom: 0;
    }

    .page-public .main-nav .nav-level-1 {
        display: none;
    }

    .page-public .mobile-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        background: #fff;
        border-radius: 12px;
        margin: 8px 0 6px 0;
        cursor: pointer;
    }

    .page-public .mobile-burger__icon {
        width: 18px;
        height: 12px;
        position: relative;
        display: block;
    }

    .page-public .mobile-burger__icon::before,
    .page-public .mobile-burger__icon::after,
    .page-public .mobile-burger__icon {
        background: transparent;
    }

    .page-public .mobile-burger__icon::before,
    .page-public .mobile-burger__icon::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: #6c2f2f;
        border-radius: 2px;
    }

    .page-public .mobile-burger__icon::before {
        top: 0;
        box-shadow: 0 5px 0 #6c2f2f, 0 10px 0 #6c2f2f;
    }

    .layout {
        flex-direction: column-reverse;
    }

    .sidebar {
        flex-basis: auto;
    }

    /* Mobile footer: hide duplicated site menu columns */
    #footer .footer-grid {
        display: none;
    }
}

/*  /  */

.card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Internal pages: remove heavy shadows (keep home page as-is) */
.page-internal .card {
    box-shadow: none;
}

.card--centered {
    text-align: center;
}

.card+.card {
    margin-top: 4px;
}

.section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #5c2f2f;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e2b8;
    letter-spacing: -.005em;
}

.page-slovo .section-title {
    margin-bottom: 6px;
}

.section-title a {
    color: #A35241;
    text-decoration: none;
}

.section-title a:hover {
    color: #c66955;
}

.block-title {
    margin-bottom: 12px;
}

.block-title .title a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6c2f2f;
}

.block-title .title a:hover {
    color: #9b4747;
}

.title a {
    color: #6c2f2f;
    font-weight: 600;
}

.title a:hover {
    color: #9b4747;
}

.date {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: #777;
}

.meta {
    font-size: 0.85rem;
    color: #777;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.meta img {
    width: 14px;
    height: 14px;
    border-radius: 0;
    box-shadow: none;
}

.text-center {
    text-align: center;
}

/* ===========================
   Index: Video block
=========================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    text-align: left;
}

.video-card__head {
    margin-left: 5px;
    margin-bottom: 10px;
}

.video-card .title {
    display: -webkit-box;
    min-height: 2.7em;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ensure video titles never turn "blue" (visited/default link colors) */
.video-card .title a,
.video-card .title a:visited {
    color: #6c2f2f;
}

.video-card .title a:hover {
    color: #9b4747;
}

.video-card__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

/* Video page: keep embeds proportional and consistent */
.page-video .video-card__embed {
    aspect-ratio: 16 / 9;
    max-height: 360px;
}

@media (max-width: 900px) {
    .video-card__embed {
        aspect-ratio: 16 / 9;
        max-height: 240px;
    }
}

.video-card__embed iframe,
.video-card__embed embed,
.video-card__embed object,
.video-card__embed video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.video-card__embed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Video page: related link should never be blue */
.page-video .vid_ss a:link,
.page-video .vid_ss a:visited {
    color: #6c2f2f;
    text-decoration: none;
}

.page-video .vid_ss a:hover {
    color: #9b4747;
    text-decoration: underline;
}

/* News-entry title color (sidebar blocks, etc.) */
a.news-entry__title:link,
a.news-entry__title:visited,
.news-entry__title {
    color: #6c2f2f !important;
}

a.news-entry__title:hover,
.news-entry__title:hover {
    color: #9b4747 !important;
}

/* Right sidebar: never use blue links inside the "news-entry" box */
#content_right .box.news-item.news-entry a:link,
#content_right .box.news-item.news-entry a:visited {
    color: #6c2f2f;
}

#content_right .box.news-item.news-entry a:hover {
    color: #9b4747;
}

/* ===========================
   Doks: sidebar cleanup
=========================== */

.page-doks #content_right .news-entry__frame {
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* Right sidebar: avoid "double frame" around items (keep only outer .box border) */
#content_right .news-entry__frame {
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* Sidebar map: full width, no frame */
#content_right .box--map {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

#content_right .box--map center {
    display: block;
}

#content_right .box--map img {
    width: 100% !important;
    border: 0 !important;
    margin: 0 !important;
}

/* Right sidebar: round the outer boxes (without affecting home layout) */
.page-internal #content_right .box,
.page-internal #content_right .box_arhi {
    border-radius: 16px;
}

.page-internal #content_right .box.news-item.news-entry {
    border-radius: 16px;
    overflow: hidden;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 24px;
}

/*   */

.yandex-widget {
    font-size: 0.95rem;
}

.yandex-widget span.y-red {
    color: red;
    font-weight: 700;
}

.yandex-widget span.y-black {
    color: #000;
    font-weight: 700;
}

/*   */

.procession-card {
    border-left: 4px solid #F0D0C8;
}

.procession-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.procession-list {
    font-size: 0.95rem;
}

.procession-item {
    display: block;
    padding: 4px 6px;
}

.procession-item--past {
    color: #aaa;
}

.procession-item--future {
    font-weight: 600;
}

.procession-item--now {
    background: #F8FCBE;
    border-radius: 6px;
    font-weight: 700;
}

.procession-footer {
    margin-top: 10px;
    text-align: center;
}

/* ===========================
   Search page
=========================== */

.page-search .search-controls__q {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
}

.page-search .search-controls__q:focus {
    border-color: rgba(163, 82, 65, 0.6);
    box-shadow: 0 0 0 3px rgba(240, 208, 200, 0.5);
}

.page-search .search-controls__filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.page-search .search-controls__select,
.page-search .search-controls__date {
    padding: 8px 10px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.page-search .search-controls__hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #777;
}

.page-search .search-results {
    margin-top: 16px;
}

.page-search .search-empty {
    margin: 12px 0;
    color: #555;
}

.page-search .search-error {
    margin: 12px 0;
    color: #b00000;
    background: #fff5f5;
    border: 1px solid #f0c0c0;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: pre-wrap;
}

.page-search .search-error-text {
    margin: 12px 0;
    color: #b00000;
}

/*   */

.calendar-card {
    border-left: 4px solid #cfd7ff;
}

.calendar-date-today {
    color: #c0392b;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

#calendar h2 {
    font-size: 1rem;
    margin: 8px 0 4px 0;
    padding-left: 5px;
}

.calendar-footer {
    text-align: center;
    margin-top: 10px;
}

.link-muted {
    color: #666;
}

.link-muted:hover {
    color: #333;
}

/* ===========================
   Calendar page (kalendar.php)
=========================== */

.page-kalendar .kalendar-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.page-kalendar .kalendar-controls__select,
.page-kalendar .kalendar-controls__year {
    padding: 8px 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.page-kalendar .kalendar-controls__btn {
    padding: 8px 14px;
    font-size: 1rem;
    border: 1px solid rgba(163, 82, 65, 0.35);
    border-radius: 12px;
    background: rgba(240, 208, 200, 0.35);
    color: #6c2f2f;
    cursor: pointer;
}

.page-kalendar .kalendar-controls__btn:hover {
    background: rgba(240, 208, 200, 0.55);
}

.page-kalendar .cal-day-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6c2f2f;
    margin-bottom: 8px;
}

.page-kalendar .cal-block {
    margin-top: 10px;
}

.page-kalendar .cal-block-title {
    font-size: 1rem;
    margin: 0 0 6px 0;
    padding-left: 5px;
}

.page-kalendar .cal-item {
    margin-bottom: 5px;
}

.page-kalendar a.cal-link:link,
.page-kalendar a.cal-link:visited {
    color: #6c2f2f;
    text-decoration: none;
}

.page-kalendar a.cal-link:hover {
    color: #9b4747;
    text-decoration: underline;
}

/* /  */

.promo-block img {
    width: 80%;
    max-width: 260px;
}

.promo-block--hotline a {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.promo-block--hotline img {
    width: 100%;
    max-width: none;
    height: 180px;
    object-fit: cover;
    object-position: top center;
}

.promo-block+.promo-block {
    margin-top: 10px;
}

/*  */

.announcement-card {
    padding: 14px 14px 10px 14px;
}

.announcement-card h3 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.announcement-header {
    margin-left: 10px;
}

.announcement-text {
    margin-top: 6px;
    font-size: 0.95rem;
}

/*   */

.clamp-4 {
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: calc(1.5em * 4);
    word-break: break-word;
}

.slovo-body img {
    float: left;
    width: 150px;
    height: auto;
    /* -    */
    max-height: 220px;
    /*  ,      */
    object-fit: cover;
    object-position: center;
    margin: 0 12px 8px 0;
    border-radius: 12px;
    border: 1px solid #C3D7D4;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.slovo-item {
    margin-left: 5px;
    margin-right: 10px;
}

.slovo-body {
  display: flex;
  border-bottom: 1px solid #D7D7D7;
  padding-bottom: 8px;
  margin-bottom: 12px;
  gap: 12px;
}

.slovo-cover {
    flex: 0 0 auto;
}

.slovo-cover img {
    width: 180px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #C3D7D4;
    padding: 5px;
    border-radius: 12px;
}

.slovo-text {
  flex: 1;
  font-size: 0.95rem;
}

.slovo-text .clamp-4 {
  font-size: 0.95rem;
  line-height: 1.5;
}

/*  */



/*   */

#newsBlock {
    display: block;
}

#pubBlock {
    display: none;
}

.news-day-image {
    float: none;
    margin: 0;
}

.news-day-text {
    font-size: 0.98rem;
    line-height: 1.6;
    overflow: hidden;
}

/* ===========================
   Home: News Day (luxe card)
=========================== */

#new_day.card{
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.news-day-slider{
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    /* "Liquid glass" surface */
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15,10,10,.08);
}

.news-day-slide{
    display: none;
    padding: 18px;
}

.news-day-slide.is-active{
    display: block;
    animation: newsDayFade 400ms ease-in;
}

@keyframes newsDayFade{
    from{ opacity: 0.2; }
    to{ opacity: 1; }
}

.news-day-slider .block-title{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(20,20,20,.08);
    margin-bottom: 0;
}

.news-day-slider .title{
    display: block;
    font-weight: 820;
    letter-spacing: .1px;
    line-height: 1.18;
    font-size: clamp(18px, 2.2vw, 22px);
    margin: 0;
    /* 3-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-day-slider .title a:link,
.news-day-slider .title a:visited{
    color: var(--brand);
    text-decoration: none;
}

.news-day-slider .title a:hover{
    color: var(--brand-2);
}

.news-day-slider .date{
    display: inline-block;
    margin-top: 8px;
    color: #6f6a66;
    font-size: 13px;
    letter-spacing: .2px;
}

.news-day-slider .meta{
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    white-space: nowrap;
    margin-left: 0;
}

.news-day-slider .views{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20,20,20,.10);
    background: rgba(255,255,255,.75);
    color: #5f5a56;
    font-weight: 750;
    font-size: 13px;
    box-shadow: 0 10px 18px rgba(0,0,0,.05);
}

.news-day-slider .badge-row{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(92,47,47,.16);
    background: rgba(92,47,47,.08);
    color: #4a3533;
    font-weight: 800;
    letter-spacing: .35px;
    font-size: 12px;
    text-transform: uppercase;
}

.news-day-body{
    display: block;
    padding-top: 16px;
}

.news-day-image{
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(20,20,20,.08);
    box-shadow: 0 10px 18px rgba(0,0,0,.06);
    aspect-ratio: 3 / 2;
}

.news-day-image .img-backdrop{
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(18px) saturate(1.06);
    transform: scale(1.08);
    opacity: .28;
}

.news-day-image .img-backdrop::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(460px 240px at 20% 10%, rgba(255,255,255,.55), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%),
        linear-gradient(0deg, rgba(255,255,255,.30), transparent 52%);
}

.news-day-image img{
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    padding: 10px;
    opacity: .98;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform .35s ease;
}

.news-day-image a:hover img{
    transform: scale(1.01);
}

.news-day-text{
    font-size: 16px;
    color: #2b2b2b;
    line-height: 1.65;
}

.news-day-text p{
    margin: 0;
    /* 9-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-day-slider__nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 18px;
    border: 1px solid rgba(20,20,20,.12);
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
    opacity: 0;
    pointer-events: none;
}

.news-day-slider:hover .news-day-slider__nav,
.news-day-slider:focus-within .news-day-slider__nav{
    opacity: 1;
    pointer-events: auto;
}

.news-day-slider__nav:hover{
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 16px 26px rgba(0,0,0,.12);
}

.news-day-slider__nav--prev{ left: 12px; }
.news-day-slider__nav--next{ right: 12px; }

.news-day-slider__nav::before{
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(47,40,38,.75);
    border-bottom: 2px solid rgba(47,40,38,.75);
    display: block;
}

.news-day-slider__nav--prev::before{ transform: rotate(135deg); margin-left: 4px; }
.news-day-slider__nav--next::before{ transform: rotate(-45deg); margin-right: 4px; }

@media (max-width: 860px){
    .news-day-slide{ padding: 14px; }
    .news-day-image{ border-radius: 20px; }

    .news-day-slider__nav{
        opacity: 1;
        pointer-events: auto;
    }
    .news-day-slider__nav:hover{ transform: translateY(-50%) translateY(-1px); }
}

/* Desktop: image with text wrapping */
@media (min-width: 861px){
    .news-day-image{
        float: left;
        width: 300px;
        margin: 0 18px 12px 0;
        border-radius: 18px;
    }
}

/*   */

.news-list-block {
    padding: 18px;
}

.news-item {
    margin-bottom: 14px;
    border-bottom: 1px solid #D7D7D7;
    padding-bottom: 10px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-header {
    margin-left: 5px;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-item-body {
    display: flex;
    margin-top: 6px;
    gap: 12px;
}

.news-item-image {
    flex: 0 0 auto;
}

.news-item-image img {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #C3D7D4;
    padding: 10px;
    border-radius: 14px;
}

.news-item-text {
    flex: 1;
    font-size: 0.95rem;
}
/* Новый стиль списка новостей */
.news-entry {
    margin-bottom: 18px;
}

.news-entry__frame {
    
    border-radius: 14px;
    padding: 16px;
    
}

.news-entry__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.news-entry__bullet {
    width: 16px;
    height: 16px;
    background: #b06b3f;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fdfaf6, 0 4px 10px rgba(106, 60, 26, 0.35);
    flex-shrink: 0;
    margin-top: 4px;
}

.news-entry__title {
    color: #6c2f2f;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    text-decoration: none;
}

.news-entry__title:hover {
    color: #9b4747;
}

.news-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: #5b4a3a;
    font-size: 0.93rem;
}

.news-entry__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    
    border-radius: 12px;
    
}

.news-entry__meta-item i {
    color: #b06b3f;
}

.news-entry__meta-pill {
    background: #f3e5d7;
    border-color: #e0cbb6;
    color: #5b3c2f;
}

.news-entry__content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.news-entry__text {
    flex: 1;
    
    
    border-radius: 12px;
    padding: 12px 14px;
    
    color: #3b3127;
    line-height: 1.6;
}

.news-entry__text p {
    margin: 0 0 10px 0;
}

.news-entry__views {
    font-weight: 600;
    margin-top: 6px;
}

.news-entry__image img {
    max-width: 200px;
    border-radius: 12px;
    padding: 10px;
    border: 3px solid #c8a27b;
    background: #fffdf9;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .news-entry__content {
        flex-direction: column;
    }

    .news-entry__image img {
        max-width: 100%;
        width: 100%;
    }
}

/*  */

.pub-list-block {
    padding: 18px;
}

.pub-item {
    margin-bottom: 14px;
    border-bottom: 1px solid #D7D7D7;
    padding-bottom: 10px;
}

.pub-item-header {
    margin-left: 5px;
}

.pub-item-body {
    display: flex;
    margin-top: 6px;
    gap: 12px;
}

.pub-item-image {
    flex: 0 0 auto;
}

.pub-item-image img {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #C3D7D4;
    padding: 10px;
    border-radius: 14px;
}

.pub-item-text {
    flex: 1;
    font-size: 0.95rem;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #f3e9e7;
    border: 1px solid #d8c2be;
    cursor: pointer;
    font-weight: 600;
    color: #8a3e3e;
    transition: 0.2s;
}

.tab-btn.active {
    background: #c96d5a;
    color: white;
    border-color: #c96d5a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/**/
.tab-head {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
    align-items: center;
}

.tab-head a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6c2f2f;
    text-decoration: none;
    padding-bottom: 4px;
    cursor: pointer;
}

.tab-head a:hover {
    color: #9b4747;
}

.tab-head a.active {
    border-bottom: 3px solid #e5b5ad;
}

/* =========================
   Главная: "Новости / Публикации" (luxe)
   - без карточек у каждого элемента
   - разделители между строками
   - мягкое "стекло" + серые границы
========================== */
.home-tabs-luxe{
    padding: 0;
}

.home-tabs-luxe .tab-head{
    display: flex;
    gap: 10px;
    padding: 14px;
    margin: 0;
    border-bottom: 1px solid rgba(20,20,20,.08);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(12px);
}

.home-tabs-luxe .tab-head a{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(92,47,47,.16);
    background: rgba(92,47,47,.06);
    color: var(--brand, #5c2f2f);
    font-weight: 800;
    letter-spacing: .15px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 10px 18px rgba(0,0,0,.04);
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    text-decoration: none;
}

.home-tabs-luxe .tab-head a:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(0,0,0,.10);
    background: rgba(92,47,47,.08);
}

.home-tabs-luxe .tab-head a.active{
    border-bottom: none;
    background: rgba(92,47,47,.10);
    border-color: rgba(92,47,47,.20);
    color: var(--brand, #5c2f2f);
}

.home-tabs-luxe .tab-head a.active::after{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(92,47,47,.85), rgba(155,71,71,.75));
    opacity: .9;
}

.home-tabs-luxe .panel{
    padding: 6px 14px 10px;
}

.home-tabs-luxe .panel.is-enter{
    animation: homeTabsFadeIn .22s ease;
}

@keyframes homeTabsFadeIn{
    from{ opacity: 0; transform: translateY(4px); }
    to{ opacity: 1; transform: translateY(0); }
}

.home-tabs-luxe .news-item,
.home-tabs-luxe .pub-item{
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 16px 8px;
    margin: 0;
}

.home-tabs-luxe .news-item + .news-item,
.home-tabs-luxe .pub-item + .pub-item{
    border-top: 1px solid rgba(20,20,20,.08);
}

.home-tabs-luxe .news-item:last-child,
.home-tabs-luxe .pub-item:last-child{
    border-bottom: none;
}

.home-tabs-luxe .news-item-header,
.home-tabs-luxe .pub-item-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
}

.home-tabs-luxe .title{
    display: block;
    font-weight: 840;
    line-height: 1.18;
    letter-spacing: .1px;
    font-size: clamp(16px, 2.0vw, 20px);
}

.home-tabs-luxe .title a{
    color: #6c2f2f;
    text-decoration: none;
}

.home-tabs-luxe .title a:hover{
    color: #9b4747;
}

.home-tabs-luxe .meta-col{
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.home-tabs-luxe .date{
    color: #6f6a66;
    font-size: 13px;
    letter-spacing: .2px;
}

.home-tabs-luxe .views{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20,20,20,.10);
    background: rgba(255,255,255,.75);
    color: #5f5a56;
    font-weight: 750;
    font-size: 13px;
    box-shadow: 0 10px 18px rgba(0,0,0,.05);
}

.home-tabs-luxe .meta-note{
    color: #6f6a66;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}

.home-tabs-luxe .news-item-body,
.home-tabs-luxe .pub-item-body{
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding-top: 14px;
    align-items: start;
    margin-top: 0;
}

.home-tabs-luxe .news-item-image,
.home-tabs-luxe .pub-item-image{
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 22px rgba(0,0,0,.06);
    background: rgba(255,255,255,.72);
    aspect-ratio: 3 / 2;
    border: 1px solid rgba(20,20,20,.10);
}

.home-tabs-luxe .img-backdrop{
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(14px) saturate(1.05);
    transform: scale(1.08);
    opacity: .22;
}

.home-tabs-luxe .img-backdrop::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 220px at 20% 10%, rgba(255,255,255,.24), transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 44%),
        linear-gradient(0deg, rgba(255,255,255,.22), transparent 56%);
}

.home-tabs-luxe .news-item-image img,
.home-tabs-luxe .pub-item-image img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    opacity: .98;
    box-shadow: none;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.home-tabs-luxe .news-item-text,
.home-tabs-luxe .pub-item-text{
    font-size: 15.5px;
    line-height: 1.65;
    color: #2b2b2b;
}

.home-tabs-luxe .news-item-text p,
.home-tabs-luxe .pub-item-text p{
    margin: 0;
}

/* =========================
   Главная: "Анонсы и объявления" (luxe sidebar)
   - вертикальная колонка
   - плоские строки с разделителями
   - корпоративные цвета (brand)
========================== */
.home-anons-luxe{
    padding: 0;
}

.home-anons-luxe .section-head{
    padding: 14px 12px 12px;
    border-bottom: 1px solid rgba(20,20,20,.08);
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-anons-luxe .section-title{
    margin: 0;
    font-weight: 860;
    letter-spacing: .1px;
    font-size: 20px;
    line-height: 1.2;
    padding-bottom: 0;
    border-bottom: 0;
}

.home-anons-luxe .section-title a{
    color: var(--brand, #5c2f2f);
    text-decoration: none;
}

.home-anons-luxe .section-title a:hover{
    color: var(--brand-2, #9b4747);
}

.home-anons-luxe .list{
    padding: 6px 12px 10px;
}

.home-anons-luxe .announcement-row{
    padding: 14px 0;
}

.home-anons-luxe .announcement-row + .announcement-row{
    border-top: 1px solid rgba(20,20,20,.08);
}

.home-anons-luxe .row-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6f6a66;
    font-size: 12.5px;
    letter-spacing: .2px;
}

.home-anons-luxe .row-meta .date{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    white-space: normal;
}

.home-anons-luxe .row-meta i{
    color: rgba(92,47,47,.75);
}

.home-anons-luxe .row-meta .views{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20,20,20,.10);
    background: rgba(255,255,255,.75);
    color: #5f5a56;
    font-weight: 750;
    font-size: 12.5px;
    box-shadow: 0 10px 18px rgba(0,0,0,.05);
    white-space: nowrap;
}

.home-anons-luxe .title{
    font-weight: 860;
    line-height: 1.2;
    letter-spacing: .1px;
    font-size: 18px;
    width: 100%;
}

.home-anons-luxe .title a{
    color: var(--brand, #5c2f2f);
    text-decoration: none;
    display: block;
    width: 100%;
}

.home-anons-luxe .announcement-row:hover .title a{
    color: var(--brand-2, #9b4747);
}

.home-anons-luxe .text{
    color: #2b2b2b;
    font-size: 14.8px;
    line-height: 1.62;
}

.home-anons-luxe .text p{
    margin: 0;
}

.home-anons-luxe .more{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #6b5b58;
    font-weight: 750;
    font-size: 13px;
    text-decoration: none;
}

.home-anons-luxe .more:hover{
    color: var(--brand, #5c2f2f);
}

/* =========================
   Одиночная новость: обтекание обложки (news_show.php)
   Никаких псевдо-элементов/подложек — только float + отступы.
========================== */
.page-news-show .news-entry__content{
    display: block;
}

.page-news-show .news-entry__image{
    float: left;
    margin: 0 18px 12px 0;
}

@media (max-width: 900px){
    .page-news-show .news-entry__image{
        float: none;
        margin: 0 0 12px 0;
    }
}

/* =========================
   Одиночная публикация: обтекание обложки (pub_show.php)
   Никаких псевдо-элементов/подложек — только float + отступы.
========================== */
.page-pub-show .news-entry__content{
    display: block;
}

.page-pub-show .news-entry__image{
    float: left;
    margin: 0 18px 12px 0;
}

@media (max-width: 900px){
    .page-pub-show .news-entry__image{
        float: none;
        margin: 0 0 12px 0;
    }
}

/* =========================
   Одиночный анонс: обтекание обложки (anons_show.php)
   Никаких псевдо-элементов/подложек — только float + отступы.
========================== */
.page-anons-show .news-entry__content{
    display: block;
}

.page-anons-show .news-entry__image{
    float: left;
    margin: 0 18px 12px 0;
}

@media (max-width: 900px){
    .page-anons-show .news-entry__image{
        float: none;
        margin: 0 0 12px 0;
    }
}

@media (max-width: 860px){
    .home-tabs-luxe .tab-head{ padding: 12px; }
    .home-tabs-luxe .panel{ padding: 6px 12px 10px; }

    .home-tabs-luxe .news-item,
    .home-tabs-luxe .pub-item{ padding: 14px 4px; }

    .home-tabs-luxe .news-item-header,
    .home-tabs-luxe .pub-item-header{
        flex-direction: column;
        align-items: flex-start;
    }

    .home-tabs-luxe .meta-col{ align-items: flex-start; }

    .home-tabs-luxe .news-item-body,
    .home-tabs-luxe .pub-item-body{
        grid-template-columns: 1fr;
    }
}

/*      */

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}


/* Footer */
:root {
  --footer-bg: linear-gradient(180deg, #5e2a2a 0%, #3a1818 100%);
  --footer-text: #eee;
  --footer-link: #4ea3ff;
  --footer-link-hover: #82c0ff;
  --footer-border: rgba(255, 255, 255, 0.08);
}

#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #5a1626 0%, #380a15 100%);
  color: #fff;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  z-index: 2000;
  transition: 0.2s ease;
}

#toTop svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

#toTop:hover {
  background: #333;
  transform: translateY(-50%) scale(1.05);
}

#footer {
  font-family: 'Arial Narrow', sans-serif;
  color: var(--footer-text);
  margin-top: 40px;
}

.footer-shell {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  box-shadow: none;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--footer-text);
}

.footer-col a {
  display: block;
  font-size: 15px;
  line-height: 1.7;
  color: var(--footer-link);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
  color: var(--footer-link-hover);
}

.footer-banners {
  margin: 36px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-banners img {
  width: 88px;
  height: 31px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  background: #fff;
  padding: 2px;
}

.footer-bottom {
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--footer-border);
  padding: 22px 10px 30px;
  line-height: 1.7;
  color: #ccc;
}

.footer-bottom-text {
  color: #eee;
  font-size: 14px;
  align-self: center;
  margin-right: 12px;
}

.footer-bottom a {
  color: #4ea3ff;
}

.footer-bottom a:hover {
  color: #82c0ff;
}

.footer-gen-time {
  font-family: 'Arial Narrow';
  font-weight: normal;
}

@media (max-width: 600px) {
  #toTop {
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .footer-inner {
    padding: 36px 16px;
  }
}

.head__text a {
    color: inherit;        /* используем цвет родителя */
    text-decoration: none; /* убираем подчёркивание */
    cursor: pointer;       /* оставляем курсор как у кнопки */
    display: block;        /* чтобы a корректно оборачивал div */
}

.head__text {
    display: block;
}

.head__text {
    color: inherit;
    text-decoration: none;
}

.head__text:hover {
    text-decoration: none;
}
/* ==============================
   PHOTO GALLERY GRID
   ============================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.photo-gallery__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e0ddd8;
  background: #f5f3f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline photos in text */
.photos a img {
  max-width: 200px;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 899px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .photos a img {
    max-width: 140px;
  }
}

/* =====================================================
   UNIFIED STYLE PATCH — desktop ← mobile (2026-06-16)
   
   Принципы (Refactoring UI):
   · Warm cream bg (#f9f8f6) вместо белого + стекла
   · Flat white cards с border-bottom-разделителями
   · Brand-red ссылки вместо синих (#5c2323)
   · De-emphasize sidebar, emphasize content (hierarchy)
   · Мобильные файлы НЕ затронуты
   ===================================================== */

/* 1. Warm page background + body text color */
body {
  background: #f9f8f6;
  color: #374151;
}

/* 2. Brand-red links (consistent with mobile) */
a {
  color: #5c2323;
}
a:hover {
  color: #9b4747;
  text-decoration: none;
}

/* 3. Remove glassmorphism from page wrapper */
.page-wrapper {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

/* Internal pages: flat white surface, no visual step at top */
.page-internal .page-wrapper::before {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  top: 0;
}

/* 4. Public page cards: flat white on warm bg */
.page-public .card {
  background: #fff;
  border: 1px solid #f0eded;
  border-radius: 12px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 5. Sidebar section titles: small uppercase labels (mobile pattern) */
.sidebar .section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

/* 6. Fix justified text (from legacy style.css rule) */
p {
  text-align: left;
  text-indent: 0;
}

/* rasp-article — Статья о служении (like mobile .sluzh__article) */
.rasp-article { margin-top: 10px; }
.rasp-article a { color: #5c2323; font-weight: 600; font-size: 13px; text-decoration: none; }
.rasp-article a:hover { color: #9b4747; }
.rasp-article i { margin-right: 4px; font-size: 12px; }

/* ===== STICKY FOOTER + SCROLL-TO-TOP FIXES (2026-06-16) ===== */

/* Sticky footer */
body { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrapper { flex: 1 0 auto; }


/* Move scroll-to-top to the RIGHT (override old style.css left:20px) */
#toTop { left: unset !important; right: 24px !important; bottom: 24px !important; }

/* Menu: remove blue from accent items, use brand color */
.nav-level-1 > li > a.nav-main-link--accent,
.page-public .main-nav .nav-level-1 > li > a.nav-main-link--accent {
  color: #7a2b2b !important;
  font-weight: 700;
}
.nav-level-1 > li > a.nav-main-link--accent:hover,
.page-public .main-nav .nav-level-1 > li > a.nav-main-link--accent:hover {
  color: #9b4747 !important;
  background: rgba(92,35,35,.06);
}

/* Nav: subtle shadow instead of hard border (reduces step effect) */
.page-public .main-nav,
.page-internal .main-nav {
  border-bottom: none;
}

/* Menu: single line, uniform font */
.nav-level-1 { flex-wrap: nowrap; white-space: nowrap; font-family: system-ui, -apple-system, Segoe UI, sans-serif !important; }
.nav-level-1 > li > a { font-family: system-ui, -apple-system, Segoe UI, sans-serif !important; }
