* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    height: 100%;
}
body {
    font-family: 'Archivo', 'Roboto';
    background-color: #F8FDFA;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;    
}
.content{
    width: 100%;
    height: 100%;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card-section{
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}
.card-section .card .card-headermainmblock{
    width: 500px;
    padding:  0 20px;
    background: white;
    box-shadow: 0px 0px 15px #0000001F;
    border: 0.1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.card-section .card > div:first-child{
    padding: 0;
}

.card-section.preview{
    width: 100%;
    height: 100%;
    position: fixed;
    top: -9999px;
    background-color: rgba(0, 0, 0, 0.5);
}
.card-section.preview .card{
    /* width: 380px; */
    width: auto;
    border-radius: 0px;
    border: none;
    position: relative;
}

.card-section.preview .card .card-headermainmblock{
    border-radius: unset;
    padding: 0;
    border: unset;
}

.ClosebtnBlock{
    position: absolute;
    right: 25px;
    top: 25px;
    z-index: 1;
    cursor: pointer;
}

.card-section.preview .card > div:first-child {
    border-radius: 0;
    border: none;
}
.card-section.preview .card-header {
    height: 160px;
    position: relative;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}

.card-section.preview  .card-body {
    padding: 60px 30px 0 30px;       
}
.card-section.preview .card-header .logo {
    left: 20px;
}
.card-section.preview .profile-image-container{
    /* left: 90px; */
    right: 20px;
}
.card-section.preview .qrcode{ 
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 0.5px solid rgba(112, 112, 112, 0.2);

}
.bg-container{ 
    width: 100%;
    min-height: 120px;
    position: relative;
}
.bg-container img{
    position: absolute;
    /* width: 100%; */
    bottom: 0;
    left: 0;
}
.card{
    background: white;
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.card-header {
    height: 160px;
    position: relative;
}

.card-header > img {
    position: absolute;
    inset: 0;      
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    display: block;
}

.card-header .logo{
    width: 100%;
    max-width: 180px;
    height: auto;
    position: absolute;
    left: 20px;
    top: 25px;
}

.card-header .logo img{
    width: 100%;
}

.profile-image-container{
    width: 120px;
    height: 120px;
    position: absolute;
    bottom: -40px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
}


.profile-image {
    width: 110px;
    height: 110px;
    background-position: center;
    border-radius: 50%;
    background-color: #0a8845;
}
.profile-image img{
    width: 100%;
}


.card-body {
    padding: 40px 20px 0 20px;
}
.loading-container { 
    position: relative;
    background-color: #ffffff; 
    width: 100%; 
    height: 100%;
}
.after-content {
    display: flex;
    flex-direction: column;
    visibility: hidden;
}
.name {
    font-family: 'Archivo';
    font-size: 30px;
    font-weight: bold;
    color: #2E2E2E;
    margin-bottom: 1px;
}
.title {
    font-family: 'Roboto';
    color: #2E2E2E;
    font-size: 18px;
    margin-bottom: 20px;
}
.description {
    font-family: 'Roboto';
    color: #2E2E2E;
    line-height: 24px;
    margin-bottom: 25px;
    font-size: 18px;
}
.contact-section {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    border-top: 0.5px solid rgba(112, 112, 112, 0.2);

}
.contact-section .left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;

}
.contact-section .left .icon{
    margin-right: 12px;
    width: 22px;
    height: 22px;
    opacity: 0.4;
}
.contact-section .left a {
    text-decoration: none;
    color: #2E2E2E;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-family: 'Roboto';
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}
.contact-section .right {
    display: flex;
    gap: 15px;
}
.contact-section .right .qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-section .right .qr-container img { 
    width: 100%;
    height: auto;
}
.company-section {
    padding: 25px 0;
    border-top: 0.5px solid rgba(112, 112, 112, 0.2);
}
.company,.services{
    color: #2E2E2E;
    opacity: 0.35;
    font-family: 'Montserrat';
    font-size: 12px;
    margin-bottom: 12px;
}
.company-name{
    color: #2E2E2E;
    font-family: 'Roboto';
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.company-address{
    color: #2E2E2E;
    font-family: 'Roboto';
    font-size: 16px;
    margin-bottom: 12px;
}
.company-contact-section{
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.company-contact-section a{
    text-decoration: none;
    color: #2E2E2E;
    font-family: 'Roboto';
    font-size: 16px;
    width: fit-content;
}
.company-contact-section a.tel{
    font-weight: bold;
}
.company-groups{
    padding: 25px 0;
    display: flex;
    flex-direction: column;
}
.company-groups-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.company-group-name .company-name {
    margin-bottom: 3px;
}
.company-groups .description{
    font-family: 'Roboto';
    font-size: 16px;
    color: #2E2E2E;
    margin-bottom: 0;
    line-height: normal;
}
.company.download{
    margin: 0;
}
.social-media-section{ 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 0.5px solid rgba(112, 112, 112, 0.2);
    gap: 10px;
}
.social-media-section.download{ 
    border-top: none;
    /* border-top: 0.5px solid rgba(112, 112, 112, 0.5); */
}

.social-media-links-left{
    display: flex;
    align-items: center;
    gap: 15px;
}
.social-media-links-left a{
    display: flex;
    height: 30px;
}
.social-media-links-right{
    display: none;
    gap: 15px;
    align-items: center;
}
.social-media-links-right a{ 
    display: flex;
    height: 35px;
    cursor: pointer;
}
.social-media-section img{ 
    width: 100%;
}
#facebook,#youtube{
    display: none;
}

.footer-section{
    display: flex;
    justify-content: space-between;
    padding: 25px  0 !important;
    border-top: 0.5px solid rgba(112, 112, 112, 0.2);
}
.footer-section a{
    display: flex;
    text-decoration: none;
    color: #2E2E2E;
    font-family: 'Roboto';
    font-size: 18px;
}
.footer-section img{
    width: 100%;
    height: auto;
}
.footer-section a:nth-child(2){
    justify-content: flex-end;
}
svg{
    width: 100%;
}

.AddtoContactsmobile{
    display: none;
}

@media screen and (max-width: 768px) {   
    .card-section:not(.preview) .card{
        width: 450px;
    }
    .card-section:not(.preview) > div {
        width: 450px;
    }
    .card-section:not(.preview) .card-header .logo {
        max-width: 150px;
    }

    .card-section:not(.preview) .profile-image-container {
        width: 110px;
        height: 110px;
    }

    .card-section:not(.preview) .profile-image{
        width: 100px;
        height: 100px;
    }
    .card-section:not(.preview) .name{
        font-size: 24px;
    }
    .card-section:not(.preview) .title{
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .card-section:not(.preview) .company-contact-section a {
        font-size: 14px;
    }
    .card-section:not(.preview) .description{
        line-height: normal;
        font-size: 16px;
        margin-bottom: 20px;
    }
    .card-section:not(.preview)     .company-group-name .description {
        font-size: 14px;
        margin: 0;
    }
    .card-section:not(.preview) .contact-section{
        padding: 20px 0;
    }
    .card-section:not(.preview) .contact-section .left{
        gap: 5px;
    }
    .card-section:not(.preview) .contact-section .left .icon {
        margin-right: 10px; 
    }
    .card-section:not(.preview) .contact-section .left a {
        font-size: 16px;
    }
    .card-section:not(.preview) .company-name {
        font-size: 16px;
    }
    .card-section:not(.preview) .company-address,.services-section li{
        font-size: 14px;
    }
}

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

    .download-section{
        position: fixed;
        bottom: 0;
        border-radius: unset !important;
        padding: 25px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;

    }

    .download-leftSection{
        display: flex;
        gap: 12px;
    }

    .AddtoContactsdesk{
        display: none !important;
    }

    .card-section:not(.preview) .card {
        width: 100%;
    }

    .card-section:not(.preview) .card > div{
        width: 100%;
    }

    .card-section:not(.preview) .card-header .logo{
        max-width: 130px;
    }

    .card-section:not(.preview) .profile-image {
        bottom: -50px;
    }
    .card-section:not(.preview) .name {
        font-size: 22px;
    }
    .card-section:not(.preview) .title{
        font-size: 14px;
        margin-bottom: 10px;
    }
    .card-section:not(.preview) .description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .card-section:not(.preview) .contact-section .left .icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    .card-section:not(.preview) .contact-section .left .icon img {
        width: 100%;
    }
    .card-section:not(.preview) .contact-section .left a {
        font-size: 14px;
    }
    .card-section:not(.preview) .company-section{
        padding: 20px 0;
    }
    .card-section:not(.preview) .services-section{
        padding: 20px 0;
    }
    .card-section:not(.preview) .social-media-section {
        padding: 20px 0;
    }
    .card-section:not(.preview) .social-media-links-left{
        gap: 5px;
    }

    .card-section:not(.preview) .footer-section img{
        width: 80%;
    }

    .card-section:not(.preview) .footer-section a {
        font-size: 16px;
    }

    .AddtoContactsmobile{
        display: flex;
        justify-content: space-between;
        position: fixed;
        bottom: 0px;
        left: 0px;
        background-color: #fff;
        box-shadow: 0px 0px 15px #0000001F;
        width: 100%;
        padding: 20px 0;
        border-top: unset;
    }

    
    .footermainblock{
        margin-bottom: 100px;
    }

    .card-section.preview .card{
        width:90%;
    }

    .card-section .card .card-headermainmblock{
        width: 100%;
    }

    .profile-image-container{
        width: 110px;
        height: 110px;
    }

    .profile-image{
        width: 100px;
        height: 100px;
    }

    .card-section.preview .card .name{
        font-size: 26px;
    }

    .card-section.preview .card .title{
        font-size: 16px;
    }

    .download-leftSection a{
        height: 35px;
    }
}

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

    .card-section:not(.preview) .card-header .logo{
        max-width: 100px;
    }

    .card-section:not(.preview) .profile-image-container {
        width: 90px;
        height: 90px;
        bottom: -35px;
    }   
    .card-section:not(.preview) .profile-image {
        width: 80px;
        height: 80px;
    }

    .card-section:not(.preview) .footer-section a {
        font-size: 14px;
    }
}

@media screen and (max-width:370px) {
    .card-section.preview .card{
        width: 100%;
    }

    .card-section.preview .profile-image-container{
        right: 15px;
    }
}