/*
 * Your-T — основная тема: «рамка» сайта (шапка, меню, колонки, подвал, рубрики, поиск, 404).
 * Содержимое статей и модулей сохраняет собственные стили; правила старого шаблона, на которые оно опирается, — в legacy.css.
 * Фирменные цвета: синий #0d5bd7 (логотип Your-T), тёмно-синий подвал, акцент — оранжевый кот на логотипе.
 */

/* --- Шрифты (свои, без внешних запросов): Oswald — заголовки и меню, Open Sans — текст (как в старом шаблоне) --- */
@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald-cyr.woff2") format("woff2");
	font-weight: 300 600;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Oswald";
	src: url("../fonts/oswald-lat.woff2") format("woff2");
	font-weight: 300 600;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	src: url("../fonts/opensans-cyr.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Open Sans";
	src: url("../fonts/opensans-lat.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--yt-primary: #0d5bd7;
	--yt-primary-dark: #0a47a8;
	--yt-primary-soft: #e8f0fe;
	--yt-accent: #ff8a00;
	--yt-text: #1f2937;
	--yt-muted: #5b6575;
	--yt-bg: #f4f7fb;
	--yt-card: #ffffff;
	--yt-line: #e2e8f0;         /* светлые рамки карточек и разделители */
	--yt-line-strong: #cbd5e1;  /* рамки полей ввода */
	--yt-navy: #0e2240;
	--yt-radius: 10px;          /* карточки */
	--yt-radius-sm: 8px;        /* кнопки, поля */
	--yt-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	--yt-ring: 0 0 0 3px rgba(13, 91, 215, .18); /* фокус полей */
	--yt-wrap: 1500px;
	--yt-left: 240px;
	--yt-right: 250px;
	--yt-gap: 20px;
	--yt-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--yt-head: "Oswald", "Arial Narrow", var(--yt-font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 16px/1.6 var(--yt-font);
	color: var(--yt-text);
	background: var(--yt-bg);
	overflow-wrap: break-word;
}
img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--yt-primary); }
a:hover { color: var(--yt-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--yt-primary); outline-offset: 2px; }
::selection { background: #cfe0fb; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.yt-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 8px; }
.yt-wrap { width: 100%; max-width: var(--yt-wrap); margin: 0 auto; padding: 0 16px; }

/* Полоска «тестовая версия» — только не на боевом сайте (header.php) */
.yt-testbar { padding: 4px 16px; background: #fff4d6; border-bottom: 1px solid #f1d79a; color: #7a5200; font-size: 13px; line-height: 1.4; text-align: center; }

/* --- Шапка: логотип, поиск, ссылка «Учителям», бургер --- */
.yt-header { background: #fff; border-bottom: 1px solid var(--yt-line); position: relative; z-index: 20; }
.yt-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 76px; }
.yt-brand { margin-right: auto; }
.yt-brand p { margin: 0; }
.yt-brand img { display: block; width: 190px; max-width: 46vw; height: auto; }
.yt-header__search { flex: 0 1 440px; min-width: 0; }
.yt-header__tools { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.yt-header__tools p { margin: 0; }
.yt-header__tools div a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--yt-radius-sm); background: var(--yt-primary-soft); color: var(--yt-primary-dark); font: 600 14px/1 var(--yt-font); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.yt-header__tools div a:hover { background: var(--yt-primary); color: #fff; }
.yt-search-toggle { display: none; width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--yt-radius-sm); background: var(--yt-primary-soft) no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d5bd7' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E"); }
.yt-search-toggle[aria-expanded="true"] { background-color: #d5e3fc; }

/* --- Главное меню --- */
.yt-nav { background: var(--yt-primary); }
.yt-nav ul { list-style: none; margin: 0; padding: 5px 0; display: flex; flex-wrap: wrap; gap: 4px; }
.yt-nav li { margin: 0; }
.yt-nav a, .yt-nav .nav-header { display: block; padding: 7px 14px; color: #fff; text-decoration: none; font: 500 15px/1.2 var(--yt-head); letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; transition: background-color .15s; }
.yt-nav a:hover, .yt-nav .current > a, .yt-nav .active > a { background: rgba(255, 255, 255, .16); color: #fff; }
.yt-nav ul ul { display: none; }
.yt-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--yt-radius-sm); background: var(--yt-primary-soft); cursor: pointer; padding: 10px; }
.yt-burger span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: var(--yt-primary); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* --- Слайдер баннеров (позиция header, только на главной) --- */
.yt-header__extra { padding-top: 14px; padding-bottom: 6px; }
.yt-header__extra .custom, .yt-header__extra p { margin: 0; }
.yt-header__extra .yt-slider { max-width: 1100px; margin: 0 auto; }
.yt-header__extra .yt-slider__track { border-radius: var(--yt-radius); background: #fff; }
.yt-header__extra .yt-slider__slide { aspect-ratio: 21 / 5; } /* баннеры 1050×250: место под картинку резервируется до загрузки (нет скачка вёрстки) */
.yt-header__extra .yt-slider__slide a { display: block; }
.yt-header__extra .yt-slider__slide img { display: block; width: 100%; height: auto; margin: 0; }

/* --- Строка под меню: декоративная полоса на внутренних страницах (поиск — в шапке) --- */
.yt-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.yt-banner:empty { display: none; }
.yt-banner > .za-mob-baner { flex: 1 1 100%; order: -1; margin: -12px -16px 0; width: calc(100% + 32px); max-width: none; overflow: hidden; }
.yt-banner > .za-mob-baner:last-child { margin-bottom: -12px; } /* одна полоса без строки под ней — без пустого отступа */
.yt-banner > .za-mob-baner > div { background-repeat: no-repeat; background-size: auto 110px; height: 110px; line-height: 0; font-size: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.yt-banner > div:first-child[style*="background-image"] { flex: 1 1 100%; border-radius: var(--yt-radius); }
.yt-banner ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.yt-banner ul.menu a { display: inline-block; padding: 6px 12px; border-radius: var(--yt-radius-sm); background: var(--yt-primary-soft); text-decoration: none; font-size: 14px; }

/* --- Поиск: в шапке и на странице результатов --- */
.yt-search { display: flex; gap: 6px; max-width: 420px; flex: 1 1 280px; margin-left: auto; }
.yt-search input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--yt-line-strong); border-radius: var(--yt-radius-sm); font: inherit; font-size: 15px; background: #fff; color: var(--yt-text); }
.yt-search input:focus { outline: 0; border-color: var(--yt-primary); box-shadow: var(--yt-ring); }
.yt-search button, .yt-btn, .yt-form button { height: 40px; padding: 0 18px; border: 0; border-radius: var(--yt-radius-sm); background: var(--yt-primary); color: #fff; font: 600 15px/40px var(--yt-font); cursor: pointer; text-decoration: none; display: inline-block; transition: background-color .15s; }
.yt-search button:hover, .yt-btn:hover, .yt-form button:hover { background: var(--yt-primary-dark); color: #fff; }
.yt-main .yt-search { margin: 0 0 18px; flex: none; max-width: 520px; }
/* в шапке: компактное поле, кнопка — лупа внутри поля (подпись «Найти» остаётся для экранных чтецов) */
.yt-header__search .yt-search { position: relative; max-width: none; margin: 0; }
.yt-header__search .yt-search input { padding-right: 46px; border-color: var(--yt-line); background: var(--yt-bg); }
.yt-header__search .yt-search input:focus { background: #fff; }
.yt-header__search .yt-search button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; padding: 0; border-radius: 6px; font-size: 0; line-height: 0; color: transparent;
	background: transparent no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6575' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E"); }
.yt-header__search .yt-search button:hover { background-color: var(--yt-primary-soft); }

/* --- Сетка страницы: на ПК 3 колонки, на телефоне сначала содержимое --- */
.yt-page { display: grid; gap: var(--yt-gap); padding-top: 20px; padding-bottom: 32px; grid-template-columns: minmax(0, 1fr); }
.yt-main { min-width: 0; align-self: start; background: var(--yt-card); border: 1px solid var(--yt-line); border-radius: var(--yt-radius); box-shadow: var(--yt-shadow); padding: 24px; }
.yt-main > :first-child { margin-top: 0; }
.yt-side { min-width: 0; align-self: start; }
@media (min-width: 1100px) {
	.yt-page.has-left.has-right { grid-template-columns: var(--yt-left) minmax(0, 1fr) var(--yt-right); }
	.yt-page.has-left:not(.has-right) { grid-template-columns: var(--yt-left) minmax(0, 1fr); }
	.yt-page.has-right:not(.has-left) { grid-template-columns: minmax(0, 1fr) var(--yt-right); }
	.yt-page.has-left .yt-side--left { grid-column: 1; grid-row: 1; }
	.yt-page.has-left .yt-main { grid-column: 2; grid-row: 1; }
	.yt-page.has-left.has-right .yt-side--right { grid-column: 3; grid-row: 1; }
	.yt-page.has-right:not(.has-left) .yt-side--right { grid-column: 2; grid-row: 1; }
}
@media (min-width: 760px) and (max-width: 1099px) {
	.yt-page.has-left.has-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.yt-page .yt-main { grid-column: 1 / -1; }
}

/* --- Модули в колонках --- */
.yt-module { background: var(--yt-card); border: 1px solid var(--yt-line); border-radius: var(--yt-radius); box-shadow: var(--yt-shadow); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
.yt-module:has(> .yt-module__body:empty):not(:has(> .yt-module__title)) { display: none; }
/* пустой рекламный контейнер Яндекса (скрипты на локальной копии не грузятся): без рекламы — без пустой карточки */
.yt-module:has(.custom > [id^="yandex_rtb_"]:empty:only-child) { display: none; }
.yt-module__title { margin: 0 0 10px; font: 500 17px/1.25 var(--yt-head); letter-spacing: .02em; color: var(--yt-text); }
.yt-module ul.menu, .yt-module ul.category-module, .yt-module ul.mod-list { list-style: none; margin: 0; padding: 0; }
.yt-module ul.menu li, .yt-module ul.category-module li { margin: 0; padding: 0; border-bottom: 1px solid var(--yt-line); }
.yt-module ul.menu li:last-child, .yt-module ul.category-module li:last-child { border-bottom: 0; }
.yt-module ul.menu a, .yt-module ul.category-module a { display: block; padding: 7px 2px; text-decoration: none; }
.yt-module ul.menu a:hover, .yt-module ul.category-module a:hover { text-decoration: underline; }
.yt-module ul.menu li.current > a, .yt-module ul.menu li.active > a { font-weight: 600; color: var(--yt-primary-dark); }
.yt-module ul.menu ul { padding-left: 12px; }
.yt-module .custom img { max-width: 100%; height: auto; }
.yt-side .yt-module--custom { padding: 12px; }

/* Форма обратной связи (yt_contact_form_html: «Учителям», модули в колонках): подпись над полем, поля одной ширины.
   Перебивает правила содержимого из legacy.css (content-box, поля width:auto). */
.yt-form, .yt-form * { box-sizing: border-box; }
.yt-form { max-width: 560px; margin: 16px 0 8px; }
.yt-form p { margin: 0 0 14px; text-align: left; }
.yt-form label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--yt-text); }
.yt-form input[type="text"], .yt-form input[type="email"], .yt-form textarea {
	display: block; width: 100%; max-width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--yt-line-strong); border-radius: var(--yt-radius-sm);
	background: #fff; color: var(--yt-text) !important; font: inherit; font-size: 15px; line-height: 1.4;
}
.yt-form input:focus, .yt-form textarea:focus { outline: 0; border-color: var(--yt-primary); box-shadow: var(--yt-ring); }
.yt-form textarea { min-height: 150px; resize: vertical; }
.yt-module .yt-form { max-width: none; margin: 0; }
.yt-module .yt-form p { margin-bottom: 10px; }
.yt-module .yt-form label { font-size: 13px; font-weight: 400; color: var(--yt-muted); margin-bottom: 4px; }
.yt-module .yt-form input[type="text"], .yt-module .yt-form input[type="email"], .yt-module .yt-form textarea { padding: 9px 12px; font-size: 14px; }
.yt-module .yt-form textarea { min-height: 96px; }
.yt-hp { position: absolute; left: -9999px; }
.yt-form__ok { max-width: 560px; padding: 10px 12px; border-radius: 8px; background: #e7f7ee; color: #116b3a; }

/* --- Статья: заголовок страницы (h1 — название пункта меню), заголовок статьи (h2), просмотры --- */
.yt-article .page-header { margin: 0; }
.yt-article .page-header h1, .yt-article .page-header h2, .yt-cat-title, .yt-blog__title {
	font: 400 clamp(26px, 3.2vw, 36px)/1.15 var(--yt-head);
	letter-spacing: .005em;
	margin: 0 0 10px;
	padding: 0;
	color: #13213a;
	text-align: left;
}
.yt-article .page-header h2 { font-size: clamp(24px, 3vw, 34px); }
.yt-article > .page-header:has(h1) + .page-header h2 { font-size: clamp(20px, 2.3vw, 26px); color: #2b3b57; }
.yt-blog__title { font-size: clamp(22px, 2.6vw, 28px); }
.yt-blog__title a { color: inherit; text-decoration: none; }
.yt-blog__title a:hover { color: var(--yt-primary); }
.article-info { margin: 0 0 14px; padding: 0; color: var(--yt-muted); font-size: 13px; display: flex; gap: 16px; }
.article-info dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.yt-eye { width: 18px; height: 18px; display: inline-block; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6575' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.yt-article__body { overflow-x: auto; }
.yt-article__body > :first-child { margin-top: 0; }
.yt-article__body hr { border: 0; border-top: 1px solid var(--yt-line); margin: 16px 0; }
.yt-article__body iframe { border: 0; }
.yt-article__body pre { background: #f6f8fb; border: 1px solid var(--yt-line); border-radius: 8px; padding: 12px; }

/* --- Рубрики, поиск, пагинация --- */
.yt-cat-title { display: block; }
.category-desc { margin: 0 0 16px; }
.yt-blog__item { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--yt-line); }
.yt-blog__item:last-of-type { border-bottom: 0; }
.yt-blog__meta { color: var(--yt-muted); font-size: 13px; margin-bottom: 8px; }
.yt-main .yt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.yt-main .yt-table th, .yt-main .yt-table td { text-align: left; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--yt-line); font-size: 15px; }
.yt-main .yt-table th { font: 600 13px/1.2 var(--yt-font); text-transform: uppercase; letter-spacing: .05em; color: var(--yt-muted); }
.yt-main .yt-table tbody tr:hover td { background: var(--yt-primary-soft); }
.cat-children { margin: 24px 0 8px; }
.cat-children > h3 { font: 600 13px/1.2 var(--yt-font); text-transform: uppercase; letter-spacing: .05em; color: var(--yt-muted); margin: 0 0 6px; }
.cat-children .item-title { font-size: 17px; line-height: 1.35; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--yt-line); }
.cat-children .last .item-title { border-bottom: 0; }
.cat-children .item-title a { text-decoration: none; }
.cat-children .item-title a:hover { text-decoration: underline; }
.cat-children .badge { font: 500 12px/1 var(--yt-font); color: var(--yt-muted); margin-left: 6px; white-space: nowrap; }
.yt-notice { padding: 16px 20px; border: 1px solid var(--yt-line); border-left: 4px solid var(--yt-primary); border-radius: var(--yt-radius-sm); background: var(--yt-primary-soft); margin: 8px 0 20px; }
.yt-notice p { margin: 0 0 8px; }
.yt-notice p:last-child { margin: 0; }
.yt-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 6px; }
.yt-pagination li { margin: 0; padding: 0; }
.yt-pagination a, .yt-pagination span { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border-radius: var(--yt-radius-sm); border: 1px solid var(--yt-line); text-decoration: none; background: #fff; }
.yt-pagination a:hover { border-color: var(--yt-primary); }
.yt-pagination .active span { background: var(--yt-primary); border-color: var(--yt-primary); color: #fff; }
.yt-pagination .counter { color: var(--yt-muted); font-size: 13px; margin: 6px 0 0; }
.search-results { margin: 0; }
.search-results dt { margin-top: 18px; font-weight: 600; }
.search-results dt a { text-decoration: none; }
.search-results dt a:hover { text-decoration: underline; }
.search-results dd { margin: 4px 0 0; color: var(--yt-muted); font-size: 15px; }
.searchintro { margin: 0 0 4px; color: var(--yt-muted); }
.navigation.pagination { margin-top: 24px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.navigation.pagination .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border-radius: var(--yt-radius-sm); border: 1px solid var(--yt-line); text-decoration: none; background: #fff; }
.navigation.pagination .page-numbers.current { background: var(--yt-primary); border-color: var(--yt-primary); color: #fff; }
.navigation.pagination a.page-numbers:hover { border-color: var(--yt-primary); }
.yt-404 { padding: 8px 0 24px; }
.yt-404 p { margin: 0 0 16px; font-size: 17px; }
.yt-404__links { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.yt-404__links li { margin: 0; padding: 0; }
.yt-404__links a { display: block; padding: 12px 16px; border: 1px solid var(--yt-line); border-radius: var(--yt-radius-sm); background: #fff; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.yt-404__links a:hover { border-color: var(--yt-primary); background: var(--yt-primary-soft); }

/* --- Подвал --- */
.yt-footer { background: var(--yt-navy); color: #c9d6ea; padding: 36px 0 16px; font-size: 14px; }
.yt-footer a { color: #fff; }
.yt-footer__cols { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.yt-footer .yt-module { background: transparent; border: 0; box-shadow: none; padding: 0; margin-bottom: 12px; color: inherit; }
.yt-footer .yt-module__title { color: #fff; font-size: 18px; margin-bottom: 8px; }
.yt-footer ul.menu li { border-color: rgba(255, 255, 255, .12); }
.yt-footer ul.menu a { text-decoration: none; }
.yt-footer ul.menu a:hover { text-decoration: underline; }
.yt-footer__copy { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8ea3c4; font-size: 13px; }

.yt-top-btn { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: var(--yt-radius); border: 0; background: var(--yt-primary); color: #fff; font-size: 20px; box-shadow: var(--yt-shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.yt-top-btn.is-on { opacity: .9; pointer-events: auto; }

/* --- Особые макеты старого сайта (лендинги без колонок) --- */
.yt-layout-landing .yt-main, .yt-layout-skype .yt-main { padding: 0; background: transparent; border: 0; box-shadow: none; }

/* --- Планшет и телефон --- */
@media (max-width: 860px) {
	.yt-burger { display: block; }
	.yt-nav { display: none; }
	.yt-nav.is-open { display: block; }
	.yt-nav ul { flex-direction: column; padding: 8px 0; gap: 2px; }
	.yt-nav a { padding: 12px 14px; }
	.yt-header__bar { min-height: 64px; }
	.yt-brand img { width: 150px; }
	.yt-header__tools { gap: 8px; }
	.yt-header__tools div a { padding: 0 12px; font-size: 13px; }
	.yt-search-toggle { display: block; }
	.yt-header__search { display: none; order: 3; flex: 1 1 100%; padding-bottom: 12px; }
	.yt-header__search.is-open { display: block; }
	.yt-header__extra { padding-top: 8px; }
	.yt-main { padding: 16px; border: 0; border-radius: 0; box-shadow: none; margin: 0 -16px; }
	.yt-page { padding-top: 0; gap: 16px; }
	.yt-search { flex-basis: 100%; max-width: none; }
	.yt-main .yt-search { max-width: none; }
	.yt-footer__cols { grid-template-columns: 1fr 1fr; }
	body.yt-nav-open .yt-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	body.yt-nav-open .yt-burger span:nth-child(2) { opacity: 0; }
	body.yt-nav-open .yt-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 650px) {
	.yt-banner > .za-mob-baner { display: none; }
	.yt-banner:not(:has(> :not(.za-mob-baner))) { display: none; } /* кроме скрытой полосы ничего нет — без пустой строки */
	.yt-banner { padding-top: 10px; padding-bottom: 10px; }
	.yt-footer__cols { grid-template-columns: 1fr; }
	.article-info { flex-wrap: wrap; }
}
@media (max-width: 400px) { /* узкие телефоны (360 px): логотип, лупа, «Учителям» и бургер — в одну строку */
	.yt-header__bar { gap: 10px 6px; }
	.yt-brand img { width: 128px; }
	.yt-header__tools { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
	.yt-header, .yt-side, .yt-footer, .yt-top-btn { display: none; }
	.yt-main { box-shadow: none; padding: 0; }
}
