﻿article, aside, footer, header, nav, section {
    display: block;
}

.clear-fix::after {
    content: "";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
  }

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    margin: 0;
    font-weight: normal;
    font-variant: normal;
    font-style: normal;
    font-size: .7em;
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.6em;
    color: #333;
}


@media screen and (min-width: 935px) {
    body {
        padding: 12px 0 0;
        box-shadow: inset 0 8px 8px -8px #919C9E;
    }
}

.b-box *,
.b-box:before,
.b-box:after {
    box-sizing: border-box;
}

/* LINKS AND HEADINGS STYLING */

a {
    color: #546F92;
    background: inherit;
}

a:hover {
    color: #808080;
    background: inherit;
}

button {
    cursor: pointer;
}

h1  {
    font: bold 2.1em "Trebuchet MS", Helvetica, sans-serif;
    margin: 0;
    color: #fff;
    background-color:transparent;
}

h2  {
    font: bold 1.4em "Trebuchet MS", Helvetica, Sans-Serif;
}

h3 {
    clear: both; font-size: 1.1em;
    color: #000;
    background: #fff url(images/h3bg.gif) no-repeat center left;
    padding: 0 14px;
    margin: 0;
}

h4  {
    font: bold 2em "Trebuchet MS", Helvetica, Sans-Serif;
    margin: 0;
    color: #fff;
    background-color:transparent;
}

.blue {
    color: #546F92;
    background: inherit;
}

.image {
    float: left;
    max-width: 100%;
    border: 2px solid #e2e2e2;
    padding: 3px;
    margin: 0 15px 10px 0;
}

.resp-iframe {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%; /* desired aspect ratio */
    position: relative;
}

.resp-iframe iframe,
.resp-iframe object,
.resp-iframe embed {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border: 0;
}

/* CONTENT WRAPPER */

#main {
    width: 1100px;
    margin: 0 auto;
}

.header {
    max-width: 1100px;
    min-width: 320px;
    margin: 0 auto 5px;
}

.header__top {
    min-width: 100%;
    height: 45px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* New Top LOGO */

.top-logo {
    padding: 0 10px;
}

.top-logo h1 {
    color: #222222;
    font-size: 2em;
}

/* TOP LEFT LOGO */

#logo {
    float: left;
    padding: 10px 0 10px 10px;
}

#logo h1 {
    color: #000;
    background: #fff;
}

/* New TOP RIGHT HORIZONTAL MENU */

.top-menu {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9;
    width: 320px;
    height: 100vh;
    background-color: #8D9CAF;
}

.top-menu--close {
    display: none;
}

.top-menu__list {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.top-menu__list li {
    margin: 0;
    padding: 0;
}

.top-menu__list li a {
    padding: 15px 18px;
    display: block;
    color: #eeeeee;
    text-decoration: none;
    font-size: 1.6em;
    border-bottom: 1px solid #eeeeee;
}

.top-menu__list .active a {
    background-color: rgba(128, 128, 128, .5);
}

.top-menu__toggle {
    position: absolute;
    top: 5px;
    right: 6px;
    height: 37px;
}

.toggle-button {
    display: block;
    height: 100%;
    width: auto;
    background-color: #C2CEDE;
    border-radius: 2px;
}

.toggle-button span {
    font-size: 0;
    display: block;
    width: 30px;
    height: 3px;
    background-color: #8D9CAF;
}

.toggle-button.toggle-button--open span {
    box-shadow: #8D9CAF 0 8px 0 0, #8D9CAF 0 -8px 0 0;
}

.toggle-button.toggle-button--close span {
    transform: rotate(35deg);
}

.toggle-button.toggle-button--close span::after {
    content: "";
    font-size: 0;
    display: block;
    width: 30px;
    height: 3px;
    background-color: #8D9CAF;
    transform: rotate(-70deg);
}

.top-menu__list li a:hover {
    color: #222222;
    background: #e7e7e7;
}

@media screen and (min-width: 935px) {
    .header__top {
        min-width: 935px;
    }

    .top-logo h1 {
        font-size: 2.2em;
    }

    .top-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        margin-left: 10px;
        display: flex;
        flex-direction: row;
    }

    .top-menu--close {
        display: block;
    }

    .top-menu__list {
        display: flex;
        flex-direction: row;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    .top-menu__toggle {
        display: none;
    }


    .top-menu__list li a {
        padding: 14px 18px;
        border: none;
        background: #efefef linear-gradient(#fcfcfc 50%, #e7e7e7);
        color: #777777;
        font-size: 1.1em;
    }

    .top-menu__list li:not(:first-child) a {
        margin-left: 4px;
    }

    .top-menu__list .active a {
        background: #efefef linear-gradient(#f6f6f6 50%, #e2e2e2);
        color: #8D9CAF;
        font-weight: bold;
    }
}

/* TOP RIGHT HORIZONTAL MENU */

#menu {
    float: right;
    background: #fff url(images/barul.gif) no-repeat bottom right;
    color: #808080;
    padding: 18px 1px 11px 0;
    margin: 0;
}

#menu li {
    padding: 14px 18px 14px 18px;
    color: #444;
    background: #fff url(images/bar.gif) no-repeat bottom left;
    display: inline;
}

#menu li.active {
    background: #fff url(images/baractive.gif) no-repeat bottom left;
    color: #8D9CAF;
    font-weight: bold;
    padding: 14px 18px 14px 18px;
    margin: 0 1px 0 0;
}

#menu li a {
    background: #f8f8f8;
    color: #808080;
    text-decoration: none;
}

#menu li a:hover {
    color: #000;
    background: #f8f8f8;
}

/* ACCESKEY UNDERLINED LETTER */
.key {
    text-decoration: underline;
}

/* New Header Bottom */

.header__bottom {
    display: flex;
    flex-direction: column-reverse;
}

@media screen and (min-width: 840px) {
    .header__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.bottom-left {
    background-color: #8D9CAF;
    box-shadow: 0 -2px 0 0 #E2E2E2,
                0 2px 0 0 #E2E2E2;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    color: #E5EAF2;
}

@media screen and (min-width: 840px) {
    .bottom-left {
        flex: none;
        width: 250px;
        height: 199px;
        margin-right: 7px;
    }
}

.bottom-left__text p {
    margin: 0;
    padding: 14px 15px;
}

.bottom-left__text a {
    color: #fff;
}

.bottom-left__menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.bottom-left__menu li a {
    display: block;
    background-color: #C2CEDE;
    padding: 8px 23px 7px 23px;
    margin: 1px 0 0 0;
    font-size: 12px;
    font-weight: bold;
    color: #3F5B7F;
    text-decoration: none;
    position: relative;
}

.bottom-left__menu li a:before,
.bottom-left__menu li a:after {
    position: absolute;
    left: 8px;
    top: 13px;
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: transparent;
    border: 1px solid #ffffff;
}

.bottom-left__menu li a:before {
    left: 10px;
    top: 15px;
    width: 1px;
    height: 1px;
}

.bottom-left__menu li a:hover {
    background-color: #9EB1C9;
    color: #fff;
}

.bottom-right {
    background-color: #8D9CAF;
    box-shadow: 0 -2px 0 0 #E2E2E2,
                0 2px 0 0 #E2E2E2;
    margin: 0 0 6px 0;
    padding: 10px 15px;
    color: #f6f6f6;
}

@media screen and (min-width: 840px) {
    .bottom-right {
        width: 843px;
        height: 199px;
        padding-right: 240px;
        background-image: url(images/intro.jpg);
        background-position: right;
        background-repeat: no-repeat;
    }
}

.bottom-right h2  {
    margin: 0 0 30px;
    font: bold 2.1em "Trebuchet MS", Helvetica, Sans-Serif;
}

.bottom-right__phone {
    font: bold 2em "Trebuchet MS", Helvetica, Sans-Serif;
    margin-bottom: 0;
}

/* LEFT INTRO SIDE */

#intro_left {
    clear: left;
    float: left;
    width: 250px;
    background: #8D9CAF url(images/leftintrobg.gif) repeat-x;
    color: #E5EAF2;
    margin: 0 0 1px 0;
}

#intro_left a { color: #fff; background: inherit; }
#intro_left p { padding: 14px 15px; margin: 0; }

/* LEFT VERTICAL MENU */

#menu_left {
    float: left;
    margin: 0 0 6px 0;
    padding: 0 0 1px 0;
    border-bottom: 2px solid #e2e2e2;
}

#menu_left li { list-style: none; }
#menu_left li a {
    display: block;
    color: #3F5B7F;
    background: #C2CEDE url(images/arrow.gif) no-repeat center left;
    width: 204px;
    padding: 7px 23px 7px 23px;
    margin: 0 0 1px 0;
    font-weight: bold;
    text-decoration: none;
}
#menu_left li a:hover { background: #9EB1C9 url(images/arrow.gif) no-repeat center left; color: #fff;  }

/* RIGHT INTRO SIDE */

#intro_right {
    float: right;
    width: 540px;
    padding: 25px 280px 0 20px;
    background: #BCCEDA url(images/intro.jpg) no-repeat;
    color: #547592;
    margin: 0 0 6px 0;
    height: 174px;
    border: 2px solid #e2e2e2;
}
#intro_right h4 { margin: 0 0 20px 0; }
#intro_right .white { color: #fff; background-color:transparent; }

/* Main block */

.main {
    min-width: 320px;
    display: flex;
    flex-flow: row wrap-reverse;
    margin: 0 auto;
}

.main-right,
.main-left {
    width: 100%;
}

.note.new {
    position: relative;
    padding: 15px;
    padding-left: 70px;
    border: 1px solid #cccccc;
    background-image: none;
    font-size: 13px;
}

.note.new:before {
    content: '\2709';
    display: block;
    position: absolute;
    font-size: 50px;
    left: 10px;
    top: 35%
}

@media screen and (min-width: 640px) {

    .main {
        max-width: 1100px;
        flex-wrap: nowrap;
    }

    .main-left {
        display: block;
        flex: 0 0 250px;
        margin-right: 7px;
    }

    .note.new {
        padding-left: 100px;
        background-image: url(images/package.gif);
        font-size: inherit;
    }

    .note.new:before {
        content: none;
    }
}
/* LEFT SIDE */

#left {
    float: left;
    width: 250px;
}
.box {
    padding: 4px 15px;
    border: 1px solid #ccc;
    margin: 0 0 10px 0;
}

.note {
    padding: 15px 15px 20px 100px;
    border: 1px solid #cccccc;
    margin: 0 0 5px 0;
    background-repeat: no-repeat;
    background-image: url(images/package.gif);
    background-color: #FFFFAD;
    color: #585616;
}

/* RIGHT SIDE */

@media (min-width: 910px) {
    .main-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 10px;
    }

    .main-right>* {
        grid-column: span 2;
    }

    .main-right__half {
        grid-column: auto;
    }
}

.main-right {
    font-size: 12px;
}

.main-right h2 {
    clear: both;
    color: #222222;
    padding-left:  16px;
    margin: 7px 0;
    position: relative;
}

.main-right h2:before {
    position: absolute;
    left: 0;
    top: 3px;
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    background-color: #8D9CAF;
    /*background-color: crimson;*/
    border-radius: 50%;
}

.main-right h2:after {
    position: absolute;
    left: 1px;
    top: 5px;
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    background-color: transparent;
    transform: rotate(45deg);
}

.main-right__half p:after {
    content: '';
    display: block;
    clear: both;
}

#right {
    float: right;
    width: 843px;
}

.leftcol {
    float: left;
    padding: 12px 15px;
    width: 385px;
    border:#ccc 1px solid;
    margin: 0 0 10px 0;
}

.rightcol {
    float: right;
    padding: 10px 15px;
    width: 385px;
    border:#ccc 1px solid;
    margin: 0 0 10px 0;
}

.center {
    clear: both;
    margin: 0 0 10px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    color: #333;
}

.main-right__half {
    margin-bottom: 10px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    color: #333;
}

.special {
    clear: both;
    margin:0 0 10px;
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #fafafa;
    color: #222;
}

/* FOOTER */

#footer {
    clear: both;
    padding: 5px;
    border-top: 1px solid #ccc;
}

#footer p {
    text-align: center;
}

.footer {
    max-width: 1100px;
    margin: 10px auto 0 auto;
    background-color: #eaeaea;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #0A2833;
    text-align: center;
}

.footer a {
    color: inherit;
}

.footer__block {
    padding: 5px 10px;
}

.footer__lang-switch {
    display: none;
}

@media (min-width: 800px) {
    .footer {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-column-gap: 1em;
        text-align: left;
    }

    .footer__block {
        padding: 10px;
    }

    .footer__first {
        display: flex;
        flex-direction: column;
    }

    .footer__copyright {
        margin-top: auto;
    }
}

.footer__links-list {
    padding: 0;
    list-style: none;
}

.footer__links-list a {
    display: block;
    padding: 5px 0;
}

.footer__contacts strong {
    font-size: 1.3em;
}

/* Form */

.contact-form {
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.contact-form label {
    display: block;
    width: 100%;
    /*min-width: 300px;*/
    /*max-width: 100%;*/
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    display: block;
    margin-top: 4px;
    margin-bottom: 6px;
    padding: 3px 6px;
    font-size: 13px;
    font-family: inherit;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
}

.contact-form textarea {
    resize: vertical;
    overflow: scroll;
}

.contact-form sup {
    color: crimson;
}


.contact-form__textarea-error {
    width  : 100%;
    padding: 0;
    font-size: 90%;
    color: white;
    background-color: darkred;
    border-radius: 3px;
    padding: 0.3em;
}

.contact-form__recaptcha {
    margin-top: 10px;
    height: 144px;
}

.contact-form button {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 15px;
    border-radius: 3px;
    background-color: #ddd;
}

.contact-form button:hover,
.contact-form button:focus {
    background-color: #bbb;
}

.contact-form button:active {

}

.contact-form button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.contact-form__ds-checkbox {
    margin-top: 8px;
    margin-bottom: 8px;
}

.checkbox label {
    display: inline;
    position: relative;
    cursor: pointer;
}

.checkbox input {
    display: inline;
    width: auto;
    margin-top: 7px;
    margin-left: 12px;
    z-index: -1;
    opacity: 0;
}

.checkbox__text {
    padding-left: 10px;
}

.checkbox__text:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: -2px;
    left: 5px;
    border: 2px solid #cccccc;
    border-radius: 2px;
    background-color: #f8f8f8;
    transition: all 160ms,  border-color 80ms;
}

.checkbox input:checked + .checkbox__text:before {
    width: 10px;
    left: 14px;
    top: -4px;
    border-radius: 0;
    border-color: #6cc0e5;
    background-color: #ffffff;
    border-top-color: transparent;
    border-left-color: transparent;
    transform: rotate(45deg);
}

.contact-form__error-msg {
    color: crimson;
    font-size: 14px;
}

.contact-form__error-msg--invisible {
    display: none;
}

/* Flags sprite */

.flags {
   display: inline-block;
    background: url('./images/flags.png') no-repeat;
    overflow: hidden;
    text-indent: -9999px;
    text-align: left;
    width: 20px;
    height: 13px;
}

.flag-of-brazil {
    background-position: -0px -0px;
}

.flag-of-canada {
    background-position: -20px -0px;
}

.flag-of-germany {
    background-position: -0px -13px;
}

.flag-of-russia {
    background-position: -20px -13px;
}

.flag-of-singapore {
    background-position: -0px -26px;
}

.flag-of-ukraine {
    background-position: -20px -26px;
}

.flag-of-uk {
    background-position: -0px -39px;
}

.flag-of-usa {
    background-position: -20px -39px;
}