﻿@font-face {
    font-family: Vivaldi;
    src: url(vivaldi.woff);
}
@font-face {
    font-family: VivaldiRus;
    src: url(vivaldi-rus.woff);
}
.rus {
    font-family: VivaldiRus;
}
body {
    color: #404040;
    font-family: "Courier New", Courier, monospace;
    margin: 0;
}
#wrapper {
    max-width: 50em;
    margin: auto;
}
#content {
    padding-top: 1em;
}
a {
    text-decoration: none;
}
p {
    margin-bottom: 0;
}
img {
    border: none;
}
#h1_center img{
    max-width: 100%;
}
#h1_center {
    text-align: center;
}
h1 {
    font-family: Vivaldi;
    font-size: 52px;
    text-align: center;
    width: 100%;
    margin-block-start: 0;
    margin-block-end: 0;
}
/*----------------------------Intro------------------------------------------*/
#intro {
    max-width: 50em;
    margin: auto;
    padding-top: 18em;
    background: url(../images/logo_first.png) no-repeat center;
}
#space {
    height: 24em;
}
#rus_button1, #eng_button1, #rus_button2, #eng_button2, .lang_button {
    font-size: 2em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px #000;
    width: 49.9%;
    text-align: center;
}
#rus_button1 {
    float: left;
    background-color: rgb(176,65,62);
}
#eng_button1 {
    float: right;
    background-color: rgb(176,65,62);
}
#rus_button2 {
    float: left;
    background-color: rgb(120,92,154);
}
#eng_button2 {
    float: right;
    background-color: rgb(120,92,154);
}
.lang_rus, .lang_eng {
    font-size: 3em;
    font-weight: bold;
    color: #333333;
    width: 45%;
    text-shadow: 1px 1px 1px #fff;
}
.lang_rus {
    text-align: right;
    float: left;
}
.lang_eng {
    text-align: left;
    float: right;
}
/*----------------     Logo       ------------------------*/
#logo {
    width: 100%;
    height: 164px;
}
#logo_site {
    position: relative;
    top: 50px;
    left: 0;
}
/*----------------     Nav        ------------------------*/
nav {
}
.clear {
    clear: both;
}
.ramka {
    padding: 1px;
}
.menu_bg1 {
    display: table;
    width: 100%;
}
.menu_rus, .menu_eng, .menu_est {
    font-weight: 900;
    height: 2.5em;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    color: white;
    text-shadow: 1px 1px 1px #000;
}
.menu_rus {
    background-color: rgb(176,65,62);
}
.color_rus {
    color: rgb(176,65,62);
}
.menu_eng {
    background-color: rgb(120,92,154);
}
.color_eng {
    color: rgb(120,92,154);
}
.menu_est {
    background-color: rgb(212,88,17);
}
.color_est {
    color: rgb(212,88,17);
}
#current_rus {
    background-color: rgb(132,49,46);
}
#current_eng {
    background-color: rgb(90,69,116);
}
#current_est {
    background-color: rgb(159,66,13);
}
#footer {
    width: 100%;
    margin: auto;
    margin-top: 1em;
}

#footer td {
    text-align: center;
}
#footer td a {
    display: block;
    height:100%;
    width:100%;
}
/*------------------------------------------------------------------- Content pane------------------------------------*/
/*------------------------------------------------------------------- 400 - 800 --------------------------------------*/
@media screen and (min-width: 400px) {
    #introBG {
    background: url(../images/bg_small_intro.png) no-repeat top;
}
#div_history {
    background: url(../images/bg_small_site_history.png) repeat top;
}
#div_offer {
    background: url(../images/bg_small_site_offer.png) repeat top;
}
#div_info {
    background: url(../images/bg_small_site_info.png) repeat top;
}
#div_contact {
    background: url(../images/bg_small_site_contact.png) repeat top;
}
#nav1 {
    width: 50%;
    float: left;
}
#nav2 {
    float: right;
    width: 50%;
}
#content_top, #content_top_left, #content_top_center, #content_top_right, #content_top_left_eng, #content_top_center_eng, #content_top_right_eng {
    height: 24px;
}
#content_top_left {
    width: 27px;
    float: left;
    background: url(../images/ramka_top_left_small.png) no-repeat top;
}
#content_top_left_eng {
    width: 27px;
    float: left;
    background: url(../images/ramka_top_left_small_eng.png) no-repeat top;
}
#content_top_center {
    margin: 0 27px;
    background: url(../images/ramka_top_small.png) repeat-x top;
}
#content_top_center_eng {
    margin: 0 27px;
    background: url(../images/ramka_top_small_eng.png) repeat-x top;
}
#content_top_right {
    width: 27px;
    float: right;
    background: url(../images/ramka_top_right_small.png) no-repeat top;
}
#content_top_right_eng {
    width: 27px;
    float: right;
    background: url(../images/ramka_top_right_small_eng.png) no-repeat top;
}
#content_center {
    overflow: hidden;
    margin: 0;
}
#content_center_left {
    width: 27px;
    float: left;
    background: url(../images/ramka_left_small.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_center_left_eng {
    width: 27px;
    float: left;
    background: url(../images/ramka_left_small_eng.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_center_center {
    margin: 0 27px;
    background: url(../images/ramka_BG.png) repeat top;
    padding: 0;
}
#content_center_right_eng {
    width: 27px;
    float: right;
    background: url(../images/ramka_right_small_eng.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_center_right {
    width: 27px;
    float: right;
    background: url(../images/ramka_right_small.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_bottom, #content_bottom_left, #content_bottom_center, #content_bottom_right, #content_bottom_left_eng, #content_bottom_center_eng, #content_bottom_right_eng {
    height: 24px;
}
#content_bottom_left {
    width: 27px;
    float: left;
    background: url(../images/ramka_bottom_left_small.png) no-repeat top;
}
#content_bottom_left_eng {
    width: 27px;
    float: left;
    background: url(../images/ramka_bottom_left_small_eng.png) no-repeat top;
}
#content_bottom_center {
    margin: 0 27px;
    background: url(../images/ramka_bottom_small.png) repeat-x top;
}
#content_bottom_center_eng {
    margin: 0 27px;
    background: url(../images/ramka_bottom_small_eng.png) repeat-x top;
}
#content_bottom_right {
    width: 27px;
    float: right;
    background: url(../images/ramka_bottom_right_small.png) no-repeat top;
}
#content_bottom_right_eng {
    width: 27px;
    float: right;
    background: url(../images/ramka_bottom_right_small_eng.png) no-repeat top;
}
}
/*------------------------------------------------------------------- 800 - more --------------------------------------*/
@media screen and (min-width: 800px) {
#introBG {
    background: url(../images/bg_full_intro.png) no-repeat top;
}
#div_history {
    background: url(../images/bg_full_site_history.png) repeat top;
}
#div_offer {
    background: url(../images/bg_full_site_offer.png) repeat top;
}
#div_info {
    background: url(../images/bg_full_site_info.png) repeat top;
}
#div_contact {
    background: url(../images/bg_full_site_contact.png) repeat top;
}
#nav1 {
    width: 50%;
    float: left;
}
#nav2 {
    float: right;
    width: 50%;
}
#histori {
    width: 50%;
    float: left;
}
#offer {
    float: right;
    width: 50%;
}
#information {
    width: 50%;
    float: left;
}
#contact {
    float: right;
    width: 50%;
}
/*------------------------------------------------- content ---------------------------------*/
#content_top, #content_top_left, #content_top_center, #content_top_right, #content_top_left_eng, #content_top_center_eng, #content_top_right_eng {
    height: 48px;
}
#content_top_left {
    width: 54px;
    float: left;
    background: url(../images/ramka_top_left.png) no-repeat top;
}
#content_top_left_eng {
    width: 54px;
    float: left;
    background: url(../images/ramka_top_left_eng.png) no-repeat top;
}
#content_top_center {
    margin: 0 54px;
    background: url(../images/ramka_top.png) repeat-x top;
}
#content_top_center_eng {
    margin: 0 54px;
    background: url(../images/ramka_top_eng.png) repeat-x top;
}
#content_top_right {
    width: 54px;
    float: right;
    background: url(../images/ramka_top_right.png) no-repeat top;
}
#content_top_right_eng {
    width: 54px;
    float: right;
    background: url(../images/ramka_top_right_eng.png) no-repeat top;
}
#content_center {
    overflow: hidden;
    margin: 0;
    padding: 0;
}
#content_center_left {
    width: 54px;
    float: left;
    background: url(../images/ramka_left.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_center_left_eng {
    width: 54px;
    float: left;
    background: url(../images/ramka_left_eng.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_center_center {
    margin: 0 54px;
    background: url(../images/ramka_BG.png) repeat top;
    padding: 0;
}
#content_center_right {
    width: 54px;
    float: right;
    background: url(../images/ramka_right.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_center_right_eng {
    width: 54px;
    float: right;
    background: url(../images/ramka_right_eng.png) repeat-y top;
    padding-bottom: 150em;
    margin-bottom: -150em;
}
#content_bottom, #content_bottom_left, #content_bottom_center, #content_bottom_right, #content_bottom_left_eng, #content_bottom_center_eng, #content_bottom_right_eng {
    height: 48px;
}
#content_bottom_left {
    width: 54px;
    float: left;
    background: url(../images/ramka_bottom_left.png) no-repeat top;
}
#content_bottom_left_eng {
    width: 54px;
    float: left;
    background: url(../images/ramka_bottom_left_eng.png) no-repeat top;
}
#content_bottom_center {
    margin: 0 54px;
    background: url(../images/ramka_bottom.png) repeat-x top;
}
#content_bottom_center_eng {
    margin: 0 54px;
    background: url(../images/ramka_bottom_eng.png) repeat-x top;
}
#content_bottom_right {
    width: 54px;
    float: right;
    background: url(../images/ramka_bottom_right.png) no-repeat top;
}
#content_bottom_right_eng {
    width: 54px;
    float: right;
    background: url(../images/ramka_bottom_right_eng.png) no-repeat top;
}
}