* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    max-width: 100vw;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    background: #F5F5F5;
}
ul, ol, li {
    margin: 0;
    padding: 0;
    list-style: none;
}
a {
    color: #000;
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
.form-select {
    font-size: 16px;
    font-weight: 700;
    border: none;
    width: auto;
}
.copyable {
    cursor: pointer;
}
.bg-primary {
    background: #1E00FF!important;
}
.text-primary {
    color: #1E00FF!important;
}
.btn-primary {
    font-size: 16px;
    font-weight: 700;
    background: #1E00FF;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 2px solid #1E00FF;
}
.btn-primary:disabled {
    background: #BBBBBB;
}
.btn-outline-primary {
    font-size: 16px;
    font-weight: 700;
    background: none;
    border: 2px solid #1E00FF;
    color: #1E00FF;
    transition: all .15s ease-in-out;
}
.btn-outline-primary:disabled {
    border: 2px solid #BBBBBB;
    color: #BBBBBB;
    opacity: .5;
}
.btn-outline-primary:hover {
    background: #1E00FF;
    border: 2px solid #1E00FF;
}
#code-btn {
    min-width: 120px;
    max-width: 120px;
    width: 100%;
}
.btn-secondary {
    width: 100%;
    border: none;
    background: #F5F5F5;
    color: #1E00FF;
}
.btn-secondary:hover,
.btn-secondary:active {
    background: #F5F5F5!important;
    color: #1E00FF!important;
}
.btn-danger {
    background: #FF0000!important;
    font-weight: 700;
    border: none;
    transition: all .15s ease-in-out;
}
.btn-danger:hover {
    background: #ff4141!important;
}
.bg-danger {
    background: #FF0000!important;
}
.wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.header {
    padding: 27px 0;
}
.main {
    flex: 1 0 auto;
}
.navbar__container {
    max-width: 1400px;
    width: 100%;
}
.footer {
    padding: 27px 0;
}
.navbar-nav {
    gap: 5px;
}
.nav-link {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    color: #000;
}
.nav-link.active {
    background: #F0EEFF;
    color: #1E00FF!important;
}

@media screen and (max-width: 767px) {
    .header {
        padding: 10px 0;
    }
    .footer {
        padding: 10px 0;
    }
}

.vcards__container {
    max-width: 1400px;
    width: 100%;
    margin: 50px auto 20px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.vcards__buttons {
    display: flex;
    justify-content: start;
    gap: 10px;
}
.vcards__list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.vcards__list img {
    min-width: 150px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5 / 6;
    border-radius: 16px 0 0 16px;
}
.vcard__item {
    display: grid;
    grid-template-columns: min-content 1fr;
    padding: 0 10px 0 0;
    gap: 30px;
    background: #FFF;
    border-radius: 16px 20px 20px 16px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}
.vcard__item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}
.vcard__item-info h3 {
    font-size: 16px;
}
.vcard__item-info p {
    flex: 1 0 auto;
    font-size: 16px;
    color: #969696;
}
.vcard__item-info a {
    font-size: 16px;
}

@media screen and (max-width: 1440px) {
    .vcards__list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 1200px) {
    .vcards__container {
        margin-top: 20px;
    }
    .vcard__item {
        gap: 15px;
    }
}
@media screen and (max-width: 991px) {
    .vcards__container {
        margin-top: 15px;
        gap: 10px;
    }
    .vcards__list {
        grid-template: unset;
    }
    .vcards__list img {
        min-width: 100px;
    }
}
@media screen and (max-width: 574px) {
    .vcard__item {
        grid-template: unset;
        padding: 0;
    }
    .vcard__item img {
        border-radius: 16px 16px 0 0;
    }
    .vcard__item-info {
        padding: 0 20px 20px 20px;
    }
}
@media screen and (max-width: 474px) {
    .vcards__buttons {
        flex-direction: column;
        align-items: start;
    }
}

.auth {
    width: 100%;
    margin: 10% 0 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.auth__form {
    max-width: 400px;
    padding: 0 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: start;
}
@media(max-width: 375px) {
    .auth__form {
        max-width: 300px;
    }
}
.form-control {
    height: 40px;
    border: 1px solid #DFE0E2;
    padding: 0 15px;
    font-size: 14px;
}
.form-control.hidden {
    display: none;
}
.auth__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth__submit-links {
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.auth__submit-link {
    color: #1E00FF;
    text-align: right;
}
.auth__error {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    position: relative;
}
.auth__error .form-control {
    width: 100%;
}
.auth__error-danger {
    display: none;
    position: absolute;
    top: -15px;
    left: 20px;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 2px;
}
.auth__error-danger.active {
    display: block;
}
.auth__error-danger:before {
    content:"\A";
    border-style: solid;
    border-width: 4px 4px 4px 0;
    border-color: transparent #FF0000 transparent transparent;
    position: absolute;
    transform: rotate(-90deg);
    top: 16px;
    left: 49px;
}

.auth__error-success {
    display: none;
    position: absolute;
    top: -15px;
    left: 20px;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 2px;
}
.auth__error-success.active {
    display: block;
}
.auth__error-success:before {
    content:"\A";
    border-style: solid;
    border-width: 4px 4px 4px 0;
    border-color: transparent #198754 transparent transparent;
    position: absolute;
    transform: rotate(-90deg);
    top: 16px;
    left: 49px;
}

@media screen and (max-width: 767px) {
    .auth {
        margin: 20px 0;
    }
}

.download {
    position: sticky;
    top: 0;
    left: 0;
    background: #F5F5F5;
    display: grid;
    place-items: center;
}
.create {
    max-width: 500px;
    margin: 0 auto 40px auto;
}
.create.container {
    max-width: 830px;
    display: flex;
    justify-content: space-between;
    gap: 80px;
}
.create__container {
    margin: 50px 0 0 0;
    max-width: 524px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.create__links {
    margin-top: 100px;
    max-width: 250px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.create__links > a {
    align-self: start;
    cursor: pointer;
}
.create__qr {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
}
.create__links-short {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.create__form {
    width: 100%;
    background: #FFF;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border: none;
}
.create__title {
    font-size: 36px;
    text-align: center;
}
.create__subtitle {
    font-size: 24px;
    text-align: center;
}
.create__text {
    font-size: 16px;
    text-align: center;
}
.create__download-label {
    width: 100%;
    padding: 10px 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
}
.create__file {
    display: none;
}
.create__file-label {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
label.create__file-label {
    cursor: pointer;
}
.create__file-label img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.create__form-item {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 12px;
    gap: 10px;
}
.create__form-item.changable {
    cursor: pointer;
}
.error {
    border: 2px solid #FF0000!important;
}
.create__form-item-title {
    width: 100%;
    margin: 5px auto 10px auto;
    display: flex;
    justify-content: center;
}
.changable {
    cursor: pointer;
}
.changable.active {
    width: 100%;
    border: 2px solid #1E00FF;
    border-radius: 6px;
    padding: 10px 10px;
    position: relative;
}
.changable__link {
    display: none;
}
.changable.active .changable__link {
    display: block;
    position: absolute;
    z-index: 2;
    top: -2px;
    right: -2px;
    font-size: 14px;
    color: #fff;
    background: #1E00FF;
    padding: 2px 5px;
    border-radius: 0 6px;
    border: 0;
}

@media screen and (max-width: 991px) {
    .create,
    .create.container {
        max-width: 500px;
        flex-direction: column;
        gap: 20px;
        margin: 0 auto 20px auto;
    }
    .create__container {
        margin: 20px 0 0 0;
    }
    .create__links {
        margin: 0;
        gap: 10px;
    }
}

@media screen and (max-width: 767px) {
    .create__title {
        font-size: 24px;
    }
    .create__subtitle {
        font-size: 20px;
    }
}

.create__form-block.active {
    border: 2px solid #1E00FF;
    border-radius: 6px;
}
.create__form-block .form-floating {
    width: 100%;
}
.create__form-item-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.create__form-item .form-select {
    border: 1px solid #DFE0E2;
}
.create__form-item.active {
    padding: 20px;
    border: 2px solid #1E00FF;
    border-radius: 6px;
}
.create__form-item-subtitle {
    font-size: 16px;
}
.create__form-item-text {
    font-size: 20px;
    color: #1E00FF;
    align-self: start;
}
.create__form-buttons {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.create__form-buttons-change {
    display: none;
}
.create__form-buttons-change.active {
    display: flex;
}
.create__form-property-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media(max-width: 375px) {
    .create__form-item-buttons {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
}

.block__subtitle {
    align-self: start;
    font-weight: 700;
    font-size: 16px;
}
.block__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.btn-save-vcard {
    align-self: start;
}

.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
    display: none;
}
.delete-modal.active {
    display: grid;
    place-items: center;
}
.delete-modal__form {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    background: #FFF;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.delete-modal__btns {
    display: flex;
    justify-content: start;
    gap: 10px;
}
.delete-modal__btns .btn {
    justify-content: center;
}

@media screen and (max-width: 767px) {
    .delete-modal {
        padding: 10px;
    }
    .delete-modal__form {
        padding: 15px;
        font-size: 15px;
    }
}

#text {
    display: none;
    overflow: hidden;
    visibility: hidden;
}
.navbar-toggler {
    border: none;
    padding: 0;
}
.tenor-gif-embed {
    display: none;
}
.tenor-gif-embed.active {
    width: 150px!important;
    height: 150px;
    display: block;
}
.create__form-title {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.create__form-add {
    position: relative;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    padding: 0;
}
.create__form-add::before {
    content: '';
    display: block;
    position: absolute;
    width: 10px;
    height: 1px;
    background: #FFF;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.create__form-add::after {
    content: '';
    display: block;
    position: absolute;
    width: 10px;
    height: 1px;
    background: #FFF;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
}
.create__form .form-select {
    width: 100%;
    border: 1px solid #DFE0E2;
}
.create__form-inputs {
    width: 100%;
    display: none;
    gap: 10px;
}
.create__form-inputs.active {
    display: flex;
    flex-direction: column;
}
.create-form-property-container {
    display: flex;
    justify-content: space-between;
}
.create-form-property-remove {
    width: 12px;
    border: none;
    background: url(../img/cross.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: grid;
    place-items: center;
}
.create__form-prop-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}
.loader {
    display: none;
}
.loader.active {
    display: block;
    width: 50px;
    margin: 50px auto;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #1E00FF;
    --_m:
      conic-gradient(#0000 10%,#000),
      linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
            mask: var(--_m);
    -webkit-mask-composite: source-out;
            mask-composite: subtract;
    animation: l3 1s infinite linear;
  }
  @keyframes l3 {to{transform: rotate(1turn)}}
