/* ROBOTO */
@font-face {
	font-family: "Roboto";
	src: url("/font/Roboto-Regular.ttf");
	font-weight: normal;
}
@font-face {
	font-family: "Roboto-Medium";
	src: url("/font/Roboto-Medium.ttf");
	font-weight: normal;
}

@font-face {
	font-family: "Roboto";
	src: url("/font/Roboto-ExtraBold.ttf");
	font-weight: bold;
}
* {
	padding: 0;
	margin: 0;
	border: none;
	outline: none;
	font: inherit;
	background: inherit;
}
a, a:hover, a:visited {
	text-decoration: inherit;
	font: inherit;
	color: inherit;
}
:root {
/*	--main-color: #E11E26;*/
	--main-color: rgb(226, 0, 26);
	--sub-main-color: #E0E0E0;
	--check-border-size: 1px;
	--check-border-hover-color: lightgray;
	--check-border-checked-color: gray;
	--table-odd-color: #EEE;
	--table-even-color: white;
}
body {
	font-size: 18px;
	font-family: "Roboto", sans-serif;
	margin: 0;
}
.body {
	display: grid;
	grid-template-columns: auto min(1400px, 85%) auto;
	align-items: start;
	align-content: start;
	min-height: calc(100vh - 10em);
}
.body > * {
	display: grid;
	grid-column: 1 / -1;
}
img {
	user-select: none;
}

/* Таблицы */
.bigit-table {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: stretch;
	justify-items: stretch;
	column-gap: 1em;
}
.bigit-table-item {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
	padding: 0.5em 1em;
}
.bigit-table-item.one-line {
	grid-template-columns: 1fr;
}
.bigit-table-item > span {
	display: grid;
	justify-items: stretch;
	align-items: center;
}
.bigit-table-item:nth-child(odd) {
	background-color: var(--table-odd-color)
}
.bigit-table-item:nth-child(even) {
	background-color: var(--table-even-color)
}
@media all and (max-width: 600px) {
	.bigit-table.flipable > .bigit-table-item:nth-child(odd), .bigit-table.flipable > .bigit-table-item:nth-child(even) {
		background-color: white;
		padding: 0;
		grid-template-columns: 1fr;
	}
	.bigit-table.flipable > .bigit-table-item > span {
		padding: 0.5em 1em;
	}
	.bigit-table.flipable > .bigit-table-item > span:nth-child(odd) {
		background-color: var(--table-odd-color);
	}
	.bigit-table.flipable > .bigit-table-item > span:nth-child(even) {
		background-color: var(--table-even-color);
	}
}

/* Радио кнопки и чекбоксы */
.select-item {
	display: grid;
	grid-template-columns: 1fr;
	border-radius: 0.4em;
	border: solid var(--check-border-size) transparent;
	user-select: none;
}
.select { 
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 0.5em;
}
.select-item > span:has(input) {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
}
.select-item > span input {
	margin-top: 0.24em;
	margin-bottom: 0.24em;
}
.select-item > span:has(img) {
	display: grid;
	justify-items: center;
	align-items: center;
}
.select-item > span:first-child {
	padding: 0.5em 1em;
	font-weight: normal;
}
.select-item:has(input:checked) {
	border: solid var(--check-border-size) var(--check-border-checked-color)
}
.select-item:hover {
	border: solid var(--check-border-size) var(--check-border-hover-color)
}
.select-item input {
	height: 0.8em;
	width: 0.8em;
	margin-right: 0.5em;
	accent-color: var(--main-color);
	/*
	border-radius: 50%;
	appearance: none;
	border: none;
	outline: 1px solid black; 
	*/
}
/*
.select-item input[type=checkbox] {
	border-radius: 10%;
}
.select-item input:checked {
	border: 0.3em solid var(--main-color);
	outline-color: var(--main-color);
}*/

/* Текстовые поля */
input[type=email], input[type=tel], input[type=text], input[type=number], textarea, select {
	border: solid 1px var(--check-border-hover-color);
	border-radius: 0.4em;
	padding: 0.2em 0 0.2em 0.5em;
	background-color: white;
}
input[type=email]:focus, input[type=tel]:focus, input[type=text]:focus, input[type=number]:focus, textarea:focus, select:focus {
	border: solid var(--check-border-size) var(--check-border-checked-color)
}
select {
	padding-left: 0.3em;
}
/* Кнопки */
.bigit-button {
	margin-left: 0.3em;
	border: solid var(--main-color) 1px;
	background-color: var(--main-color);
	color: white;
	font-size: 1em;
	border-radius: 0.4em;
	padding: 0.30em 1em 0.3em 1em;
	transition: background-color 0.2s 0.05s ease-in-out, color 0s 0.05s, transform 0.2s 0.05s ease-in-out;
	justify-self: stretch;
	user-select: none;
}
.bigit-button:hover {
	background-color: white;
	color: black;
	transform: scale(1.05); 
}


nav {
	display: grid;
	grid-template-columns: subgrid;
	justify-content: start;
	align-items: center;
	font-size: 1em;
	background-color: transparent;
	position: sticky;
	top: 0px;
	user-select: none;
	z-index: 10;
}
nav > .banner {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0;
	transition: height 0.0s ease-in-out;
	background-color: #333;
}
nav > .banner.skippy {
	transition: height 0.2s ease-in-out;
	height: 100%;
}
.nav {
	z-index: 11;
	grid-column: 2;
	display: grid;
	grid-template-columns: auto auto;
}
.nav > .left{
	display: flex;
	flex-wrap: wrap;
	justify-self: start;
}
.nav > .right {
	color: white;
	display: flex;
	justify-self: end;

}
.nav > .right > div {
	padding: 0.2em 0 0.2em 1em;
}
nav:has(.banner:not(.skippy)) > .nav > .right {
	display: none;
}


nav div.option {
	padding: 0.2em 1em 0.2em 0;
}
.bigit-link {
	display: inline-block;
	transition: transform 0.2s ease-in-out;
	background-color: transparent;
}
.bigit-link:hover {
	transform: translate(0.0em, -2%) scale(1.03);
}

header {
	background-color: transparent;
	color: white;
	padding: 1.5em 0 1em 0;
	display: grid;
	grid-template-columns: subgrid;
	user-select: none;
}
.header {
	justify-items: start;
	grid-template-columns: auto 1fr auto;
	grid-column: 2;
	display: grid;
	gap: 1.2em;
	grid-auto-flow: column;
}
header > * {
	display: block;
}
.header > a:has(img#logo) {
	transition: transform 0.2s ease-in-out;
}
.header > a:has(img#logo):hover {
	transform: scale(1.1);
}
.header > a {
	height: 1.5em;
}
.header > a > img#logo {
	height: 1.5em;
}
.header > h1 {
	font-weight: normal;
	text-align: left;
	justify-self: start;
	font-size: 1.3em;
	align-self: end;
	position: relative;
	bottom: -0.17em;
}
.header > address {
	display: grid;
	grid-auto-flow: column;
	justify-self: end;
	justify-items: end;
	align-items: end;
	user-select: text;
	column-gap: 1em;
	position: relative;
	bottom: -0.17em;
	font-size: 1.1em;
}
.path {
	display: block;
	grid-column: 2;
}
footer {
	display: grid;
	margin-top: 2em;
	min-height: 10em;
	background-color: #333;
	color: white;
	line-height: 2em;
	grid-template-columns: auto min(1400px, 85%) auto;
	align-self: end;
}
footer > * {
	grid-column: 1 / -1;
}
footer > .footer-spear {
	display: none;
	width: 100%;
	height: 3.9em;
}
footer > .footer-spear > img {
	width: 100%;
	height: 100%;
	background: transparent;
	transform: scale(-1.01, -1.05);
}
footer > .footer-spear-ls {
	display: block;
	width: 100%;
	position: relative;
	height: 3.5em;
	background: white;
	grid-column: 1/ -1;
}
footer > .footer-spear-ls > img {
	background: transparent;
	width: 100%;
	height: 200%;
	transform: scale(-1);
	z-index: 1;
}

.footer {
	display: grid;
	grid-column: 2;
	grid-gap: 0 1em;
	grid-row: 2;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: start;
	padding: 0.5em 0 1em 0;
	z-index: 2;
}
.footer > div {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
	align-items: center;
}

a.bigit-link {
	text-decoration: underline;
	text-decoration-thickness: 0.05em;
	font-weight: normal;
}
a.bigit-link.black-bg {
	color: #FFF
}
a.bigit-link.white-bg {
	color: #33C;
}
a.bigit-link:hover {
	text-decoration-thickness: 0.1em;
	color: var(--main-color);
	cursor: pointer;
}
.header-bg {
	width: 100%;
	height: 7.8em;
	position: absolute;
	z-index: -1;
}
.bg-pad {
	height: 3em;
	grid-column: 1 / -1;
}
.bg-pad > img {
	display: none;
	width: 100%;
	height: 5em;
}

/* Mobile */
@media all and (min-width: 1501px) and (max-width: 1700px) {
	body {
		font-size: 15px;
	}
}
@media all and (min-width: 1001px) and (max-width: 1500px) {
	body {
		font-size: 10px;
	}
	footer > .footer-spear-ls {
		transform: scale(1, 1.1);
	}
}
@media all and (min-width: 601px) and (max-width: 1000px) {
	body {
		font-size: 6px;
	}
	footer > .footer-spear-ls {
		transform: scale(1, 1.1);
	}
}
@media all and (max-width: 600px) {
	header, nav {
		background-color: #333;
	}
	nav {
		margin: -1px 0;
		background-clip: content-box;
		transform: scale(1, 1.05);
	}
	nav > .banner {
		display: none;
	}
	.nav > .right {
		display: none;
	}
	.header {
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		justify-items: stretch;
	}
	.header > h1 {
		font-size: 1em;
	}
	.header-bg {
		display: none;
	}
	.bg-pad {
		height: 30px;
		margin-bottom: 10px;
	}
	.bg-pad > img {
		height: 30px;
		display: block;
	}
	footer > .footer-spear {
		display: block;
		height: 30px;
		grid-column: 1 / -1;
		/* transform: scale(-1, -1.05); */
		background-clip: content-box;
		margin-top: -1px;
	}
	footer > .footer-spear-ls {
		display: none;
	}
	.footer {
		margin-top: -1px;
		grid-template-columns: 1fr;
	}
}
