

a {
    outline: none;
}

img {
    border: none;
}

a img {
    border: none;
}

.card a {
    color: #3D9BE9;
}

/* КАРТОЧКА КОНТАКТА */

.card {
    position: relative;
    vertical-align: top;
    display: inline-block;
    margin: 20px 20px 35px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    height: 180px;
    width: 320px;
    overflow: hidden;
/*    background-size: cover;*/
    background-repeat: no-repeat;
}

.card:hover {
    box-shadow: 0 0 6px 1px #add6ff;
}

/* КАРТОЧКА ДОБАВЛЕНИЯ */

.card_add {
    vertical-align: top;
    display: inline-block;
    margin: 20px 20px 35px 0;
    border: 2px dashed rgba(193, 193, 193, 1);
    border-radius: 8px;
    padding-top: 20px;
    text-align: center;
    height: 180px;
    width: 320px;
}

.card_add:hover {
    border: 2px dashed #3D9BE9;
}

.ass {
    color: #E0E0E0;
    font-size:100px;
    font-weight:bold;
    font-family:comic sans ms,comic-sans-w01-regular,comic-sans-w02-regular,comic-sans-w10-regular,cursive;
}

@media all and (-webkit-min-device-pixel-ratio:10000),
 not all and (-webkit-min-device-pixel-ratio:0) {.ass {vertical-align: top;}}

.card_add:hover .ass {
    color: #3D9BE9;
}

/*
@media screen and (max-width: 360px) {
    .card {
        margin: 20px 0px 35px 0;
    }
    .card_add {
        margin: 20px 0px 35px 0;
    }
}
*/

@media screen and (max-width: 500px) {
    .card {
        margin: 0px 0px 0px 0;
        border: none;
        box-shadow: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0px;
        height: 100px;
        width: 320px;
    }
    .card_add {
        margin: 10px 0px 0px 0;
        border: 2px dashed rgba(193, 193, 193, 1);
        border-radius: 0px;
        padding-top: 20px;
        text-align: center;
        height: 100px;
        width: 320px;
    }
    .ass {
        font-size: 50px;
    }
}

/*@media screen and (max-width: 469px) {*/
@media screen and (max-width: 500px) {

    .card, .card_add, .pic {
/*        height: 85px;*/

/*        height: 70px;*/

        height: 50px;

        width: 100%;
        margin-bottom: 0px;
/*        margin-top: 10px;*/
        background-position-y: 100px;
        border-radius: 0px;
        border-right: none;
        border-left: none;
        border-top: none;
        box-shadow: none;
    }


/* Изменение размера карты добавления при размере 500*/
    .card_add {
        height: 85px;
    }


    .card:hover, .card_add:hover, .pic:hover {
        box-shadow: none;
    }
    .card:focus, .card_add:focus, .pic:focus {
        box-shadow: none;
    }
    .pic2 {
        display: none;
    }
    .card_add {
        padding-top: 13px;
        border-bottom: none;
    }
    .ass {
        font-size: 40px;
    }
    .card_name {
        top: 0px;
        font-size: 14px;
    }
    .card_telephone {
        top: 35px;
        font-size: 12px;
        line-height: 1.3;
    }
}



@media screen and (max-width: 350px) {

    .card, .card_add, .pic {
/*        height: 85px;*/
        height: 70px;
        width: 100%;
        margin-bottom: 0px;
/*        margin-top: 10px;*/
        background-position-y: 100px;
        border-radius: 0px;
        border-right: none;
        border-left: none;
        border-top: none;
        box-shadow: none;
    }
    .card:hover, .card_add:hover, .pic:hover {
        box-shadow: none;
    }
    .card:focus, .card_add:focus, .pic:focus {
        box-shadow: none;
    }
    .pic2 {
        display: none;
    }
    .card_add {
        padding-top: 13px;
        border-bottom: none;
    }
    .ass {
        font-size: 40px;
    }
    .card_name {
        top: 0px;
        font-size: 14px;
    }
    .card_telephone {
        top: 35px;
        font-size: 12px;
        line-height: 1.3;
    }
}



/* КАРТОЧКА КОНТАКТА СОДЕРЖИМОЕ */

.card_name, .card_telephone, .card_url {
    white-space: nowrap; 
    text-overflow: ellipsis; 
    overflow: hidden;
    max-width: 300px;
}

.card_name a:hover, .card_telephone a:hover, .card_url a:hover {
    text-decoration: none;
    color: #AB0535;
}

.card_name a:active, .card_telephone a:active, .card_url a:active {
    text-decoration: none;
    color: #3D9BE9;
}

.card_name a:focus, .card_telephone a:focus, .card_url a:focus {
    text-decoration: none;
    color: #AB0535;
}

.card_name {
    top: 20px;
    left: 10px;
    height: 35px;
    position: absolute;
    line-height: 35px;
    font-size: 25px;
}

.card_telephone {
    position: absolute;
    top: 67px;
    left: 10px;
    color: #605E5E;
    font-size: 16px;
    line-height: 1.7;
}

.card_telephone a {
    color: #605E5E;
}

.card_url {
    position: absolute;
    top: 100px;
    left: 10px;
}

.pic {
    width: 320px;
    height: 180px;
    border-radius: 8px;
    background-size: cover; 
    background-repeat: no-repeat;
    background-origin: padding-box;
    background-clip: padding-box;
    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    display: block;
}

.pic2 {
    z-index: 1;
    position: absolute;
}


/* текстовый баннер */ 
.bantxt {
    width: 106px;
    height: 106px;
    font-size: 10px;
    line-height: 10px;
    padding: 20px 10px;
    visibility: visible;
    background-color: burlywood;
    color: rgb(255, 255, 255);
    overflow-wrap: break-word;
}


.bantxt_e {
    width: 106px;
    height: 106px;
    font-size: 10px;
    line-height: 10px;
    padding: 20px 10px;
    visibility: visible;
    color: rgb(255, 255, 255);
    background-color: #ccc;
    text-align: center;
}


.txtpic2 {
    width: 100%;
    height: 100%;
    font-size: 22px;
/*    line-height: 10px;*/
    padding: 20px 10px;
    visibility: visible;
/*    background-color: burlywood;*/
/*    color: rgb(255, 255, 255);*/
    border-radius: 8px;
    position: absolute;
    z-index: 1;
}

/*
.txtpic2::selection {
   background: transparent;
}
.txtpic2::-moz-selection {
   background: transparent;
}
*/


/* логотипы */ 
.im_photo {
    top: 8px;
    left: 7px;
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    line-height: 54px;
    font-size: 18px;
    display: block;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    background: #73cdd0;
    display: none;
}



@media screen and (max-width: 500px) {

    .card_name {
        height: auto;
        line-height: normal;
        font-size: 14px;
/*        font-size: 16px;*/
/*        font-size: 14px;*/
        position: absolute;

/*        top: 25px;*/

        top: 17px;

/*        left: 72px;*/
        left: 10px;
    }
    .card_telephone {

/*        font-size: 14px;*/

        font-size: 12px;

/*        font-size: 16px;*/
/*        font-size: 12px;*/
        position: absolute;

/*        top: 22px;*/

/*        top: 14px;*/

        top: 16px;

/*        top: 35px;*/
        left: auto;
/*        left: 72px;*/
/*        left: 10px;*/
        right: 10px!Important;
    }
    .card_telephone a {
        color: #000;
    }
    .pic {
        display: none;
    }
    .pic2 {
        display: none;
    }
    .txtpic2 {
        display: none;
    }
    .telnum2, .telnum3 {
        display: none;
    }

    /* логотипы */ 
    .im_photo {
        display: block;
    }
}



@media screen and (max-width: 350px) {

    .card_name {
        height: 35px;
        line-height: 35px;
        font-size: 16px;
/*        font-size: 14px;*/
        position: absolute;
        top: 5px;
/*        left: 72px;*/
        left: 10px;
    }
    .card_telephone {
        font-size: 16px;
/*        font-size: 12px;*/
        position: absolute;
        top: 35px;
/*        left: 72px;*/
        left: 10px;
    }
    .card_telephone a {
        color: #000;
    }
    .pic {
        display: none;
    }
    .pic2 {
        display: none;
    }
    .txtpic2 {
        display: none;
    }
    .telnum2, .telnum3 {
        display: none;
    }

    /* логотипы */ 
    .im_photo {
        display: block;
    }
}


@media all and (-webkit-min-device-pixel-ratio:10000),
 not all and (-webkit-min-device-pixel-ratio:0) {.pic {background-size: 320px;}}



/* НИЧЕГО НЕ НАЙДЕНО */

.empty_search_result_message {
    color: gray;
    font-size: 20px;
}

.index_search_links_list {
    font-size: 17px;
}



/* card-img-overlay */

.card .card-img-overlay {
    background-image: linear-gradient(to top,rgba(0,0,0,0.5),transparent);
    padding: 0px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@media screen and (max-width: 500px) {
    .card-img-overlay {
        display: none;
    }
    .card_name {
        border-bottom: none!important;
    }
    .card_name .text-white {
        color: #212529!important;
    }
}



/* НЕИСПОЛЬЗУЕМЫЕ НОВЫЕ СТИЛИ */

/*
.card_name, .card_telephone {
    position: absolute;
    font-weight: bold;
    font-size: 22px;
    bottom: 0px;
    right: 20px;
    left: 20px;
}

.card .card-img-overlay {
    background-image: linear-gradient(to top,rgba(0,0,0,0.5),transparent);
    max-height: 240px;
    padding: 0px;
}

.card .card-img {
    max-height: 240px;
}

.infowrap {
    white-space: nowrap;
}

.infover {
    overflow: hidden;
    text-overflow: ellipsis;
}
*/

