/* Сайт BAA Ariadna Dodi & Gheorghe Iudin — вёрстка 1-в-1 по оригиналу 2007:
   зелёная шапка с логотипом, меню картинками-кнопками, баннеры разделов */

body, html {
	width: 100%;
	height: 100%;
	background-color: #FFFFFF;
	margin: 0;
	padding: 0;
	font-family: Helvetica, Arial, Tahoma, sans-serif;
	font-size: 14px;
}

/* ===== Шапка ===== */
.site-header {
	display: flex;
	background-color: #143834;
}

.logo-cell {
	width: 233px;
	height: 103px;
	flex-shrink: 0;
	background-color: #143834;
	text-align: center;
}

.logo-cell img {
	width: 233px;
	height: 103px;
	display: block;
	border: 0;
}

.header-right {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.header-spacer {
	height: 70px;
}

/* Полоска под шапкой: иконки слева, языки справа */
.header-strip {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	height: 33px;
	background: url(images/bg_menu_2.gif) repeat-x;
}

.header-icons {
	display: flex;
	padding-left: 5px;
}

.header-icons a {
	display: block;
	padding: 2px 4px;
}

.header-icons img {
	display: block;
	border: 0;
}

/* ===== Меню языков (картинки lang_on/lang_off) ===== */
.menu_lang {
	padding: 0;
	margin: 0 20px 0 0;
	list-style: none;
	height: 25px;
	display: flex;
	font-size: 13px;
}

.menu_lang li {
	width: 106px;
	height: 25px;
}

.menu_lang li a {
	display: block;
	height: 25px;
	line-height: 23px;
	color: #ffe;
	text-decoration: none;
	font-family: arial, verdana, sans-serif;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	background: url(images/lang_off.gif) no-repeat;
}

.menu_lang li a b {
	text-align: center;
	display: block;
	background: url(images/lang_off.gif) no-repeat right top;
}

.menu_lang li.current a {
	color: #fff;
	background: url(images/lang_on.gif) no-repeat;
}

.menu_lang li.current a b {
	background: url(images/lang_on.gif) no-repeat right top;
}

.menu_lang li a:hover {
	color: #fff;
	background: url(images/lang_off.gif) no-repeat;
}

.menu_lang li a:hover b {
	background: url(images/lang_off.gif) no-repeat right top;
}

.menu_lang li.current a:hover {
	color: #fff;
	background: url(images/lang_on.gif) no-repeat;
	cursor: default;
}

.menu_lang li.current a:hover b {
	background: url(images/lang_on.gif) no-repeat right top;
}

/* ===== Раскладка: меню + контент ===== */
.layout {
	display: flex;
	align-items: stretch;
	min-height: calc(100vh - 138px); /* 103 шапка + 35 подвал */
}

/* ===== Левая колонка-меню ===== */
.sidebar {
	width: 233px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	background-color: #143834;
}

.side-menu {
	display: block;
	border: 0;
}

.side-menu img {
	display: block;
	width: 233px;
	height: 27px;
	border: 0;
}

/* Подменю (как TD.menu2 в оригинале) */
.submenu-item {
	display: block;
	height: 20px;
	background-color: #afc0b8;
	padding-left: 33px;
	font-family: Helvetica, Arial, Tahoma, sans-serif;
	font-size: 14px;
	color: #143834;
	text-decoration: none;
	line-height: 20px;
	white-space: nowrap;
}

.submenu-item:hover { text-decoration: underline; }

.submenu-sep {
	height: 1px;
	background-color: #819891;
	font-size: 0;
	line-height: 0;
}

.side-fill {
	flex: 1;
	background-color: #003530;
}

/* ===== Контент ===== */
.content {
	flex: 1;
	background-color: #FFFFFF;
	font-size: 14px;
	color: #333333;
	vertical-align: top;
}

/* Баннер раздела с заголовком: картинка слева (543px, как в оригинале),
   правый край достроен цветом фона до всей ширины — шва не видно,
   потому что у всех баннеров правый край светлый (#e6ecea). */
.header_img {
	width: 100%;
	height: 103px;
}

.header_text {
	display: block;
	margin: 0;
	color: #033;
	text-decoration: none;
	font-family: arial, sans-serif;
	font-size: 32px;
	text-align: center;
	font-weight: bold;
	outline: 0;
	position: relative;
	padding-top: 35px;
	padding-right: 35px;
	float: right;
	-webkit-box-reflect: below -5px -webkit-gradient(linear, left bottom, left top, from(rgba(255,255,255,0.15)), to(transparent));
}

.header_about    { background: #e4ebe9 url(images/header_about.jpg) no-repeat left top; }
.header_avocati  { background: #e6edea url(images/header_avocati.jpg) no-repeat left top; }
.header_clients  { background: #e6edea url(images/header_clients.jpg) no-repeat left top; }
.header_contact  { background: #e6ece9 url(images/header_contact.jpg) no-repeat left top; }
.header_price    { background: #e7eeeb url(images/header_price.jpg) no-repeat left top; }
.header_services { background: #e6eeeb url(images/header_services.jpg) no-repeat left top; }

/* Тело страницы (старый <DIV STYLE="PADDING-LEFT:16px">) */
.page-body {
	padding-left: 16px;
	padding-right: 16px;
	padding-top: 10px;
	text-align: justify;
	font-size: 14px;
	color: #333333;
}

.page-body p { text-indent: 1.5em; }
.page-body li { padding-top: 12px; }
.page-body a { color: #a07420; }

/* ===== Подвал ===== */
.site-footer {
	height: 35px;
	line-height: 35px;
	text-align: center;
	background: url(images/bg_bot_2.gif) repeat-x;
}

.footer-inner {
	display: inline-block;
	height: 35px;
	line-height: 35px;
	padding: 0 20px;
	background: url(images/bg_copy.gif) repeat-x;
	font-family: Helvetica, Arial, Tahoma, sans-serif;
	font-size: 11px;
	color: #143834;
}

/* ===== Мобильная версия ===== */
/* Планшет/телефон: зелёное меню уходит вверх колонкой,
   языки перестраиваются, баннер и заголовок сжимаются */
@media (max-width: 768px) {

	.site-header {
		flex-direction: column;
	}

	.logo-cell {
		width: 100%;
		height: auto;
	}

	.logo-cell img {
		margin: 0 auto;
	}

	.header-spacer { display: none; }

	.header-strip {
		height: auto;
		align-items: center;
		flex-wrap: wrap;
		padding: 5px 0;
	}

	/* 4 языковые кнопки растягиваются по ширине —
	   sliding-doors гифки сжимаются, сохраняя скруглённые края */
	.menu_lang {
		width: 100%;
		margin: 0;
		flex-wrap: wrap;
		height: auto;
	}

	.menu_lang li {
		width: 25%;
		min-width: 86px;
		flex-grow: 1;
		height: 44px; /* палец: минимум 44px */
	}

	.menu_lang li a,
	.menu_lang li a b {
		height: 44px;
		line-height: 44px;
	}

	.menu_lang li a { background-position: left center; }
	.menu_lang li a b { background-position: right center; }
	.menu_lang li.current a { background-position: left center; }
	.menu_lang li.current a b { background-position: right center; }

	/* Иконки Home/Contact: расширяем зону нажатия паддингом */
	.header-icons a {
		padding: 12px;
		margin: -2px -4px;
	}

	/* Меню колонкой во всю ширину, кнопки по центру */
	.layout {
		flex-direction: column;
		min-height: 0;
	}

	.sidebar { width: 100%; }

	.side-menu {
		text-align: center;
		border-bottom: 1px solid #003530;
		padding: 10px 0; /* палец: зона касания ~47px */
	}

	.submenu-item {
		height: auto;
		min-height: 44px;
		line-height: 44px;
		white-space: normal;
	}

	.side-fill { min-height: 0; }

	/* Баннер: картинка обрезается справа, заголовок сжимается */
	.header_img { height: 82px; }

	.header_text {
		font-size: 22px;
		padding-top: 25px;
		padding-right: 15px;
		-webkit-box-reflect: none;
	}

	.page-body {
		padding-left: 10px;
		padding-right: 10px;
		text-align: left;
	}

	/* Фото и таблицы из старого контента не вылазят за экран */
	.page-body img { max-width: 100%; height: auto; }
	.page-body table { max-width: 100%; }

	/* На мобильном колонки контактов встают друг под другом */
	.contact-cols {
		flex-direction: column;
		gap: 20px;
	}

	.contact-form-col {
		flex: none;
		width: 100%;
	}
}

/* ===== Форма заявки (страница «Контакты») ===== */
/* Две колонки: слева контакты, справа форма */
.contact-cols {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.contact-info {
	flex: 1;
	min-width: 0;
}

.contact-form-col {
	flex: 0 0 420px;
}

.contact-form {
	width: 100%;
	box-sizing: border-box;
	padding: 20px 25px;
	border: 1px solid #afc0b8;
	background-color: #f4f7f5;
}

.form-title {
	margin: 0 0 15px;
	font-size: 20px;
	font-weight: bold;
	color: #143834;
}

.form-row {
	display: flex;
	gap: 15px;
}

.form-row .form-field { flex: 1; }

.form-field { margin-bottom: 12px; }

.form-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: bold;
	color: #143834;
}

.form-field .req { color: #a07420; }

.form-field input,
.form-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 10px;
	border: 1px solid #afc0b8;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: #333333;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: #143834;
	box-shadow: 0 0 0 2px rgba(20, 56, 52, .15);
}

/* Honeypot-поле скрыто от людей — его видят только боты */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-submit {
	padding: 8px 30px;
	border: none;
	background: #143834;
	color: #ffe;
	font-family: inherit;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
}

.form-submit:hover { background: #a07420; }

/* Зелёная плашка «отправлено» после сабмита */
.form-sent {
	padding: 15px 20px;
	border: 1px solid #afc0b8;
	background: #eaf3ee;
	color: #143834;
	font-weight: bold;
}

/* Flash-сообщения (ошибки формы) */
.flash-w { padding: 10px 16px 0; }

.flash_msg {
	padding: 10px 14px;
	margin-bottom: 8px;
	border-radius: 4px;
	font-size: 14px;
}

.flash_msg--error {
	background: #fdecea;
	color: #b71c1c;
	border: 1px solid #f5c6c0;
}

.flash_msg--success {
	background: #eaf3ee;
	color: #143834;
	border: 1px solid #afc0b8;
}

