/* ==========================================================================
   Шаблон «Спортивные Мытищи» — стили
   Свои правки пишите в media/templates/site/mytsport/css/user.css —
   этот файл подключается автоматически и не перезаписывается при обновлении.
   ========================================================================== */

:root {
	--navy: #072A5E;
	--blue: #0A3A82;
	--blue-2: #0D4AA6;
	--blue-3: #2B6FD6;
	--green: #15874A;
	--green-2: #1E9E5A;
	--ink: #0E1B2E;
	--muted: #55667E;
	--line: #DCE4EF;
	--bg: #F3F6FA;
	--soft: #EEF3F9;
	--white: #FFFFFF;
	--accent: #C6F432;
	--accent-ink: #072A5E;
	--r-l: 28px;
	--r-m: 22px;
	--r-s: 14px;
	--f-head: 'Unbounded', 'Arial Black', system-ui, sans-serif;
	--f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--wrap: 1280px;
}
html[data-accent="yellow"] { --accent: #FFC93C; --accent-ink: #072A5E; }
html[data-accent="red"]    { --accent: #E8423A; --accent-ink: #FFFFFF; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--green); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }
h4, h5, h6 { font-size: 17px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--white); color: var(--blue); font-weight: 600; font-size: 13px; line-height: 1.3; }
.chip--accent { background: var(--accent); color: var(--accent-ink); }
.btn-main, .red-but, a.readmore, .readmore a, .btn-primary {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--r-s); border: 0;
	background: var(--blue); color: var(--white) !important;
	font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1.3;
	text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn-main:hover, .red-but:hover, a.readmore:hover, .readmore a:hover, .btn-primary:hover { background: var(--green); color: var(--white) !important; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--navy); color: #C9D8EE; font-size: 14px; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.topbar__info .js-today:not(:empty)::after { content: '·'; margin-left: 10px; }
.topbar a { color: #C9D8EE; }
.topbar a:hover { color: var(--accent); }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar p { margin: 0; }

/* ---------- Шапка ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand__img { max-height: 64px; width: auto; }
.brand__mark { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--blue); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.brand__mark::after { content: ''; position: absolute; right: -10px; bottom: -10px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); }
.brand__mark span { position: relative; z-index: 1; font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--white); }
.brand__name { font-family: var(--f-head); font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; max-width: 9em; }

/* Меню (модуль «Меню» в позиции menu) */
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav > ul, .mainnav .mod-menu { display: flex; flex-wrap: wrap; gap: 4px; }
.mainnav li { position: relative; }
.mainnav a, .mainnav .mod-menu__heading, .mainnav .nav-header {
	display: block; padding: 10px 16px; border-radius: 999px;
	color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.4; cursor: pointer;
}
.mainnav a:hover { background: var(--soft); color: var(--blue); }
.mainnav .current > a, .mainnav .active > a { background: var(--blue); color: var(--white); font-weight: 600; }
.mainnav li ul, .mainnav .mod-menu__sub {
	display: none; position: absolute; left: 0; top: 100%; min-width: 240px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s);
	box-shadow: 0 12px 32px rgba(7, 42, 94, .14); padding: 8px; z-index: 30;
}
.mainnav li ul a { border-radius: 10px; }
.mainnav li:hover > ul, .mainnav li:focus-within > ul { display: block; }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--blue); align-items: center; justify-content: center; cursor: pointer; }

.header__search form, .header__search .mod-finder { display: flex; }
.header__search input[type="search"], .header__search input[type="text"] {
	width: 200px; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
	font: inherit; font-size: 15px; background: var(--soft);
}
.header__search label { position: absolute; left: -9999px; }
.header__search button, .header__search .btn { display: none; }

/* ---------- Основная часть ---------- */
.main { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: -16px; }
.crumbs ol, .crumbs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--muted); }
.crumbs .divider, .crumbs .icon-location { display: none; }

.lead { display: flex; flex-wrap: wrap; gap: 24px; }
.lead__hero { flex: 999 1 560px; min-width: 0; display: flex; }
.lead__hot { flex: 1 1 340px; min-width: 0; display: flex; }
.lead__hot > .card { flex: 1; }

.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cols__main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cols__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.bottom { display: flex; flex-wrap: wrap; gap: 24px; }
.bottom > div { flex: 1 1 520px; min-width: 0; display: flex; }
.bottom > div > .card { flex: 1; }

/* ---------- Карточка модуля (style="card") ---------- */
.card { background: var(--white); border-radius: var(--r-l); padding: 28px; }
.card + .card { margin-top: 0; }
.cols__side .card { border-radius: var(--r-m); padding: 24px; }
.card__title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 18px; }
.card__body > :last-child { margin-bottom: 0; }
.card__body ul { padding-left: 1.2em; }
.card--blue { background: var(--navy); color: #DCE7F7; }
.card--blue .card__title, .card--blue h2, .card--blue h3 { color: var(--white); }
.card--blue a { color: var(--accent); }
.card--green { background: var(--green); color: var(--white); }
.card--green .card__title, .card--green h2, .card--green h3, .card--green a { color: var(--white); }
.card--green .btn-main, .card--green .red-but { background: var(--white); color: var(--green) !important; }
.card--flat { background: none; padding: 0; }
.card iframe { width: 100%; border: 0; border-radius: 18px; min-height: 280px; display: block; }

/* Логотипы партнёров: модуль «HTML-код» с картинками, суффикс partners */
.partners .card__body, .partners .card__body > p, .partners .custom { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.partners .card__body > p { margin: 0; grid-column: 1 / -1; }
.partners a, .partners img { display: flex; align-items: center; justify-content: center; }
.partners img { width: 100%; height: 96px; object-fit: contain; background: var(--white); border-radius: 16px; padding: 12px; }
.partners.card--blue img { background: #0D3B7A; }

/* ---------- Главная новость ---------- */
.hero {
	position: relative; overflow: hidden; flex: 1; min-height: 460px;
	border-radius: var(--r-l); background: var(--blue-2); color: var(--white);
	display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,42,94,0) 30%, rgba(7,42,94,.92) 100%); }
.hero__ring { position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; border: 48px solid var(--green-2); opacity: .85; }
.hero__dot { position: absolute; right: 120px; top: 60px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent); }
.hero__body { position: relative; z-index: 1; padding: 36px; max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin: 0; }
.hero__title a { color: var(--white); }
.hero__title a:hover { color: var(--accent); }
.hero__text { margin: 0; font-size: 17px; line-height: 1.5; color: #DCE7F7; }

/* ---------- Горячие новости ---------- */
.hot { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hot__item + .hot__item { border-top: 1px solid #E6ECF4; }
.hot__item a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; color: var(--ink); }
.hot__item:first-child a { padding-top: 0; }
.hot__item a:hover .hot__title { color: var(--blue); }
.hot__num { font-family: var(--f-head); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--green-2); min-width: 34px; }
.hot__txt { display: flex; flex-direction: column; gap: 4px; }
.hot__cat { font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.hot__title { font-size: 16px; font-weight: 600; line-height: 1.35; transition: color .15s; }
/* Нумерация для любого обычного списка: суффикс модуля hot-list */
.hot-list .card__body ul { list-style: none; padding: 0; margin: 0; counter-reset: hot; }
.hot-list .card__body ul > li { counter-increment: hot; position: relative; padding: 12px 0 12px 46px; border-top: 1px solid #E6ECF4; font-weight: 600; line-height: 1.35; }
.hot-list .card__body ul > li:first-child { border-top: 0; padding-top: 0; }
.hot-list .card__body ul > li::before { content: counter(hot, decimal-leading-zero); position: absolute; left: 0; font-family: var(--f-head); font-weight: 800; font-size: 20px; color: var(--green-2); }
.hot-list .card__body ul > li a { color: var(--ink); }

/* ---------- Карточки новостей ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.ncard { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-m); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.card .ncard { background: var(--soft); }
.ncard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(7, 42, 94, .12); color: var(--ink); }
.ncard__pic { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--blue-2); }
.ncard__pic--green { background: var(--green); }
.ncard__pic--navy { background: var(--navy); }
.ncard__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ncard__pic .chip { position: absolute; left: 14px; top: 14px; }
.ncard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 20px; }
.ncard__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.ncard__meta { font-size: 13px; color: var(--muted); }

/* Старые «Новости» с макетом horizontal (если остался модуль #94) */
.news-grid .newsflash-horiz, .mod-articlesnews-horizontal { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.newsflash-horiz > li, .mod-articlesnews-horizontal > li { background: var(--white); border-radius: var(--r-m); overflow: hidden; padding: 0 0 18px; }
.newsflash-horiz figure, .mod-articlesnews-horizontal figure { margin: 0 0 14px; }
.newsflash-horiz figure img, .mod-articlesnews-horizontal figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.newsflash-horiz .newsflash-title, .newsflash-horiz h4, .mod-articlesnews-horizontal h4 { font-family: var(--f-body); font-size: 17px; font-weight: 600; line-height: 1.35; padding: 0 20px; margin: 0 0 8px; }
.newsflash-horiz p, .mod-articlesnews-horizontal p { padding: 0 20px; font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.newsflash-horiz .readmore, .mod-articlesnews-horizontal .readmore { padding: 0 20px; }
.newsflash-horiz .readmore a, .mod-articlesnews-horizontal .readmore a { background: none; padding: 0; color: var(--blue) !important; font-size: 14px; }

/* ---------- Материалы (com_content) ---------- */
.component { min-width: 0; }
.com-content-article, .item-page { background: var(--white); border-radius: var(--r-l); padding: clamp(22px, 4vw, 44px); }
.com-content-article .page-header h1, .com-content-article .page-header h2, .item-page .page-header h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.article-info, .com-content-article__info { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.article-info dt, .article-info-term { position: absolute; left: -9999px; }
.article-info dd { margin: 0; }
.article-info [class^="icon-"], .article-info [class*=" icon-"] { display: none; }
.com-content-article__body, .item-page [itemprop="articleBody"] { font-size: 18px; line-height: 1.7; }
.com-content-article__body img, [itemprop="articleBody"] img { border-radius: var(--r-s); }
.item-image, .com-content-article .item-image { margin: 0 0 24px; }
.item-image img { width: 100%; border-radius: var(--r-m); display: block; }
.item-image figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--green-2); font-size: 1.08em; color: var(--navy); }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.table-wrap, .com-content-article__body > table { display: block; overflow-x: auto; }
.tags, .com-content-article .tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .tags .badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--blue); font-size: 14px; font-weight: 500; }
.pagenavigation .pagination, .pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* Блог категории и «Избранное»: карточки сеткой */
.blog, .blog-featured { display: flex; flex-direction: column; gap: 24px; }
.blog > .page-header, .blog-featured > .page-header { margin: 0; }
.blog-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.blog-items.items-leading { grid-template-columns: 1fr; }
.blog-item { background: var(--white); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.blog-item .item-image { margin: 0; }
.blog-item .item-image img { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-item .item-content { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.blog-item .page-header h2, .blog-item h2 { font-family: var(--f-body); font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0; }
.blog-item h2 a { color: var(--ink); }
.blog-item h2 a:hover { color: var(--blue); }
.blog-item .article-info { margin: 0; font-size: 13px; }
.blog-item p { font-size: 15px; color: var(--muted); margin: 0; }
.blog-item .readmore a { background: none; padding: 0; color: var(--blue) !important; font-size: 14px; }
.items-leading .blog-item { flex-direction: row; flex-wrap: wrap; }
.items-leading .blog-item .item-image { flex: 1 1 360px; }
.items-leading .blog-item .item-content { flex: 1 1 320px; justify-content: center; padding: 28px; }
.items-leading .blog-item h2 { font-family: var(--f-head); font-size: 24px; font-weight: 700; }
.items-more ol, .items-more ul { background: var(--white); border-radius: var(--r-m); padding: 20px 20px 20px 40px; }
.cat-children, .com-content-category-blog__children { background: var(--white); border-radius: var(--r-m); padding: 20px; }

/* Список материалов категории, поиск */
.com-content-category table, .category.table { background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.com-finder, .com-search { background: var(--white); border-radius: var(--r-l); padding: 28px; }
.result__title, .result-title { font-size: 18px; }

/* Пагинация */
.pagination, ul.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.pagination .page-link, .pagination li > a, .pagination li > span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--blue); font-weight: 600; font-size: 15px;
}
.pagination .active .page-link, .pagination .active > span, .pagination li.active > a { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pagination .disabled .page-link { opacity: .45; }
.counter, .com-content-category-blog__counter { color: var(--muted); font-size: 14px; }

/* Формы */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="tel"], textarea, select, .form-control, .form-select {
	font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); max-width: 100%;
}
input:focus, textarea:focus, select:focus, .form-control:focus { border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(43, 111, 214, .2); outline: none; }
.btn { border-radius: 12px; font-weight: 600; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-secondary { background: var(--soft); color: var(--blue); border-color: var(--line); }

/* Сообщения системы */
#system-message-container joomla-alert, #system-message-container .alert { border-radius: var(--r-s); margin-bottom: 16px; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: #C9D8EE; font-size: 14px; }
.footer__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; padding-top: 44px; padding-bottom: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.footer__name { font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--white); line-height: 1.15; }
.footer__text { line-height: 1.6; }
.footer__text p { margin: 0 0 6px; }
.footer__mods { display: flex; flex-wrap: wrap; gap: 24px 48px; line-height: 1.6; }
.footer__mods h3, .footer__mods h4 { color: var(--white); font-family: var(--f-body); font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.footer__mods ul { list-style: none; padding: 0; margin: 0; }
.footer__mods p { margin: 0 0 6px; }
.footer a { color: #C9D8EE; }
.footer a:hover { color: var(--accent); }
.footer__stripe { grid-column: 1 / -1; height: 6px; border-radius: 3px; display: flex; overflow: hidden; }
.footer__stripe i { display: block; }
.footer__stripe i:nth-child(1) { flex: 2; background: var(--green-2); }
.footer__stripe i:nth-child(2) { flex: 1; background: var(--accent); }
.footer__stripe i:nth-child(3) { flex: 3; background: var(--blue-2); }
.footer__copy { grid-column: 1 / -1; color: #8FA8CC; font-size: 13px; }

/* ---------- Страница ошибки ---------- */
.errorbox { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; max-width: 760px; }
.errorbox__code { font-family: var(--f-head); font-weight: 800; font-size: clamp(96px, 18vw, 180px); line-height: 1; color: var(--blue); }
.errorbox h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.errorbox__debug { white-space: pre-wrap; font-size: 13px; color: var(--muted); }

/* ---------- Телефон и планшет ---------- */
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.mainnav { display: none; flex-basis: 100%; order: 5; }
	.mainnav.is-open { display: block; }
	.mainnav > ul, .mainnav .mod-menu { flex-direction: column; gap: 2px; }
	.mainnav li ul, .mainnav .mod-menu__sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.header__search { flex-basis: 100%; order: 6; }
	.header__search input[type="search"], .header__search input[type="text"] { width: 100%; }
	.mainnav.is-open ~ .header__search { display: block; }
}
@media (max-width: 600px) {
	body.site { font-size: 16px; }
	.wrap { padding-left: 16px; padding-right: 16px; }
	.main { padding-top: 20px; gap: 28px; }
	.brand__mark { width: 46px; height: 46px; border-radius: 13px; }
	.brand__mark span { font-size: 18px; }
	.brand__name { font-size: 19px; }
	.hero { min-height: 380px; }
	.hero__body { padding: 24px; }
	.card { padding: 22px; border-radius: var(--r-m); }
	.topbar__tag { display: none; }
	.topbar__info .js-today:not(:empty)::after { content: none; }
}

@media print {
	.topbar, .header, .cols__side, .bottom, .footer, .lead { display: none !important; }
	body.site { background: #fff; }
}


/* ==========================================================================
   Версия 1.1
   ========================================================================== */

/* Ничего не вылезает за ширину экрана на телефоне */
html, body.site { overflow-x: clip; }
body.site { overflow-wrap: break-word; }
.main > *, .cols__main > *, .component > * { min-width: 0; }
.component img { height: auto !important; }
.component iframe, .component video, .component embed { max-width: 100%; }
.header__search { min-width: 0; }
.header__search form, .header__search .mod-finder, .header__search .input-group, .header__search .awesomplete { width: 100%; max-width: 100%; min-width: 0; display: flex; }
.header__search input[type="search"], .header__search input[type="text"] { flex: 1 1 auto; min-width: 0; width: 260px; }
.header__search .awesomplete > ul { z-index: 40; }

/* Дата и просмотры */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); font-weight: 400; }
.meta__hits { display: inline-flex; align-items: center; gap: 5px; }
.meta__hits::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
.meta__hits:empty { display: none; }

/* Статья: только дата и просмотры, в одну строку */
.article-info, .com-content-article__info { flex-direction: row; align-items: center; gap: 4px 18px; }
.article-info dd, .com-content-article__info dd { display: inline-flex; align-items: center; gap: 6px; }
.article-info .createdby, .article-info .category-name, .article-info .parent-category-name { display: none; }

/* Топ-5 */
.hot__num { flex: none; white-space: nowrap; }
.hot__txt { min-width: 0; gap: 6px; }

/* Листалка на главной */
.lead__hero { min-height: 460px; }
.slider { position: relative; flex: 1; min-width: 0; border-radius: var(--r-l); overflow: hidden; background: var(--blue-2); }
.slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; min-height: 460px; }
.slide .hero__body { padding-bottom: 64px; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: background .15s; }
.slider__btn:hover { background: var(--accent); color: var(--accent-ink); }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }
.slider__dots { position: absolute; left: 36px; bottom: 26px; display: flex; gap: 8px; z-index: 2; }
.slider__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slider__dots button::before { content: ''; width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.slider__dots button[aria-current="true"]::before { width: 26px; background: var(--accent); }
.hero .chip--accent { font-weight: 600; }

/* Карточки на главной: всегда фото или заглушка */
.ncard__pic { background: var(--blue-2); overflow: hidden; }
.ncard__body .meta { margin-top: 2px; }

/* Лента «Новости»: плитка или список */
.viewbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.viewbar__switch { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.viewbar__switch button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.viewbar__switch button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.blog-items .blog-item { background: none; border-radius: 0; overflow: visible; }
.nitem { height: 100%; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-m); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.nitem:hover { box-shadow: 0 14px 30px rgba(7, 42, 94, .12); transform: translateY(-2px); }
.nitem__pic { display: block; aspect-ratio: 16 / 10; background: var(--blue-2); overflow: hidden; }
.nitem__pic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
.nitem__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nitem__title { font-family: var(--f-body); font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0; color: var(--ink); }
.nitem__title a { color: var(--ink); }
.nitem__title a:hover { color: var(--blue); }
.nitem__text { margin: 0; font-size: 15px; color: var(--muted); display: none; }
.nitem__files { margin-top: auto; padding-top: 8px; }
.nitem__files p { margin: 0; }
.nitem__files .btn-main, .nitem__files a[href$=".pdf"] { display: inline-flex; padding: 11px 20px; border-radius: var(--r-s); background: var(--blue); color: var(--white) !important; font-weight: 600; font-size: 15px; }
.nitem__files a[href$=".pdf"]:hover { background: var(--green); }
.btn-download::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.items-leading .blog-item { flex-direction: column; }
.is-list .blog-items { grid-template-columns: 1fr; gap: 14px; }
.is-list .nitem { flex-direction: row; }
.is-list .nitem__pic { flex: 0 0 220px; aspect-ratio: auto; min-height: 140px; }
.is-list .nitem__body { justify-content: center; padding: 16px 22px; }
.is-list .nitem__text { display: block; }
@media (max-width: 600px) {
	.is-list .nitem__pic { flex-basis: 112px; min-height: 96px; }
	.is-list .nitem__body { padding: 12px 14px; }
	.is-list .nitem__title { font-size: 16px; }
	.is-list .nitem__text { display: none; }
	.viewbar__switch button span { display: none; }
}

/* Архив выпусков: выбор года */
.years { display: flex; flex-wrap: wrap; gap: 8px; }
.years button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--blue); font-family: var(--f-head); font-weight: 700; font-size: 15px; cursor: pointer; }
.years button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.years button small { font-family: var(--f-body); font-weight: 500; font-size: 12px; opacity: .7; margin-left: 4px; }
.is-archive .blog-items { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.is-archive .nitem__pic { aspect-ratio: 3 / 4; }
.is-archive .nitem__pic img { object-position: top; }
.is-archive .blog-item[hidden] { display: none; }
.is-archive .nitem__title { font-size: 17px; }

/* Соцсети: модуль с ul.soc */
.soc { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.soc a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 15px; }
.soc a:hover { background: var(--line); color: var(--blue); }
.soc a::before { content: ''; flex: none; width: 36px; height: 36px; border-radius: 50%; background: url(../images/soc-link.svg) center / contain no-repeat; }
.soc .soc--vk::before { background-image: url(../images/soc-vk.png); }
.soc .soc--tg::before { background-image: url(../images/soc-tg.svg); }
.soc .soc--ok::before { background-image: url(../images/soc-ok.svg); }
.soc .soc--yt::before { background-image: url(../images/soc-yt.svg); }
.soc .soc--rutube::before { background-image: url(../images/soc-rutube.svg); }
.soc .soc--dzen::before { background-image: url(../images/soc-dzen.svg); }
.topbar .soc, .soc--row { flex-direction: row; gap: 8px; }
.topbar .soc a { min-height: 0; padding: 0; background: none; font-size: 0; gap: 0; }
.topbar .soc a::before { width: 26px; height: 26px; }

/* Подвал */
.footer__text a { color: var(--white); }
.footer__age { width: 56px; height: 56px; }
.footer__agebadge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #C9D8EE; color: var(--white); font-family: var(--f-head); font-weight: 800; font-size: 15px; }
.footer__mods { gap: 16px 32px; align-items: center; }
@media (max-width: 760px) {
	.footer__in { grid-template-columns: 1fr; }
}


/* ---------- Карта спортивных объектов (1.2) ---------- */
ul.sport-map.is-ready { display: none; }
ul.sport-map { padding-left: 1.2em; font-size: 15px; }
.smap { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.smap__map { height: 440px; background: var(--soft); z-index: 0; }
.smap__info { background: var(--soft); padding: 18px 22px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.smap__hint { margin: 0; color: var(--muted); font-size: 15px; }
.smap__name { margin: 0; font-family: var(--f-head); font-size: 18px; font-weight: 700; color: var(--navy); }
.smap__addr { margin: 0; font-size: 15px; color: var(--ink); }
.smap__links { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 600; }
.smap__tel::before { content: '☎ '; }
.smap__route { color: var(--green); }
.smap__pin { background: none; border: 0; }
.smap__pin span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(7,42,94,.35); font: 700 13px/1 var(--f-body); cursor: pointer; transition: transform .15s, background .15s; }
.smap__pin:hover span, .smap__pin:focus span { transform: scale(1.12); }
.smap__pin.is-active span { background: var(--accent); color: var(--accent-ink); transform: scale(1.2); }
.leaflet-container { font-family: var(--f-body); }
@media (max-width: 600px) { .smap__map { height: 340px; } }


/* ---------- 1.3 ---------- */
/* Главная: у статьи-подложки нет даты, просмотров и «Предыдущая/Следующая» */
.is-home .com-content-article .article-info, .is-home .com-content-article__info,
.is-home .item-page .article-info, .is-home .pagenavigation, .is-home .pager { display: none !important; }
.cards-block { display: flex; flex-direction: column; gap: 24px; }
.cards-block__title { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--navy); }
.cards-block__more { display: flex; justify-content: flex-end; }
.cards-block__more .btn-main[disabled] { opacity: .6; cursor: wait; }
.ncard--new { animation: ncard-in .35s ease-out; }
@keyframes ncard-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ncard--new { animation: none; } }
/* Подвал: подписи до двоеточия — полужирные */
.footer__text strong { color: var(--white); font-weight: 600; }
.soc .soc--vk::before { border-radius: 10px; }
.topbar .soc .soc--vk::before { border-radius: 7px; }


/* ---------- 1.4 ---------- */
/* Подвал: название отдельной строкой над двумя колонками */
.footer__in > .footer__name { grid-column: 1 / -1; }

/* Карта: ниже и в фирменных сине-зелёных тонах */
.smap__map { height: 360px; }
.smap .leaflet-tile-pane { filter: grayscale(1) sepia(.9) hue-rotate(160deg) saturate(1.6) brightness(1.04) contrast(.95); }
.smap .leaflet-control-attribution { background: rgba(255,255,255,.8); font-size: 11px; }
@media (max-width: 600px) { .smap__map { height: 300px; } }

/* Архив: кнопка «Скачать» не прилипает к названию */
.nitem__files { padding-top: 18px; }

/* Поиск */
.com-finder .result__title-url, .com-finder .result__taxonomy, .com-finder cite, .com-finder .result__url { display: none !important; }
.com-finder .result__item, .com-finder li.result__item { padding: 18px 0; border-bottom: 1px solid var(--line); list-style: none; }
.com-finder .search-results, .com-finder ol.com-finder__results-list { padding: 0; margin: 0; }
.com-finder .result__title { font-family: var(--f-body); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.com-finder .result__description { margin: 0; font-size: 15px; color: var(--muted); }
.com-finder mark, .com-finder .highlight { background: rgba(198,244,50,.45); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-info__list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.search-info__list > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.search-info__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.search-info__list dt { color: var(--muted); font-size: 15px; }
.search-info__list dd { margin: 0; font-weight: 700; color: var(--navy); }
.search-info .card__title { font-size: 18px; line-height: 1.3; }

/* Подсказки в строке поиска */
.header__search .awesomplete { position: relative; }
.awesomplete > ul { position: absolute; left: 0; right: 0; top: calc(100% + 8px) !important; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 36px rgba(7, 42, 94, .16); z-index: 50; font-size: 15px; max-height: none; }
.awesomplete > ul:empty, .awesomplete > ul[hidden] { display: none; }
.awesomplete > ul::before { display: none !important; }
.awesomplete > ul > li { padding: 9px 14px; border-radius: 10px; cursor: pointer; color: var(--ink); line-height: 1.3; }
.awesomplete > ul > li:nth-child(n+7) { display: none; }
.awesomplete > ul > li:hover, .awesomplete > ul > li[aria-selected="true"] { background: var(--soft); color: var(--blue); }
.awesomplete mark { background: none !important; color: inherit; font-weight: 700; padding: 0 !important; margin: 0; }

/* Постраничная навигация: стрелки и одинаковые кружки */
.pagination .page-link, .pagination li > a, .pagination li > span { border-radius: 999px !important; margin: 0 !important; }
.pagination [class^="icon-"], .pagination [class*=" icon-"] { display: inline-block; font-style: normal; line-height: 1; }
.pagination [class^="icon-"]::before, .pagination [class*=" icon-"]::before { font-family: var(--f-body) !important; font-weight: 700; font-size: 18px; }
.pagination .icon-angle-double-left::before, .pagination .icon-backward::before, .pagination .icon-first::before { content: '«'; }
.pagination .icon-angle-left::before, .pagination .icon-chevron-left::before, .pagination .icon-previous::before { content: '‹'; }
.pagination .icon-angle-right::before, .pagination .icon-chevron-right::before, .pagination .icon-next::before { content: '›'; }
.pagination .icon-angle-double-right::before, .pagination .icon-forward::before, .pagination .icon-last::before { content: '»'; }
.pagination .disabled .page-link, .pagination .disabled > span { opacity: .35; pointer-events: none; }
.com-content-category-blog__navigation, .com-finder__navigation, .search-pagination, .pagination-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; }
.com-content-category-blog__navigation .counter, .com-content-category-blog__counter, .com-finder__counter, .search-pages-counter { float: none !important; order: 2; padding: 0 !important; margin: 0; color: var(--muted); font-size: 14px; }
.com-content-category-blog__pagination, .com-finder__pagination { order: 1; width: auto !important; }
.com-content-category-blog__navigation .pagination, .com-finder__navigation .pagination { margin: 0; }

/* Лента списком: фото заполняет всю высоту карточки */
.is-list .nitem__pic { position: relative; align-self: stretch; }
.is-list .nitem__pic img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }

/* Форма на странице поиска: без подписи «Поиск:», кнопки отдельно друг от друга */
.com-finder label[for="q"], .com-finder .com-finder__search-legend { display: none !important; }
.com-finder .form-inline, .com-finder .input-group { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; width: 100%; }
.com-finder .input-group > * { border-radius: 12px !important; margin: 0 !important; }
.com-finder .input-group input[type="text"], .com-finder .input-group .awesomplete { flex: 1 1 280px; min-width: 0; }
.com-finder .input-group .awesomplete input { width: 100%; }
.com-finder .input-group .btn { min-height: 48px; padding: 0 22px; }
.com-finder hr, .com-finder .result__item + hr { display: none; }
.com-finder .result__date, .com-finder .result__description time, .com-finder .result__description .date, .com-finder .result__description strong.js-date { font-weight: 700; color: var(--ink); }

/* Карта: спокойная серая подложка (перекрывает сине-бирюзовую из 1.4) */
.smap .leaflet-tile-pane { filter: grayscale(1) brightness(1.04) contrast(.92) !important; }

/* Архив: кнопка «Скачать» всегда отдельной строкой, с отступом от текста */
.nitem__files .btn-download, .nitem__files a[href$=".pdf"] { display: flex !important; width: fit-content; margin-top: 18px; }
.nitem__files br + .btn-download, .nitem__files br + a[href$=".pdf"] { margin-top: 18px; }
