body {
	margin: 0;
	padding: 0;
	background: #E3E7ED url(images/img01.gif) repeat-x left top;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #787878;
}

h1, h2, h3 {
	margin: 0;
	padding: 0;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal;
	color: #F93D00;
}

h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.6em; }

p, ul, ol {
	margin-top: 0;
	line-height: 180%;
}

a {
	text-decoration: none;
	color: #417FDA;
}

#poisk {
	-webkit-animation: rainbow 3.5s linear 1s infinite;
	position: absolute;
	z-index: 9999;
}
@-webkit-keyframes rainbow {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}

#wrapper {
	width: 968px;
	margin: 0 auto;
	padding: 0;
}

/* Header */
#header {
	width: 968px;
	height: 150px;
	margin: auto;
	background: url(images/img02.gif) no-repeat left top;
}

/* Logo */
#logo {
	float: left;
	width: 968px;
	height: 60px;
	color: #616161;
}
#logo h1, #logo p { margin: 0; padding: 0; }
#logo h1 {
	float: left;
	padding: 80px 0 0 80px;
	letter-spacing: -1px;
	font-size: 2.6em;
}
#logo h2 {
	border: none;
	background: none;
	text-decoration: none;
	color: #7e509f;
}
#logo p {
	float: left;
	margin: 0;
	padding: 60px 10px;
	font: normal 14px Georgia, "Times New Roman", Times, serif;
	font-style: italic;
}
#logo a {
	border: none;
	background: none;
	text-decoration: none;
	color: #616161;
}

/* Search */
#search {
	float: right;
	width: 230px;
	padding: 0;
}
#search form {
	height: 41px;
	margin: 0;
	padding: 70px 0 0 0px;
}
#search fieldset {
	margin: 0;
	padding: 0;
	border: none;
}
#search-text {
	width: 210px;
	border: none;
	font: bold 1.2em Arial, Helvetica, sans-serif;
	color: #FFFFFF;
}
#search-submit { display: none; }

/* Menu */
#menu {
	width: 968px;
	height: 50px;
	margin: 0 auto;
	padding: 0;
}
#menu ul {
	margin: 0;
	padding: 0;
	padding-left: 10px;
	list-style: none;
	line-height: normal;
}
#menu li {
	float: left;
	height: 50px;
	background: url(images/img03.gif) no-repeat right top;
}
#menu a {
	display: block;
	margin-top: 10px;
	margin-right: 3px;
	padding: 7px 20px 7px 20px;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #FFFFFF;
	border: none;
}
#menu a:hover { text-decoration: underline; }

/* Page */
#page {
	width: 968px;
	margin: 0 auto;
	background: url(images/img05.jpg) repeat-y left top;
}
#page-bgtop {
	background: url(images/img04.jpg) no-repeat left top;
}
#page-bgbtm {
	background: url(images/img06.jpg) no-repeat left bottom;
}

/* Content */
#content {
	float: right;
	width: 700px;
	padding: 60px 20px 0 0;
}
#content h2 {
	border: none;
	background: none;
	text-decoration: none;
	color: #7e509f;
}
#content p {
	color: #000000;
	font: 14px Georgia;
	font-style: italic;
}
#content p2 {
	border: none;
	background: none;
	text-decoration: none;
	color: #000000;
	font: 18px Georgia;
}

.post {
	margin-bottom: 8px;
	background: url(images/img09.jpg) repeat-y left top;
}
.post-bgtop {
	background: url(images/img08.jpg) no-repeat left top;
}
.post-bgbtm {
	background: url(images/img10.jpg) no-repeat left bottom;
}
.post .title {
	padding-top: 15px;
	padding-left: 20px;
	color: #000000;
}
.post .title a {
	color: #000000;
	border: none;
}
.post .meta {
	border-bottom: 1px dashed #B5DEF4;
	padding-left: 20px;
	padding-bottom: 5px;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: italic;
}
.post .entry {
	padding: 10px 20px 15px 20px;
	text-align: justify;
	min-height: 500px;
	color: #000;
}

/* Sidebar */
#sidebar {
	float: left;
	width: 220px;
	padding: 60px 0 0 20px;
	color: #787878;
}
#sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: inherit;
	word-wrap: break-word;
}
#sidebar li {
	height: auto;
	padding: auto;
	text-align: inherit;
	word-wrap: break-word;
}
#sidebar li ul { padding-bottom: 30px; }
#sidebar li li {
	line-height: 35px;
	border-bottom: 1px dashed #D2D4C9;
}
#sidebar li li span {
	display: block;
	margin-top: -20px;
	padding: 0;
	font-size: 11px;
	font-style: italic;
}
#sidebar h2 {
	height: 64px;
	padding: 0 0 0 30px;
	background: url(images/img11.gif) no-repeat left top;
	letter-spacing: -.5px;
	color: #FFFFFF;
}
#sidebar p {
	padding-bottom: 20px;
	text-align: justify;
}
#sidebar a {
	color: #417FDA;
	border: none;
}
#sidebar a:hover {
	text-decoration: underline;
	color: #787878;
}

/* Calendar, Footer, Comments, Contact – без изменений */
#calendar table { width: 100%; }
#calendar tbody td { text-align: center; }
#calendar #next { text-align: right; }

#footer {
	height: 50px;
	margin: 0 auto;
	padding: 0px 0 15px 0;
	font-family: Arial, Helvetica, sans-serif;
	color: #B2B2B2;
}
#footer p {
	margin: 0;
	line-height: normal;
	font-size: 9px;
	text-align: center;
}
#footer a { color: #3D444F; }

.comments-box {
	clear: both;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
}
.comments-box .comment {
	clear: both;
	margin-top: 20px;
	margin-bottom: 10px;
}
.comment .avatar {
	float: left;
	width: 80px;
	height: 80px;
	margin-right: 7px;
	margin-bottom: 5px;
	margin-top: 5px;
}
.comment .avatar img { width: 80px; height: 80px; }
.comment .title {
	margin-bottom: 5px;
	height: auto;
	padding: 0;
}
.comment .title .author {
	font-weight: bold;
	font-size: 150%;
}
.comments-box form input {
	margin-top: 5px;
	margin-bottom: 5px;
	width: 200px;
}
.comments-box form textarea {
	margin-top: 5px;
	margin-bottom: 10px;
	width: 100%;
	height: 150px;
}
.comments-box img#captcha { margin-top: 5px; }
.comments-box input#captcha_code { width: 90px; }
.comments-box input#submit {
	width: 100px;
	height: 22px;
}
.comments-box h2 { clear: both; }

.contact-form {
	clear: both;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
}
.contact-form form input {
	margin-top: 5px;
	margin-bottom: 5px;
	width: 200px;
}
.contact-form form textarea {
	margin-top: 5px;
	margin-bottom: 10px;
	width: 100%;
	height: 150px;
}
.contact-form img#captcha2 { margin-top: 5px; }
.contact-form input#captcha_code2 { width: 90px; }
.contact-form input#submit2 {
	width: 100px;
	height: 22px;
}
h2 { clear: both; }
* { padding: 0; }

#slideshow {
	background-color:#F5F5F5;
	border:1px solid #FFFFFF;
	height:340px;
	margin: 15px 15px 0 0;
	position:relative;
	width:660px;
	-moz-box-shadow:0 0 22px #111;
	-webkit-box-shadow:0 0 22px #111;
	box-shadow:0 0 22px #111;
}
#slideshow ul {
	height:320px;
	left: 20px;
	list-style:none outside none;
	overflow:hidden;
	position:absolute;
	top:10px;
	width:660px;
}
#slideshow li {
	position:absolute;
	display:none;
	z-index:10;
}
#slideshow li:first-child {
	display:block;
	z-index:10;
}
#slideshow .slideActive { z-index:10; }
#slideshow canvas {
	display:none;
	position:absolute;
	z-index:10;
}
#slideshow .arrow {
	height:86px;
	width:60px;
	position:absolute;
	background:url('img/arrows.png') no-repeat;
	top:50%;
	margin-top:-43px;
	cursor:pointer;
	z-index:10;
}
#slideshow .previous { background-position:left top; left:0; }
#slideshow .previous:hover { background-position:left bottom; }
#slideshow .next { background-position:right top; right:0; }
#slideshow .next:hover { background-position:right bottom; }

.metrika { display: none; }

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ТАБЛИЦ GREE ===== */
.price-tabs {
	display: flex;
	gap: 5px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}
.tab-button {
	background: #f0f0f0;
	border: 1px solid #ccc;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 16px;
	border-radius: 5px 5px 0 0;
	transition: background 0.2s;
}
.tab-button.active {
	background: #fff;
	border-bottom: 1px solid #fff;
	font-weight: bold;
}
.tab-button:hover { background: #e0e0e0; }
.tab-content {
	border-top: 2px solid #aaa;
	padding-top: 15px;
	overflow-x: auto;
}

.excel-table {
	border-collapse: collapse;
	width: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	background-color: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	table-layout: auto;
	word-break: break-word;
}
.excel-table th {
	background-color: #d9e1f2;
	border: 1px solid #666;
	padding: 8px 4px;
	text-align: center;
	font-weight: bold;
	white-space: normal;
	line-height: 1.3;
	color: #333;
}
.excel-table td {
	border: 1px solid #666;
	padding: 8px 4px;
	text-align: center;
	vertical-align: middle;
	color: #333;
}
/* Для всех таблиц, кроме FreeMatch, первый столбец шириной 150px */
.excel-table td:first-child {
	text-align: left;
	white-space: normal;
	word-break: break-word;
	width: 150px;
	max-width: 150px;
}
/* Все остальные ячейки – в одну строку */
.excel-table td:not(:first-child) {
	white-space: nowrap;
}
.excel-table td:last-child {
	font-weight: bold;
	min-width: 80px;
}
.excel-table tr:nth-child(even) {
	background-color: #f5f5f5;
}
.excel-table tr:hover {
	background-color: #e8f0fe;
}
.series-name td {
	background-color: #b0c4de !important;
	font-weight: bold;
	font-size: 18px;
	text-align: left !important;
	padding: 8px;
	border-bottom: 1px solid #444;
	border-top: 2px solid #444;
	color: #000;
}
.series-description td {
	background-color: #d9e1f2 !important;
	text-align: justify !important;
	white-space: normal !important;
	word-wrap: break-word !important;
	padding: 8px;
	border-bottom: 2px solid #444;
	color: #333;
	font-size: 13px;
	line-height: 1.4;
}
.series-photo {
	width: 40px;
	text-align: center;
	vertical-align: middle;
	background-color: #c0c0c0;
	border-right: 2px solid #444;
}
.series-photo::before {
	content: "??";
	font-size: 18px;
}
.sticky-header th {
	position: sticky;
	top: 0;
	background-color: #d9e1f2;
	z-index: 20;
	box-shadow: 0 2px 2px -1px rgba(0,0,0,0.2);
}
.close-table {
	text-align: right;
	margin-bottom: 10px;
}
.close-table button {
	background: #f0f0f0;
	border: 1px solid #ccc;
	padding: 5px 15px;
	cursor: pointer;
	border-radius: 3px;
	font-size: 14px;
}
.close-table button:hover {
	background: #e0e0e0;
}
@media (max-width: 768px) {
	.excel-table {
		font-size: 12px;
	}
	.excel-table th,
	.excel-table td {
		padding: 4px 2px;
	}
	.excel-table td:first-child {
		width: 130px;
		max-width: 130px;
	}
	.series-photo {
		width: 30px;
	}
	.series-photo::before {
		font-size: 14px;
	}
	.price-tabs {
		justify-content: center;
	}
	.tab-button {
		font-size: 14px;
		padding: 8px 12px;
	}
}

/* ===== СПЕЦИАЛЬНЫЕ ПРАВИЛА ДЛЯ FREE-MATCH ===== */
.freematch-table {
    table-layout: auto;
    width: 100%;
}

/* Все ячейки таблицы FreeMatch – выравнивание по центру */
.freematch-table td,
.freematch-table th {
    text-align: center;
    vertical-align: middle;
}

/* Первый столбец (модели) – с переносом, уменьшен до 200px */
.freematch-table td:first-child,
.freematch-table th:first-child {
    white-space: normal;
    word-break: break-word;
    width: 200px;
    max-width: 200px;
}

/* Столбец с габаритами (6-й) – без переноса, фиксированная ширина */
.freematch-table td:nth-child(6),
.freematch-table th:nth-child(6) {
    white-space: nowrap;
    width: 120px;
    max-width: 120px;
}

/* Все остальные столбцы (2–5, 7) – с переносом, ограничение ширины */
.freematch-table td:not(:first-child):not(:nth-child(6)),
.freematch-table th:not(:first-child):not(:nth-child(6)) {
    white-space: normal;
    word-break: break-word;
    max-width: 200px;
    width: auto;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .freematch-table td:first-child,
    .freematch-table th:first-child {
        width: 140px;
        max-width: 140px;
    }
    .freematch-table td:nth-child(6),
    .freematch-table th:nth-child(6) {
        width: 90px;
        max-width: 90px;
    }
    .freematch-table td:not(:first-child):not(:nth-child(6)),
    .freematch-table th:not(:first-child):not(:nth-child(6)) {
        max-width: 120px;
    }
}