/* =========================================================================
   Texnologii — основные стили
   ========================================================================= */

:root {
	--lime: #c9eb10;
	--lime-2: #4ed764;
	--blue: #71cceb;
	--pink: #c5709c;
	--ink: #222;
	--dark: #222;
	--gray: #f0f0f0;
	--muted: #999;
	--head-h: 90px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	overflow-x: hidden;
	word-break: break-word;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button {
	font-family: inherit;
}

.wrap {
	width: 1400px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Шапка ------------------------------------------------------- */
.site-head {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--head-h);
	background: #000;
	z-index: 90;
}

.head-inner {
	display: flex;
	align-items: center;
	height: 100%;
}

.logo {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: 0 0 auto;
	margin-right: 38px;
}

.logo-mark {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--lime), var(--lime-2));
	color: #000;
	font-size: 27px;
	font-weight: 900;
	font-style: italic;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding-right: 3px;
}

.logo-text {
	color: #fff;
	font-size: 25px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 1px;
	white-space: nowrap;
}

.nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	margin-right: 8px;
}

.nav > li {
	position: relative;
	height: 100%;
	margin: 0 1.5%;
}

.nav > li > a {
	display: flex;
	align-items: center;
	height: 100%;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
	transition: color .2s;
}

.nav > li > a:hover,
.nav > li:hover > a {
	color: var(--lime);
}

.nav .has-sub svg {
	margin-left: 5px;
	margin-top: 3px;
}

.submenu {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 100%;
	width: 250px;
	background: #000;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transition: .22s;
	z-index: 5;
}

/* 最后一项（Ещё）的下拉靠右对齐，避免超出视口右边界 */
.nav > li:last-child .submenu {
	left: auto;
	right: 0;
	transform: none;
}

.nav > li:hover .submenu {
	opacity: 1;
	visibility: visible;
}

.submenu a {
	display: block;
	height: 45px;
	line-height: 45px;
	padding: 0 20px;
	color: #fff;
	font-size: 14px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	transition: color .2s;
}

.submenu a:hover {
	color: var(--lime);
}

.search-btn {
	background: none;
	border: 0;
	color: #fff;
	padding: 8px 0 8px 14px;
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
}

.search-btn:hover {
	color: var(--lime);
}

.menu-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
	margin-left: 10px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.menu-btn span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: #fff;
	transition: .25s;
}

.menu-btn.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
	opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.search-panel {
	position: fixed;
	top: var(--head-h);
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, .94);
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease;
	z-index: 89;
}

.search-panel.open {
	max-height: 120px;
}

.search-panel form {
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 24px 20px;
	display: flex;
}

.search-panel input {
	flex: 1;
	height: 52px;
	padding: 0 18px;
	border: 0;
	font-size: 16px;
	outline: none;
}

.search-panel button {
	height: 52px;
	padding: 0 34px;
	border: 0;
	background: var(--lime);
	color: #000;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.head-spacer {
	height: var(--head-h);
}

/* ---------- Первый экран ------------------------------------------------ */
.hero {
	display: flex;
	background: #fff;
	gap: 4px;
	height: 432px;
}

.hero-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hero-left,
.hero-right {
	width: 30%;
}

.hero-mid {
	flex: 1;
}

.hero-card {
	position: relative;
	display: block;
	flex: 1;
	overflow: hidden;
	background: #111;
	min-height: 0;
}

.hero-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.hero-card:hover img {
	transform: scale(1.05);
}

.hero-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, .18) 68%, rgba(0, 0, 0, .04) 100%), linear-gradient(to top right, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 60%);
}

.hero-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #fff;
}

.hero-title {
	width: 100%;
	margin-top: 10px;
	font-size: 24px;
	line-height: 1.32;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-mid .hero-title {
	font-size: 36px;
	line-height: 1.24;
	-webkit-line-clamp: 3;
}

.pill {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #000;
	background: linear-gradient(var(--lime), var(--lime-2));
	border-radius: 0 10px 0 0;
}

/* ---------- Цветные разделители ---------------------------------------- */
.band {
	height: 10px;
	width: 100%;
}

.band-lime {
	background: var(--lime);
}

.band-blue {
	background: var(--blue);
}

.band-pink {
	background: var(--pink);
}

/* ---------- Секции ------------------------------------------------------ */
.section {
	padding: 58px 0 46px;
	background: #fff;
}

.section-dark {
	background: var(--dark);
	color: #fff;
}

.section-gray {
	background: var(--gray);
}

.section-head {
	margin-bottom: 34px;
}

.section-head h2 {
	font-size: 48px;
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -.8px;
	text-transform: uppercase;
	color: #000;
}

.section-dark .section-head h2,
.section-dark .section-head h2 a {
	color: var(--lime);
}

.section-head h2 a:hover {
	color: #000;
}

.section-dark .section-head h2 a:hover {
	color: #fff;
}

/* ---------- Сетки ------------------------------------------------------- */
.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.col {
	padding: 0 15px;
	min-width: 0;
}

.col-2 {
	width: 50%;
}

.col-3 {
	width: 33.3333%;
}

.col-4 {
	width: 25%;
}

.col-break {
	flex-basis: 100%;
	height: 0;
}

/* ---------- Карточки ---------------------------------------------------- */
.card {
	display: block;
}

.card-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 400;
	transition: color .2s;
}

a.card:hover .card-title {
	color: #000;
}

.section-dark a.card:hover .card-title {
	color: var(--lime);
}

.card-date {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	color: var(--muted);
}

/* картинка слева */
.card-thumb {
	display: flex;
	gap: 20px;
	margin-bottom: 34px;
	align-items: flex-start;
}

.card-thumb .ci {
	flex: 0 0 130px;
	width: 130px;
	height: 130px;
	overflow: hidden;
}

.card-thumb .ci img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s;
}

.card-thumb:hover .ci img {
	opacity: .88;
}

.card-thumb .ct {
	flex: 1;
	min-width: 0;
	padding-top: 2px;
}

.card-thumb .card-title {
	-webkit-line-clamp: 4;
}

/* картинка сверху */
.card-top {
	margin-bottom: 36px;
}

.card-top .ci {
	display: block;
	overflow: hidden;
	margin-bottom: 16px;
	background: #e9e9e9;
}

.card-top .ci img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: opacity .25s;
}

.card-top:hover .ci img {
	opacity: .9;
}

/* картинка-подложка */
.card-overlay {
	position: relative;
	overflow: hidden;
	margin-bottom: 34px;
	background: #111;
	color: #fff;
}

.card-overlay .ci {
	display: block;
}

.card-overlay .ci img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .6s ease;
}

.card-overlay:hover .ci img {
	transform: scale(1.04);
}

.card-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .6) 40%, rgba(0, 0, 0, .2) 70%, rgba(0, 0, 0, .05) 100%), linear-gradient(to top right, rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 55%);
}

.card-ov-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.card-ov-text .card-title {
	width: 100%;
	margin-top: 9px;
	font-size: 19px;
	color: #fff;
}

.section-dark .card-ov-text .card-title {
	color: #fff;
}

/* видео */
.card-video {
	display: flex;
	gap: 20px;
	margin-bottom: 34px;
}

.card-video .ci {
	position: relative;
	flex: 0 0 150px;
	width: 150px;
	height: 150px;
	overflow: hidden;
}

.card-video .ci img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-video .play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .28);
}

.card-video .play svg {
	width: 44px;
	height: 44px;
	padding: 12px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .62);
	color: #fff;
}

.card-video .ct {
	flex: 1;
	min-width: 0;
}

/* ---------- Заголовок архивов ------------------------------------------ */
.page-head {
	padding: 54px 0 34px;
	background: #fff;
}

.page-title {
	font-size: 48px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -.8px;
	text-transform: uppercase;
}

.page-desc {
	margin-top: 14px;
	max-width: 900px;
	color: #666;
	font-size: 15px;
}

.page-search {
	display: flex;
	margin-top: 22px;
	max-width: 640px;
}

.page-search input {
	flex: 1;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #ddd;
	font-size: 15px;
	outline: none;
}

.page-search button {
	height: 48px;
	padding: 0 28px;
	border: 0;
	background: #000;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.empty {
	padding: 20px 0 40px;
	color: #777;
}

.pager {
	display: flex;
	gap: 8px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.pager-item > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #ddd;
	font-size: 14px;
}

.pager-item .current,
.pager-item a:hover {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ---------- Статья ----------------------------------------------------- */
.article-head {
	padding: 50px 0 0;
	max-width: 900px;
	margin: 0 auto;
}

.article-title {
	margin: 18px 0 14px;
	font-size: 42px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.6px;
	max-width: 1120px;
}

.article-meta {
	padding-bottom: 22px;
	border-bottom: 1px solid #e6e6e6;
	color: var(--muted);
	font-size: 14px;
}

.article-body {
	max-width: 900px;
	margin: 34px auto 60px;
	font-size: 16.5px;
	line-height: 1.95;
	color: #2b2b2b;
}

.article-body p {
	margin-bottom: 22px;
}

.article-body h2 {
	margin: 36px 0 18px;
	font-size: 27px;
	line-height: 1.3;
	font-weight: 800;
	color: #000;
}

.article-body h3 {
	margin: 28px 0 14px;
	font-size: 22px;
	font-weight: 800;
	color: #000;
}

.article-body ul,
.article-body ol {
	margin: 0 0 22px 22px;
	list-style: disc;
}

.article-body ol {
	list-style: decimal;
}

.article-body li {
	margin-bottom: 8px;
}

.article-body img {
	width: 100%;
	margin: 26px 0;
	height: auto;
}

.article-body a {
	color: #0a6ebd;
	text-decoration: underline;
}

.article-cover {
	margin-top: 0 !important;
}

/* ---------- Подвал ----------------------------------------------------- */
.site-foot {
	background: #111;
	color: #ccc;
	padding: 40px 0 0;
	margin-top: 0;
}

.foot-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding-bottom: 26px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	flex-wrap: wrap;
}

.foot-nav {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 22px;
	min-width: 0;
}

.foot-nav a {
	font-size: 15px;
	line-height: 2.1;
	color: #ccc;
}

.foot-nav a:hover {
	color: var(--lime);
}

.foot-seo {
	margin: 26px 0;
	padding: 24px 30px;
	border: 1px dashed rgba(201, 235, 16, .55);
	text-align: center;
}

.foot-seo h3 {
	font-size: 20px;
	line-height: 1.5;
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
}

.foot-seo p {
	font-size: 14px;
	line-height: 1.9;
	color: #b5b5b5;
}

.foot-bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 20px 0 24px;
	text-align: center;
	font-size: 13px;
	color: #888;
}

.foot-bottom a {
	color: #aaa;
	text-decoration: underline;
}

/* ---------- Адаптив ---------------------------------------------------- */
@media (max-width: 1180px) {
	.nav > li > a {
		font-size: 16px;
	}

	.logo-text {
		font-size: 21px;
	}

	.hero {
		height: 380px;
	}

	.section-head h2,
	.page-title {
		font-size: 40px;
	}

	.card-title {
		font-size: 18px;
	}

	.hero-mid .hero-title {
		font-size: 30px;
	}

	.article-title {
		font-size: 34px;
	}
}

@media (max-width: 960px) {
	:root {
		--head-h: 70px;
	}

	.logo-mark {
		width: 38px;
		height: 38px;
		font-size: 22px;
	}

	.logo-text {
		font-size: 19px;
	}

	.menu-btn {
		display: flex;
	}

	.nav {
		display: none;
		position: fixed;
		top: var(--head-h);
		left: 0;
		right: 0;
		height: auto;
		max-height: calc(100vh - var(--head-h));
		overflow-y: auto;
		margin: 0;
		padding: 6px 0 10px;
		background: #000;
		flex-direction: column;
		align-items: stretch;
		z-index: 95;
	}

	.nav.open {
		display: flex;
	}

	.nav > li {
		width: 100%;
		height: auto;
		margin: 0;
	}

	.nav > li > a {
		height: auto;
		padding: 13px 20px;
		font-size: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
	}

	.submenu {
		position: static;
		transform: none;
		width: auto;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		background: #0b0b0b;
	}

	.submenu a {
		text-align: left;
		padding-left: 36px;
	}

	.hero {
		display: block;
		height: auto;
	}

	.hero-col {
		width: 100%;
		display: block;
	}

	.hero-card {
		width: 100%;
		max-width: 100vw;
		height: 260px;
		margin-bottom: 4px;
	}

	.hero-mid .hero-card {
		height: 340px;
	}

	.hero-text {
		left: 0;
		right: auto;
		width: 100%;
		max-width: 100vw;
		padding: 16px 18px;
	}

	.hero-title,
	.hero-mid .hero-title {
		display: block;
		width: 100%;
		max-width: calc(100vw - 36px);
		font-size: 20px;
		line-height: 1.3;
		max-height: 3.9em;
		overflow: hidden;
		-webkit-line-clamp: unset;
	}

	.card-title,
	.card-ov-text .card-title {
		display: block;
		max-height: 4.6em;
		overflow: hidden;
		-webkit-line-clamp: unset;
	}

	.section {
		padding: 40px 0 20px;
	}

	.section-head h2,
	.page-title {
		font-size: 26px;
		letter-spacing: -.4px;
	}

	.page-head {
		padding: 34px 0 22px;
	}

	.col-3,
	.col-4 {
		width: 50%;
	}

	.col-2 {
		width: 100%;
	}

	.card-title {
		font-size: 16px;
	}

	.card-thumb .ci {
		flex: 0 0 104px;
		width: 104px;
		height: 104px;
	}

	.card-video .ci {
		flex: 0 0 118px;
		width: 118px;
		height: 118px;
	}

	.article-title {
		font-size: 26px;
	}

	.article-body {
		font-size: 16px;
		margin: 24px auto 40px;
	}

	.foot-top {
		flex-direction: column;
		align-items: flex-start;
	}

	.foot-nav {
		justify-content: flex-start;
	}

	.foot-seo {
		padding: 18px;
	}

	.foot-seo h3 {
		font-size: 16px;
	}
}

@media (max-width: 560px) {
	.col-3,
	.col-4 {
		width: 100%;
	}

	.card-thumb .card-title {
		-webkit-line-clamp: 3;
	}
}
