/* na-lubky.com — «Русское воинское искусство как духовный путь». Шаблон 2.0
   Узнаваемое от старого сайта: синяя шапка, золотой орнамент, прописной заголовок, тёмная рамка страницы.
   Новое: шапка с записью, главная-лендинг, карточки, льняной баннер семинара, мобильная панель связи. */

@font-face { font-family: "Lora"; src: url("../fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --nb-ink: #24231f;
  --nb-ink-soft: #5b584e;
  --nb-paper: #fbf9f4;
  --nb-paper-2: #f2eee4;
  --nb-line: #e3dccd;
  --nb-blue: #16547b;
  --nb-blue-deep: #0e3a57;
  --nb-blue-night: #0a2a40;
  --nb-gold: #c49a3c;
  --nb-gold-2: #d9b25f;
  --nb-gold-soft: #ecdcae;
  --nb-linen: #efe6d4;
  --nb-dark: #292825;
  --nb-radius: 10px;
  --nb-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .12);
  --nb-serif: "Lora", "PT Serif", Georgia, "Times New Roman", serif;
  --nb-sans: "PT Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--nb-sans);
  --bs-link-color: var(--nb-blue);
  --bs-link-color-rgb: 22, 84, 123;
  --bs-link-hover-color: var(--nb-blue-deep);
  --bs-primary: var(--nb-blue);
  --bs-primary-rgb: 22, 84, 123;
}

html { scroll-behavior: smooth; }
body.site { margin: 0; background: var(--nb-dark); color: var(--nb-ink); font-family: var(--nb-sans); font-size: 1.0625rem; line-height: 1.65; }
a { color: var(--nb-blue); text-underline-offset: .15em; }
a:hover { color: var(--nb-blue-deep); }
.nb-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 22px; box-sizing: border-box; }
.nb-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.nb-skip:focus { left: 1rem; }
svg { fill: currentColor; }

/* ---------- buttons ---------- */
.nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-decoration: none; border: 2px solid transparent; transition: .18s; white-space: nowrap; }
.nb-btn--lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.nb-btn--gold { background: linear-gradient(180deg, var(--nb-gold-2), var(--nb-gold)); color: #2b210d; box-shadow: 0 4px 14px rgba(196, 154, 60, .35); }
.nb-btn--gold:hover { color: #1d1608; filter: brightness(1.07); transform: translateY(-1px); }
.nb-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.nb-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.nb-btn--dark { background: #2b2219; color: #f3ead6; }
.nb-btn--dark:hover { background: #47392a; color: #fff; }
.nb-btn--outline { border-color: var(--nb-blue); color: var(--nb-blue); }
.nb-btn--outline:hover { background: var(--nb-blue); color: #fff; }

/* ---------- announcement strip (seminar) ---------- */
.nb-announce { background: var(--nb-linen) url("../images/linen.png"); border-bottom: 1px solid #d8c9a6; color: #2b2219; font-size: .95rem; }
.nb-announce p { margin: 0; }
.nalubky-announce { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem 1rem; max-width: 1240px; margin: 0 auto; padding: .5rem 22px; text-align: center; }
.nalubky-announce__label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8c641e; }
.nalubky-announce__title { font-family: var(--nb-serif); font-size: 1.1rem; font-weight: 600; }
.nalubky-announce__title em { font-weight: 400; color: #8c641e; }
.nalubky-announce a.nb-btn { padding: .3rem .9rem; font-size: .85rem; }

/* ---------- header ---------- */
.nb-header { position: relative; color: #fff;
  background: radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, .18), transparent 55%), linear-gradient(180deg, #2a78a8 0%, var(--nb-blue) 55%, var(--nb-blue-deep) 100%); }
.nb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: 16px; padding-bottom: 16px; }
.nb-brand { display: flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; min-width: 0; }
.nb-brand:hover { color: #fff; }
.nb-brand__logo { width: 88px; height: 88px; flex: none; border-radius: 50%; background: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: transform .3s; }
.nb-brand:hover .nb-brand__logo { transform: rotate(-6deg); }
.nb-brand__text { display: flex; flex-direction: column; min-width: 0; }
.nb-brand__title { font-family: var(--nb-serif); font-weight: 700; font-size: clamp(1.2rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.nb-brand__tagline { margin-top: .35rem; font-size: clamp(.72rem, 1.3vw, .92rem); letter-spacing: .3em; color: var(--nb-gold-soft); text-transform: uppercase; }
.nb-header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.nb-hphone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; margin-right: .3rem; }
.nb-hphone svg { width: 18px; height: 18px; color: var(--nb-gold-2); }
.nb-hphone:hover { color: var(--nb-gold-soft); }
.nb-hicon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); transition: .18s; }
.nb-hicon svg { width: 21px; height: 21px; }
.nb-hicon--tg:hover { background: #2aa3d8; color: #fff; }
.nb-hicon--wa:hover { background: #25d366; color: #fff; }

/* ---------- main menu with dropdowns ---------- */
.nb-nav { background: var(--nb-blue-night); border-top: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.nb-nav__inner { display: flex; align-items: center; gap: 1rem; }
.nb-nav__list { flex: 1; min-width: 0; }
.nb-nav__search { flex: 0 0 220px; }
.nb-nav__search input { border-radius: 999px; border: 0; padding: .35rem .9rem; font-size: .9rem; background: rgba(255, 255, 255, .12); color: #fff; }
.nb-nav__search input::placeholder { color: rgba(255, 255, 255, .6); }
.nb-nav__search button, .nb-nav__search .btn { display: none; }
.nb-nav .mod-menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nb-nav .mod-menu > li { position: relative; }
.nb-nav .mod-menu > li > a, .nb-nav .mod-menu > li > span, .nb-nav .mod-menu > li > .mod-menu__heading {
  display: block; padding: .85rem 1.05rem; color: #e8eef3; text-decoration: none; font-weight: 700; font-size: .86rem; letter-spacing: .08em;
  text-transform: uppercase; border-bottom: 3px solid transparent; cursor: pointer; }
.nb-nav .mod-menu > li.parent > a::after, .nb-nav .mod-menu > li.parent > span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.nb-nav .mod-menu > li > a:hover, .nb-nav .mod-menu > li:hover > a { color: #fff; background: rgba(255, 255, 255, .06); }
.nb-nav .mod-menu > li.current > a, .nb-nav .mod-menu > li.active > a { color: #fff; border-bottom-color: var(--nb-gold); }
.nb-nav .mod-menu__toggle-sub { display: none; }
.nb-nav .mod-menu__sub { display: none; position: absolute; left: 0; top: 100%; min-width: 270px; margin: 0; padding: .5rem 0; list-style: none;
  background: #fff; border-radius: 0 0 var(--nb-radius) var(--nb-radius); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); border-top: 3px solid var(--nb-gold); z-index: 40; }
.nb-nav li:hover > .mod-menu__sub, .nb-nav li:focus-within > .mod-menu__sub { display: block; }
.nb-nav .mod-menu__sub a { display: block; padding: .5rem 1.15rem; color: var(--nb-ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.nb-nav .mod-menu__sub a:hover { background: var(--nb-paper-2); color: var(--nb-blue-deep); }
.nb-nav .mod-menu__sub li.current > a { color: var(--nb-blue); font-weight: 700; }
.nb-nav__toggle { display: none; align-items: center; gap: .6rem; padding: .8rem 0; background: none; border: 0; color: #fff; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.nb-burger, .nb-burger::before, .nb-burger::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: .2s; }
.nb-burger::before, .nb-burger::after { content: ""; position: absolute; left: 0; }
.nb-burger::before { top: -7px; } .nb-burger::after { top: 7px; }
.nb-nav.is-open .nb-burger { background: transparent; }
.nb-nav.is-open .nb-burger::before { top: 0; transform: rotate(45deg); }
.nb-nav.is-open .nb-burger::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero (home) ---------- */
.nb-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 80% 30%, rgba(42, 120, 168, .55), transparent 60%), linear-gradient(160deg, var(--nb-blue-deep) 0%, var(--nb-blue-night) 70%, #071c2b 100%); }
.nb-hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: url("../images/landscape-ink.png") center bottom / cover no-repeat;
  filter: invert(1); opacity: .09; pointer-events: none; }
.nb-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.nb-hero__kicker { margin: 0 0 .8rem; font-size: .85rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--nb-gold-2); }
.nb-hero__kicker::before { content: ""; display: inline-block; width: 38px; height: 2px; background: var(--nb-gold-2); vertical-align: middle; margin-right: .8rem; }
.nb-hero__title { margin: 0 0 1rem; font-family: var(--nb-serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; color: #fff; }
.nb-hero__lead { margin: 0 0 1.8rem; max-width: 36em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #d5e2ec; }
.nb-hero__buttons { display: flex; flex-wrap: wrap; gap: .8rem; }
.nb-hero__emblem { display: grid; place-items: center; }
.nb-hero__emblem img { width: min(100%, 360px); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); animation: nb-float 8s ease-in-out infinite; }
@keyframes nb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .nb-hero__emblem img { animation: none; } }

/* ---------- home sections ---------- */
.nb-home { background: var(--nb-paper); }
.nb-home__block { padding: 56px 0; }
.nb-home__block:nth-child(even) { background: #fff; }
.nb-home__block--home-top { padding-top: 0; }
.nb-home__block--home-top .nb-section + .nb-section { margin-top: 40px; }
.nb-home__block--home-photos { background: var(--nb-dark) !important; }
.nb-home__block--home-photos .nb-section__title { color: #fff; }
.nb-section__title { margin: 0 0 1.6rem; font-family: var(--nb-serif); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--nb-blue-deep); text-align: center; }
.nb-section__title span { display: inline-block; padding: 0 1rem; position: relative; }
.nb-section__title span::before, .nb-section__title span::after { content: ""; position: absolute; top: 50%; width: 46px; height: 2px; background: var(--nb-gold); }
.nb-section__title span::before { right: 100%; } .nb-section__title span::after { left: 100%; }
.nb-section__body > p:last-child { margin-bottom: 0; }

/* info cards under hero */
.nalubky-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: -40px; position: relative; z-index: 2; }
.nalubky-card { background: #fff; border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); padding: 1.4rem 1.5rem 1.5rem; border-top: 4px solid var(--nb-gold); }
.nalubky-card h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-family: var(--nb-serif); font-size: 1.25rem; color: var(--nb-blue-deep); }
.nalubky-card h3 .nalubky-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--nb-paper-2); color: var(--nb-gold); font-size: 1.1rem; }
.nalubky-card p { margin: 0 0 .45rem; }
.nalubky-card .nalubky-card__big { font-size: 1.15rem; font-weight: 700; color: var(--nb-ink); }
.nalubky-card .nalubky-card__muted { color: var(--nb-ink-soft); font-size: .95rem; }
.nalubky-card .nb-btn { margin-top: .4rem; }
.nalubky-card .nalubky-days { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0 0 .5rem; }
.nalubky-card .nalubky-days dt { font-weight: 700; color: var(--nb-blue-deep); }
.nalubky-card .nalubky-days dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* event (seminar) feature */
.nalubky-event { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--nb-radius); color: #2b2219; background: var(--nb-linen) url("../images/linen.png"); box-shadow: var(--nb-shadow); }
.nalubky-event::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: url("../images/landscape-ink.png") center bottom / cover no-repeat; opacity: .28; pointer-events: none; }
.nalubky-event > * { position: relative; z-index: 1; }
.nalubky-event__label { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8c641e; }
.nalubky-event__title { margin: 0; font-family: var(--nb-serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; color: #2b2219; }
.nalubky-event__sub { margin: .2rem 0 1rem; font-family: var(--nb-serif); font-style: italic; font-size: 1.35rem; color: #8c641e; }
.nalubky-event__facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.nalubky-event__facts li { font-size: 1rem; }
.nalubky-event__facts strong { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8c641e; }
.nalubky-event__logo { width: 100%; max-width: 230px; justify-self: center; border-radius: 50%; box-shadow: 0 10px 30px rgba(43, 34, 25, .25); }

/* news cards (mod_articles grid) */
.nb-home .mod-articles-items, .nalubky-news-grid .mod-articles-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.nb-home .mod-articles-items > li { border: 0 !important; }
.nb-home .mod-articles-item { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); overflow: hidden; padding: 0; transition: transform .2s; }
.nb-home .mod-articles-item:hover { transform: translateY(-3px); }
.nb-home .mod-articles-item-content { display: flex; flex-direction: column; flex: 1; padding: 0 0 1.2rem; }
.nb-home .mod-articles-item-content > * { margin-left: 1.2rem; margin-right: 1.2rem; }
.nb-home .mod-articles-item-content > figure, .nb-home .mod-articles-item .item-image { order: -1; margin: 0 0 1rem; }
.nb-home .mod-articles-item-content > .mod-articles-title { margin-top: 0; }
.nb-home .mod-articles-item-content:not(:has(figure)) { padding-top: 1.1rem; }
.nb-home .mod-articles-item img { display: block; float: none; width: 100%; height: 200px; object-fit: cover; margin: 0; border-radius: 0; }
.nb-home .mod-articles-title { font-family: var(--nb-serif); font-size: 1.15rem; line-height: 1.3; margin: 0 1.2rem .35rem; }
.nb-home .mod-articles-title a { color: var(--nb-blue-deep); text-decoration: none; }
.nb-home .mod-articles-item p { color: var(--nb-ink-soft); font-size: .97rem; }
.nb-home .mod-articles-item .readmore { margin-top: auto; }
.nb-section .nalubky-more { margin-top: 1.4rem; text-align: center; }
.nb-home .nalubky-more a { color: var(--nb-blue); }

/* sections tiles */
.nalubky-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nalubky-tile { position: relative; display: block; padding: 1.4rem 1.4rem 1.3rem 1.4rem; border-radius: var(--nb-radius); background: var(--nb-paper); border: 1px solid var(--nb-line);
  color: var(--nb-ink); text-decoration: none; transition: .2s; overflow: hidden; }
.nalubky-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--nb-gold); transition: .2s; }
.nalubky-tile:hover { color: var(--nb-ink); border-color: var(--nb-gold); box-shadow: var(--nb-shadow); transform: translateY(-2px); }
.nalubky-tile:hover::before { width: 7px; }
.nalubky-tile strong { display: block; margin-bottom: .3rem; font-family: var(--nb-serif); font-size: 1.2rem; color: var(--nb-blue-deep); }
.nalubky-tile span { display: block; color: var(--nb-ink-soft); font-size: .95rem; line-height: 1.45; }
.nalubky-tile em { position: absolute; right: 1rem; top: 1.1rem; font-style: normal; font-family: var(--nb-serif); font-size: 2rem; line-height: 1; color: var(--nb-line); }

/* photo strip */
.nalubky-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nalubky-photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.nalubky-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; filter: saturate(.9); border-radius: 0; }
.nalubky-photos a:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* ---------- layout (inner pages) ---------- */
.nb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 48px; }
.has-sidebar-right .nb-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.has-sidebar-left .nb-layout { grid-template-columns: 260px minmax(0, 1fr); }
.nb-main { min-width: 0; }
.nb-content, .nb-mainbottom .nb-module { background: var(--nb-paper); border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); padding: clamp(18px, 3.4vw, 44px); }
.nb-mainbottom { margin-top: 24px; }
.nb-breadcrumbs { margin-bottom: 10px; font-size: .9rem; }
.nb-breadcrumbs .breadcrumb { margin: 0; padding: 0; background: none; }
.nb-breadcrumbs a, .nb-breadcrumbs .breadcrumb-item, .nb-breadcrumbs .breadcrumb-item.active { color: #cfc9bb; }
.nb-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { color: #8d877a; }
.nb-breadcrumbs .mod-breadcrumbs__here, .nb-breadcrumbs .mod-breadcrumbs__divider { color: #a39d90; }
.nb-contenttop { margin-bottom: 24px; }
.nb-contenttop .nb-module { background: var(--nb-paper); border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); overflow: hidden; }
.nb-contenttop .nb-module__body { padding: 1rem 1.4rem 1.2rem; }

/* sidebar */
.nb-sidebar .nb-module { background: var(--nb-paper); border-radius: var(--nb-radius); box-shadow: var(--nb-shadow); margin-bottom: 20px; overflow: hidden; }
.nb-module__title { margin: 0; padding: .7rem 1rem .65rem; font-family: var(--nb-serif); font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: #fff;
  background: linear-gradient(180deg, var(--nb-blue), var(--nb-blue-deep)); border-left: 4px solid var(--nb-gold); text-transform: uppercase; }
.nb-module__body { padding: .7rem 1rem 1rem; font-size: .95rem; }
.nb-sidebar .mod-menu { display: block; margin: 0; padding: 0; list-style: none; }
.nb-sidebar .mod-menu li a { display: block; padding: .42rem 0 .42rem 1.1rem; position: relative; color: var(--nb-ink); text-decoration: none; border-bottom: 1px dashed var(--nb-line); line-height: 1.35; }
.nb-sidebar .mod-menu li:last-child > a { border-bottom: 0; }
.nb-sidebar .mod-menu li a::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--nb-gold); }
.nb-sidebar .mod-menu li a:hover { color: var(--nb-blue); }
.nb-sidebar .mod-menu li.current > a { color: var(--nb-blue); font-weight: 700; }
.nb-sidebar .mod-menu .mod-menu__sub { display: none; }
.nalubky-editor .nb-module__title { background: linear-gradient(180deg, #7a5a14, #5a4310); }
.nalubky-signup .nb-module__body { text-align: center; }
.nalubky-signup p { margin: 0 0 .7rem; }
.nalubky-signup .nb-btn { width: 100%; margin-bottom: .45rem; }
.nb-projects { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.nb-projects a { display: block; padding: .7rem .9rem; border: 1px solid #e3d6b8; border-left: 4px solid var(--nb-gold, #c9a14a); border-radius: 10px;
  background: #fbf7ee; color: inherit; text-decoration: none; transition: background .15s, transform .15s; }
.nb-projects a:hover, .nb-projects a:focus-visible { background: #f4ead3; transform: translateX(2px); }
.nb-projects strong { display: block; font-family: var(--nb-serif, Georgia, serif); font-size: 1.08rem; color: #0e3a57; }
.nb-projects strong::after { content: " \2197"; font-size: .85em; color: #a0802f; }
.nb-projects span { display: block; margin-top: .15rem; font-size: .88rem; line-height: 1.4; color: #5a5245; }

.nalubky-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.nalubky-social a { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: #fff; font-weight: 700; font-size: .9rem; }
.nalubky-social a::before { content: ""; width: 1.1rem; height: 1.1rem; flex: none; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.nalubky-social a.tg { background: #2aa3d8; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 4.3 18.7 19.6c-.2 1.1-.9 1.3-1.8.8l-4.9-3.6-2.4 2.3c-.3.3-.5.5-1 .5l.3-5 9.1-8.2c.4-.4-.1-.6-.6-.2L6.2 13.3l-4.8-1.5c-1-.3-1.1-1 .2-1.5L20.5 3c.9-.3 1.7.2 1.4 1.3z'/%3E%3C/svg%3E"); }
.nalubky-social a.vk { background: #4a76a8; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.8 17.5h1.1s.3 0 .5-.2c.2-.2.2-.5.2-.5s0-1.6.7-1.8c.7-.2 1.6 1.5 2.6 2.2.7.5 1.3.4 1.3.4h2.6s1.4-.1.7-1.2c-.1-.1-.4-.8-2-2.3-1.7-1.6-1.5-1.3.6-4.1 1.2-1.7 1.7-2.7 1.6-3.1-.2-.4-1.1-.3-1.1-.3h-2.9s-.2 0-.4.1c-.2.1-.3.3-.3.3s-.5 1.2-1.1 2.3c-1.3 2.2-1.8 2.3-2 2.2-.5-.3-.4-1.3-.4-2 0-2.2.3-3.1-.6-3.3-.3-.1-.6-.1-1.4-.1-1 0-1.9 0-2.4.2-.3.2-.6.5-.4.5.2 0 .6.1.8.4.3.4.3 1.2.3 1.2s.2 2.6-.4 2.9c-.4.2-1-.2-2.2-2.3-.6-1.1-1.1-2.3-1.1-2.3s-.1-.2-.3-.3c-.2-.2-.5-.2-.5-.2H3.4s-.4 0-.6.2c-.1.2 0 .5 0 .5s2.2 5.2 4.7 7.8c2.3 2.4 4.9 2.2 4.9 2.2z'/%3E%3C/svg%3E"); }
.nalubky-social a.ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM17.3 5.5a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM12 2c-2.7 0-3 0-4.1.1C4 2.3 2.3 4 2.1 7.9 2 9 2 9.3 2 12s0 3 .1 4.1c.2 3.9 1.9 5.6 5.8 5.8 1.1.1 1.4.1 4.1.1s3 0 4.1-.1c3.9-.2 5.6-1.9 5.8-5.8.1-1.1.1-1.4.1-4.1s0-3-.1-4.1C21.7 4 20 2.3 16.1 2.1 15 2 14.7 2 12 2z'/%3E%3C/svg%3E"); }
.nalubky-social a.fb { background: #3b5998; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8V6.2c0-.8.2-1.2 1.4-1.2H17V2h-2.6C11.3 2 10 3.5 10 6v2H8v3h2v11h4V11h2.7L17 8h-3z'/%3E%3C/svg%3E"); }
.nalubky-social a:hover { filter: brightness(1.08); color: #fff; }

/* ---------- article typography ---------- */
.nb-content h1, .nb-content h2, .nb-content h3, .nb-content h4 { font-family: var(--nb-serif); font-weight: 600; color: var(--nb-blue-deep); line-height: 1.25; }
.nb-content .page-header h1, .nb-content .page-header h2, .item-page .page-header h1, .item-page .page-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--nb-gold); }
.nb-content .page-header h2 a { color: inherit; text-decoration: none; }
.nb-content h2 { font-size: 1.5rem; margin-top: 1.8rem; }
.nb-content h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.nb-content p { margin: 0 0 1em; }
.nb-content img { max-width: 100%; height: auto; border-radius: 4px; }
.nb-content img[style*="float: left"], .nb-content img[style*="float:left"] { margin: .3rem 1.2rem .8rem 0; }
.nb-content img[style*="float: right"], .nb-content img[style*="float:right"] { margin: .3rem 0 .8rem 1.2rem; }
.nb-content blockquote { margin: 1.2rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--nb-gold); background: var(--nb-paper-2); font-style: italic; }
.nb-content ul, .nb-content ol { padding-left: 1.4rem; }
.nb-content hr { border: 0; height: 1px; background: var(--nb-line); margin: 2rem 0; opacity: 1; }
.nb-content table.nalubky-table { width: auto; max-width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.nb-content table.nalubky-table td, .nb-content table.nalubky-table th { border: 1px solid var(--nb-line); padding: .4rem .6rem; vertical-align: top; }
.nb-content iframe { max-width: 100%; border: 0; }
.item-image, .com-content-article .item-image { margin: 0 0 1.4rem; }
.item-image img { width: 100%; border-radius: var(--nb-radius); }
.nalubky-video { position: relative; aspect-ratio: 16 / 9; margin: 1.2rem 0; background: #000; border-radius: var(--nb-radius); overflow: hidden; }
.nalubky-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.nalubky-meta { display: inline-block; padding: .45rem .9rem; background: var(--nb-paper-2); border-left: 3px solid var(--nb-gold); border-radius: 3px; font-size: .95rem; }
.nalubky-lead { font-size: 1.15rem; }
.nalubky-notice { margin: 0 0 1.4rem; padding: .8rem 1.1rem; background: #fdf3dc; border: 1px solid #e8cf8f; border-left: 4px solid var(--nb-gold); border-radius: 6px; }
.nalubky-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.nalubky-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 1.2rem 0; }
.nalubky-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--nb-paper-2); }
.nalubky-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; border-radius: 0; }
.nalubky-gallery a:hover img { transform: scale(1.05); }
.nalubky-toc { margin: 2rem 0 0; padding: 1.2rem 1.4rem; background: #fff; border: 1px solid var(--nb-line); border-top: 3px solid var(--nb-blue); border-radius: var(--nb-radius); }
.nalubky-toc h2 { margin: 0 0 .6rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; }
.nalubky-toc ul { list-style: none; margin: 0; padding-left: 0; }
.nalubky-toc ul ul { padding-left: 1.3rem; border-left: 1px solid var(--nb-line); margin: .2rem 0 .4rem .3rem; }
.nalubky-toc li { margin: .28rem 0; line-height: 1.35; }
.nalubky-toc a { text-decoration: none; }
.nalubky-toc a:hover { text-decoration: underline; }
.nalubky-toc li > a::before { content: "— "; color: var(--nb-gold); }
.nalubky-book-back { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--nb-line); font-weight: 700; }
.nb-content table.nalubky-schedule { border-collapse: separate; border-spacing: 0; margin: .5rem 0 1.2rem; min-width: min(100%, 360px); border: 1px solid var(--nb-line); border-radius: var(--nb-radius); overflow: hidden; background: #fff; }
.nalubky-schedule th, .nalubky-schedule td { padding: .65rem 1.1rem; border-bottom: 1px solid var(--nb-line); font-size: 1.05rem; }
.nalubky-schedule tr:last-child th, .nalubky-schedule tr:last-child td { border-bottom: 0; }
.nalubky-schedule th { background: var(--nb-paper-2); font-weight: 700; color: var(--nb-blue-deep); }
.nalubky-schedule td { font-variant-numeric: tabular-nums; font-weight: 700; }
.nalubky-map { position: relative; aspect-ratio: 16 / 10; margin: 1rem 0 .5rem; border-radius: var(--nb-radius); overflow: hidden; background: var(--nb-paper-2); border: 1px solid var(--nb-line); }
.nalubky-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Joomla article info, blog, pagination */
.article-info { font-size: .85rem; color: var(--nb-ink-soft); margin-bottom: 1rem; }
.article-info dd { margin: 0; display: inline-block; margin-right: 1rem; }
.pagenavigation { margin-top: 2rem; }
.pagenavigation .pagination { display: flex; justify-content: space-between; gap: 1rem; padding: 0; }
.pagenavigation .btn, .readmore .btn { background: var(--nb-paper-2); border: 1px solid var(--nb-line); color: var(--nb-blue-deep); border-radius: 999px; }
.pagenavigation .btn:hover, .readmore .btn:hover { background: var(--nb-blue); color: #fff; }
.blog-item { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--nb-line); }
.blog-item:last-child { border-bottom: 0; }
.blog-item::after { content: ""; display: block; clear: both; }
.blog-item .item-image { float: left; width: 260px; margin: .3rem 1.4rem .8rem 0; }
.blog-item .item-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.items-leading .blog-item .item-image { float: none; width: 100%; }
.items-leading .blog-item .item-image img { aspect-ratio: 1200 / 630; }
.blog-item .page-header h2 { font-size: 1.45rem; margin: 0 0 .3rem; padding: 0; border: 0; }
.blog-item .page-header h2 a { color: var(--nb-blue-deep); text-decoration: none; }
.blog-item .page-header h2 a:hover { text-decoration: underline; }
.cat-children { margin-top: 2rem; padding: 1rem 1.3rem; background: var(--nb-paper-2); border-radius: var(--nb-radius); }
.cat-children h3 { margin-top: 0; font-size: 1.1rem; }
.com-content-category table { background: #fff; }
.com-content-category .list-title a { font-weight: 700; text-decoration: none; }
.btn-primary { --bs-btn-bg: var(--nb-blue); --bs-btn-border-color: var(--nb-blue); --bs-btn-hover-bg: var(--nb-blue-deep); --bs-btn-hover-border-color: var(--nb-blue-deep); }
.pagination { --bs-pagination-color: var(--nb-blue); --bs-pagination-active-bg: var(--nb-blue); --bs-pagination-active-border-color: var(--nb-blue); }
.hide-broken-images img.is-broken { display: none !important; }
.edit.item-page .form-control, .edit.item-page .form-select { max-width: 100%; }

/* sidebar news list */
.mod-articles-items { list-style: none; margin: 0; padding: 0; }
.nb-sidebar .mod-articles-items > li + li { border-top: 1px solid var(--nb-line); }
.nb-sidebar .mod-articles-item { padding: .45rem 0; }
.nb-sidebar .mod-articles-title { font-family: var(--nb-sans); font-size: .95rem; font-weight: 400; margin: 0; line-height: 1.35; }
.nb-sidebar .mod-articles-title a { color: var(--nb-ink); text-decoration: none; }
.nb-sidebar .mod-articles-title a:hover { color: var(--nb-blue); }
.nb-sidebar .mod-articles-item dl { font-size: .78rem; margin: 0 0 .1rem; color: var(--nb-ink-soft); }
.nb-sidebar .mod-articles-item dd { margin: 0; display: inline; }

/* contacts block under pages */
.nalubky-contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; }
.nalubky-contacts-grid h3 { margin: 0 0 .4rem; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--nb-serif); color: var(--nb-blue-deep); }
.nalubky-contacts-grid p { margin: 0; font-size: .98rem; }

/* ---------- footer ---------- */
.nb-footer { color: #c9c4b6; background: var(--nb-dark); border-top: 4px solid var(--nb-blue-deep); }
.nb-footer__inner { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 32px; }
.nb-footer__brand { display: flex; align-items: flex-start; gap: 14px; }
.nb-footer__brand img { width: 84px; height: 84px; flex: none; }
.nb-footer__brand p { margin: .3rem 0 0; font-size: .9rem; line-height: 1.4; }
.nb-footer__brand strong { color: #fff; font-family: var(--nb-serif); font-weight: 600; }
.nb-footer__brand span { color: var(--nb-gold-soft); letter-spacing: .16em; font-size: .78rem; }
.nb-footer a { color: #e7dcc2; text-decoration: none; }
.nb-footer a:hover { color: #fff; text-decoration: underline; }
.nb-footer__modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.nb-footer .nb-module { background: none; box-shadow: none; }
.nb-footer .nb-module__title { background: none; border: 0; padding: 0 0 .7rem; color: #fff; font-size: .9rem; letter-spacing: .12em; }
.nb-footer .nb-module__body { padding: 0; font-size: .93rem; }
.nb-footer .mod-menu { list-style: none; margin: 0; padding: 0; display: block; }
.nb-footer .mod-menu li { margin: 0 0 .4rem; }
.nb-footer .mod-menu a { padding: 0; }
.nb-footer .nalubky-social a { color: #fff; }
.nb-footer .nalubky-social a:hover { text-decoration: none; }
.nb-footer__bottom { border-top: 1px solid #3a3833; font-size: .88rem; }
.nb-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 14px; padding-bottom: 14px; }
.nb-totop { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid #55524a; }

/* mobile contact bar */
.nb-mobilebar { display: none; }

/* ---------- error page ---------- */
.nb-error { text-align: center; padding: 3rem 1.5rem; }
.nb-error__code { font-family: var(--nb-serif); font-size: 5rem; line-height: 1; color: var(--nb-gold); margin: 0 0 .5rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nb-hphone span { display: none; }
  .nb-nav__search { display: none; }
}
@media (max-width: 991.98px) {
  .has-sidebar-right .nb-layout, .has-sidebar-left .nb-layout { grid-template-columns: minmax(0, 1fr); }
  .nb-hero__inner { grid-template-columns: 1fr; text-align: left; padding-top: 44px; padding-bottom: 64px; }
  .nb-hero__emblem { display: none; }
  .nalubky-cards, .nb-home .mod-articles-items, .nalubky-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nalubky-event { grid-template-columns: 1fr; }
  .nalubky-event__logo { display: none; }
  .nb-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  body.site { font-size: 1rem; padding-bottom: 62px; }
  .nb-wrap { padding: 0 15px; }
  .nb-header__inner { padding-top: 12px; padding-bottom: 12px; }
  .nb-brand { gap: 12px; }
  .nb-brand__logo { width: 58px; height: 58px; }
  .nb-brand__tagline { letter-spacing: .16em; }
  .nb-header__actions { display: none; }
  .nb-nav__toggle { display: flex; }
  .nb-nav__inner { flex-direction: column; align-items: stretch; gap: 0; }
  .nb-nav__list { display: none; padding-bottom: .5rem; }
  .nb-nav.is-open .nb-nav__list { display: block; }
  .nb-nav .mod-menu { flex-direction: column; }
  .nb-nav .mod-menu > li > a, .nb-nav .mod-menu > li > span { padding: .7rem .2rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nb-nav .mod-menu__sub { position: static; display: block; min-width: 0; background: transparent; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; }
  .nb-nav .mod-menu__sub a { color: #cfdbe5; padding: .4rem .2rem; }
  .nb-nav .mod-menu__sub a:hover { background: none; color: #fff; }
  .nb-nav .mod-menu > li.parent > a::after { display: none; }
  .nalubky-cards, .nb-home .mod-articles-items, .nalubky-tiles, .nalubky-photos { grid-template-columns: 1fr; }
  .nalubky-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nalubky-cards { margin-top: -28px; }
  .nb-home__block { padding: 40px 0; }
  .nalubky-announce { font-size: .85rem; gap: .2rem .6rem; padding: .4rem 15px; }
  .nalubky-announce__title { font-size: .95rem; }
  .nalubky-announce a.nb-btn { padding: .2rem .7rem; font-size: .8rem; }
  .nalubky-announce__label { display: none; }
  .blog-item .item-image { float: none; width: 100%; margin: 0 0 1rem; }
  .nb-content img[style*="float"] { float: none !important; display: block; margin: .8rem auto !important; }
  .nb-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--nb-blue-night); border-top: 2px solid var(--nb-gold); box-shadow: 0 -4px 16px rgba(0, 0, 0, .3); }
  .nb-mobilebar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; color: #fff; text-decoration: none; font-size: .75rem; font-weight: 700; }
  .nb-mobilebar svg { width: 22px; height: 22px; color: var(--nb-gold-2); }
  .nb-mobilebar a.is-wa svg { color: #25d366; }
  .nb-mobilebar a.is-tg svg { color: #2aa3d8; }
}
@media print {
  .nb-header, .nb-nav, .nb-sidebar, .nb-footer, .nb-maintop, .nb-breadcrumbs, .nb-announce, .nb-mobilebar { display: none !important; }
  body.site { background: #fff; padding: 0; }
  .nb-content { box-shadow: none; padding: 0; }
}
