/*
Theme Name: GIV Media
Description: Одна главная страница медиахолдинга GIVMEDIA.
Version: 1.0.0
Requires at least: 6.0
Text Domain: giv-media
*/

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/opensans-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/opensans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
	background: #000;
	overflow-x: clip;
}

body {
	margin: 0;
	min-height: 100vh;
	background: #000;
	color: #9a9a9a;
	font-family: "Open Sans", sans-serif;
	font-size: 17px;
	font-weight: 400;
	font-synthesis: none;
	line-height: 1.65;
}

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

a {
	color: inherit;
}

.page {
	width: min(980px, calc(100% - 40px));
	margin: 0 auto;
	padding: 56px 0 80px;
	text-align: center;
}

.brand {
	display: block;
	width: min(420px, 100%);
	margin: 0 auto 36px;
}

.brand img {
	width: 100%;
	height: auto;
}

.lead {
	max-width: 640px;
	margin: 0 auto;
	color: #a3a3a3;
	font-size: 18px;
	line-height: 1.7;
	font-weight: 400;
}

.block {
	margin-top: 64px;
}

.block h2 {
	margin: 0 0 22px;
	color: #7d7d7d;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.14em;
	line-height: 1.35;
	text-transform: uppercase;
	text-wrap: balance;
}

.block h2.plain {
	max-width: 520px;
	margin-right: auto;
	margin-left: auto;
	color: #a3a3a3;
	font-size: 18px;
	letter-spacing: 0;
	line-height: 1.7;
	text-transform: none;
}

.projects {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.projects li {
	width: 168px;
	flex: 1 1 0;
	max-width: 190px;
	min-width: 0;
}

.projects a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 84px;
	padding: 12px 14px;
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.projects a:hover,
.projects a:focus-visible {
	transform: translateY(-2px);
}

.projects a:focus-visible,
.socials a:focus-visible,
.contact a:focus-visible {
	outline: 2px solid #6a3cff;
	outline-offset: 3px;
}

.projects img {
	display: block;
	width: 100%;
	height: 44px;
	min-width: 0;
	object-fit: contain;
}

.plate-dark {
	background: #111;
}

.plate-light {
	background: #fff;
}

.socials {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.socials a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 400;
}

.socials svg {
	width: 64px;
	height: 64px;
	display: block;
}

.socials a:hover,
.socials a:focus-visible {
	color: #fff;
}

.contact p {
	margin: 0 0 10px;
	color: #8f8f8f;
	font-weight: 400;
}

.contact a {
	color: #9b86e8;
	font-size: 18px;
	font-weight: 400;
	text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
	color: #b79bff;
}

@media (max-width: 640px) {
	.page {
		width: min(100% - 28px, 980px);
		padding-top: 36px;
	}

	.lead {
		font-size: 18px;
	}

	.lead,
	.contact p {
		overflow-wrap: break-word;
	}

	.projects {
		flex-direction: column;
	}

	.projects li {
		width: min(280px, 100%);
		flex: none;
		max-width: none;
	}
}
