html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, ol,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
}

q:before, q:after,
blockquote:before, blockquote:after {
	content: "";
}

html {
	width: 100% !important;
	height: 100%;
	font-family: "Trebuchet MS", sans-serif, Arial, Tahoma, Verdana, Geneva, Helvetica;
	font-size: 16px;
	color: #3c3c3c;
	line-height: 24px;
}

body {
	min-height: 100%;
	height: 100%;
	background: #f3edec;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

img, a img, table {
	border: none;
}

a {
	text-decoration: underline;
	cursor:pointer;
	color: #000;
}

p {
	padding-bottom: 6px;
}

ul {
	margin-top: 0px;	
}

a:hover {
	text-decoration: none;
	cursor:pointer;
}

label {
	cursor:pointer;
}

.fl {float: left !important;}
.fr {float: right !important;}

div.spacer {
	height: 0;
	line-height: 0;
	font-size: 0;
	clear: both;
}

div.container {
	min-height: calc(100vh - 40px);
	padding: 20px;
	position: relative;
	display: flex;
	flex-direction: column;
}

div.header {
	display: flex;
}

.header .header_left {
	flex: 1;
}

.header .header_left div {
	margin-top: -35px;
}

.header .header_right {
	flex: 2;
}

div.content {
	flex: 1;
}

div.footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

div.footer a{
	color:#610b63;
	font-weight: bold;
}

div.h2  {height:2px;}
div.h3  {height:3px;}
div.h4  {height:4px;}
div.h5  {height:5px;}
div.h6  {height:6px;}
div.h7  {height:7px;}
div.h8  {height:8px;}
div.h9  {height:9px;}
div.h10 {height:10px;}
div.h12 {height:12px;}
div.h13 {height:13px;}
div.h15 {height:15px;}
div.h17 {height:17px;}
div.h19 {height:19px;}
div.h20 {height:20px;}
div.h25 {height:25px;}
div.h26 {height:26px;}
div.h27 {height:27px;}
div.h30 {height:30px;}
div.h35 {height:35px;}
div.h40 {height:40px;}
div.h45 {height:45px;}
div.h50 {height:50px;}
div.h55 {height:55px;}
div.h60 {height:60px;}
div.h65 {height:65px;}
div.h70 {height:70px;}
div.h80 {height:80px;}
div.h90 {height:90px;}
div.h100 {height:100px;}
div.h140 {height:140px;}


.lh24 {line-height:24px !important;}
.lh18 {line-height:18px !important;}
.lh16 {line-height:16px !important;}
.lh14 {line-height:14px !important;}
.lh11 {line-height:11px;}

h1, h1 a {
	font-size: 2.25rem;
	line-height: 2.25rem;
	font-style: italic;
	color: #4a2538;
	text-decoration: none;
}

h1 a:hover {
	text-decoration: underline;
}

h2 {
	font-size: 1.125rem;
	color: #0189bc;
	margin-bottom: 20px;
}

h3 {
	color: #36393e;
	margin-bottom: 11px;
}




.c1 {color:#797878;}
.c2 {color:#0189bc;}

.soft {width:10px !important;}
/*******************************/

div.w_l {
	width: 435px;
	float: left;
}

div.w_r {
	width: 539px;
	float: left;
	padding-right: 26px;
}

div.title_indent {
	color: #4a2538;
}

div.fav{
	float: right;
	background:url(img/fav.gif) no-repeat 0 16px;
	padding: 12px 0 0 16px;
}

div.fav a{
	color:#4a2538;
}

div.cat_img {
	width: 149px;
	text-align: center;
	padding: 7px 7px 14px 22px;
	/*background:url(img/shadow.gif) no-repeat 0 0;*/
	float:left;
	margin-left: -21px;
	position:relative;
}

div.main_container {
	display: flex;
	flex-wrap: wrap;
	gap: 50px 20px;
}

div.main_container div.desc {
	flex: 0 0 calc(50% - 10px); /* 2 колонки: 50% ширины - gap */
}

div.main_container::after {
	content: "";
	flex: auto;
}

div.params {
	line-height: 18px;
	color:#565a60;
}

div.params .f {
	width: 160px;
	font-weight: bold;
	padding-bottom: 5px;
}

div.params sup{
	font-size: 0.5rem;
}

.b{font-weight:bold;}

a.black {
	color: #000;
	font-size: 0.75rem;
	font-style: italic;
}

/******************************/



div.tel a {
	color: #610b63;
	font-size: 2.125rem;
	padding-left: 8px;
	text-decoration: none;
}

div.tel .sm {
	font-size: 1.25rem;
	padding-top: 3px;
}

.q_gr{
	color: #9d8e9b
}

div.second_tel {
	padding-left: 88px;
	font-size: 1.3rem;
}

a.logo {
	display: block;
	height: 34px;
	width: 67px;
	background:url(img/logo.gif) no-repeat 0 0;
} 

a:hover.logo {
	background:url(img/logo_act.gif) no-repeat 0 0;
}

.navigation {
	display: flex;
	width: 100%;
	justify-content: space-between;
	gap: 0;               /* без дополнительного отступа — всё влезает ровно */
	overflow-x: auto;     /* на всякий случай: чтобы не ломало верстку */
	white-space: nowrap;
	padding: 40px 0;
	font-size: 1.125rem;
}

.navigation .item {
	flex: 1 1 0;
	text-align: center;
	padding: 10px;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	box-sizing: border-box;
}



.logo-leveret {
    background: url(/img/logo-leveret.png) no-repeat 0 0;
    width: 80px;
    height: 13px;
    display: inline-block;
    vertical-align: middle;
    margin: -10px 0 -10px 3px;
    overflow: hidden;
    text-indent: -9999px;
    position: relative;
}

.logo-leveret:hover {
    background-position: 0 -27px;
}

/* Услуги */
.services {
}

.services > p {
	margin-bottom: 20px;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.services-grid article {
	font-size: 1rem;
	background: #f9f9f9;
	padding: 15px;
	border-radius: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-grid article:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.services-grid h3 {
	margin-top: 0;
	font-size: 1.15rem;
}

.services-grid p {
	font-size: 16px;
}

/* Карточка предложения */
.offer-card {
	/* убрали фон и тень */
	padding: 20px 0;
	margin-bottom: 40px;
}

.offer-title {
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: #111;
	display: flex;
	gap: 10px;
}

.offer-title a {
	text-decoration: none;
}

.offer-title a:hover {
	text-decoration: underline;
}

.share-link-btn {
	position: relative;
	cursor: pointer;
	border: none;
	background: none;
}
.share-link-btn:hover {
	color: #0077ff;
}

/* Всплывающее уведомление */
.tooltip {
	position: absolute;
	top: -35px;
	righ: 0%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	white-space: nowrap;
}

.tooltip.show {
	opacity: 1;
	transform: translateX(-50%) translateY(-5px);
}

.offer-top {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.offer-photo {
	width: 100%;
	margin: 0 auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.offer-photo .sold-label {
	position: absolute;
	top: 30px;
	left: -46px;
	background: rgba(255, 0, 0, 0.9);
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
	padding: 12px 40px;
	text-transform: uppercase;
	z-index: 10;
	transform: rotate(-45deg);
	pointer-events: none;
	letter-spacing: 4px;
	text-align: center;
}

.main-photo {
	width: 100%;
	border-radius: 10px;
	margin-bottom: 15px;
	max-height: 350px;
	object-fit: cover;
}

.offer-photo-thumbs {
	display: flex;
	gap: 10px;
	justify-content: flex-start; /* лучше влево, т.к. скролл */
	overflow-x: auto;
	padding: 5px 0;
	scrollbar-width: thin;         /* Firefox */
	scrollbar-color: #ccc transparent;
}

.offer-photo-thumbs::-webkit-scrollbar {
	height: 6px; /* высота скролла */
}

.offer-photo-thumbs::-webkit-scrollbar-thumb {
	background: #bbb;
	border-radius: 3px;
}

.offer-photo-thumbs::-webkit-scrollbar-track {
	background: transparent;
}

.offer-photo-thumbs a img {
	flex: 0 0 auto; /* фиксированный размер в карусели */
	width: 100px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.offer-photo-thumbs a img:hover {
	opacity: 1;
	transform: scale(1.05);
}

.offer-params {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px; /* расстояние между строками */
	padding-left: 10px;
}

.offer-params .param {
	display: flex;
	gap: 8px; /* расстояние между меткой и значением */
	align-items: baseline;
}

.offer-params .param .label {
	font-weight: 600;
	color: #555;
	min-width: 150px; /* фиксированная ширина для метки */
}

.offer-params .param .value {
	color: #111;
	text-align: left; /* теперь выравнивание слева */
	flex: 1; /* занимает оставшееся пространство */
}

.offer-desc {
	line-height: 1.4;
	position: relative;
	max-height: 55px;
	overflow: hidden;
	line-height: 1.6rem;
	color: #333;
	transition: max-height 0.4s ease;
}

.offer-desc p:first-child {
	margin-top: 0;
}

.offer-desc.expanded {
	max-height: 3000px;
}

.offer-card .read-more {
	display: inline-block;
	padding-top: 10px;
	color: #0077cc;
	cursor: pointer;
	font-weight: 500;
	text-decoration: underline;
}

.offer-card .read-more:hover {
	text-decoration: none;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px; /* отступ снизу */
}

.page-header a {
	transition: color 0.2s ease;
	font-size: 1.875rem;
	font-style: italic;
	color: #4a2538;
	text-decoration: underline;
}

.page-header a:hover {
	color: #005999;
}

/* фильтр объектов */
.filter-bar {
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;   /* разрешаем перенос кнопок */
	gap: 10px;         /* расстояние между кнопками */
}

.filter-bar a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding: 10px 16px;
	background: #f3edec;
	color: #333;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;

	min-width: 120px;   /* минимальная ширина кнопки */
	max-width: 180px;   /* ограничим, чтобы не растягивались */
	text-align: center;

	flex: 0 0 auto;     /* запретить растягивание на всю ширину */
}

.filter-bar a .title {
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
}

.filter-bar a .subtitle {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.2;
	min-height: 1em; /* резервируем строку */
}

.filter-bar a .subtitle:empty::before {
	content: " "; /* невидимый пробел */
	visibility: hidden;
	display: inline-block;
}

.filter-bar a:hover {
	background: #e0d9d7;
}

.filter-bar a.active {
	background: #c0392b;
	color: #fff;
}

.filter-bar a.active .subtitle {
	color: #f9f9f9;
}
/* // фильтр объектов */

/* кнопка Наверх */
#backToTop {
	position: fixed;
	bottom: 55px;
	right: calc(50% - 480px); /* 50% - половина контейнера + отступ */
	display: none; /* по умолчанию скрыта */
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 16px;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
	transition: opacity 0.3s ease;
	z-index: 1000;
}

#backToTop.show {
	display: block;
	opacity: 1;
}
/* // кнопка Наверх */





@media (max-width: 900px) {
	body {
		width: 100%;
		max-width: 100%;
	}
	.header .header_left {
		display: none;
	}

	.page-header {
		flex-direction: column-reverse; /* сначала h1, выше — ссылка */
		align-items: flex-start;       /* прижать к левому краю */
		gap: 30px;                     /* расстояние между ними */
	}

	.services-grid {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		gap: 20px;
	}

	.offer-top {
		flex-direction: column;
	}
	.offer-photo-thumbs img {
		width: 50px;
		height: 50px;
	}
	.offer-params {
		padding-left: 0;
	}

	.footer {
		flex-direction: column;
		gap: 20px;
	}

	.footer .ft_developer {
		align-items: center;
		justify-content: center;
		width: 100%;
		text-align: center;
	}
}

