@font-face {
  font-family: "CeraPRO-Regular";
  src: url(../fonts/CeraPro-Regular.woff2) format("woff2"),
    url(../fonts/CeraPro-Regular.woff) format("woff"),
    url(../fonts/CeraPro-Regular.svg) format("svg");
}

@font-face {
  font-family: 'CeraPRO-Medium';
  src: url(../fonts/CeraPRO-Medium.woff2) format('woff2'),
    url(../fonts/CeraPRO-Medium.woff) format('woff'),
    url(../fonts/CeraPRO-Medium.svg) format('svg');
}

@font-face {
  font-family: 'AngleciaProTitle-Bold';
  src: url(../fonts/AngleciaProTitle-Bold.woff2) format('woff2'),
    url(../fonts/AngleciaProTitle-Bold.woff) format('woff'),
    url(../fonts/AngleciaProTitle-Bold.svg) format('svg');
}


html,
body {
    height: 100%;
}

body {
    margin: 0;
    font: 16px/24px CeraPRO-Regular, sans-serif;
    background: #fff url('../img/bg-spot.png') top left no-repeat;
    background-size: 1143px;
    color: #040402;
    min-width: 271px;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga" 0, "calt" 0;
    -moz-font-feature-settings: "kern", "liga" 0, "calt" 0;
    -ms-font-feature-settings: "kern", "liga" 0, "calt" 0;
    -o-font-feature-settings: "kern", "liga" 0, "calt" 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -o-font-smoothing: antialiased;
}

.input__wrapper {
    display: inline-block;
    border: 1px solid #EBEBEB;
    background-color: #FCFCFD;
    color: #888;
    padding: 24px;
    height: 22px;
    margin-bottom: 16px;
    width: 382px;
    border-radius: 4px;
    font-size: 19px;
    transition: all .3s;
}


.input__wrapper--focused {
    border-color: #5A58A7;
    background-color: #fff;
    color: #040402;
}

.input__control {
    border: none;
    background: none;
    font: 19px CeraPRO-Medium, sans-serif;
    color: inherit;
}

.button:focus,
.input__control:focus {
    outline: none;
}


header {
    padding: 48px;
    min-height: 48px;
}

.button {
    cursor: pointer;
    transition: opacity .2s;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    font: 17px/20px CeraPRO-Medium, sans-serif;
    color: #5A58A2;
    background: none;
}

.content {
    width: 1008px;
}

.page_400 .content {
    margin: 134px auto 0 auto;
}

.content__logo {
    float: left;
    width: 152px;
    height: 48px;
    background: url('../img/logo.svg') no-repeat;
}

.content__header {
    margin: 0 0 24px;
    font: 42px/48px AngleciaProTitle-Bold;
}

.content__text {
    max-width: 552px;
    padding-left: 48px;
}

.content__paragraph {
    margin: 0 0 16px;
    color: #444;
}

.content__bank-link {
    position: absolute;
    bottom: 48px;
    margin: 0;
    font-family: CeraPRO-Medium;
}

.header__call {
    position: relative;
    float: right;
}

.header__callbutton {
    background: url('../img/call.svg') 0 0 no-repeat;
    height: 29px;
    width: 193px;
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    font: 17px/30px CeraPRO-Medium, sans-serif;
    color: #5a58a2;
    opacity: 1;
    -webkit-transition: opacity 0.1s;
    transition: opacity 0.1s;
    cursor: default;
}

.header__call:hover .header__callbutton {
    opacity: 0;
}
.header__call:hover .header__contacts {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
    -webkit-transition: opacity 0.15s cubic-bezier(0, 0.62, 0.25, 1), -webkit-transform 0.27s cubic-bezier(0, 0.62, 0.25, 1);
    transition: opacity 0.15s cubic-bezier(0, 0.62, 0.25, 1), -webkit-transform 0.27s cubic-bezier(0, 0.62, 0.25, 1);
    transition: transform 0.27s cubic-bezier(0, 0.62, 0.25, 1), opacity 0.15s cubic-bezier(0, 0.62, 0.25, 1);
    transition: transform 0.27s cubic-bezier(0, 0.62, 0.25, 1), opacity 0.15s cubic-bezier(0, 0.62, 0.25, 1), -webkit-transform 0.27s cubic-bezier(0, 0.62, 0.25, 1);
}


.header__contacts {
    -webkit-box-shadow: 0 4px 8px 0 rgba(4,4,2,0.1);
            box-shadow: 0 4px 8px 0 rgba(4,4,2,0.1);
    border-radius: 4px;
    width: 270px;
    height: 197px;
    -webkit-transform: scale(0);
            transform: scale(0);
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    -webkit-transform-origin: top right;
            transform-origin: top right;
    -moz-transform-origin: top right;
    -o-transform-origin: top right;
    -ms-transform-origin: top right;
    -webkit-transition: opacity 0.15s linear, -webkit-transform 0.27s linear;
    transition: opacity 0.15s linear, -webkit-transform 0.27s linear;
    transition: transform 0.27s linear, opacity 0.15s linear;
    transition: transform 0.27s linear, opacity 0.15s linear, -webkit-transform 0.27s linear;
    background: #fff;
}


.header__contacts-item {
    padding: 27px 30px;
    -webkit-transition: background 0.1s;
    transition: background 0.1s;
    display: block;
    text-decoration: none;
}


.header__contacts-item:nth-child(1) {
    border-bottom: 1px solid #f9f8f6;
}

.header__contacts-item:hover {
    background: #fdfdfd;
}


.header__contacts-item:hover   .header__contacts-number {
    color: #5a58a2;
}

.header__contacts-number {
    font: 20px/24px CeraPRO-Medium, sans-serif;
    color: #040402;
    margin-bottom: 4px;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.header__contacts-description {
    font: 13px/16px CeraPRO-Regular, sans-serif;
    color: #777;
}


@media (min-resolution: 1.2dppx), (min-resolution: 120dpi) {
    body {
        background-image: url('../img/bg-spot@2x.png');
    }
}

@media (max-width: 1359px) {
    .content {
        width: 936px;
    }
    body {
        background-position: -89px -32px;
    }
}

@media (max-width: 1023px) {
    .content {
        width: 720px;
    }
    body {
        background-position: -14px -72px;
    }
}


@media (max-height:500px) {

    
        .content__bank-link {
            position: static;
            bottom: 0;
            margin-bottom: 48px;
        }
}
