/*Активная ссылка*/


a:link {
    color: #ffffff;
    text-decoration: none;
}

a:visited {
    color: rgb(255, 105, 223);
}

a:hover {
    color: rgb(9, 247, 53);
    #text-decoration: underline;
    #font-size: larger;
    #font-style: italic;
    #background-color: #006600;
     text-decoration: none;
}

a:active {
    color: rgb(255, 105, 138);
}


/*Конаткты*/


.contact-container * {
    box-sizing: content-box;
}    
.contact-container {
    position: fixed;
    right: 0;
    z-index: 99999999;
    bottom: 80px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}
.contact-container.visible {
    transform: translateX(-10px);
}
.contact {    
    background-color: #fff;
    #border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
    border: 5px solid #337AB7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Verdana, sans-serif;  
    position: relative;
    height: 110px;    
    width: 350px;
    max-width: calc(100% - 10px);
}
}
.contact span.close-btn {
    width: 20px;
    height: 20px;
    border: 0;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
}
.contact span.close-btn svg {
    #stroke: #337AB7;
    width: 20px;
    height: 20px;
}
.contact span.close-btn:focus {
    outline: none;
}
.contact div {
    background-color: #337AB7;
    #border-radius: 0 0 10px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 18px;
    padding: 2px 0 6px;
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    text-align: center;
    width: 280px;
}
.contact ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.contact ul li {
    margin: 0px 6px 0 6px;
}
.contact ul li a {
    border: 4px solid #BFE2FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    font-size: 24px;
    color: #337AB7;
    width: 48px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.contact ul li a:hover {
    border-color: #337AB7;
    color: #000;
    box-shadow: 0 9px 12px -9px #337AB7;
}
.contact-btn {
    #border-radius: 30px;
    background-color: #337AB7;
    border: 2px solid #337AB7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
    color: #fff;
    cursor: pointer;
    padding: 12px 20px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999999;
    font-size: 15px;
    font-weight: bold;
    line-height: 20px;
    font-family: Verdana, sans-serif;      
    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    border-radius: .5rem !important;
}
.contact-btn:hover {
    background-color: #ffffff;
    color: #337AB7;
}
.contact-btn:focus {
    outline: none;
}
@media screen and (max-width: 480px) {
    .contact-container.visible {
        transform: translateX(0px);
    }
    .contact-btn {
        right: 10px;
    }
}



/* Всплывающее окно */


/* Контейнер для кнопки, чтобы не прыгал контент, когда она сменит позиционирование */
.css-modal-details {
    #height: 100px;
    #display:flex;
    #align-items:center;
    #justify-content:center;
    position: fixed;
    right: 170px;
    z-index: 99999999;
    bottom: 20px;
    #transform: translateX(100%);
    #transition: transform 0.4s ease-in-out;
}

@media screen and (max-width: 600px) {
.css-modal-details {
    #width: 130px;
    position: fixed;
    left: 20px; 
    z-index: 99999999;
    bottom: 20px;
    
}
}

 
/* Кнопка для открытия */
.css-modal-details summary {
    
    display: inline-flex;
    /* margin: 10px; */
    text-decoration: none;
    position: relative;
    /* font-size: 20px; */
    /* line-height: 20px; */
    /* padding: 12px 30px; */
    /* color: #FFF; */
    /* font-weight: bold; */
    /* text-transform: uppercase; */
    /* font-family: 'Roboto', Тahoma, sans-serif; */
    background: #337AB7;
    /* cursor: pointer; */
    /* border: 2px solid #BFE2FF; */
    overflow: hidden;
    /* z-index: 1; */
    background-color: #337AB7;
    border: 2px solid #337AB7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 16px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 12px 20px;
    /* position: fixed; */
    /* bottom: 20px; */
    /* right: 20px; */
    z-index: 99999999;
    font-size: 15px;
    font-weight: bold;
    line-height: 20px;
    font-family: Verdana, sans-serif;
    text-transform: uppercase;
    transition: all 0.4s ease-in-out;
    border-radius: .5rem !important;
}
.css-modal-details summary:hover,
.css-modal-details summary:active,
.css-modal-details summary:focus {
    color: #FFF;
}
.css-modal-details summary:before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    bottom: 0;
    left: 0;
    border-right: 50px solid transparent;
    border-top: 50px solid #2D6B9F;
    transition: transform 0.5s;
    transform: translateX(-100%);
    z-index: -1;
}
.css-modal-details summary:hover:before,
.css-modal-details summary:active:before,
.css-modal-details summary:focus:before {
    transform: translateX(0);
}
 
/* Кнопка при открытом окне переходит на весь экран */
.css-modal-details details[open] summary {
    cursor: default;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
}
 
/* Контейнер, который затемняет страницу */
.css-modal-details details .cmc {
    display:flex;
    align-items:center;
    justify-content:center;    
}
.css-modal-details details[open] .cmc {
    pointer-events: none;
    z-index: 4;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: bg 0.5s ease;
    background: rgba(51, 122, 183, 0.7);
}
 
/* Модальное окно */
.css-modal-details details .cmt {
    font-family: Verdana, sans-serif;  
    font-size: 16px;
    padding: 20px;
    width:80%;
    max-width: 600px;
    max-height: 70%;
    transition: 0.5s;
    border: 6px solid #BFE2FF;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
    text-align: center;
    overflow: auto;
}
.css-modal-details details[open] .cmt {
    animation: scale 0.5s ease;
    z-index: 4;
    pointer-events: auto;
}
 
/* Декоративная кнопка с крестиком */
.css-modal-details details[open] .cmc:after {
    content: "";
    width: 50px;
    height: 50px;
    border: 6px solid #BFE2FF;
    border-radius: 12px;
    position: absolute;
    z-index: 10;
    top: 20px;
    right: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23337AB7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    background-color: #FFF;
    background-size: cover;
    animation: move 0.5s ease;
}
 
/* Анимации */
@keyframes scale {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes move {
    0% {
        right: -80px;
    }
    100% {
        right: 20px;
    }
}
@keyframes bg {
    0% {
        background: rgba(51, 122, 183, 0);
    }
    100% {
        background: rgba(51, 122, 183, 0.7);
    }
}


/*QR коды*/

@media screen and (min-width: 600px) {
.contact-qr {
       position: fixed; 
       left: 20px; 
       bottom: 20px; 
       display: inline-flex;
    }
}

@media screen and (max-width: 600px) {
  .contact-qr {
    visibility: hidden;
    display: none;
  }
}



@media screen and (min-width: 600px) {
.contact-qr2 {
       position: fixed; 
       left: 20px; 
       bottom: 240px; 
       display: inline-flex;
    }
}

@media screen and (max-width: 600px) {
  .contact-qr2 {
    visibility: hidden;
    display: none;
  }
}



@media screen and (min-width: 600px) {
.contact-qr3 {
       position: fixed; 
       left: 20px; 
       bottom: 460px; 
       display: inline-flex;
    }
}

@media screen and (max-width: 600px) {
  .contact-qr3 {
    visibility: hidden;
    display: none;
  }
}
