/* Levitest Modern — адаптивный слой поверх родителя. Палитра сохранена (#5B94BE, #0E246A, #34668a, #dff4ff). */

/* Базовое: родитель фиксирует 1100px — растягиваем адаптивно.
   Правка pre-existing бага: колонки 216+660+216=1092 > контейнера 1080,
   из-за чего #main-block падал под сайдбары на ~850px. */
#root { width: auto !important; max-width: 1100px; margin: 0 auto; padding: 0 10px; box-sizing: border-box; }
#main-block { width: 640px !important; }
#content img { max-width: 100%; height: auto; }

/* Бургер */
#lev-burger { display: none; }

/* Топ-навигация */
.lev-topnav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.lev-topnav li { display: flex; align-items: center; }
.lev-topnav li a { color: #fefefe; font-weight: bold; padding: 8px 10px; text-decoration: none; }
.lev-topnav li a:hover { text-decoration: underline; }

/* Контакты в шапке */
.lev-contacts { font-size: 13px; }
.lev-contact { padding: 1px 0; }
.lev-contact a { color: #0e246a; text-decoration: none; }

/* Hero на главной */
.lev-hero { background: #e7f5fe; border: 1px solid #b8e0fa; border-radius: 6px; padding: 22px 24px; margin-bottom: 18px; }
.lev-hero__eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #34668a; margin: 0 0 6px; font-weight: bold; }
.lev-hero h1 { margin: 0 0 12px; font-size: 26px; color: #0e246a; }
.lev-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lev-hero__btn { display: inline-block; padding: 10px 20px; background: #34668a; color: #fff !important; text-decoration: none; font-weight: bold; border-radius: 4px; }
.lev-hero__btn--ghost { background: #fff; color: #0e246a !important; border: 1px solid #34668a; }

/* Карточки (списки/рубрики/архивы) */
.lev-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.lev-card { border: 1px solid #d7d7d7; border-top: 3px solid #34668a; background: #fff; padding: 14px 16px; }
.lev-card__title { margin: 0 0 6px; font-size: 17px; }
.lev-card__title a { color: #265a8b; text-decoration: none; }
.lev-card__ex { font-size: 14px; color: #646464; margin: 6px 0; }
.lev-card__more { font-size: 14px; font-weight: bold; color: #34668a; text-decoration: none; }
.lev-archive-title { font-size: 22px; color: #0e246a; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #b8e0fa; }

/* Контент: типографика */
#content .entry p { line-height: 1.55; }
#content .entry h2 { font-size: 20px; margin: 20px 0 10px; padding-left: 10px; border-left: 4px solid #5b94be; color: #0e246a; }
#content .entry h3 { font-size: 17px; margin: 16px 0 8px; color: #265a8b; }
#content .entry table { border-collapse: collapse; margin: 12px 0; max-width: 100%; }
#content .entry th, #content .entry td { border: 1px solid #d7d7d7; padding: 6px 10px; }
#content .entry th { background: #e7f5fe; }
#content .entry blockquote { border-left: 3px solid #b8e0fa; margin: 10px 0; padding: 4px 12px; color: #555; background: #f5f5f5; }

/* Футер */
#footer { width: auto !important; height: auto !important; background-image: none !important; background-color: #0e246a !important; color: #dff4ff; margin-top: 10px; padding: 16px; border-radius: 6px; }
.lev-footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 12px; }
.lev-footer__col strong { display: block; margin-bottom: 8px; color: #fff; font-size: 15px; }
.lev-footer__col a { display: block; color: #b8e0fa; text-decoration: none; margin: 4px 0; font-size: 13px; }
.lev-footer__col a:hover { color: #fff; text-decoration: underline; }
#footer #yearofcreate { font-size: 13px; color: #dff4ff; margin-bottom: 8px; }

/* Мобильные */
@media (max-width: 860px) {
	#root { padding: 0 6px; }
	.header { width: auto !important; }
	.header_top { height: auto !important; }
	.header_top ul { position: static !important; margin-left: 0 !important; }
	.header_main { height: auto !important; }
	.header_main .logo { margin: 8px 0 !important; }
	#left-block, .left-line { width: 100% !important; float: none !important; }
	#main-block { width: auto !important; float: none !important; }
	.menu, .menu-menyu-bazy-container .menu { width: auto !important; height: auto !important; float: none !important; }
	.menu li, .menu-menyu-bazy-container .menu li { float: none !important; }
	#content { width: auto !important; }
	#lev-burger { display: inline-block; padding: 8px 14px; font-size: 15px; cursor: pointer; background: #34668a; color: #fff; border: 0; border-radius: 4px; }
	.lev-topnav ul { display: none; flex-direction: column; }
	body.lev-nav-open .lev-topnav ul { display: flex; }
	.lev-topnav li a { padding: 6px 0; }
	.header_main img.logo { max-width: 100%; height: auto; }
	.lev-footer { grid-template-columns: 1fr; }
	#content .entry table { display: block; overflow-x: auto; }
}
