/*
Theme Name: Лента
Author: Лента
Description: Лёгкая мобильная тема-статья: липкая полоса кнопок, белая шапка, широкий баннер и узкая колонка текста.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lenta
Domain Path: /languages
Tags: one-column, blog, custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
	--ink: #142033;
	--muted: #3d4d63;
	--paper: #fff;
	--line: #d5deea;
	--blue: #1e40af;
	--blue-deep: #0b1f4d;
	--green: #166534;
	--magenta: #a21caf;
	--footer: #0f172a;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
	color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: var(--blue); }
h1, h2, h3, p { overflow-wrap: break-word; }

.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 80;
	background: var(--blue); color: #fff; padding: .6rem 1rem; text-decoration: none; font-weight: 700;
}
.skip-link:focus { position: fixed; left: .5rem; top: .5rem; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.topbar {
	overflow: visible;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
	padding: 14px 16px; background: #17171a;
}
.admin-bar .topbar { top: 32px; }
.promo {
	position: relative; overflow: visible; display: flex; align-items: center; min-width: 0; min-height: 48px;
	padding: 4px 76px 4px 16px; border-radius: 14px; color: #fff; font-weight: 700; font-size: 16px;
	line-height: 1.15; text-align: left; text-decoration: none;
	background: linear-gradient(90deg, var(--c1), var(--c2));
	box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
	transition: transform .15s ease, filter .15s ease;
    background: #1d1d21 !important;
		    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.5);
	}
.promo:hover { filter: brightness(1.08); transform: translateY(-2px); }
.promo__text { min-width: 0; }
.promo__img {
	position: absolute; right: 8px; top: 50%; z-index: 1; width: auto; max-width: none; height: 67px;
	transform: translateY(-50%); pointer-events: none;
}

.site-header { position: relative; background: #17171a; color: #fff; padding: 5px 0 6px;}
.bar {
	display: flex; align-items: center; gap: 2rem; min-height: 3.4rem;
	width: min(1120px, calc(100% - 1.5rem)); margin: 0 auto;
}
.brand { margin-right: auto; min-width: 0; display: flex; align-items: center; }
.brand__name { color: inherit; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; text-decoration: none; }
.custom-logo { display: block; max-height: 2.25rem; width: auto; max-width: 9rem; }
.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.burger, .burger::before, .burger::after { display: block; width: 1.05rem; height: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav { display: none; }
.nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); padding: .25rem 1rem .8rem; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: .7rem 0; color: inherit; font-weight: 600; text-decoration: none; }
.head-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 .85rem;
	background: linear-gradient(180deg, #ffd062 0%, #f5a11b 100%);
; color: #000; border-radius: 22px; font-weight: 700; text-decoration: none; white-space: nowrap;
}

.hero {
	background: url(./hero-bg.webp);
	    background-size: cover;
    background-position: top center;
	/* background: linear-gradient(180deg, var(--c1, #14224f), var(--c2, #22397f)); */
	padding: 1.6rem 0 1.8rem;
}
.hero.has-photo {
	background-image: linear-gradient(180deg, color-mix(in srgb, var(--c1) 82%, transparent), color-mix(in srgb, var(--c2) 86%, transparent)), var(--photo);
	background-size: cover;
	background-position: center;
}
.hero__grid {
	width: min(1120px, calc(100% - 1.5rem));
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
	gap: 12px 1.25rem;
	align-items: center;
}
.notices { display: grid; gap: 12px; min-width: 0; }
.notices:not(:has(.note-card:not([hidden]))) { display: none; }
.hero__grid:not(:has(.note-card:not([hidden]))) { grid-template-columns: 1fr; }
.hero__grid:not(:has(.note-card:not([hidden]))) .hero__pic { max-width: 46%; margin-inline: auto; }
.hero__pic { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero__img, .hero__ph { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; margin-inline: auto; }
.hero__ph { width: min(100%, 280px); }
.note-card {
	position: relative; display: flex; align-items: center; min-height: 96px;
	padding: 20px 56px 20px 24px; border-radius: 20px; background: #1d1d21; color: #fff;
	box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.5);
}
.note-card[hidden] { display: none; }
.note-card__main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.note-card__icon { width: 96px; height: 96px; object-fit: contain; flex: none; }
.note-card__copy { display: grid; gap: .25rem; min-width: 0; }
.note-card__label { color: #ffc21a; font-weight: 700; font-size: clamp(16px, 2vw, 20px); }
.note-card__text {
	font-weight: 700; font-size: clamp(18px, 4.5vw, 20px); line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.note-card__x {
	position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0;
	border: 0; background: transparent; color: #fff; cursor: pointer;
}
.note-card__x::before, .note-card__x::after {
	content: ""; position: absolute; left: 12px; right: 12px; top: 21px; height: 2px; background: #fff;
}
.note-card__x::before { transform: rotate(45deg); }
.note-card__x::after { transform: rotate(-45deg); }

.entry, .list, .note {
	width: min(960px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1.35rem 0 2.6rem;
}
.entry h1, .list h1, .note h1 {
	margin: 0 0 1rem; font-size: clamp(1.75rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em;
}
.entry__body { font-size: clamp(1rem, 0.15vw + 1rem, 1.125rem); line-height: 1.65; }
.entry__body p, .entry__body ul, .entry__body ol, .entry__body figure { margin: 0 0 1rem; }
.entry__body ul, .entry__body ol { padding-left: 1.2rem; }
.entry__body h2 { font-size: 1.45rem; line-height: 1.25; margin: 1.6rem 0 .5rem; }
.entry__body h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.3rem 0 .4rem; }
.entry__body img { border-radius: 8px; }

.wp-block-button.is-style-wide { width: 100%; margin: 0 0 1rem; }
.wp-block-button.is-style-wide .wp-block-button__link {
	display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
	background: var(--magenta); color: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: .04em;
	padding: 1rem 1.1rem; border-radius: 10px; line-height: 1.3;
}

.item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.item h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.item h2 a { color: inherit; text-decoration: none; }
.item p { margin: 0; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.page-numbers, .post-navigation a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
	border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit;
}
.page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.post-navigation { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }

.find { display: flex; gap: .5rem; max-width: 24rem; }
.find input { flex: 1; min-width: 0; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; }
.find button { min-height: 44px; padding: 0 .9rem; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; }

.site-footer { background: var(--footer); color: #e2e8f0; }
.foot { width: min(960px, calc(100% - 2rem)); margin: 0 auto; padding: 1.4rem 0 1.8rem; }
.foot a { color: #fff; }
.foot__menu { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.foot__menu a { text-decoration: none; font-weight: 600; }
.foot__copy { margin: 0 0 .35rem; font-weight: 700; }
.foot__note { margin: 0; color: #cbd5e1; }

:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.promo:focus-visible, .head-btn:focus-visible, .wp-block-button__link:focus-visible { outline-color: #fff; }

@media (max-width: 719px) {
	.hero__grid,
	.hero__grid:not(:has(.note-card:not([hidden]))) { grid-template-columns: 1fr; }
	.hero__pic,
	.hero__grid:not(:has(.note-card:not([hidden]))) .hero__pic { order: -1; max-width: none; }
	.hero__img, .hero__ph { max-height: 200px; }
	.hero__ph { width: min(70%, 200px); }
}
@media (max-width: 782px) {
	.admin-bar .topbar { top: 46px; }
}
@media (max-width: 480px) {
	.topbar { gap: 8px; padding: 10px 8px; }
	.promo { min-height: 44px; padding: 2px 46px 2px 8px; border-radius: 12px; font-size: clamp(11px, 3.2vw, 15px); }
	.promo__img { height: 62px; right: 4px; }
	.note-card { padding: 16px 48px 16px 16px; }
	.note-card__main { gap: 10px; }
}
@media (max-width: 360px) {
	.note-card__icon { width: 64px; height: 64px; }
	.note-card { padding: 14px 44px 14px 12px; }
}
@media (min-width: 760px) {
	.note-card { min-height: 170px; }
	.note-card__icon { width: 140px; height: 140px; }
	.note-card__text { font-size: 30px; }
	.nav-toggle { display: none; }
	.nav, .nav.is-open { display: block; position: static; padding: 0; border: 0; background: transparent; }
	.nav__list { display: flex; gap: 2rem; }
	.nav__list a { padding: .4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.promo { transition: none; }
	.promo:hover { transform: none; filter: none; }
}
