.button {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    position: relative;
    color: #ffffff;
    font-weight: bold;
}

    .button input {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        opacity: 0;
        background: #ffffff;
        cursor: pointer;
    }

    .button:hover {
        color: #ffffff;
    }

.button__extra-border {
    background-image: url('../img/svg/extra-border.svg');
    background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.25) 100%);
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.25) 100%);
    background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.25) 100%);
    background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.25) 100%);
    background-image: linear-gradient(top, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.25) 100%);
    background-size: 100% 100%;
    padding: 1px;
    border-radius: 4px;
}

.button-content {
    display: inline-block;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    font-size: 14px;
}

.button__green .button-content {
    background-color: #50ad42;
    background-image: url('../img/svg/button__green.svg');
    background-image: -moz-linear-gradient(top, #50ad42 0%, #018c44 100%);
    background-image: -webkit-linear-gradient(top, #50ad42 0%, #018c44 100%);
    background-image: -o-linear-gradient(top, #50ad42 0%, #018c44 100%);
    background-image: -ms-linear-gradient(top, #50ad42 0%, #018c44 100%);
    background-image: linear-gradient(top, #50ad42 0%, #018c44 100%);
    background-size: 100% 100%;
    border-top: 1px solid #8bd87d;
}

.button__green:hover .button-content {
    background-color: #89bc40;
    background-image: url('../img/svg/button__green__hover.svg');
    background-image: -moz-linear-gradient(top, #89bc40 0%, #1b9743 100%);
    background-image: -webkit-linear-gradient(top, #89bc40 0%, #1b9743 100%);
    background-image: -o-linear-gradient(top, #89bc40 0%, #1b9743 100%);
    background-image: -ms-linear-gradient(top, #89bc40 0%, #1b9743 100%);
    background-image: linear-gradient(top, #89bc40 0%, #1b9743 100%);
    background-size: 100% 100%;
    border-top: 1px solid #a5e598;
}

.button__grey .button-content, .button__disabled .button-content {
    background-color: #999999;
    background-image: url('../img/svg/button__grey.svg');
    background-image: -moz-linear-gradient(top, #999999 0%, #666666 100%);
    background-image: -webkit-linear-gradient(top, #999999 0%, #666666 100%);
    background-image: -o-linear-gradient(top, #999999 0%, #666666 100%);
    background-image: -ms-linear-gradient(top, #999999 0%, #666666 100%);
    background-image: linear-gradient(top, #999999 0%, #666666 100%);
    background-size: 100% 100%;
    border-top: 1px solid #cccccc;
}

.button__grey:hover .button-content {
    background-color: #b3b3b3;
    background-image: url('../img/svg/button__grey__hover.svg');
    background-image: -moz-linear-gradient(top, #b3b3b3 0%, #767676 100%);
    background-image: -webkit-linear-gradient(top, #b3b3b3 0%, #767676 100%);
    background-image: -o-linear-gradient(top, #b3b3b3 0%, #767676 100%);
    background-image: -ms-linear-gradient(top, #b3b3b3 0%, #767676 100%);
    background-image: linear-gradient(top, #b3b3b3 0%, #767676 100%);
    background-size: 100% 100%;
    border-top: 1px solid #e6e8e8;
}

.button__blue .button-content {
    background-color: #5098ef;
    background-image: url('../img/svg/button__blue.svg');
    background-image: -moz-linear-gradient(top, #5098ef 0%, #0071bb 100%);
    background-image: -webkit-linear-gradient(top, #5098ef 0%, #0071bb 100%);
    background-image: -o-linear-gradient(top, #5098ef 0%, #0071bb 100%);
    background-image: -ms-linear-gradient(top, #5098ef 0%, #0071bb 100%);
    background-image: linear-gradient(top, #5098ef 0%, #0071bb 100%);
    background-size: 100% 100%;
    border-top: 1px solid #00c3ff;
}

.button__blue:hover .button-content {
    background-color: #49afe4;
    background-image: url('../img/svg/button__blue__hover.svg');
    background-image: -moz-linear-gradient(top, #49afe4 0%, #1b7ac2 100%);
    background-image: -webkit-linear-gradient(top, #49afe4 0%, #1b7ac2 100%);
    background-image: -o-linear-gradient(top, #49afe4 0%, #1b7ac2 100%);
    background-image: -ms-linear-gradient(top, #49afe4 0%, #1b7ac2 100%);
    background-image: linear-gradient(top, #49afe4 0%, #1b7ac2 100%);
    background-size: 100% 100%;
    border-top: 1px solid #59ddfc;
}

.button__red .button-content {
    background-color: #f69992;
    background-image: url('../img/svg/button__red.svg');
    background-image: -moz-linear-gradient(top, #f69992 0%, #ef5342 100%);
    background-image: -webkit-linear-gradient(top, #f69992 0%, #ef5342 100%);
    background-image: -o-linear-gradient(top, #f69992 0%, #ef5342 100%);
    background-image: -ms-linear-gradient(top, #f69992 0%, #ef5342 100%);
    background-image: linear-gradient(top, #f69992 0%, #ef5342 100%);
    background-size: 100% 100%;
    border-top: 1px solid #ffc0c0;
}

.button__red:hover .button-content {
    background-color: #f5ac9c;
    background-image: url('../img/svg/button__red__hover.svg');
    background-image: -moz-linear-gradient(top, #f5ac9c 0%, #f05c4b 100%);
    background-image: -webkit-linear-gradient(top, #f5ac9c 0%, #f05c4b 100%);
    background-image: -o-linear-gradient(top, #f5ac9c 0%, #f05c4b 100%);
    background-image: -ms-linear-gradient(top, #f5ac9c 0%, #f05c4b 100%);
    background-image: linear-gradient(top, #f5ac9c 0%, #f05c4b 100%);
    background-size: 100% 100%;
    border-top: 1px solid #fcdbdb;
}

.button__big .button-content {
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
}

.button-text {
    position: relative;
    top: -1px;
}

.button-close, .button-ok {
    font-size: 0;
}

    .button-close .button-content, .button-ok .button-content {
        position: relative;
        width: 50px;
        height: 29px;
        padding: 0;
    }

.button-add .button-content {
    padding-right: 34px;
}

.button-close-icon {
    background: url("../img/sprite.png") repeat scroll -150px -9px transparent;
    display: inline-block;
    margin-left: -7px;
    margin-top: -9px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 14px;
}

.button-ok-icon {
    background: url("../img/sprite.png") repeat scroll -150px -23px transparent;
    display: inline-block;
    margin-left: -9px;
    margin-top: -9px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 14px;
}

.button-add-icon {
    background: url("../img/sprite.png") repeat scroll -150px -52px transparent;
    display: inline-block;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 15px;
    height: 16px;
}

.button__disabled {
    color: #B3B3B3;
    cursor: default;
}

.button-vk .button-content, .button-fb .button-content {
    padding: 2px 10px;
    font-size: 18px;
}

.button-vk .button-content {
    background-color: #6289ab;
    background-image: -moz-linear-gradient(top, #6289ab 0%, #4d719b 100%);
    background-image: -webkit-linear-gradient(top, #6289ab 0%, #4d719b 100%);
    background-image: -o-linear-gradient(top, #6289ab 0%, #4d719b 100%);
    background-image: -ms-linear-gradient(top, #6289ab 0%, #4d719b 100%);
    background-image: linear-gradient(top, #6289ab 0%, #4d719b 100%);
}

.button-vk:hover .button-content {
    background-color: #6289ab;
    background-image: -moz-linear-gradient(top, #6f9bc0 0%, #5780af 100%);
    background-image: -webkit-linear-gradient(top, #6f9bc0 0%, #5780af 100%);
    background-image: -o-linear-gradient(top, #6f9bc0 0%, #5780af 100%);
    background-image: -ms-linear-gradient(top, #6f9bc0 0%, #5780af 100%);
    background-image: linear-gradient(top, #6f9bc0 0%, #5780af 100%);
}

.button-fb .button-content {
    background-color: #6289ab;
    background-image: -moz-linear-gradient(top, #6d83b5 0%, #3a589b 100%);
    background-image: -webkit-linear-gradient(top, #6d83b5 0%, #3a589b 100%);
    background-image: -o-linear-gradient(top, #6d83b5 0%, #3a589b 100%);
    background-image: -ms-linear-gradient(top, #6d83b5 0%, #3a589b 100%);
    background-image: linear-gradient(top, #6d83b5 0%, #3a589b 100%);
}

.button-fb:hover .button-content {
    background-color: #6289ab;
    background-image: -moz-linear-gradient(top, #7c95ca 0%, #4264af 100%);
    background-image: -webkit-linear-gradient(top, #7c95ca 0%, #4264af 100%);
    background-image: -o-linear-gradient(top, #7c95ca 0%, #4264af 100%);
    background-image: -ms-linear-gradient(top, #7c95ca 0%, #4264af 100%);
    background-image: linear-gradient(top, #7c95ca 0%, #4264af 100%);
}

.button-vk__small .button-content, .button-fb__small .button-content {
    padding: 2px 0;
    width: 27px;
}

.button-fb__small .button-text {
    top: -1px;
}

.switch-button {
    display: inline-block;
    white-space: nowrap;
    border: 1px solid #808080;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    word-spacing: -0.3em;
    overflow: hidden;
}

    .switch-button span {
        float: left;
        word-spacing: normal;
        padding: 5px 10px;
        background-color: #cdcdcd;
        background-image: url('../img/svg/button__switch.svg');
        background-image: -moz-linear-gradient(top, #f2f2f2 0%, #cdcdcd 100%);
        background-image: -webkit-linear-gradient(top, #f2f2f2 0%, #cdcdcd 100%);
        background-image: -o-linear-gradient(top, #f2f2f2 0%, #cdcdcd 100%);
        background-image: -ms-linear-gradient(top, #f2f2f2 0%, #cdcdcd 100%);
        background-image: linear-gradient(top, #f2f2f2 0%, #cdcdcd 100%);
        background-size: 100% 100%;
        cursor: pointer;
    }

        .switch-button span.active {
            background-color: #cdcdcd;
            background-image: url('../img/svg/button__switch.svg');
            background-image: -moz-linear-gradient(top, #1a1a1a 0%, #474747 100%);
            background-image: -webkit-linear-gradient(top, #1a1a1a 0%, #474747 100%);
            background-image: -o-linear-gradient(top, #1a1a1a 0%, #474747 100%);
            background-image: -ms-linear-gradient(top, #1a1a1a 0%, #474747 100%);
            background-image: linear-gradient(top, #1a1a1a 0%, #474747 100%);
            background-size: 100% 100%;
            color: #fff;
            cursor: default;
        }

.button.flat {
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    padding: 4px 7px 5px;
    cursor: pointer;
}

    .button.flat .btn-text {
        background: url(../img/sprite.png) 0 0 no-repeat;
    }

.button-vk.flat {
    padding-top: 4px;
    padding-bottom: 4px;
    border: 1px solid #3a6ba3;
    background-color: #4776ab;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjA5Ii8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjAzIi8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);
    background-image: -moz-linear-gradient(bottom, #4776ab 0%, #4c7eb7 100%);
    background-image: -o-linear-gradient(bottom, #4776ab 0%, #4c7eb7 100%);
    background-image: -webkit-linear-gradient(bottom, #4776ab 0%, #4c7eb7 100%);
    background-image: linear-gradient(bottom, #4776ab 0%, #4c7eb7 100%);
}

    .button-vk.flat:hover {
        background-image: -moz-linear-gradient(bottom, #4f83bd 0%, #558cca 100%);
        background-image: -o-linear-gradient(bottom, #4f83bd 0%, #558cca 100%);
        background-image: -webkit-linear-gradient(bottom, #4f83bd 0%, #558cca 100%);
        background-image: linear-gradient(bottom, #4f83bd 0%, #558cca 100%);
    }

    .button-vk.flat .btn-text {
        width: 85px;
        height: 15px;
        background-position: -2px -1173px;
    }

.button-fb.flat {
    border: 1px solid #284b92;
    background-color: #2657b9;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjA5Ii8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjAzIi8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);
    background-image: -moz-linear-gradient(bottom, #335496 0%, #3659a0 100%);
    background-image: -o-linear-gradient(bottom, #335496 0%, #3659a0 100%);
    background-image: -webkit-linear-gradient(bottom, #335496 0%, #3659a0 100%);
    background-image: linear-gradient(bottom, #335496 0%, #3659a0 100%);
}

    .button-fb.flat:hover {
        background-image: -moz-linear-gradient(bottom, #395fa9 0%, #3d65b5 100%);
        background-image: -o-linear-gradient(bottom, #395fa9 0%, #3d65b5 100%);
        background-image: -webkit-linear-gradient(bottom, #395fa9 0%, #3d65b5 100%);
        background-image: linear-gradient(bottom, #395fa9 0%, #3d65b5 100%);
    }

    .button-fb.flat .btn-text {
        width: 68px;
        height: 14px;
        background-position: -2px -1194px;
    }


.login-button.flat {
    height: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 205px;
    padding: 0 0 0 55px;
    font-size: 16px;
    line-height: 44px;
    display: block;
    color: #fff;
    font-family: 'Museo Sans',sans-serif;
    cursor: pointer;
    margin-bottom: 10px;
}

    .login-button.flat .button-icon {
        position: absolute;
        width: 40px;
        height: 40px;
        line-height: 44px;
        text-align: center;
        left: 0;
        top: 0;
        border-radius: 5px 0 0 5px;
        background: rgba(33,57,98,.21);
    }

        .login-button.flat .button-icon .vk-icon {
            width: 26px;
            height: 16px;
            background-position: -1px -1213px;
        }

        .login-button.flat .button-icon .fb-icon {
            width: 12px;
            height: 22px;
            background-position: -38px -1209px;
        }

    .login-button.flat.button-fb .button-icon {
        line-height: 50px;
    }
