h1, .h1, h2, .h2, h3, .h3, h4, .h4, {font-weight:400!important;color: #3c3d72!important}
h2{font-family: Arial Black;font-size:36px!important}
h3{font-family: Arial Black;font-size: 26px!important}
p {font-family: arial, helvetica, sans-serif;!important}
.bob {font-family: arial, helvetica, sans-serif;font-weight: 800}
.mob {font-family: times new roman,times,serif;font-style:italic;font-weight:800}
.mobi {font-family: times new roman,times,serif;font-style:italic;}
.lox {font-family: Arial Narrow;}
.loxi {font-family: Arial Narrow;font-style:italic;}

/*figure {float: right; width:300px; margin:10px 0px 15px 25px; text-align:center;!important}  
img {width:300px; margin:10px 15px 15px 0; text-align:center;!important}
figcaption {margin-top:6px; font-size: 14px; font-weight: bolder;color:#202020!important}
.hud {font-size: 14px;font-family: times new roman, times, serif;font-style: italic;color:#4b4b4b} */

/* accordion */
.accordion {
  max-width: 100%;
  margin: 0 auto;
}

.accordion details {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion summary {
  padding: 5px 16px;
  cursor: pointer;
  font-weight: 600;
  background: #f5f5f5;
  list-style: none;
  position: relative;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content:'\25BC';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 90%;
}

.accordion details[open] summary::after {font-size: 90%;
  content:'\25B2';
}

.accordion .content {
  padding: 5px 16px;
  background: #fff;
  border-top: 1px solid #ddd;
}
/* blockquote */
blockquote {
    background: linear-gradient(135deg, #ffffff, #f1f3f7);
    border-left: 5px solid var(--c-accent);
    border-radius: 10px;
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #333;
    box-shadow: 0 4px 16px rgb(0 0 0 /10%);}


/* === Цветовая философская палитра === */
html {
  --c-primary: #243a5e;      /* глубокий интеллектуальный синий */
  --c-primary-hover: #1a2b47;

  --c-accent: #c18f59;       /* тёплое золото */
  --c-accent-hover: #ddb27c;

  --c-link: #295fa6;
  --c-link-hover: #163d6a;

  --c-bg-main: #f6f7f9;
  --c-bg-card: #ffffff;

  --c-text-main: #2d2d2d;
  --c-text-soft: #666666;

  --c-border-soft: #e5e7eb;
}
/* =========================================================
   PRODUCTION CSS — Encyclopedia of World Wisdom
   Joomla 5 | Cassiopeia
   ========================================================= */

/* === Цветовая философская палитра === */
html {
  --c-primary: #243a5e;      /* глубокий интеллектуальный синий */
  --c-primary-hover: #1a2b47;

  --c-accent: #c18f59;       /* тёплое золото */
  --c-accent-hover: #ddb27c;

  --c-link: #295fa6;
  --c-link-hover: #163d6a;

  --c-bg-main: #f6f7f9;
  --c-bg-card: #ffffff;

  --c-text-main: #2d2d2d;
  --c-text-soft: #666666;

  --c-border-soft: #e5e7eb;
}

/* === Общий стиль страницы === */
body {
  background: var(--c-bg-main);
  color: var(--c-text-main);
  line-height: 1.65;
  letter-spacing: 0.2px;
}

/* === Ссылки === */
a {
  color: var(--c-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border .25s ease;
}

a:hover {
  color: var(--c-link-hover);
  border-bottom: 1px solid var(--c-link-hover);
}

/* === Заголовки === */
h1, h2, h3, h4 {
  color: var(--c-primary);
  letter-spacing: .3px;
}

h1 {
  font-weight: 500;
}

/* === Карточки, статьи, модули === */
.card,
.article,
.moduletable,
.item-page {
  background: var(--c-bg-card);
  border-radius: 14px;
  padding: 1.4em;
  margin-bottom: 1.5em;
  box-shadow: 0 6px 22px rgba(0,0,0,0.04);
  transition: all .35s ease;
}

.card:hover,
.article:hover,
.moduletable:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* === Кнопки === */
.btn,
button,
input[type="submit"] {
  background: linear-gradient(135deg, var(--c-primary), #182b48);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.65em 1.6em;
  font-weight: 600;
  letter-spacing: .4px;
  box-shadow: 0 6px 16px rgba(36,58,94,.25);
  transition: all .3s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--c-primary-hover), #03fce3);
  box-shadow: 0 10px 26px rgba(36,58,94,.35);
  transform: translateY(-2px);
}

/* === Акцентные кнопки === */
.btn-accent {
  background: linear-gradient(135deg, var(--c-accent), #a7773c);
  box-shadow: 0 6px 18px rgba(193,143,89,.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--c-accent-hover), #c7995b);
}

/* === Главное меню === */
.navbar,
.header {
  background: linear-gradient(135deg, #243a5e, #1a2b47);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.navbar a,
.header a {
  color: #fff;
  font-weight: 500;
}

.navbar a:hover,
.header a:hover {
  color: var(--c-accent-hover);
}

/* === Цитаты, афоризмы === */
blockquote {
  background: linear-gradient(135deg, #ffffff, #f1f3f7);
  border-left: 5px solid var(--c-accent);
  border-radius: 10px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #333;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

/* === Таблицы === */
table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

table th {
  background: var(--c-primary);
  color: #fff;
}

table td,
table th {
  padding: .7em 1em;
}

/* === Формы === */
input,
textarea,
select {
  border-radius: 8px;
  border: 1px solid var(--c-border-soft);
  padding: .6em .8em;
  transition: border .3s ease, box-shadow .3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(36,58,94,.15);
}

/* === Footer === */
.footer {
  background: linear-gradient(135deg, #1a2b47, #121d33);
  color: #d0d6e0;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: var(--c-accent-hover);
}

/* === Плавные глобальные анимации === */
* {
  scroll-behavior: smooth;
}

/* === ДОБАВИЛ === */
/* === Landing Layout === */
.hero-landing {
  background: linear-gradient(135deg, #243a5e, #1a2b47);
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}

.hero-landing h1 {
  font-size: 2.6em;
  margin-bottom: .4em;
}

.hero-subtitle {
  font-size: 1.15em;
  opacity: .9;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* === Feature Blocks === */
.features-landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 20px;
  padding: 60px 15px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  text-align: center;
  transition: all .35s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

/* === Quote of Day === */
.quote-day {
  padding: 60px 15px;
  text-align: center;
}

.quote-day blockquote {
  max-width: 720px;
  margin: auto;
  font-size: 1.2em;
}

/* === Popular === */
.popular-landing {
  background: #f6f7f9;
  padding: 60px 15px;
  text-align: center;
}

.popular-list {
  list-style: none;
  padding: 0;
  max-width: 520px;
  margin: 25px auto;
}

.popular-list li {
  margin: 10px 0;
}

/* === Subscribe === */
.subscribe-landing {
  padding: 70px 15px;
  text-align: center;
  background: linear-gradient(135deg, #1a2b47, #0f1d33);
  color: #fff;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.subscribe-form input {
  min-width: 260px;
}

/* ===== REAL FIX: Joomla 5 Cassiopeia MENU ===== */

/* Фон всей шапки */
header.header,
header.header .container-header,
header.header .container-nav,
header.header nav.navbar {
  background: linear-gradient(135deg, #243a5e, #1a2b47) !important;
}

/* Пункты меню */
header.header .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
}

/* Hover и активный пункт */
header.header .navbar-nav .nav-link:hover,
header.header .navbar-nav .active > .nav-link {
  color: #ffcc8a !important;
}

/* Логотип и название сайта */
header.header .site-title,
header.header .site-description {
  color: #ffffff !important;
}

/* Бургер */
header.header .navbar-toggler {
  border-color: rgba(255,255,255,.6) !important;
}

header.header .navbar-toggler-icon {
  filter: invert(1);
}

/* ===== HARD FIX: Joomla Cassiopeia MENU ===== */

header.header,
header.header * {
  background: transparent !important;
}

header.header {
  background: linear-gradient(135deg, #243a5e, #1a2b47) !important;
}

/* Контейнер меню */
header.header .container-nav {
  background: transparent !important;
}

/* Пункты меню */
header.header .navbar-nav > li > a,
header.header .navbar-nav .nav-link {
  color: #000000 !important;
  font-weight: 600;
}

/* Hover */
header.header .navbar-nav > li > a:hover,
header.header .navbar-nav .nav-link:hover {
  color: #ff9c4a !important;
}
@media only screen and (max-width: 1024px) { 
    .n1 {display: none;}
}






/*********
MENU мобильное
*****************/
/* Style the navigation menu */
.topnav {
  position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

/* Style navigation menu links */
.topnav a {
	color: #fb414d;
	padding: 10px 15px;
	text-decoration: none;
	font-size: 17px;
	display: block;
	margin: 7px;
}

/* Style the hamburger menu */
.topnav a.icon {
  background: #FFFFFF;
  border:1px solid #fb414d;
  border-radius:50%;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}
#maximenuck114 .maximenumobiletogglericonck{color:#fff;cursor: pointer;}
#maximenuck114 .maximenumobiletogglericonc {color:#fff;cursor: pointer;}

/* Энциклопедический стиль */

.encyclopedia-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.encyclopedia-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.encyclopedia-subtitle {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 40px;
}

.encyclopedia-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-left: 6px solid #9c7b47;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.encyclopedia-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: #2c2c2c;
}

.accordion details {
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.accordion summary {
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.accordion .content p {
    margin: 6px 0;
    padding-left: 10px;
    font-size: 15px;
}


.encyclo-section{margin:40px 0;font-family:Georgia,serif;}
.encyclo-title{font-size:28px;font-weight:700;margin-bottom:10px;border-bottom:2px solid #999;padding-bottom:6px;}
.encyclo-subtitle{font-size:20px;margin:30px 0 15px 0;font-weight:600;}
.proverb-card{border:1px solid #ddd;padding:18px 20px;margin-bottom:15px;border-radius:6px;background:#fafafa;}
.proverb-text{font-size:17px;line-height:1.6;}
.proverb-source{font-size:13px;font-style:italic;color:#555;margin-top:8px;}
.variant{margin-top:10px;padding-left:15px;border-left:3px solid #ccc;}
details{margin-top:10px;}
summary{cursor:pointer;font-weight:600;}
hr.section-divider{margin:50px 0;border:none;border-top:1px solid #bbb;}

/* Шаблон пословиц */
.proverbs{
max-width:900px;
line-height:1.6;
font-family:Arial, sans-serif;
}

.40p{margin-left:40px;font-size:15px;font-style: italic; }

.saying{
margin-top:25px;
font-weight:bold;
}

.section-title{
margin-top:20px;
font-weight:bold;
text-transform:uppercase;
}

.source{
font-size:0.85em;
font-style:italic;
color:#444;
margin-left:6px;
}

.note{font-style:italic;
font-size:0.8em;
color:#333;
margin-left:30px;
}

.date{
font-style:italic;
margin:10px 0;
}

.divider{
text-align:center;
margin:20px 0;
letter-spacing:6px;
}

.phrase{
font-weight:bold;
margin-top:10px;
}

.wiki-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
margin-bottom:40px;
}
.wiki-box{
border:1px solid #d8d8d8;
background:#f9f9f9;
padding:20px;
border-radius:6px;
}

.gallery {clear: both;
  display: flex; /* Делает контейнер гибким */
  flex-direction: row; /* В линию */
  align-items: center; /* Центрирует изображения по вертикали */
  gap:20px; /* Расстояние между картинками */
  height: 100%; /* Общая высота ряда */
  flex-wrap: wrap;
}

.gallery img {
  height:100%; /* Картинки растягиваются на всю высоту контейнера */
  width: auto; /* Ширина подстраивается автоматически */
  max-width: 450px;
  min-width: 280px;
  object-fit: cover; /* Предотвращает искажение, если ширина сильно различается */
  text-align: center;
}

.div-same-size {text-align:center;
  width: 280px;
  height: 380px;
  /* overflow: hidden;  предотвращаем выход изображения за границы контейнера */
  
}

.div-same-size img {
  width: 90%;
  height: 90%;
  object-fit: cover;
}