body, html {
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0px;
	overflow-x: hidden;
}
body {
	background: #ffffff;
	font: 80% Verdana, Arial, Helvetica, sans-serif;
	color: #333333;
}

a:active, a:focus, img { outline: 0; }

/*    common   */
h1, h2, h3  {
	color: #2681bf;
	font-weight: 500;
	margin:0px;
	padding:0px;
}
h1 {
	font-size: 1.3em;
	text-transform:uppercase;
	margin-top: 18px;
	margin-bottom: 10px;
}
h2 {
	font-size: 1.2em;
}
h3 {
	font-size: 1em;
}
h3 span {
	text-transform: uppercase;
}
a img {
	border: none;
}
a {
	color: #3288DB;
}
a:hover {
	text-decoration: none;
}
ul, ol {
	padding-left: 0px;
	margin-left: 20px;
}
.clear_float {
	clear:both;
}
.blue {
	color: #2681bf;
}
.gray {
	color: #585e64;
} 
.detail {
	display: block;
	color: #828d98;
}
.item  {
	margin: 11px 15px 11px 0;
}
*html .item_list {
	margin-left:-3px;
}
.item_list td {
	font-size: 0.94em;
	padding-bottom: 13px;
	vertical-align: top;
}
.item_list  .item td {
	padding-bottom: 0px;
}
.item_list .item .announce {
	/*height: 195px !important;*/
	overflow: hidden !important;
}
.item_list .item  .img {
	padding-right: 14px;
}
.item_list .item  .title a {
	text-decoration: none;
	color: #2681bf;
	padding-bottom: 11px;
	font-size: 1.2em;
	line-height:110%;
}
.item  .title span {
	display: block;
	text-transform:uppercase;
}
.item  .price {
	font-weight: 600;
	color: #2681bf;
	padding-top:10px;
	vertical-align:bottom;
}
.mainpage td {
	padding-bottom: 30px;
}
#paging {
	margin: 13px 0px;
}
#paging a, #paging span {
	display: inline-block;
	padding: 0px 5px;
}
#paging a {
	color: #828d98;
}
#paging span {
	color: #333333;
}


#layout {
	padding: 9px 0px;
	width: 100%;
	max-width: 872px;
	left: auto;
	right: auto;
	margin: 0px auto  0px auto;
	position: relative;
	height:100%;
	box-sizing: border-box;
}
#top {
	background: #ffffff url(i/bg_top.gif) no-repeat top left;
	background-size: 100% auto;
	/* Резиновое масштабирование: высота = 176/872 ширины */
	height: 0;
	padding-top: 20.1835%;
	width: 100%;
	color: #3288db;
	font:25px MS Sans Serif, Arial, Helvetica, sans-serif;
	overflow: hidden;
	position: relative;
}
/* Спейсер-картинка больше не нужен для высоты — скрываем */
#top > a {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}
#phone {
	float: right;
	width: 200px;
	margin-top: 48px;
}
#slogan {
	float: left;
	width: 250px;
	margin-top: 48px;
}
#menu_top {
	padding:11px 0px  0px  0px;
	/*background:url(i/bg_menu_top.gif)  bottom repeat-x;*/
	clear: both;
	position: relative;
	z-index: 100;
}
#menu_top a {
	text-decoration:none;
	color: #ffffff;
	font-size: 13px;
	font-family:Arial, Helvetica, sans-serif;
	display:block;
	height:27px;
	width:100%;
}
#menu_top .toplink {
	display: block;
	width: 134px;
	height: 27px;
	float: left;
	margin-right:13px;
	background: #3183d3 url(i/menu_top_link.gif) no-repeat right bottom;	
	text-align:center;
	line-height: 27px;	
	position:relative;
}
#menu_top .sub_container li {
	display: block;
	width: 200px;
	float: left;
	margin-right:13px;
	background: #61b1ff;
	border:1px solid #3183d3;	
	text-align:left;
	line-height: 27px;	
	position:relative;
	margin-bottom: 3px;
    padding: 2px 5px;	
}
#menu_top .sub_container li a {
	height:23px;
}
#menu_top ul {
	margin: 5px 0 0;
}
#menu_top .sub_container li:hover, #menu_top .sub_container li.active {
	background: #3183d3;
}
#menu_top .sub_container {
	position:absolute;
	left:0;
	top: 100%;
	z-index: 1000;
	background:url(/images/none.gif);
}
#menu_top .last {
	margin-right:0px !important; 
}
#menu_top .active, #menu_top .toplink:hover {
	background: #61b1ff url(i/menu_top_link_active.gif) no-repeat right bottom;
}
#column_right {
	clear:both;
	float:right;
	text-align:left;
	width: 282px;
	font-size: 85%;
	margin-bottom: 33px;
	padding-top: 18px;
}
#column_right .title {
	margin: 11px 0px;
	padding:  0px 14px; 
	background:#828d98 url(i/block_title.gif) no-repeat right bottom;
	color: #ffffff;
	line-height: 27px;
	font-family:Arial, Helvetica, sans-serif;
	font-weight: 600;
	text-transform:uppercase;
	font-size: 1.2em;
}
#column_right .block {
	margin: 11px 0px;
}
#progress {
	font-size: 1.4em;
	color: #2681bf;
}
#popular_contract img {
	margin-right: 19px;
	margin-bottom:11px;
}
#content {
	margin: 18px 295px 33px 0px;
}
*html #content {
	margin-right: 292px;
}

#column_right .detail {
	font-size: 1.1em;
}
#column_right .item .detail {
	font-size: 0.95em;
}
#column_left {
	float: left;
	width: 174px;
	margin-top: 18px;
}
#column_left  .price {
	color:#2681BF;
	font-weight:600;
	padding-top:20px;
	text-align:center;
	font-size: 1.2em;
}
#content .column {
	margin-left: 186px;
}
#partners .item .img {
	padding-right: 13px;
}
#partners .item .img img {
	border: 1px solid #4e94d9;
}


#menu_bot {
	height:11px;
	/*background:url(i/bg_menu_bot.gif) top repeat-x;*/
	margin-bottom: 13px;
}
#footer {
	margin: 0px 0px 33px 0px;
	padding:20px 15px;
	background-color:#3288db;
	color:#FFFFFF;
	font-size: 70%;
	clear:both;
	box-sizing: border-box;
	width: 100%;
}
#footer a {
	color:#FFFFFF;
}
#footer .links {
    font-size:120%;
    text-align:center;
    margin-top: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Override hardcoded width="842" on footer table */
#footer table {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    table-layout: fixed;
}
#footer table td {
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#footer table td img {
    max-width: 100%;
    height: auto;
}
#responses_list .item {
	margin:30px 0;
}
#responses_list .question {
	color: #717a84;
	font-weight: bold;
	margin-bottom: 10px;
}



/* 
#content_box {
	position: relative;
	z-index:5;
}
#content_box td {
	vertical-align:top;
	padding-bottom: 90px;
}
#menu_left {
	padding: 25px 30px 0px 60px;
}
#menu_left h2 {
	margin-top: 0px;
	padding-top: 0px;
}
#menu_left a {
	display: block;
	margin-bottom: 5px;
}
#content {
	font-size: 80%;
	padding-right: 150px;
}





/* ����� */
form {
	margin: 0px;
	padding: 0px;
}
#layout form input, #layout textarea, #layout select {
	/*width: 574px;*/
	width: 100%;
	max-width: 570px;
	margin: 11px 0px;
	border:1px solid #3183d3;
	color:#828e9a;
	font:1em Verdana,Arial,Helvetica,sans-serif;
	box-sizing: border-box;
}
#layout input[type=checkbox], #layout input[type=radio] {
	width:auto;
	margin: 3px 0px 0px 0px;
}
.button, #layout form .button{
	background-color:#FFFFFF;
	width:auto;
	color:#828D98;
	cursor: pointer;
	text-decoration:underline;
}
#choose_contract select {
	width: 100%;
	max-width: 282px;
	border:1px solid #828e9a;
	margin:0px;
	color: #929da5;
}


/*   Unmedia_copyright  */
#Unmedia_copyright {
   z-index:1000;
   width:300px;
   height:130px;
   position:absolute;
	z-index: 1000;
	bottom: 12px;
   display:none;
}
#Unmedia_copyright.right {
	right: 100px;
}
#Unmedia_copyright img {
	border:none;
	cursor: pointer;
}
#logo_picture {
   margin:17px 42px 0px 17px;
	text-align:left;
	width:240px;
	height: 58px;
}   
#logo_text {
	padding:0px 44px 0px 0px;
	font: 11px Arial;
	text-align: right;
}

ul.breadcrumb-navigation
{
	padding:0;
    margin:0;
	padding-top:4px;
	list-style:none;
     font-size: 85%;
}

ul.breadcrumb-navigation li
{
	display:inline;
}

ul.breadcrumb-navigation a
{
    text-decoration:none;
}

ul.breadcrumb-navigation span
{
    color:#3288DB;
}

/* Styles for the adaptive banner */
.adaptive-banner-container {
    text-align: center; /* Center the block element (the link) */
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%; /* Ensure container takes available width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.adaptive-banner-container a {
    display: inline-block; /* Allows margin to work and centers the link */
    max-width: 100%; /* Ensure link doesn't exceed container width */
}

.adaptive-banner-container .adaptive-banner-image {
    display: block; /* Removes extra space below the image */
    max-width: 100%; /* Makes the image responsive - it will shrink to fit its container */
    height: auto;   /* Maintains aspect ratio */
    margin: 0 auto; /* Centers the image within its block container (the link) */
    /* You might want to add a border or box-shadow here if desired */
    /* border: 1px solid #ccc; */
}

/* Optional: If you want to hide the alt text placeholder when the image is broken */
.adaptive-banner-container .adaptive-banner-image[src=""],
.adaptive-banner-container .adaptive-banner-image:not([src]) {
    display: none;
}

/* =============================================
   GLOBAL RESPONSIVE BASE STYLES
   ============================================= */

/* All images responsive by default */
img, video {
    max-width: 100%;
    height: auto;
}

/* Restore top spacer image so #top stays visible on desktop */
#top img {
    display: block;
}

/* Better base line-height for readability */
body {
    line-height: 1.5;
}

/* Desktop: add hover transitions to buttons and links */
a {
    transition: color 0.2s;
}
.button, #layout form .button {
    transition: background-color 0.2s, color 0.2s;
    padding: 6px 16px;
    min-height: 30px;
}

/* Tables: allow horizontal scroll on overflow */
.item_list table,
#content table {
    max-width: 100%;
    table-layout: auto;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =============================================
   BURGER MENU BUTTON
   ============================================= */

/* Кнопка скрыта на десктопе */
.menu-burger {
    display: none;
}

/* Три полоски */
.burger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}
.burger-lines span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* .burger-text скрыт — надпись убрана */
.burger-text {
    display: none;
}
/* Анимация в × при открытии */
.menu-burger.is-open .burger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-burger.is-open .burger-lines span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-burger.is-open .burger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: #menu_items always visible, flex layout for menu items */
#menu_items {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}
#menu_items .clear_float {
    display: none;
}
#menu_items .toplink {
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

/* =============================================
   MEDIA QUERIES — RESPONSIVE BREAKPOINTS
   ============================================= */

/* ---- 1200px: Large tablet / small desktop ---- */
@media (max-width: 1200px) {
    /* layout остаётся без горизонтального padding — ширина ещё 872px */
}

/* ---- 1024px: Tablet landscape ---- */
@media (max-width: 1024px) {
    /* layout без горизонтального padding пока шире 872px */
    /* #top масштабируется через padding-top — переопределений не нужно */
    #column_right {
        width: 240px;
    }
    #content {
        margin-right: 255px;
    }
}

/* ---- 768px: Tablet portrait / large phone — columns stack ---- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    #layout {
        padding: 5px 10px;
    }
    /* #top масштабируется автоматически через padding-top в базовых стилях */
    /* Бургер: слева, центрирован по высоте баннера */
    .menu-burger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 14px;
        left: auto;
        transform: translateY(-50%);
        background: rgba(30, 100, 190, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 8px;
        width: 46px;
        height: 46px;
        padding: 0;
        cursor: pointer;
        z-index: 200;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .menu-burger:hover,
    .menu-burger:active {
        background: rgba(30, 100, 190, 0.68);
    }
    #menu_items {
        display: none;
        flex-direction: column; /* вертикально в мобильном режиме */
    }
    #menu_items.open {
        display: flex;
        flex-direction: column;
    }
    #menu_items .clear_float {
        display: none;
    }
    #menu_top {
        padding: 4px 0;
    }
    #menu_top .toplink {
        display: block;
        flex: none;
        float: none;
        width: 100%;
        margin-right: 0;
        height: auto;
        min-height: 44px;
        line-height: 44px;
        box-sizing: border-box;
        border-bottom: 1px solid #2a72c0;
    }
    #menu_top .toplink.last {
        border-bottom: none;
    }
    #menu_top a {
        display: block;
        height: auto;
        min-height: 44px;
        line-height: 44px;
        padding: 0 14px;
        width: 100%;
        box-sizing: border-box;
    }
    /* Баннеры в правой колонке — растягиваются на всю ширину блока */
    #column_right #advert a {
        display: block;
        width: 100%;
    }
    #column_right #advert img {
        width: 100%;
        height: auto;
        display: block;
    }
    /* Баннер под меню — тоже растягивается */
    .adaptive-banner-image {
        width: 100%;
        height: auto;
    }
    /* Footer table: stack cells vertically */
    #footer table,
    #footer table tbody,
    #footer table tr {
        display: block;
        width: 100% !important;
    }
    #footer table td {
        display: block;
        width: 100% !important;
        padding: 6px 0;
        box-sizing: border-box;
    }
    /* Flexbox layout to reorder: content before sidebar */
    #layout {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    #top        { order: 1; }
    #menu_top   { order: 2; }
    #content    { order: 3; margin: 10px 0 20px 0; }
    #column_right {
        order: 4;
        float: none;
        width: 100%;
        margin-bottom: 20px;
        padding-top: 10px;
        box-sizing: border-box;
    }
    .clear_float { order: 5; }
    #footer      { order: 6; }
    /* Left sidebar */
    #column_left {
        float: none;
        width: 100%;
        margin-top: 10px;
    }
    #content .column {
        margin-left: 0;
    }
    /* Headings */
    h1 {
        font-size: 1.15em;
    }
    h2 {
        font-size: 1.05em;
    }
    /* Progress block in sidebar */
    #progress {
        font-size: 1.1em;
    }
    /* Paging */
    #paging a, #paging span {
        padding: 4px 8px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* News preview images */
    div.news-list img.preview_picture,
    div.news-detail img.detail_picture {
        float: none;
        display: block;
        margin: 0 0 10px 0;
        max-width: 100%;
    }
    /* Footer */
    #footer {
        padding: 15px 10px;
    }
    #footer .links {
        font-size: 100%;
    }
}

/* ---- 480px: Mobile phone ---- */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        word-break: break-word;
    }
    #layout {
        padding: 5px 8px;
    }
    /* #top масштабируется через padding-top */
    /* Submenus: show inline (managed by JS slideToggle) */
    #menu_top .sub_container {
        position: static;
    }
    #menu_top .sub_container li {
        width: 100%;
        float: none;
        margin-right: 0;
        box-sizing: border-box;
    }
    /* Headings */
    h1 {
        font-size: 1.1em;
    }
    h2 {
        font-size: 1em;
    }
    /* Form inputs */
    #layout form input, #layout textarea, #layout select {
        max-width: 100%;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    #choose_contract select {
        max-width: 100%;
        font-size: 16px;
    }
    /* Popular contract images */
    #popular_contract img {
        margin-right: 10px;
        margin-bottom: 8px;
        max-width: 80px;
    }
    /* Breadcrumb */
    ul.breadcrumb-navigation {
        font-size: 80%;
    }
    /* Column right titles */
    #column_right .title {
        font-size: 1em;
        line-height: 1.3;
        padding: 8px 10px;
    }
    /* Footer */
    #footer {
        padding: 12px 8px;
    }
    #footer .links a {
        display: inline-block;
        padding: 4px 0;
    }
}

/* ---- 360px: Small phone ---- */
@media (max-width: 360px) {
    #layout {
        padding: 4px 6px;
    }
    body {
        font-size: 15px;
    }
    h1 {
        font-size: 1em;
        margin-top: 10px;
        margin-bottom: 6px;
    }
    #menu_top a {
        font-size: 11px;
        min-height: 40px;
        line-height: 40px;
    }
    .item {
        margin: 8px 8px 8px 0;
    }
    #footer {
        padding: 10px 6px;
        font-size: 65%;
    }
}
