* {
    margin: 0;
    font-family: Helvetica, 'Playfair Display', serif;
}

body {
    position: relative;
    font-size: 20px;
    color: white;
    background: #2862AC;
}

.menu {
    position: absolute;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;

    font-size: 16px;

    -webkit-animation: appearance 1.5s ease-in backwards 2s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1.5s ease-in backwards 2s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1.5s ease-in backwards 2s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1.5s ease-in backwards 2s;
    -o-animation-timing-function: linear;
    animation: appearance 1.5s ease-in backwards 2s;
	animation-timing-function: linear;
}

.button {
    z-index: 5;
    position: relative;
    padding: 10px 10px;
    transition: 0.3s;
}

.button:hover {
    position: relative;
    color: #1f3685;
    background: white;
    transition: 0.3s;
    cursor: pointer;
}

.button:hover .submenu {
    visibility: visible;
    opacity: 1;
    transition: 0.6s;
}

.submenu {
    visibility: hidden;
    opacity: 0;
    z-index: 5;
    position: absolute;
    top: 35px;
    right: 0;
    border-collapse: collapse;
    background: white;
    color: #1f3685;
    transition: 0.6s;
}

td {
    vertical-align: middle;
    text-align: center;
    height: 35px;
    padding: 0 44px;
}

td:hover {
    border: 0;
    box-shadow: 0 0 2px 2px #2862AC;
    border: 0;
    color: #1f3685;
    background-color: rgb(255, 255, 255);
}

a:link {
    color: #1f3685;
}

table a:link {
    color: #1f3685;
}

a {
    text-decoration: none;
    color: #1f3685;
    transition: 0.3s;
}

a:hover {
    color: rgb(255, 255, 255);
    transition: 0.3s;
}

.menu a {
    color: white;
}

.menu a:link {
    color: white;
}

.menu a:hover {
    color: #1f3685;
}

.logo {
    position: absolute;
    left: -30px;
    top: -20px;
    width: 220px;
    height: 300px;

    -webkit-animation: appearance 1s ease-in backwards 2s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1s ease-in backwards 2s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1s ease-in backwards 2s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1s ease-in backwards 2s;
    -o-animation-timing-function: linear;
    animation: appearance 1s ease-in backwards 2s;
	animation-timing-function: linear;
}

/*......................................................................................

                                       Flex-Шапка

......................................................................................*/

header {
    width: 100%;
    height: 205px;
    background: #1f3685;
    color: rgba(255, 255, 255, 0.808);
    font-size: 23px;
}

.header-main-block {
    position: relative;
    padding-top: 62px;
    padding-left: 180px;
}

.flex-row-set-blocks {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    display: inline-block;
}

.title {
    display: inline-block;
    letter-spacing: -1px;
}

.title:nth-child(1) {
    -webkit-animation: appearance 1s ease-in backwards 0s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1s ease-in backwards 0s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1s ease-in backwards 0s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1s ease-in backwards 0s;
    -o-animation-timing-function: linear;
    animation: appearance 1s ease-in backwards 0s;
	animation-timing-function: linear;
}

.title:nth-child(2) {
    -webkit-animation: appearance 1s ease-in backwards 0.5s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1s ease-in backwards 0.5s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1s ease-in backwards 0.5s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1s ease-in backwards 0.5s;
    -o-animation-timing-function: linear;
    animation: appearance 1s ease-in backwards 0.5s;
	animation-timing-function: linear;
}

.title:nth-child(3) {
    -webkit-animation: appearance 1s ease-in backwards 1s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1s ease-in backwards 1s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1s ease-in backwards 1s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1s ease-in backwards 1s;
    -o-animation-timing-function: linear;
    animation: appearance 1s ease-in backwards 1s;
	animation-timing-function: linear;
}

.flex-row-set-bloc > div:nth-child(3) {
    justify-content: right;
}

.flex-row-set-blocks > div > h6 {
    color: rgba(220, 220, 220, 0.596);

    -webkit-animation: appearance 1.5s ease-in backwards 2s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1.5s ease-in backwards 2s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1.5s ease-in backwards 2s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1.5s ease-in backwards 2s;
    -o-animation-timing-function: linear;
    animation: appearance 1.5s ease-in backwards 2s;
	animation-timing-function: linear;
}

/*......................................................................................

                                Виды экспертиз + весы    

......................................................................................*/

.first-content-block {
    margin-top: 0px;
    width: 100%;
    height: 700px;
    background: #2862AC;
}

hr {
    border: 1px solid white;
}

.contacts-container {
    z-index: 4;
    position: relative;
    margin-left: 90%;
    transform: translate(-90%, -50%);

    width: 350px;
    height: 210px;
    background: #f5f5f736;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.158);
    text-align: center;
    font-weight: 200;
    transition: 1s;

    -webkit-animation: appearance 1.5s ease-in backwards 2s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1.5s ease-in backwards 2s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1.5s ease-in backwards 2s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1.5s ease-in backwards 2s;
    -o-animation-timing-function: linear;
    animation: appearance 1.5s ease-in backwards 2s;
	animation-timing-function: linear;
}

.contacts-container:hover  {
    background: rgba(255, 255, 255, 0.836);
    color: rgba(0, 0, 0, 0.685);
    transition: 1s;
}

.contacts-title {
    padding-top: 66px;
    padding-left: 20px;
    text-align: left;
    font-size: 25px;
}

.contacts-description {
    padding-top: 19px;
    padding-left: 20px;
    text-align: left;
    font-size: 20px;
}

.flex-content-set-blocks {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    -webkit-animation: appearance 1.5s ease-in backwards 2s;
    -webkit-animation-timing-function: linear;
    -moz-animation: appearance 1.5s ease-in backwards 2s;
    -moz-animation-timing-function: linear;
    -ms-animation: appearance 1.5s ease-in backwards 2s;
    -ms-animation-timing-function: linear;
    -o-animation: appearance 1.5s ease-in backwards 2s;
    -o-animation-timing-function: linear;
    animation: appearance 1.5s ease-in backwards 2s;
	animation-timing-function: linear;
}

.flex-main {
    margin-left: 100px;
    position: relative;
    width: 900px;
    height: 300px;

    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.267);
    color: rgb(255, 255, 255);
    background: #f5f5f736;
}

.main-title {
    position: absolute;
    top: -30%;
    left: 50%;

    transform: translate(-50%, 100%);

    font-size: 35px;
    font-weight: 200;
    color: white;
}

.footer-main-block {
    margin-top: 70px;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.705);
}

.footer-main-block span {
    color: white;
}

.flex-helper {
    background-image: url(scales.png);
    background-size: cover;
    padding-right: 20%;
    transition: 1s;
}

.flex-helper:hover {
    opacity: 0;
    transition: 1s;
}

.text-main {
    padding: 40px;
    font-size: 20px;
}

.subtitle-main {
    font-size: 30px;
    padding-left: 50px;
}

.pre-part {
    padding-left: 32px;
    display: inline-block;
}

.next-part {
    display: inline-block;
    margin-left: 150px;
}

/*......................................................................................

                                      Филиалы   

......................................................................................*/

.second-main-title {
    display: block;
    padding-left: calc(50% - 75px);
    margin-top: 150px;
    margin-bottom: 10px;

    font-size: 35px;
    font-weight: 200;
    color: white;

}

.second-content-block {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    height: 1400px;

    background: #f5f5f736;
}

.second-content-block a {
    font-size: 18px;
}

.second-content-block a:hover {
    color: #1f37859d; 
}

.column-flex-block {
    width: 800px;
    height: 300px;

    padding-top: 20px;
    background: #f5f5f736;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.281);
    border-radius: 3px;
    transition: 0.3s;
    text-align: center;
}

.column-flex-block:hover {
    background: white;
    color: gray;
    transition: 0.3s;
}

.subtitle {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 24px;
}

.number {
    display: block;
    border: 1px solid rgb(255, 255, 255);
    color: #1f3785; 
    background: white;
}

.second-content-block span {
    display: block;
    color: #1f3785; 
}

.sub-sub-title {
    margin: 15px auto;
    font-size: 24px;
}

/*......................................................................................

                                    Flex-Подвал    

......................................................................................*/

.flex-footer-block {
    display: flex;
    justify-content: space-around;
}

.footer-block {
    text-align: center;
}

.name {
    display: inline-block;
    padding-top: 20px;
    font-weight: 100;
    font-size: 18px;
}

.footer-block span:nth-child(1) {
    display: inline-block;
    padding-top: 20px;
    font-weight: 100;
    font-size: 18px;
}

.footer-block span:nth-child(3) {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 100;
    font-size: 15px;
}

.mail-block {
    display: block;
    padding-top: 20px;
    font-weight: 100;
    font-size: 15px;
}

.tel-block {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 100;
    font-size: 15px;
}

.footer-block:nth-child(2) {
    margin-left: -100px;
}

.footer-block:nth-child(3) {
    padding-bottom: 10px;
}

.footer-block a {
    color: white;
}

.footer-block a:hover {
    color: #1f3685; 
}