/* =====================================================================
   Optimatest — современный слой (child obscorp-modern).
   Палитра сайта: #1d5888 (синий), #cb1d35 (акцент), #333 текст.
   ===================================================================== */
:root {
	--optm-primary: #1d5888;
	--optm-primary-dark: #143f63;
	--optm-accent: #cb1d35;
	--optm-text: #2b3440;
	--optm-muted: #6b7785;
	--optm-bg: #f5f8fb;
	--optm-line: #e2e8ef;
	--optm-radius: 10px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--optm-bg); color: var(--optm-text); font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#optm-page { min-height: 100vh; display: flex; flex-direction: column; }
.optm-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--optm-primary); }

/* Топбар */
.optm-topbar { background: var(--optm-primary-dark); color: #cdd9e6; font-size: 13px; }
.optm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.optm-langs { display: flex; flex-wrap: wrap; gap: 4px; }
.optm-langs__item { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; color: #cdd9e6; text-decoration: none; }
.optm-langs__item:hover { background: rgba(255,255,255,.12); color: #fff; }
.optm-langs__item.is-active { background: rgba(255,255,255,.18); color: #fff; }
.optm-contacts a { color: #e8eef5; text-decoration: none; margin-left: 16px; white-space: nowrap; }
.optm-contacts a:hover { color: #fff; }

/* Шапка */
.optm-header { background: #fff; border-bottom: 1px solid var(--optm-line); position: sticky; top: 0; z-index: 50; }
.optm-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.optm-brand { display: flex; flex-direction: column; text-decoration: none; }
.optm-brand__name { font-size: 26px; font-weight: 800; color: var(--optm-primary); letter-spacing: .3px; line-height: 1; }
.optm-brand__sub { font-size: 12px; color: var(--optm-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .06em; }
.optm-nav { margin-left: auto; }
.optm-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.optm-nav__list a { display: block; padding: 9px 12px; color: var(--optm-text); text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 15px; }
.optm-nav__list a:hover, .optm-nav__list .current-menu-item > a { background: #eef4fa; color: var(--optm-primary); }
.optm-nav__list ul { position: absolute; background: #fff; border: 1px solid var(--optm-line); border-radius: 8px; box-shadow: 0 12px 30px rgba(20,63,99,.14); list-style: none; margin: 6px 0 0; padding: 6px; min-width: 220px; display: none; z-index: 60; }
.optm-nav__list li:hover > ul { display: block; }
.optm-header__cta { background: var(--optm-accent); color: #fff !important; text-decoration: none; padding: 11px 20px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.optm-header__cta:hover { filter: brightness(.94); }
#optm-burger { display: none; }

/* Хлебные крошки */
.optm-crumbs { font-size: 13px; color: var(--optm-muted); padding: 12px 0 0; }
.optm-crumbs a { color: var(--optm-primary); text-decoration: none; }

/* Каркас */
.optm-main { flex: 1; padding: 22px 0 40px; }
.optm-layout { display: flex; gap: 28px; align-items: flex-start; }
.optm-content { flex: 1; min-width: 0; }
.optm-sidebar { flex: 0 0 300px; }

/* Заголовки и типографика */
.optm-title { color: var(--optm-primary-dark); font-size: 30px; line-height: 1.25; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--optm-line); position: relative; }
.optm-title:after { content: ""; position: absolute; left: 0; bottom: -3px; width: 70px; height: 3px; background: var(--optm-accent); }
.optm-entry { font-size: 16.5px; }
.optm-entry p { margin: 0 0 15px; }
.optm-entry h2 { font-size: 23px; color: var(--optm-primary-dark); margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--optm-primary); }
.optm-entry h3 { font-size: 19px; color: var(--optm-primary); margin: 20px 0 10px; }
.optm-entry ul, .optm-entry ol { margin: 12px 0 18px; padding-left: 24px; }
.optm-entry ul { list-style: none; padding-left: 4px; }
.optm-entry ul li { position: relative; padding: 4px 0 4px 26px; }
.optm-entry ul li:before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 8px; border-left: 2.5px solid var(--optm-accent); border-bottom: 2.5px solid var(--optm-accent); transform: rotate(-45deg); }
.optm-entry ol li { padding: 4px 0; }
.optm-entry a { color: var(--optm-primary); }
.optm-entry a:hover { color: var(--optm-accent); }
.optm-entry strong { color: #1b2430; }
.optm-entry blockquote { margin: 18px 0; padding: 14px 18px; background: #eef4fa; border-left: 4px solid var(--optm-primary); border-radius: 0 8px 8px 0; color: #34404d; }
.optm-entry table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.optm-entry th, .optm-entry td { border: 1px solid var(--optm-line); padding: 9px 12px; text-align: left; }
.optm-entry th { background: #eef4fa; color: var(--optm-primary-dark); }
.optm-entry tbody tr:nth-child(even) { background: #fafcfe; }
.optm-entry img { border-radius: 8px; }
.optm-meta { font-size: 13px; color: var(--optm-muted); margin: -8px 0 16px; }

/* Карточки списка */
.optm-list { display: grid; gap: 16px; }
.optm-card { background: #fff; border: 1px solid var(--optm-line); border-radius: var(--optm-radius); padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,63,99,.05); }
.optm-card__title { margin: 0 0 8px; font-size: 20px; }
.optm-card__title a { color: var(--optm-primary-dark); text-decoration: none; }
.optm-card__title a:hover { color: var(--optm-accent); }
.optm-card__ex { color: var(--optm-muted); margin-bottom: 10px; }
.optm-card__more { font-weight: 700; color: var(--optm-accent); text-decoration: none; }
.optm-pagenav { display: flex; justify-content: space-between; margin: 22px 0; }
.optm-pagenav a { font-weight: 700; text-decoration: none; }

/* Сайдбар */
.optm-sidebar .optm-widget, .optm-sidebar .widget, .optm-sidebar .widget-body { background: #fff; border: 1px solid var(--optm-line); border-radius: var(--optm-radius); padding: 16px 18px; margin-bottom: 18px; }
.optm-sidebar h3, .optm-sidebar .widgettitle { font-size: 16px; color: var(--optm-primary-dark); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--optm-line); }
.optm-sidebar ul { list-style: none; margin: 0; padding: 0; }
.optm-sidebar li { padding: 5px 0; border-bottom: 1px dotted var(--optm-line); }
.optm-sidebar li:last-child { border-bottom: 0; }
.optm-sidebar a { text-decoration: none; }
.optm-sidebar a:hover { color: var(--optm-accent); }
.optm-sidebar input[type=text], .optm-sidebar input[type=search], .optm-sidebar input[type=email] { width: 100%; padding: 9px 11px; border: 1px solid var(--optm-line); border-radius: 7px; }

/* Формы */
input[type=text], input[type=email], input[type=tel], textarea, select { font-size: 15px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--optm-line); border-radius: 8px; margin-bottom: 10px; }
.wpcf7 input[type=submit], .wpcf7 button, button[type=submit] { background: var(--optm-primary); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 700; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--optm-primary-dark); }

/* Подвал */
.optm-footer { background: var(--optm-primary-dark); color: #c8d6e5; margin-top: auto; padding: 34px 0 14px; }
.optm-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.optm-footer__col strong { display: block; color: #fff; margin-bottom: 10px; }
.optm-footer__col a { display: block; color: #c8d6e5; text-decoration: none; margin: 5px 0; }
.optm-footer__col a:hover { color: #fff; }
.optm-footer__brand { font-size: 22px; font-weight: 800; color: #fff; display: block; margin-bottom: 8px; }
.optm-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.optm-footer__bottom nav a { color: #c8d6e5; text-decoration: none; margin-left: 14px; }

/* Мобильные */
@media (max-width: 900px) {
	.optm-layout { flex-direction: column; }
	.optm-sidebar { flex: 1 1 auto; width: 100%; }
	.optm-header__inner { flex-wrap: wrap; row-gap: 8px; }
	.optm-brand { flex: 1 1 auto; }
	#optm-burger { display: inline-block; margin-left: 0; padding: 9px 14px; background: var(--optm-primary); color: #fff; border: 0; border-radius: 8px; font-size: 15px; cursor: pointer; }
	.optm-nav { order: 4; flex-basis: 100%; display: none; }
	body.optm-nav-open .optm-nav { display: block; }
	.optm-nav__list { flex-direction: column; }
	.optm-header__cta { order: 3; flex: 1 1 100%; text-align: center; }
	.optm-title { font-size: 24px; }
	.optm-footer__grid { grid-template-columns: 1fr; }
	.optm-contacts a { margin-left: 0; }
}
