img {
  max-width: 100%;
  height: auto;
}

:root {
	--bg-color: #fff;
	--text-color: #000;
	--bg-header-color: rgba(255, 255, 255, 0.8);
	--bg-card-color: #f8f8f8;
	--border-card: #eee;
	--bg-overlay: rgba(58, 58, 58, 0.8);
}

[data-theme='dark'] {
	--bg-color: #3a3a3a;
	--text-color: #f1f1f1;
	--bg-header-color: rgba(58, 58, 58, 0.8);
	--bg-card-color: #2a2a2a;
	--border-card: #ffffff26;
	--bg-overlay: rgba(255, 255, 255, 0.8);
}

body {
	background: var(--bg-color);
	color: var(--text-color);
	margin: 0;
}

main{padding:1em; box-sizing: border-box;}

body.no-scroll {
	overflow: hidden;
  }
  

#offcanvas-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--bg-overlay);
	z-index: 9998;
	display: none;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

#offcanvas-overlay.active {
	display: block;
	opacity: 1;
}

#offcanvas-menu {
	position: fixed;
	top: 0;
	left: -400px;
	width: 400px;
	height: 100%;
	background: var(--bg-color);
	color: var(--text-color);
	box-sizing: border-box;
	z-index: 9999;
	transition: left 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	max-width: 100%;
}

#offcanvas-menu.open {
	left: 0;
}

.offcanvas-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: bold;
	font-size: 20px;
	padding: 1em;
}

#offcanvas-close {
	background: none;
	color: var(--text-color);
	border: none;
	font-size: 32px;
	cursor: pointer;
}

.offcanvas-scrollable {
	flex: 1;
	overflow-y: auto;
	border-top: 1px solid var(--border-card);
	border-bottom: 1px solid var(--border-card);
	padding-left: 1em;
	padding-right: 1.2em;
}

.offcanvas-footer {
	position: sticky;
	bottom: 0;
	text-align: center;
	padding: 1em;
	font-size: 14px;
}

.offcanvas-footer a{
	background-color: var(--bg-card-color);
	color: var(--text-color);
	border: 1px solid var(--border-card);
	text-decoration: none;
	padding: 1em;
	font-size: 16px;
	display: block;
	border-radius: 3px;
}

  .offcanvas-readings {
    margin-top: 30px;
}

.reading-card {
    background-color: var(--bg-card-color);
	border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background 0.3s ease;
    text-align: center;
}

.reading-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.reading-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.reading-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.reading-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

/* Основной стиль для header */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;  /* Фиксированная высота */
	background: var(--bg-header-color);
	backdrop-filter: blur(5px);  /* Размытие фона */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* Легкая тень */
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
  }
  
  /* Внутри заголовка */
  .header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
  }
  
  /* Контейнер для кнопок в правой части */
  .header-controls {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
	flex-shrink: 0; /* Запрещаем сжатие */
  }
  
  /* Оставим ограничения для всех кнопок */
  .header-controls button {
	font-size: 16px;
	padding: 5px;
	cursor: pointer;
  }
  
/* Левая и правая части одинаковой ширины */
.header-left,
.header-controls {
	width: 80px; /* или 100px, в зависимости от нужной ширины */
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Центр по ширине автоматически */
#logo_title {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

#theme-icon {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}


  #offcanvas-toggle {
	font-size: 35px;
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
  }



/* Основной стиль для логотипа */
#logo img {
	max-width: 100%;
	height: 36px;
	transition: filter 0.3s ease; 
	margin-bottom: 2px;
  }
  
  /* Темная тема: применяем маску */
  [data-theme='dark'] #logo img {
	filter: brightness(0) invert(1); /* Инвертируем цвета изображения */
	mix-blend-mode: screen; /* Используем blend-mode для яркости */
  }
  
  /* Стиль для логотипа на светлой теме */
  [data-theme='light'] #logo img {
	filter: none; /* Без изменений */
  }


  [data-theme='dark'] #theme-icon {
	filter: invert(1);
}

#logo_title {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 6px;     /* отступ сверху */
	padding-bottom: 6px;  /* отступ снизу */
}


#title {
	font-size: 14px;
	color: var(--text-color);
	line-height: 1.2;
	text-transform: lowercase;
}


/* Кнопки управления справа */
.header-controls {
	display: flex;
	gap: 10px;
	align-items: center;
  }
  
  #theme-toggle,
  #language-toggle {
	font-size: 18px;
	background: none;
	border: none;
	cursor: pointer;
  }
  
  /* Стиль для кнопки смены языка */
  #language-toggle {
	font-size: 24px;
  }

  .more-text {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.6s ease;
}

.more-text.expanded {
	max-height: 3000px;
}

.read-more-link {
	padding: 4px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background .3s;
    box-sizing: border-box;
    cursor: pointer;
	margin-top: 1em;
    display: inline-block;
    font-size: 13px;
}

.read-more-link:hover {
    background-color: #0056b3;
}
.seo-tags a {
    margin-bottom: 5px;
	font-weight:bold;
    color: #0af;
    text-decoration: none;
}
.seo-tags a:hover {
    text-decoration: underline;
}


#content{
	min-height: calc(100vh - 132px);
}


  footer{    position: relative;
    bottom: 0;
    right: 0;
    padding: 1em 0; 
	background-color: var(--bg-card-color);
	border-top: 1px solid var(--border-card);}
  footer a{color: #0af;text-decoration:none;border-bottom:1px dashed #0af; font-weight: bold;}


  .content h2 {
    font-size: 18px;
    padding-bottom: .5em;
	font-weight:bold;
  }

  .content-link{
	color:#0af;
	text-decoration: none;
	}
	.content-link:hover{
		text-decoration: underline;
		}

  .faq {
	background-color: var(--bg-card-color);
	border-radius: 1em;
	border: 1px solid var(--border-card);
    padding: 1em;
    margin-top: 1em;
	margin-bottom: 1em;
  }

  .faq h3 {
    font-size: 18px;
    margin-bottom: 1em;
  }

  .faq-item {
    margin-bottom: 1em;
  }

  .faq-item h4 {
    font-size: 16px;
  }

  .faq-item p {
    font-size: 14px;
  }


  #panel {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	padding: 20px;
  }
  
  #panel a{
	text-decoration: none;
  }
  .card {
	background-color: var(--bg-card-color);
	border-radius: 1em;
	border: 1px solid var(--border-card);
	padding: 20px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
  }
  
  .card:hover, .reading-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .card-image {
	width: 100%;
	height: 250px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
  }
  
  .card-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
  }
  
  .card-title {
	font-size: 18px;
	font-weight: bold;
	margin-top: 15px;
	color: var(--text-color);
	text-transform: capitalize;
  }
  

.field{
	background-color: var(--bg-card-color);
	border-radius: 1em;
	border: 1px solid var(--border-card);
	padding: 1em;
	margin: 1em;
}

#field-info{
	text-align: center;
	font-size: 20px;
	margin: 1em 0;
}


.card-image.flashy-1, .reading-image.flashy-1 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-2, .reading-image.flashy-2 {
    background: linear-gradient(135deg, #f5a7b8 0%, #f7a3a4 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-3, .reading-image.flashy-3 {
    background: linear-gradient(135deg, #d4e157 0%, #8bc34a 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-4, .reading-image.flashy-4 {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-5, .reading-image.flashy-5 {
    background: linear-gradient(135deg, #673ab7 0%, #3f51b5 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-6, .reading-image.flashy-6 {
    background: linear-gradient(135deg, #00bcd4 0%, #009688 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-7, .reading-image.flashy-7 {
    background: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-8, .reading-image.flashy-8 {
    background: linear-gradient(135deg, #2196f3 0%, #3f51b5 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-9, .reading-image.flashy-9 {
    background: linear-gradient(135deg, #cddc39 0%, #8bc34a 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

.card-image.flashy-10, .reading-image.flashy-10 {
    background: linear-gradient(135deg, #ff5722 0%, #795548 100%);
    animation: flashyFade 8s ease-in-out infinite;
    background-size: 150% 150%;
}

@keyframes flashyFade {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}


*{padding:0; margin:0}
body{font:15px helvetica, sans-serif; line-height:1.6em; padding-top: 80px;}

header, footer, #content, main{float:left; width:100%;}
.container{width:1000px; margin:0 auto;}

h1,h2,h3{font-weight:100;}
h1 {font-size:125%}
h2 {font-size:115%}
h3 {font-size:105%}

p{margin-bottom:1em}
strong {font-weight:bold}

.title{text-align:center; margin:1em auto; text-transform: uppercase; font-size: 20px; font-weight: bold;}
.article{text-align:justify;}


@media screen and (min-width:300px) and (max-width:768px) {

#mobile-menu,#recom{display:block}
 

#content{padding-left:1em; padding-right: 1em; box-sizing: border-box;}	
main, aside{width:100% !important;}		
}

@media only screen and (min-width: 600px) and (max-width: 970px) {
	.container{min-width:600px; max-width:940px; width:100%}
}

@media only screen and  (min-width: 300px) and (max-width: 599px) {
	.container{min-width:300px; max-width:570px; width:100%}
}





.ad-left,.ad-right{position:fixed;top:90px;width:160px;height:auto;z-index:1000;}
.ad-left{left:10px}
.ad-right{right:10px}
@media (max-width: 1200px){.ad-left,.ad-right{display:none}}
@media (min-width: 1400px){.ad-left{left: calc(50% - 680px);}.ad-right{right: calc(50% - 680px);}}