/*
Theme Name: ВЕКТОР
Theme URI: https://vector-media.com.ua
Author: ВЕКТОР
Description: Тема новинного сайту ВЕКТОР — темна, з приглушеним золотом, у стилі роликів і каналу. Новини без паніки й фейків.
Version: 1.0
Requires PHP: 8.1
Text Domain: vektor
*/

/* ── Шрифти бренду (OFL) ── */
@font-face { font-family: "Unbounded"; src: url("assets/fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
	--bg: #0a0d12;
	--bg-2: #0f141b;
	--card: #131a23;
	--card-2: #18212c;
	--line: #222c39;
	--line-2: #2c3848;
	--text: #eef1f5;
	--text-2: #c4cbd6;
	--muted: #8793a5;
	--gold: #c9a45c;
	--gold-2: #e2c27e;
	--gold-soft: rgba(201, 164, 92, .14);
	--accent: #ffb020;
	--red: #e5484d;
	--tg: #2aabee;
	--radius: 18px;
	--radius-s: 12px;
	--wrap: 1240px;
	--head: "Unbounded", "Manrope", system-ui, sans-serif;
	--body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	background-image:
		radial-gradient(900px 500px at 85% -10%, rgba(201, 164, 92, .08), transparent 60%),
		radial-gradient(700px 400px at -10% 10%, rgba(42, 171, 238, .05), transparent 60%);
	background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: #0a0d12; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Шапка ── */
.top {
	position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 18, .82);
	backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
	width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold));
	display: grid; place-items: center;
	box-shadow: 0 0 0 4px rgba(201, 164, 92, .14), 0 8px 22px -6px rgba(201, 164, 92, .55);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font: 700 10px/1 var(--body); letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.brand__big { font: 800 22px/1.05 var(--head); letter-spacing: .02em; margin-top: 4px; }
.nav { flex: 1; min-width: 0; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none;
	mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
	display: block; padding: 9px 14px; border-radius: 999px; font: 700 14px/1 var(--body); color: var(--text-2); white-space: nowrap;
	transition: background .2s, color .2s;
}
.nav a:hover, .nav .current-menu-item > a, .nav .current-cat > a { background: var(--card); color: var(--text); }
.top__act { display: flex; align-items: center; gap: 10px; flex: none; }
.btn {
	display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
	font: 800 14px/1 var(--body); color: var(--text); background: var(--card); transition: transform .15s, border-color .2s, background .2s;
	white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--gold); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn--tg:hover { color: #fff; border-color: #fff; }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #15110a; border-color: transparent; }
.btn--gold:hover { color: #15110a; }
.alarm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); animation: pulse 1.8s infinite; flex: none; }
.alarm-dot.is-calm { background: #34c77b; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); } 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--text); }

/* ── Бегущая строка ── */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker__in { display: flex; align-items: center; height: 44px; gap: 16px; }
.ticker__label {
	flex: none; font: 800 11px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #15110a;
	background: var(--gold); padding: 7px 10px; border-radius: 6px;
}
.ticker__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: flex; gap: 40px; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .ticker__move { animation-play-state: paused; }
.ticker__move a { font: 600 14px/44px var(--body); color: var(--text-2); white-space: nowrap; }
.ticker__move a::before { content: "●"; color: var(--gold); margin-right: 10px; font-size: 9px; vertical-align: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Реклама ── */
.ad { margin: 24px auto; text-align: center; }
.ad:empty { display: none; }

/* ── Главная: герой ── */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin: 28px 0 8px; }
.hero__side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 20px; }
.lead {
	position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 520px; background: var(--card);
	isolation: isolate; box-shadow: var(--shadow);
}
.lead img, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.lead:hover img, .tile:hover img { transform: scale(1.04); }
.lead::after, .tile::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(10, 13, 18, 0) 25%, rgba(10, 13, 18, .55) 55%, rgba(10, 13, 18, .96) 100%);
}
.lead__body, .tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; }
.lead h2 { font: 800 clamp(26px, 3vw, 40px)/1.12 var(--head); margin: 14px 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.lead p { color: var(--text-2); margin: 0; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); isolation: isolate; min-height: 250px; box-shadow: var(--shadow); }
.tile h3 { font: 700 19px/1.25 var(--head); margin: 10px 0 0; text-wrap: balance; }
.lead:hover h2, .tile:hover h3 { color: var(--gold-2); }
.lead .meta, .tile .meta { margin-top: 12px; color: var(--text-2); }

/* текстовая новость без фото — красивая типографская карточка */
.is-text { background: radial-gradient(120% 100% at 100% 0%, rgba(201, 164, 92, .16), transparent 55%), var(--card); }
.is-text::after { display: none; }
.is-text::before {
	content: "”"; position: absolute; right: 22px; top: -18px; font: 800 180px/1 var(--head); color: var(--gold); opacity: .12; z-index: -1;
}
.is-text .lead__body, .is-text .tile__body { top: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }

/* ── Мета ── */
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 800 11px/1 var(--body);
	letter-spacing: .06em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold-2); border: 1px solid rgba(201, 164, 92, .3);
}
.lead .chip, .tile .chip { background: rgba(10, 13, 18, .55); backdrop-filter: blur(6px); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font: 600 13px/1.2 var(--body); }
.meta time { display: inline-flex; align-items: center; gap: 6px; }

/* ── Разделы и сетка ── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin: 40px 0 70px; align-items: start; }
.sec-title { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.sec-title h2, .sec-title h1 { font: 800 22px/1 var(--head); margin: 0; letter-spacing: .01em; text-transform: uppercase; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sec-title .bar { width: 6px; height: 22px; border-radius: 3px; background: var(--gold); }

.feed { display: flex; flex-direction: column; }
.row {
	display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.row:first-child { padding-top: 0; }
.row__img { position: relative; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16 / 10; background: var(--card); }
.row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.row:hover .row__img img { transform: scale(1.05); }
.row--text { grid-template-columns: 6px minmax(0, 1fr); }
.row--text .row__img { display: none; }
.row--text::before { content: ""; border-radius: 3px; background: linear-gradient(180deg, var(--gold), transparent); }
.row h3 { font: 700 20px/1.3 var(--head); margin: 8px 0 8px; letter-spacing: -.005em; text-wrap: balance; }
.row h3 a:hover { color: var(--gold-2); }
.row p { margin: 0; color: var(--text-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Боковая колонка ── */
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h4 { font: 800 14px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.alarm-box { position: relative; overflow: hidden; background: linear-gradient(160deg, #1a1215, var(--card) 60%); }
.alarm-box__n { font: 800 54px/1 var(--head); color: var(--text); }
.alarm-box__n small { font: 700 15px/1 var(--body); color: var(--muted); margin-left: 6px; }
.alarm-box__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.alarm-box__list span { font: 700 12px/1 var(--body); padding: 6px 9px; border-radius: 8px; background: rgba(229, 72, 77, .16); color: #ff8a8e; }
.alarm-box__list span.part { background: rgba(255, 176, 32, .13); color: #ffc25c; }
.alarm-box__sub { margin-top: 8px; font: 700 13px/1.3 var(--body); color: var(--muted); }
.alarm-box .btn { width: 100%; justify-content: center; }
.tg-box {
	position: relative; overflow: hidden; border: 1px solid rgba(201, 164, 92, .35);
	background: radial-gradient(120% 120% at 0% 0%, rgba(42, 171, 238, .18), transparent 50%), radial-gradient(120% 120% at 100% 100%, rgba(201, 164, 92, .2), transparent 55%), var(--card);
}
.tg-box__t { font: 800 22px/1.15 var(--head); margin: 0 0 8px; }
.tg-box__t em { font-style: normal; color: var(--gold-2); }
.tg-box p { color: var(--text-2); margin: 0 0 18px; font-size: 15px; }
.tg-box .btn { width: 100%; justify-content: center; height: 48px; }
.mini { display: flex; flex-direction: column; counter-reset: n; }
.mini a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font: 700 15px/1.35 var(--body); }
.mini a:first-child { border-top: 0; padding-top: 0; }
.mini a::before { counter-increment: n; content: counter(n, decimal-leading-zero); font: 800 15px/1.35 var(--head); color: var(--gold); }

/* ── Блоки разделов на главной ── */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cat-card__h { display: flex; justify-content: space-between; align-items: center; }
.cat-card__h a { font: 800 15px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.cat-card__h span { color: var(--gold); font-weight: 800; }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cat-card li a { font: 600 15px/1.4 var(--body); color: var(--text-2); }
.cat-card li a:hover { color: var(--gold-2); }
.cat-card li time { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ── Страница новости ── */
.article { max-width: 780px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font: 600 13px/1 var(--body); margin: 30px 0 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }
.article h1 { font: 800 clamp(28px, 4.2vw, 46px)/1.1 var(--head); letter-spacing: -.015em; margin: 16px 0 18px; text-wrap: balance; }
.article__lead { font-size: 20px; color: var(--text-2); margin: 0 0 22px; }
.article__img { margin: 26px -40px 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article__img img { width: 100%; }
.article__img figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; background: var(--card); }
.content { font-size: 19px; line-height: 1.75; color: #e3e7ee; }
.content p { margin: 0 0 1.15em; }
.content a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(226, 194, 126, .4); text-underline-offset: 3px; }
.content h2, .content h3 { font-family: var(--head); line-height: 1.25; margin: 1.6em 0 .6em; }
.content blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: 20px; }
.content ul, .content ol { padding-left: 1.2em; }
.content li { margin: .3em 0; }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 34px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share span { font: 800 13px/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; transition: border-color .2s, transform .15s; }
.share a:hover, .share button:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--text); }
.share svg { width: 19px; height: 19px; }
.cta-tg {
	display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 24px; margin: 30px 0;
	border-radius: var(--radius); border: 1px solid rgba(201, 164, 92, .35);
	background: radial-gradient(120% 140% at 0% 0%, rgba(42, 171, 238, .16), transparent 55%), var(--card);
}
.cta-tg__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--tg); display: grid; place-items: center; }
.cta-tg__ic svg { width: 32px; height: 32px; }
.cta-tg b { display: block; font: 800 19px/1.2 var(--head); margin-bottom: 4px; }
.cta-tg span { color: var(--text-2); font-size: 15px; }
.related { margin: 50px 0 70px; }
.related .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related .tile { min-height: 230px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.tags a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font: 700 14px/1 var(--body); color: var(--text-2); }
.tags a:hover { border-color: var(--gold); color: var(--gold-2); }

/* ── Архив, поиск, пагинация ── */
.arch-head { margin: 36px 0 26px; padding: 30px; border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, rgba(201, 164, 92, .18), transparent 55%), var(--card); border: 1px solid var(--line); }
.arch-head h1 { font: 800 clamp(26px, 3.5vw, 38px)/1.1 var(--head); margin: 10px 0 0; }
.arch-head p { margin: 10px 0 0; color: var(--text-2); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-weight: 800; }
.pager .current { background: var(--gold); color: #15110a; border-color: var(--gold); }
.search-form { display: flex; gap: 10px; }
.search-form input[type=search] { flex: 1; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0 20px; font: 600 16px var(--body); }
.empty { text-align: center; padding: 80px 20px; }
.empty h1 { font: 800 72px/1 var(--head); color: var(--gold); margin: 0; }

/* ── Соцсети ── */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials--foot { margin-top: 20px; }
.soc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); transition: transform .15s, color .2s, background .2s, border-color .2s; }
.soc svg { width: 20px; height: 20px; }
.soc:hover { transform: translateY(-2px); color: #fff; }
.soc--tg:hover { background: var(--tg); border-color: var(--tg); }
.soc--tiktok:hover { background: #111; border-color: #25f4ee; }
.soc--instagram:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); border-color: transparent; }
.soc--youtube:hover { background: #ff0033; border-color: #ff0033; }
.soc--threads:hover { background: #000; border-color: #fff; }
.socials--side { justify-content: space-between; }
.socials--side .soc { width: 50px; height: 50px; }

/* ── Подвал ── */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 50px 0 30px; margin-top: 40px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__tag { color: var(--muted); margin: 14px 0 0; max-width: 34ch; }
.foot h5 { font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot li a { color: var(--text-2); font-weight: 600; }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ── Телефон и планшет ── */
@media (max-width: 1080px) {
	.layout { grid-template-columns: 1fr; }
	.side { position: static; }
	.cats { grid-template-columns: 1fr 1fr; }
	.article__img { margin-left: 0; margin-right: 0; }
}
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; }
	.hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.lead { min-height: 440px; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 18px; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; mask-image: none; -webkit-mask-image: none; }
	.nav a { padding: 13px 14px; font-size: 16px; }
	.burger { display: grid; place-items: center; }
	.top__act .btn--map span, .top__act .btn--tg span { display: none; }
	.top__act .btn { padding: 0 13px; }
	.foot__grid { grid-template-columns: 1fr 1fr; }
	.related .grid { grid-template-columns: 1fr 1fr; }
	.cta-tg { grid-template-columns: 52px 1fr; }
	.cta-tg .btn { grid-column: 1 / -1; justify-content: center; }
	.cta-tg__ic { width: 52px; height: 52px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.top__in { gap: 12px; height: 64px; }
	.nav { top: 64px; }
	.brand__big { font-size: 19px; }
	.brand__mark { width: 34px; height: 34px; }
	.hero { margin-top: 18px; gap: 14px; }
	.hero__side { grid-template-columns: 1fr; gap: 14px; }
	.lead { min-height: 400px; }
	.lead__body, .tile__body { padding: 22px; }
	.row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
	.row h3 { font-size: 16.5px; margin-top: 6px; }
	.row p { display: none; }
	.cats { grid-template-columns: 1fr; }
	.foot__grid { grid-template-columns: 1fr; gap: 28px; }
	.related .grid { grid-template-columns: 1fr; }
	.content { font-size: 17.5px; }
	.article__lead { font-size: 18px; }
	.ticker__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
