/* Базовые сбросы */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
}

/* Шапка */
.header {
	background-color: #696969;
	border-bottom: 1px solid #e9ecef;
	padding: 10px 0;
}

.header__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* Логотип */
.header__logo {
	flex: 0 0 auto;
	margin-right: 20px;
}

.header__logo img {
	max-height: 50px;
	width: auto;
	display: block;
}

/* Каталог */
.header__catalog {
	position: relative;
	margin-right: 20px;
}

.catalog__button {
	background-color: #28a745;
	color: white;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.catalog__button:hover {
	background-color: #218838;
}

/* Выпадающее меню */
.catalog__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: white;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	list-style: none;
	min-width: 200px;
	display: none;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.catalog__dropdown.active {
	display: block;
}

.catalog__dropdown li {
	border-bottom: 1px solid #f1f1f1;
}

.catalog__dropdown li:last-child {
	border-bottom: none;
}

.catalog__dropdown a {
	display: block;
	padding: 10px 15px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.2s;
}

.catalog__dropdown a:hover {
	background-color: #f8f9fa;
}

/* Поиск */
.header__search {
	flex: 1 1 300px;
	margin-right: 20px;
}

.search__form {
	display: flex;
}

.search__input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px 0 0 4px;
	font-size: 16px;
}

.search__input:focus {
	outline: none;
	border-color: #80bdff;
}

.search__button {
	padding: 8px 16px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s;
}

.search__button:hover {
	background-color: #0069d9;
}

/* Телефон */
.header__phone {
	flex: 0 0 auto;
}

.phone__link {
	text-decoration: none;
	color: #333;
	font-size: 18px;
	font-weight: bold;
	white-space: nowrap;
}

.phone__link:hover {
	color: #007bff;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.header__container {
		flex-direction: column;
		align-items: stretch;
	}

	.header__logo,
	.header__catalog,
	.header__search,
	.header__phone {
		margin-right: 0;
		margin-bottom: 10px;
		text-align: center;
	}

	.header__catalog {
		align-self: flex-start;
	}

	.catalog__dropdown {
		width: 100%;
	}
}

/* Контейнер для ограничения ширины */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Хлебные крошки */
.breadcrumbs {
	background: #f8f9fa;
	padding: 10px 0;
	border-bottom: 1px solid #e9ecef;
}
.breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}
.breadcrumbs__list li {
	margin-right: 5px;
}
.breadcrumbs__list li:after {
	content: "/";
	margin-left: 5px;
	color: #6c757d;
}
.breadcrumbs__list li:last-child:after {
	content: "";
}
.breadcrumbs__list a {
	color: #007bff;
	text-decoration: none;
}
.breadcrumbs__list a:hover {
	text-decoration: underline;
}
.breadcrumbs__list span {
	color: #6c757d;
}

/* Карточка товара */
.product {
	padding: 30px 0;
}
.product__title {
	margin-bottom: 30px;
	font-size: 28px;
	color: #212529;
}
.product__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

/* Галерея */
.product__gallery {
	display: flex;
	flex-direction: column;
}
.gallery__main {
	border: 1px solid #dee2e6;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 15px;
}
.gallery__main img {
	width: 100%;
	height: auto;
	display: block;
}
.gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.gallery__thumb {
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.7;
	transition: all 0.2s;
	width: 100%;
	height: auto;
}
.gallery__thumb:hover {
	opacity: 1;
}
.gallery__thumb.active {
	border-color: #28a745;
	opacity: 1;
}

/* Блок цены и заказа */
.product__price-block {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
}
.product__price-label {
	font-size: 18px;
	color: #6c757d;
}
.product__price {
	font-size: 36px;
	font-weight: bold;
	color: #28a745;
	margin-left: 10px;
}
.product__order-btn {
	width: 100%;
	padding: 15px;
	background-color: #28a745;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s;
	margin-bottom: 30px;
}
.product__order-btn:hover {
	background-color: #218838;
}

/* Краткие характеристики */
.product__short-specs {
	background: #e9ecef;
	padding: 20px;
	border-radius: 4px;
}
.product__short-specs h3 {
	margin-bottom: 15px;
	font-size: 18px;
}
.product__short-specs ul {
	list-style: none;
}
.product__short-specs li {
	margin-bottom: 8px;
	border-bottom: 1px dashed #adb5bd;
	padding-bottom: 5px;
}

/* Описание, характеристики, комплектация */
.product__description,
.product__specs,
.product__complectation {
	margin-top: 40px;
}
.product__description h2,
.product__specs h2,
.product__complectation h2 {
	font-size: 24px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #28a745;
}
.specs-table {
	width: 100%;
	border-collapse: collapse;
}
.specs-table tr:nth-child(even) {
	background-color: #f8f9fa;
}
.specs-table td {
	padding: 12px;
	border: 1px solid #dee2e6;
}
.specs-table td:first-child {
	font-weight: bold;
	width: 40%;
}
.complectation-list {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}
.complectation-list li {
	margin-bottom: 8px;
}
.complectation-note {
	font-style: italic;
	color: #6c757d;
	margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
	.product__grid {
		grid-template-columns: 1fr;
	}
	.gallery__thumbs {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Стили для формы заказа на странице товара */
.product__order-form .form-group {
	margin-bottom: 15px;
}
.product__order-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #333;
}
.form-control {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}
.form-control:focus {
	border-color: #007bff;
	outline: none;
}
.product__order-btn {
	width: 100%;
	padding: 15px;
	background-color: #28a745;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s;
}
.product__order-btn:hover {
	background-color: #218838;
}
.product__short-specs {
	margin-top: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 4px;
}
.product__description {
	margin-top: 40px;
}
.product__specs table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.product__specs th,
.product__specs td {
	padding: 10px;
	border: 1px solid #dee2e6;
	text-align: left;
}
.product__specs th {
	background-color: #f8f9fa;
	font-weight: 600;
}
.product__specs tr:nth-child(even) {
	background-color: #f8f9fa;
}

/* Стили для таблицы комплектации */
.product__complect {
	margin-top: 40px;
}
.product__complect h2 {
	font-size: 24px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #28a745;
}
.complect-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}
.complect-table th {
	background: #f5f5f5;
	padding: 12px 8px;
	border: 1px solid #ddd;
	text-align: center;
	font-weight: 600;
}
.complect-table td {
	padding: 10px 8px;
	border: 1px solid #ddd;
	vertical-align: middle;
}
.complect-table td:first-child {
	font-weight: 500;
	background: #fafafa;
}
.complect-checked {
	background-color: #e8f5e9 !important;
	text-align: center;
}
.complect-checked .checkmark {
	color: #2e7d32;
	font-size: 18px;
	font-weight: bold;
}
.checkmark {
	font-size: 16px;
	color: #4caf50;
}

/* Кнопки цен */
.complect-price-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin: 30px 0 20px;
	flex-wrap: wrap;
}
.price-btn {
	background: white;
	border: 2px solid #3498db;
	border-radius: 8px;
	padding: 12px 25px;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 150px;
}
.price-btn:hover {
	background: #ebf5ff;
	border-color: #2980b9;
}
.price-btn.active {
	background: #3498db;
	border-color: #2980b9;
	color: white;
}
.price-btn .price-label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
}
.price-btn .price-value {
	font-size: 18px;
	font-weight: 700;
}
.price-btn.active .price-value {
	color: white;
}

/* Заголовки с ценами */
.complect-price-header {
	cursor: pointer;
	transition: background 0.2s;
}
.complect-price-header:hover {
	background: #e0e0e0;
}
.complect-price {
	display: block;
	font-size: 16px;
	color: #27ae60;
	margin-top: 5px;
}

/* Стили для таблицы комплектации с фиксированной шириной колонок */
.complect-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.complect-table th,
.complect-table td {
	padding: 10px;
	border: 1px solid #dee2e6;
	text-align: left;
	vertical-align: middle;
	word-wrap: break-word;
}
.complect-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	text-align: center;
}
.complect-table td:first-child {
	font-weight: 500;
	background-color: #fafafa;
}
.complect-checked {
	background-color: #e8f5e9 !important;
	text-align: center;
}
.checkmark {
	font-size: 18px;
	color: #2e7d32;
}
.complect-price-header {
	cursor: pointer;
	transition: background 0.2s;
}
.complect-price-header:hover {
	background: #e0e0e0;
}
.complect-price {
	display: block;
	font-size: 16px;
	color: #27ae60;
	margin-top: 5px;
}

/* Кнопки цен комплектации */
.complect-price-buttons {
	margin-top: 10px;
}
.price-btn {
	background: white;
	border: 2px solid #3498db;
	border-radius: 8px;
	padding: 10px 0;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 600;
	color: #2c3e50;
}
.price-btn:hover {
	background: #ebf5ff;
	border-color: #2980b9;
}
.price-btn.active {
	background: #3498db;
	border-color: #2980b9;
	color: white;
}
.price-btn .price-value {
	font-size: 16px;
}

/* Стили для дополнительных услуг */
.product__services {
	margin-top: 40px;
}
.product__services h2 {
	font-size: 24px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #28a745;
}
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 15px;
}
.service-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	transition: all 0.3s;
}
.service-card:hover {
	background: #e9ecef;
	border-color: #28a745;
}
.service-info {
	flex: 1;
}
.service-name {
	font-weight: 600;
	color: #2c3e50;
	font-size: 16px;
	margin-bottom: 5px;
}
.service-desc {
	font-size: 13px;
	color: #6c757d;
}
.service-price {
	font-size: 18px;
	font-weight: 700;
	color: #28a745;
	white-space: nowrap;
	margin-left: 15px;
}
