:root {
	--primary: #2c5aa0;
	--accent: #f1c40f;
	--text: #333;
	--border: #ddd;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
section[id] {
	scroll-margin-top: 100px;
}
.to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary) no-repeat center / 45% 45%
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5l7 7h-4v7h-6v-7H5z' fill='%23ffffff'/%3E%3C/svg%3E");
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	z-index: 10;
	transition: background-color .2s, transform .2s;
}
.to-top:hover {
	background-color: #1e4a85;
	transform: translateY(-3px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background-color: #FDECDA;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cg transform='rotate(-12 70 70)'%3E%3Cpath d='M50 40 h34 l12 12 v48 h-46 z' fill='%23FFFFFF' fill-opacity='0.45' stroke='%23EAD7B3' stroke-opacity='0.6'/%3E%3Cpath d='M84 40 l12 12 h-12 z' fill='%23EAD7B3' fill-opacity='0.55'/%3E%3C/g%3E%3Cg transform='rotate(15 190 200)'%3E%3Cpath d='M165 170 h40 l14 14 v52 h-54 z' fill='%23F3D9C5' fill-opacity='0.4'/%3E%3Cpath d='M205 170 l14 14 h-14 z' fill='%23D9B98F' fill-opacity='0.4'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(rgba(243, 217, 197, .8) 1px, transparent 1px),
		linear-gradient(90deg, rgba(243, 217, 197, .8) 1px, transparent 1px);
	background-size:
		240px 240px,
		64px 64px,
		64px 64px;
	color: #333;
	line-height: 1.6;
	padding: 0 12px;
	position: relative;
	z-index: 2;
}
body::before,
body::after {
	content: "";
	position: fixed;
	top: 0;
	bottom: 0;
	width: 60px;
	z-index: 1;
	background-color: #F5F0E8;
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(160, 130, 90, .35) 0 1px,
		transparent 1px 32px
	);
}
body::before {
	left: 0;
	box-shadow: inset -10px 0 18px rgba(120, 90, 50, .22);
}
body::after {
	right: 0;
	box-shadow: inset 10px 0 18px rgba(120, 90, 50, .22);
}
@media (max-width: 900px) {
	body::before,
	body::after {
		display: none;
	}
}
header {
	text-align: center;
	padding: 24px 0;
}
h1 {
	color: var(--primary);
	font-size: 2.5rem;
	margin-bottom: 8px;
}
section h2 {
	text-align: center;
}
nav a {
	display: inline-block;
	margin: 0 12px;
	text-decoration: none;
	color: var(--primary);
	font-weight: 700;
	font-size: 1.3rem;
}
nav a:hover {
	color: var(--accent);
}
.manual-services {
	max-width: 800px;
	margin: 0 auto;
}
.manual-services p {
	margin-bottom: 10px;
	line-height: 1.5;
	font-size: 1.2rem;
}
.manual-services a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid var(--border);
}
.manual-services a:hover {
	color: var(--accent);
	border-color: var(--accent);
}
.services-list {
	max-width: 800px;
	margin: 32px auto;
}
.services-list p { margin-bottom: 6px; }
.services-list a {
	color: var(--primary);
	text-decoration: underline;
}
.services-list a:hover { color: var(--accent); }
.table-wrapper {
	overflow-x: auto;
	margin: 20px auto;
	max-width: 800px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
table {
	width: 100%;
	min-width: unset;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.92rem;
}
th, td {
	padding: 6px 8px;
	border: 1px solid var(--border);
	text-align: center;
	vertical-align: middle;
}
thead tr {
	background: var(--primary);
	color: #fff;
}
tbody tr {
	background: #ffffff;
}
tbody tr:hover {
	background-color: #F9EBD7;
	cursor: default;
}
tbody td:first-child {
	text-align: left;
}
/* Группа строк с общей ценой: подсвечивается целиком */
tbody.price-group tr {
	background: #ffffff;
}
tbody.price-group:hover tr,
tbody.price-group:hover td {
	background-color: #F9EBD7;   /* тёплый бежевый, как в других таблицах */
	cursor: default;
}
/* Чтобы обычный tr:hover не перекрашивал строку внутри группы */
tbody.price-group tr:hover {
	background-color: transparent;
}

.notes {
	max-width: 800px;
	margin: 20px auto;
	padding: 16px;
	background: #fff;
	border-left: 5px solid var(--accent);
	box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.notes ul { list-style: disc; padding-left: 20px; }
.notes li { margin-bottom: 6px; }
.contacts {
	max-width: 800px;
	margin: 20px auto;
	padding: 24px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.contacts p { margin-bottom: 14px; }
.contacts sup {
	font-size: 0.75em;
	vertical-align: super;
}
.contacts img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 12px 0 0;
	border: 1px solid var(--border);
	border-radius: 6px;
}
.contacts a {
	color: var(--primary);
	text-decoration: underline;
}
.contacts a:hover { color: var(--accent); }
footer {
	text-align: center;
	padding: 10px 0 10px;
	color: #555;       
	font-size: 1.25rem;
	line-height: 1.4;
}
footer a {
	color: var(--primary);
	text-decoration: underline;
}
footer a:hover {
	color: var(--accent);
}
.map-frame {
	max-width: 100%;
	overflow: hidden;
}
.map-frame iframe {
	width: 100% !important; 
	max-width: 100% !important;
	height: 500px;
	border: 1px solid var(--border);
	border-radius: 6px;
	display: block;
}
@media (max-width: 768px) {
	.manual-services { max-width: 100%; padding: 0 16px; }
	.manual-services p { font-size: 1.0rem; margin-bottom: 8px; }
	.manual-services b  { font-size: 1.15rem; }
}
@media (min-width: 768px) {
	.contacts { box-shadow: none; border: 1px solid var(--border); }
	body { padding: 0 20px; }
	table { font-size: 1rem; }
	.table-wrapper { box-shadow: none; border: 1px solid var(--border); }
}
@media (max-width: 600px) {
	nav a {
		font-size: 0.95rem;
		margin: 8px 6px;
	}
	.to-top {
		width: 42px;
		height: 42px;
		bottom: 16px;
		right: 16px;
	}
}