.hentry,.content, .flex-box, .contacts-subscribe
{
width: 100%;
    max-width: 1390px;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 36px;
    padding-bottom: 40px;
}

.page-template-5-afisha-table-2 .hentry {
    padding:unset
}

 h1 {
    margin-top: 0;
    font-weight: 400;
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 36px;
}


.page-template-5-afisha-table-2 .modal{
padding:20px;
background-color:#ffff!important;
    height: fit-content;
width: fit-content;
border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
    transition: all 0.5s ease-in;
    right: 0;
    bottom: 0;
    z-index: 9999;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(34,34,34,.6);
    /*-webkit-transform: scale(1.2);  */
    /*transform: scale(1.2); */
display:none;
     visibility: visible;
    opacity: 1;
    -webkit-transition: opacity .6s cubic-bezier(.55,0,.1,1),visibility .6s cubic-bezier(.55,0,.1,1),-webkit-transform .6s cubic-bezier(.55,0,.1,1);
    transition: opacity .6s cubic-bezier(.55,0,.1,1),transform .6s cubic-bezier(.55,0,.1,1),visibility .6s cubic-bezier(.55,0,.1,1);
    transition: opacity .6s cubic-bezier(.55,0,.1,1),transform .6s cubic-bezier(.55,0,.1,1),visibility .6s cubic-bezier(.55,0,.1,1),-webkit-transform .6s cubic-bezier(.55,0,.1,1);
    pointer-events: all;

}

#afisha{
flex-grow:1;
text-align:center;
}

 @media screen and (max-width: 786px){
 #afisha{
    font-size:10px;
    align-self: flex-end;
    padding-bottom: 5px;
    margin-right: -10px;
}

.page-template-5-afisha-table-2 .content {
    width: 90%;
    padding-top: 0px;
    padding-left: 10px;
}
}

.topanchor{
cursor:pointer;
}

a:hover {
    color: #00aa17;
}

#calendar2{
width:auto!important;

border-spacing: 0px;

}

#calendar2 td{
font-family: 'Roboto Slab';
color: #000000;
font-weight: 400;
font-size: 28px;
padding:0px;
}

#calendar2 thead td{
font-weight: 700;
}

#calendar2 thead{
background-color: #fff;
}

#calendar2 tr:last-child{
display:none;
}

#calendar2 tbody td{
/*color:#444!important;*/
width: 110px;
    height: 100px;
/*border-radius: 10px;*/
background-color:rgba(245,245,247,.9)!important;
}

#calendar2 thead tr:nth-child(1) td:nth-child(1), #calendar2 thead tr:nth-child(1) td:nth-child(3) {
    font-size:0!important;
/*padding-bottom: 10px;*/
    display: block;
display: flex;
   
}

#calendar2 thead tr:nth-child(1) td {
padding-bottom: 20px;
 }

#calendar2 thead tr:nth-child(1) td:nth-child(1){
margin-left: 20px;
}
#calendar2 thead tr:nth-child(1) td:nth-child(3){
/*margin-left:50px;*/
margin-right: 20px;
 justify-content: flex-end;
}
#calendar2 thead tr:nth-child(1) td:nth-child(1):after{
    content: '';
    background-position: center;
    background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23555555'/%3E%3Cline x1='16' y1='19.6568' x2='21.6569' y2='14' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3Cline x1='16' y1='19.6568' x2='19.5355' y2='16.1213' stroke='white' stroke-width='5' stroke-linecap='square'/%3E%3Cline x1='16.5355' y1='20' x2='21.4853' y2='24.9497' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3Cline x1='16.5355' y1='20.1211' x2='19.364' y2='22.9495' stroke='white' stroke-width='5' stroke-linecap='square'/%3E%3C/svg%3E%0A");
    width: 40px;
display:block;
height:40px;
}


#calendar2 thead tr:nth-child(1) td:nth-child(3):after{
    content: '';
    background-position: center;
    background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' transform='rotate(180)' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23555555'/%3E%3Cline x1='16' y1='19.6568' x2='21.6569' y2='14' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3Cline x1='16' y1='19.6568' x2='19.5355' y2='16.1213' stroke='white' stroke-width='5' stroke-linecap='square'/%3E%3Cline x1='16.5355' y1='20' x2='21.4853' y2='24.9497' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3Cline x1='16.5355' y1='20.1211' x2='19.364' y2='22.9495' stroke='white' stroke-width='5' stroke-linecap='square'/%3E%3C/svg%3E%0A");
    width: 40px;
display:block;
height:40px;
}




@media (max-width: 786px){
#afisha{
color:#00aa17;
}
.page-template-5-afisha-table-2 .modal {
height: fit-content;
   
    position: fixed;
    top: 50px;
    left: 20px;
    transform: none;
    width: calc(100% - 40px);
}


#calendar2 thead tr:nth-child(1) td:nth-child(1) {
    margin-left: 15px;
}

.calendar-close {
    top: 10px!important;
    right: 13px!important;
font-size: 20px!important;
    color: #000000b3!important;  
}
#calendar2 tbody td {

    width: 50px;
    height: 40px;

}

#calendar2 td {
    font-weight: 400;
    font-size: 22px;
    padding: 0px;
}

}

#calendar2 tbody tr:nth-child(1) td:nth-child(1) {
 border-top-left-radius: 10px;
    border: 1px solid rgba(245,245,247,.9);
}

#calendar2 tbody tr:nth-child(1) td:last-child{
 border-top-right-radius: 10px;
    border: 1px solid rgba(245,245,247,.9);
}

#calendar2 tbody tr:nth-last-child(-n+2) td:nth-child(1) {
 border-bottom-left-radius: 10px;
    border: 1px solid rgba(245,245,247,.9);
}

#calendar2 tbody tr:nth-last-child(-n+2) td:last-child{
 border-bottom-right-radius: 10px;
    border: 1px solid rgba(245,245,247,.9);
}

#calendar2 tbody td.today {
background: #27A22D!important;
   border-radius: 10px;
}

 a[class*='link-'] {      
 font-family: 'FontAwesome';      
 }      
 a.link-vk::before {      
  content: '\f189';      
  margin-right: var(--MR7);      
 }      
 a.link-ok::before {      
  content: '\f263';      
  margin-right: var(--MR7);      
 }      
 a.link-tg::before {      
  content: '\f2c6';      
 margin-right: var(--MR7);      
 } 