@charset "UTF-8";

h1 {
	font-size: 36px;
	line-height: 43px;
	font-weight: 700;
	text-align: center;
	margin-top: 50px;
	/*margin-bottom: 1rem;*/
}

h1:after {
	content: " ";
	display: block;
	height: 6px;
	background-color: yellow;
	background: url('/img/header-underline.svg');
	background-repeat: no-repeat;
	background-position: top center;
}

.rating {
	font-size: 16px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 70px;
	grid-area: raiting;
}

.rating .stars  {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.rating .stars .star-rating {
	color: #88919d;
	padding-left: 16px;
}

.rating .reviews {
	color: #528CAA;
	text-decoration: none;
	line-height: 1.15;
	border-bottom: 1px dashed #a9c6d5;
}


.product {
	display: grid;
	grid-template-columns: 1fr minmax(350px, 0.5fr);
	grid-template-rows: auto auto auto 1fr;
	grid-template-areas: "header header"
                         "raiting photos"
                         "description photos"
                         "description doc";
	grid-gap: 2.5vw;
	margin-bottom: 50px;
}

.header {
	grid-area: header;
}

.description {
	grid-area: description;
}

.photos {
	/*border: solid 1px #E6EAED;
	border-radius: 6px;*/
	/*padding: 1em;*/
	grid-area: photos;
	display: grid;
	gap: 20px;
}

.doc {
	grid-area: doc;
}

.photo img {
	max-width: 100%;
	cursor: zoom-in;
}

.gallery {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 0.5vw;
}

.gallery>* {
	display: block;
	max-width: 100%;
	border: solid 1px #E6EAED;
	padding: 1px;
	box-sizing: border-box;
	cursor: pointer;
}

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 16px;
}

table td {
	padding: 0.8rem 0;
	border-bottom: 1px solid #E6EAED;
	max-width: 50%;
	min-width: 50%;
	width: 50%;
}

table tr:first-child>td {
	border-top: 1px solid #E6EAED;
}

table tr>td:first-child {
	color: #88919D;
	padding-right: 0.5em;
}

table tr>td:last-child {
	padding-left: 0.5em;
}

table tr>td:last-child span {
	color: #88919D;
}

.doc a {
	display: block;
	border: solid 1px #E6EAED;
	border-radius: 6px;
	text-decoration: none;
	color: var(--color-text);
	padding: 1em;
	line-height: 1em;
	transition: all 1000ms ease-in;
}

.doc a:not(:first-child) {
	margin-top: 1em;
}

.doc a:hover {
	background-color: #f7f7f7;
	transition: background-color 400ms ease-out;
}

.doc a small{
	display: block;
	color: #88919D;
	font-size: 0.9em;
	line-height: 0.9em;
	margin-top: 0.5em;
}

.doc a.pdf {
	padding-left: 3.7em;
	background-image: url(/img/icon-paperclip.svg);
	background-origin: content-box;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: -2.7em center;
}
