/*
Theme Name: Tambov.ru
Theme URI: https://tambov.ru/
Author: Tambov.ru Migration
Author URI: https://tambov.ru/
Description: Новостной портал «Тамбовский городской интернет-портал» — тема для WordPress, воссоздающая структуру и вид tambov.ru.
Version: 1.4.5
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tambov
Tags: news, portal, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =====================================================================
   1. Design tokens
   ===================================================================== */
:root {
	--brand: #0050aa;
	--brand-dark: #003c80;
	--brand-darker: #00305f;
	--brand-light: #e8f0fa;
	--accent: #d0021b;
	--accent-dark: #a80015;

	--text: #22262a;
	--text-soft: #4a5158;
	--muted: #7b848d;
	--bg: #ffffff;
	--bg-alt: #f2f4f7;
	--bg-soft: #fafbfc;
	--border: #e2e6ea;
	--border-strong: #cdd4db;

	--radius: 6px;
	--radius-sm: 4px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--shadow-md: 0 4px 12px rgba(16, 24, 40, .10);
	--shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);

	--font: "PT Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: "PT Sans Narrow", "PT Sans", "Segoe UI", Arial, sans-serif;

	--container: 1200px;
}

/* =====================================================================
   2. Reset / base
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg-alt);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.2;
	margin: 0 0 .5em;
	color: var(--text);
	font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--brand); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; color: #fff; }

/* =====================================================================
   3. Top banner + utility bar
   ===================================================================== */
.site-banner { background: var(--brand-darker); }
.site-banner img { width: 100%; height: auto; }
.site-banner a { display: block; }

.topbar {
	background: var(--brand-darker);
	color: #cbd9ea;
	font-size: 13px;
}
.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
	flex-wrap: wrap;
}
.topbar a { color: #dbe6f4; }
.topbar a:hover { color: #fff; }
.topbar__date { opacity: .85; }
.topbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 8px; align-items: center; }
.topbar__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: rgba(255,255,255,.12); font-size: 12px;
}
.topbar__social a:hover { background: rgba(255,255,255,.28); }

/* =====================================================================
   4. Masthead (logo + weather)
   ===================================================================== */
.masthead { background: #fff; border-bottom: 1px solid var(--border); }
.masthead .container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
.site-branding { display: flex; align-items: center; gap: 16px; }
.site-branding img { max-height: 64px; width: auto; }
.site-branding .site-logo-img img,
.site-logo-img img { max-height: 78px; height: auto; width: auto; display: block; }
.site-logo-img { display: block; }
.site-logo-text {
	font-family: var(--font-head);
	font-size: 2rem; font-weight: 700; letter-spacing: -.5px;
	color: var(--brand);
	line-height: 1;
}
.site-logo-text small {
	display: block; font-size: .8rem; font-weight: 400; color: var(--muted);
	letter-spacing: 0; margin-top: 4px;
}
.site-description { color: var(--muted); font-size: 13px; max-width: 340px; }

.masthead__weather { display: flex; align-items: center; gap: 12px; }
.weather-card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 8px 14px;
	background: var(--bg-soft);
	min-width: 190px;
}
.weather-card__title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.weather-card__value { font-size: 15px; font-weight: 700; color: var(--brand); }

/* =====================================================================
   5. Primary navigation
   ===================================================================== */
.mainnav { background: var(--brand); position: relative; z-index: 60; }
.mainnav .container { display: flex; align-items: stretch; }
.mainnav__toggle {
	display: none; background: none; border: 0; color: #fff;
	font-size: 15px; padding: 14px 0; cursor: pointer; font-weight: 700;
	align-items: center; gap: 8px;
}
.mainnav__toggle .bars { width: 20px; height: 2px; background: #fff; position: relative; display: inline-block; }
.mainnav__toggle .bars::before,
.mainnav__toggle .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; }
.mainnav__toggle .bars::before { top: -6px; }
.mainnav__toggle .bars::after { top: 6px; }

.menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; align-items: stretch;
}
.menu > li { position: relative; }
.menu > li > a {
	display: flex; align-items: center;
	padding: 14px 15px;
	color: #fff; font-weight: 700; font-size: 15px;
	white-space: nowrap;
	text-transform: uppercase; letter-spacing: .2px;
}
.menu > li > a:hover,
.menu > li.current-menu-item > a,
.menu > li.current-menu-ancestor > a { background: var(--brand-dark); color: #fff; }
.menu > li.menu-item-has-children > a::after {
	content: ""; margin-left: 7px; border: 4px solid transparent;
	border-top-color: rgba(255,255,255,.75); margin-top: 3px;
}
.menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; list-style: none; margin: 0; padding: 6px 0;
	box-shadow: var(--shadow-md); border-top: 3px solid var(--accent);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .16s ease; z-index: 70;
}
.menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu .sub-menu li { position: relative; }
.menu .sub-menu a {
	display: block; padding: 9px 18px; color: var(--text); font-size: 14px; font-weight: 400;
}
.menu .sub-menu a:hover { background: var(--brand-light); color: var(--brand-dark); }
.menu .sub-menu .sub-menu { top: -6px; left: 100%; border-top-color: var(--brand); }
.menu .sub-menu li.menu-item-has-children > a::after {
	content: "›"; float: right; color: var(--muted);
}

/* =====================================================================
   6. Layout
   ===================================================================== */
.site-main { padding: 24px 0 40px; }
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout__main { min-width: 0; }

@media (max-width: 992px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   7. Section headings
   ===================================================================== */
.section { margin-bottom: 34px; }
.section__head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; border-bottom: 2px solid var(--brand);
	padding-bottom: 8px; margin-bottom: 18px;
}
.section__title {
	margin: 0; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .3px;
	color: var(--brand-dark); position: relative;
}
.section__title::before {
	content: ""; display: inline-block; width: 5px; height: 18px;
	background: var(--accent); margin-right: 10px; vertical-align: -2px;
}
.section__more { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 700; }
.section__more:hover { color: var(--accent); }
.section--alt .section__head { border-bottom-color: var(--accent); }
.section--alt .section__title { color: var(--accent-dark); }

/* =====================================================================
   8. Cards / grids
   ===================================================================== */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 992px) { .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0,1fr); }
}

.card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__thumb { position: relative; display: block; background: var(--bg-alt); aspect-ratio: 3 / 2; overflow: hidden; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card__thumb--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef3f9, #dde6f1); }
.card__thumb--empty .ph { color: #a9b6c7; font-size: 12px; letter-spacing: 2px; font-weight: 700; }
/* Placeholder artwork (auto-detected in assets/img/) */
.card__thumb--empty.is-cover,
.cardrow__thumb--empty.is-cover {
	background-size: cover; background-position: center; background-repeat: no-repeat;
	opacity: .4; filter: grayscale(100%);
}
.card__thumb--empty.is-contain,
.cardrow__thumb--empty.is-contain {
	background-size: contain; background-position: center; background-repeat: no-repeat;
	background-color: #fff; background-origin: content-box;
	padding: 19%;
	opacity: .4; filter: grayscale(100%);
}
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card__cat {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
	color: var(--accent); 
}
.card__title { font-size: 1.02rem; margin: 0; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--brand); }
.card__excerpt { color: var(--text-soft); font-size: 14px; margin: 0; }
.card__meta { margin-top: auto; color: var(--muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Lead / featured card */
.lead-card { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.lead-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lead-card__overlay {
	position: absolute; inset: auto 0 0 0; padding: 20px;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
	color: #fff;
}
.lead-card__overlay h3 { color: #fff; font-size: 1.5rem; margin: 0 0 6px; }
.lead-card__overlay .card__cat { color: #ffd0d6; }
.lead-card__overlay p { color: #e8eaee; margin: 0; font-size: 14px; }

/* Headline list ("Картина дня") */
.headline-list { list-style: none; margin: 0; padding: 0; }
.headline-list li {
	display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border);
}
.headline-list li:last-child { border-bottom: 0; }
.headline-list .hn { color: var(--accent); font-weight: 700; font-size: 13px; min-width: 22px; }
.headline-list a { color: var(--text); font-weight: 400; }
.headline-list a:hover { color: var(--brand); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { color: var(--text); }
.list-plain a:hover { color: var(--brand); }
.list-plain time { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* =====================================================================
   9. Sidebar / widgets
   ===================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	padding: 18px;
}
.widget__title,
.widget-title {
	font-size: 1.05rem; text-transform: uppercase; letter-spacing: .3px;
	color: var(--brand-dark); margin: 0 0 14px; padding-bottom: 8px;
	border-bottom: 2px solid var(--brand);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--brand); }

.sidebar-sticky { position: sticky; top: 16px; }

/* mini post list with thumb */
.mini-post { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.mini-post:last-child { border-bottom: 0; }
.mini-post__thumb { width: 76px; height: 58px; flex: 0 0 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.mini-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__title { font-size: 13.5px; margin: 0; line-height: 1.35; }
.mini-post__title a { color: var(--text); }
.mini-post__title a:hover { color: var(--brand); }
.mini-post__meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* =====================================================================
   10. Single article
   ===================================================================== */
.article {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	padding: 26px 30px 30px;
}
.article__header { margin-bottom: 18px; }
.article__title { font-size: 2rem; margin: 0 0 12px; }
.article__meta {
	display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted);
	font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 14px;
}
.article__meta a { color: var(--brand); }
.article__thumb { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; }
.article__thumb figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 2px; }
.entry-content { font-size: 16.5px; line-height: 1.7; color: #2b3036; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content img { border-radius: var(--radius-sm); margin: 4px auto; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.4em; }
.entry-content blockquote {
	margin: 1.2em 0; padding: 12px 20px; border-left: 4px solid var(--brand);
	background: var(--bg-soft); color: var(--text-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content a { text-decoration: underline; text-decoration-color: rgba(0,80,170,.35); }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content figure { margin: 1.3em 0; }
.entry-content figure img { display: block; width: 100%; height: auto; margin: 0; }
.entry-content figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 2px 0; }
.entry-content .lead { font-size: 1.08em; font-weight: 700; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--brand); }
.breadcrumbs span.sep { margin: 0 6px; color: var(--border-strong); }

.tags { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.tags a {
	background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px;
	padding: 4px 12px; font-size: 13px; color: var(--text-soft);
}
.tags a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.post-nav a {
	display: block; padding: 14px 16px; border: 1px solid var(--border);
	border-radius: var(--radius); background: #fff;
}
.post-nav a:hover { border-color: var(--brand); }
.post-nav .label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* =====================================================================
   11. Pagination
   ===================================================================== */
.pagination { margin: 30px 0 10px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: #fff; color: var(--text); font-weight: 700;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* =====================================================================
   12. Comments
   ===================================================================== */
.comments-area { margin-top: 34px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 30px; }
.comments-title, .comment-reply-title { font-size: 1.2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 26px; border-left: 2px solid var(--border); }
.comment-author img { border-radius: 50%; }
.comment-metadata { color: var(--muted); font-size: 12px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 10px 12px; font: inherit; background: var(--bg-soft);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }
.comment-form label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }
.comment-form .submit,
input[type="submit"], button.btn,
.wp-block-search__button {
	background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-sm);
	padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer;
}
.comment-form .submit:hover, input[type="submit"]:hover, button.btn:hover,
.wp-block-search__button:hover { background: var(--brand-dark); }

/* =====================================================================
   13. Search form
   ===================================================================== */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1 1 auto; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	padding: 9px 12px; font: inherit; min-width: 0;
}
.search-form button {
	background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-sm);
	padding: 0 16px; cursor: pointer; font-weight: 700;
}
.search-form button:hover { background: var(--brand-dark); }

/* =====================================================================
   14. Footer
   ===================================================================== */
.site-footer { background: #10233c; color: #b9c6d6; margin-top: 20px; }
.site-footer a { color: #cdd9e8; }
.site-footer a:hover { color: #fff; }
.footer-widgets { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-widgets .grid { padding: 30px 0; }
.footer-widgets .widget { background: transparent; border: 0; padding: 0; }
.footer-widgets .widget__title, .footer-widgets .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.25); }
.footer-widgets .widget ul li { border-bottom-color: rgba(255,255,255,.1); }
.footer-widgets .widget ul li a { color: #cdd9e8; }
.site-footer__bottom { padding: 22px 0 30px; font-size: 13px; line-height: 1.7; }
.site-footer__legal p { margin: 0 0 6px; }
.site-footer__meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 14px; color: #8fa1b6; }

.copyright-bar { background: #0b1a2d; color: #7d8ea4; font-size: 12.5px; padding: 12px 0; }
.copyright-bar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* cookie consent */
#consent-popup {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
	background: #fff; border-top: 3px solid var(--brand); box-shadow: var(--shadow-lg);
	padding: 16px; display: none;
}
#consent-popup .inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
#consent-popup p { margin: 0; font-size: 13px; color: var(--text-soft); flex: 1 1 320px; }
#consent-popup button {
	background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-sm);
	padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer; flex: 0 0 auto;
}

/* =====================================================================
   15. Misc blocks
   ===================================================================== */
.author-box { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); margin-top: 24px; }
.author-box img { border-radius: 50%; width: 56px; height: 56px; }

.not-found { text-align: center; padding: 60px 20px; }
.not-found h1 { font-size: 5rem; color: var(--brand); }

.tag-cloud-link { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; background: var(--bg-alt); border-radius: 20px; font-size: 13px; color: var(--text-soft); border: 1px solid var(--border); }
.tag-cloud-link:hover { background: var(--brand); color: #fff; }

/* division */
.section-divider { height: 1px; background: var(--border); margin: 6px 0 30px; border: 0; }

/* =====================================================================
   16. WP core aligns
   ===================================================================== */
.alignleft { float: left; margin: 4px 20px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 20px; }
.aligncenter { margin: 4px auto 12px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }
.screen-reader-text:focus { position: static !important; }

/* =====================================================================
   16b. Small components
   ===================================================================== */
.topbar__menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.topbar__menu li { margin: 0; }
.topbar__menu a { color: #dbe6f4; }
.topbar__menu a:hover { color: #fff; }

.gismeteo-informer { font-size: 14px; color: var(--text-soft); }
.gismeteo-informer img { max-width: 100%; }

.embed-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 1em 0; }
.embed-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.footer-col { min-width: 0; }
.no-results { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }

.btn, a.btn {
	display: inline-block; background: var(--brand); color: #fff;
	padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 700;
}
.btn:hover, a.btn:hover { background: var(--brand-dark); color: #fff; }

.top-banner-widget img { width: 100%; height: auto; }

/* =====================================================================
   17. Responsive
   ===================================================================== */
@media (max-width: 900px) {
	.masthead .container { flex-direction: column; align-items: flex-start; }
	.masthead__weather { width: 100%; }
}
@media (max-width: 782px) {
	body { font-size: 15.5px; }
	.mainnav__toggle { display: flex; }
	.mainnav .container { flex-direction: column; align-items: stretch; }
	.menu { flex-direction: column; display: none; padding-bottom: 8px; }
	.menu.is-open { display: flex; }
	.menu > li > a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); text-transform: none; font-size: 16px; }
	.menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; display: none; background: rgba(0,0,0,.15); }
	.menu .sub-menu a { color: #fff; padding-left: 24px; }
	.menu .sub-menu a:hover { background: rgba(0,0,0,.2); color: #fff; }
	.menu li.is-open > .sub-menu { display: block; }
	.menu .sub-menu .sub-menu { left: auto; }
	.menu li.menu-item-has-children > a::after { float: right; }
	.article { padding: 18px 16px 22px; }
	.article__title { font-size: 1.5rem; }
	.post-nav { grid-template-columns: 1fr; }
}

/* =====================================================================
   18. Photo band (city strip under the masthead)
   ===================================================================== */
.photo-band { background: var(--brand-darker); }
.photo-band__track { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; padding: 2px 0; }
.photo-band__track a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #0d2d52; }
.photo-band__track img {
	width: 100%; height: 100%; object-fit: cover;
	opacity: .88; transition: opacity .2s ease, transform .45s ease;
}
.photo-band__track a:hover img { opacity: 1; transform: scale(1.09); }
@media (max-width: 1100px) {
	.photo-band__track { grid-template-columns: repeat(8, 1fr); }
	.photo-band__track a:nth-child(n+9) { display: none; }
}
@media (max-width: 640px) {
	.photo-band__track { grid-template-columns: repeat(5, 1fr); }
	.photo-band__track a:nth-child(n+6) { display: none; }
}

/* =====================================================================
   19. Section bars (solid blue like tambov.ru)
   ===================================================================== */
.section__head {
	background: var(--brand);
	border: 0;
	border-radius: var(--radius-sm);
	padding: 9px 14px;
	align-items: center;
	margin-bottom: 16px;
}
.section__title { color: #fff; font-size: 1.05rem; }
.section__title::before { display: none; }
.section__more { color: rgba(255,255,255,.9); font-weight: 700; font-size: 12.5px; }
.section__more:hover { color: #fff; text-decoration: underline; }
.section--alt .section__head { background: var(--brand-dark); }
.section--alt .section__title { color: #fff; }

/* =====================================================================
   20. Day panel (Картина дня)
   ===================================================================== */
.daypanel {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 22px; background: #fff; border: 1px solid var(--border);
	border-radius: var(--radius); padding: 18px;
}
.daypanel .headline-list li { padding: 9px 0; }
.daypanel__feature {
	position: relative; display: block; min-height: 330px;
	border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt);
}
.daypanel__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.daypanel__feature span {
	position: absolute; inset: auto 0 0 0; padding: 46px 16px 14px;
	background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0)); color: #fff;
}
.daypanel__feature strong { display: block; font-family: var(--font-head); font-size: 1.18rem; line-height: 1.3; }
.daypanel__feature em { display: block; font-style: normal; font-size: 13px; color: #dbe3ec; margin-top: 5px; }
@media (max-width: 782px) {
	.daypanel { grid-template-columns: 1fr; padding: 14px; }
	.daypanel__feature { min-height: 230px; }
}

/* =====================================================================
   21. Row cards (section lists)
   ===================================================================== */
.grid--rows { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 28px; }
.cardrow { display: flex; gap: 14px; align-items: stretch; }
.cardrow__thumb {
	flex: 0 0 150px; width: 150px; aspect-ratio: 3 / 2;
	border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); display: block;
}
.cardrow__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cardrow:hover .cardrow__thumb img { transform: scale(1.05); }
.cardrow__thumb--empty {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #eef3f9, #dde6f1);
}
.cardrow__thumb--empty .ph { color: #a9b6c7; font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.cardrow__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cardrow__cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); }
.cardrow__title { font-size: 1rem; margin: 0; line-height: 1.32; }
.cardrow__title a { color: var(--text); }
.cardrow__title a:hover { color: var(--brand); }
.cardrow__meta { margin-top: auto; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
	.grid--rows { grid-template-columns: 1fr; }
	.cardrow__thumb { flex-basis: 118px; width: 118px; }
}

/* =====================================================================
   22. Tiles (Тамбов)
   ===================================================================== */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.tile {
	position: relative; display: block; border-radius: var(--radius);
	overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-dark);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tile:hover img { transform: scale(1.06); }
.tile span {
	position: absolute; inset: auto 0 0 0; padding: 46px 14px 14px;
	background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0));
	color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.3;
}
@media (max-width: 992px) { .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
