.forgotPassword {
    font-size: 14px;
    margin-top: 10px;
}

.bg {
    overflow-x: hidden;
    overflow-y: hidden;
}

html,
body {
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: none;
    overflow: hidden
}

* :not(input) {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

.loadpage {
    width: 100%;
    height: 100vh;
    /* Полный экран */
    z-index: 9999999999999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    background: linear-gradient(145deg, #b2d2e9 40%, #dbefd6 70%);
    overflow: hidden;
    /* Чтобы видео не вылезало */
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Заполняет экран */
}

.update-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.update-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

.error-popup {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden !important;
}

/* .bg-start > * задаёт position:relative всем прямым детям.
   Для popup это недопустимо: он должен быть отдельным fullscreen-слоем. */
.bg-start > #error-popup,
body > #error-popup {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
}

.error-popup.active {
    opacity: 1;
    pointer-events: all;
}

.error-content {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.error-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
}

.sad-face {
    font-size: 56px;
    margin-bottom: 16px;
}

.error-content h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: #000;
}

.error-retry {
    padding: 12px 32px;
    background: white;
    color: black;
    border: 2px solid black;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.error-retry:hover {
    background: black;
    color: white;
}

.update-btn:active {
    transform: scale(0.95);
}

.error-icon {
    background-color: black;
    border-radius: 50%;
    padding: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.error-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.error-icon svg {
    width: 18px;
    height: 18px;
}

.no-internet-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden !important;
}

.bg-start > #no-internet-popup,
body > #no-internet-popup {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
}

.no-internet-modal.active {
    opacity: 1;
    pointer-events: all;
}

.no-internet-content {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.sad-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.no-internet-content p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

@font-face {
    font-family: 'e-UkraineHead';
    font-weight: 500;
    font-style: normal;
    src: url('../assets/e-Ukraine-Regular.woff') format('woff');

}

.nonono {
    text-align: center;
}


.loadpage {
    width: 100%;
    height: 100%;
    z-index: 9999999999999999999999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: absolute;

    background: linear-gradient(145deg, #b2d2e9 40%, #dbefd6 70%);
}


.loadtext {
    font-family: 'e-UkraineHead';
    font-size: .875rem;
    line-height: 1.3125rem;
    z-index: 2323234234234;

}

.zublogo {
    background-image: url(../assets/uasign.svg);
    width: 75px;
    height: 75px;
    z-index: 234231;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}

.diyalogo {
    background-image: url(../assets/diya.svg);
    width: 75px;
    height: 75px;
    z-index: 234234;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'e-UkraineHead';
    box-sizing: border-box;

}

html,
body {
    overflow: hidden;
}

@property --blob1 {
    syntax: '<color>';
    inherits: false;
    initial-value: #c9b3e8;
}
@property --blob2 {
    syntax: '<color>';
    inherits: false;
    initial-value: #f0e8a0;
}

.bg-start {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #f5f5f8;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

.bg-start::before,
.bg-start::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Верхнее пятно — фиолетовый/розовый/голубой */
.bg-start::before {
    width: 75vw;
    height: 75vw;
    top: -20vw;
    left: -15vw;
    background: var(--blob1);
    animation: blob1anim 10s ease-in-out infinite;
}

/* Нижнее пятно — жёлтый/зелёный/розовый */
.bg-start::after {
    width: 75vw;
    height: 75vw;
    bottom: -20vw;
    right: -15vw;
    background: var(--blob2);
    animation: blob2anim 10s ease-in-out infinite;
}

.bg-start > * {
    position: relative;
    z-index: 1;
}

@keyframes blob1anim {
    0%   { --blob1: #c9b3e8; top: -20vw; left: -15vw; }
    25%  { --blob1: #b3c8f0; top: -10vw; left: -5vw;  }
    50%  { --blob1: #f0b3d8; top: -25vw; left: -10vw; }
    75%  { --blob1: #b3d8f0; top: -15vw; left: -20vw; }
    100% { --blob1: #c9b3e8; top: -20vw; left: -15vw; }
}

@keyframes blob2anim {
    0%   { --blob2: #f0e8a0; bottom: -20vw; right: -15vw; }
    25%  { --blob2: #b8f0c8; bottom: -10vw; right: -5vw;  }
    50%  { --blob2: #f0c8b8; bottom: -25vw; right: -20vw; }
    75%  { --blob2: #e8f0a0; bottom: -15vw; right: -10vw; }
    100% { --blob2: #f0e8a0; bottom: -20vw; right: -15vw; }
}






.swiper-pagination {
    position: unset;
}

.swiper-pagination>.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
}

.swiper-pagination>.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

.swiper-pagination2 {
    position: unset;
    text-align: center;
}

.swiper-pagination2>.swiper-pagination-bullet {
    background: #a1a1a1;
}

.swiper-pagination2>.swiper-pagination-bullet-active {
    background: black;
}

.start-div {
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    background: linear-gradient(145deg, #b2d2e9 40%, #dbefd6 70%);
}

.start-div.active {
    opacity: 1;
    pointer-events: all;
}

.start-div>h1 {
    font-weight: 300;
    font-size: 26px;
}

.start-block {
    display: grid;
    grid-template-columns: repeat(3, 88px);
    grid-template-rows: repeat(4, 88px);
    gap: 20px;
    justify-content: center;
    margin: 40px auto 0;
    width: fit-content;
    margin-bottom: 20px;
}

/* Все круглые элементы */
.start-block>button,
.start-block>.biometry-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: none;
    background: #eef7f2;
    font-size: 34px;
    font-weight: 300;
    color: #000 !important;
    /* ← чёрные цифры навсегда */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* Биометрия — полностью видно, без обрезки */
.biometry-btn {
    background: transparent !important;
    padding: 16px;
    /* отступ внутри круга */
    box-sizing: border-box;
}

.biometry-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    pointer-events: none;
    border-radius: 0 !important;
}

/* Ноль — обычная кнопка */
.zero-btn {
    background: #eef7f2 !important;
}

/* Удалить — прозрачный фон, чёрная стрелка */
.delete-btn {
    background: transparent !important;
    color: #000 !important;
}

.start-vhod {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.start-vhod>div {
    background: #f4f6f1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.start-vhod>div.active {
    background: black;
}

.main {
    width: 100%;
    height: 100%;
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

/* ===== Нижня навігація: 5 вкладок як у відео ===== */
.footer {
    z-index: 20;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
    background: #000;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
}

.footer > div {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 2px 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, opacity .18s ease;
}

.footer > div:active { transform: scale(.94); }

.footer > div > span:last-child {
    font-size: 12px;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    font-weight: 500;
}

.footer-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: transparent;
    transition: background .18s ease, transform .18s ease;
}

.footer-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    transition: filter .18s ease, transform .18s ease;
}

.footer-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Активна вкладка: білий квадрат із чорним значком, як у відео. */
.footer > div.active .footer-icon {
    background: transparent !important;
    transform: none;
    box-shadow: none !important;
    border: 0 !important;
}
.footer > div.active > span:last-child { color: #fff; font-weight: 600; }
.footer > div.active .footer-icon { background: transparent !important; }
.footer > div:not(.active) .footer-icon { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.footer > div:not(.active) > span:last-child { color: #fff; font-weight: 500; }

.footer-ai-tab { color: #fff; position: relative; }
.footer-ai-tab span:last-child { color: #fff; }

.main.active {
    opacity: 1;
    pointer-events: all;
    overflow: visible;
}

.block {
    display: none;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

@keyframes footerPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.block.active {
    display: block;
    overflow: visible;
    animation: footerPageIn .22s ease both;
}


.textVizit {
    display: flex;
    font-size: 28px;
    font-weight: 300;
    gap: 7px;
    width: 100%;
    margin-top: 15px;

    margin-bottom: 15px;
}
.greeting-hand {
    background: transparent !important;
    width: 42px;
    height: 42px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 5px;
}

.block1 {
    padding: 0 25px;
}

.block2.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.block2 {
    overflow: visible !important;
}

.pre {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

.nezlamnist {
    background: #d9eaf4;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
}

.nezlamnist>h2 {
    font-weight: 300;
    font-size: 20px;
}

.nezlamnist>p {
    font-size: 12px;
    margin-top: 13px;
}

.nezlamnist-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.lightSrc {
    width: 55px;
}

.arrowSvg {
    padding: 6px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
}

.arrowSvg>img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}

.threeButtons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    width: 100%;
}

.threeButtons>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
}

.threeButtons>div>span {
    font-size: 13px;
    margin-top: 7px;
    word-break: keep-all;
}

.threeButtons>div>div {
    background: black;
    padding: 18px;
    border-radius: 35%;
    display: flex;
    align-items: center;
}

.threeButtons>div>div>img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#buttonLoad {
    cursor: pointer;
}

.aod {
    width: 100%;
    cursor: pointer;
    margin-bottom: 15px;
}

.aod>img {
    width: 100%;
    border-radius: 17px;
}

.aod1 {
    width: 100%;
    cursor: pointer;

}

.aod1>img {
    width: 100%;
    border-radius: 15px;
}

.popular_poslugu_block {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 13px;
    background: #fff;
}

.popular_poslugu_block>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 2px solid #e9edee;
}

.popular_poslugu {
    align-self: flex-start;
    margin: 30px 0 15px 0;
}

.popular_none {
    border: none !important;
}

.popular_poslugu_block>div>span {
    font-weight: 300;
    font-size: 15px;
}

.slider {
    width: 95%;
    transform-style: preserve-3d;
    transition: transform 0.4s;
    position: relative;
    min-width: 0;
    height: 100%;
}

.front {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.4);
}

.back {
    position: relative;
    background: #fff;
}

.front,
.back {
    width: 100%;
    backface-visibility: hidden;
    margin: auto;
    display: flex;
    flex-direction: column;

    padding: 20px 15px;
    border-radius: 20px;
    -webkit-backface-visibility: hidden;
    height: 100%;
}

.back.flipped {
    transform: rotateY(0);
}

.back {
    transform: rotateY(180deg);
}

.moreInfo {
    position: absolute;
    bottom: 20px;
    right: 15px;
}

.front>h1 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 15px;
}

.fioBlock {
    margin-right: 30px;
    position: relative;
}

.fioBlock>h2 {
    font-size: 21px;
    font-weight: 300;
    margin-top: 10px;
    width: 0;
}

.dataBlock {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.dataBlock>img {
    width: 135px;
    height: 180px;
    border-radius: 12px;
}

.dataInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dataInfo>img {
    width: 100px;
    object-fit: contain;
}

.dataInfo>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 10px 10px 10px;
    padding-top: env(safe-area-inset-top,
            10px);
    /* 10px fallback for older browsers */
    background-color: #66c67f;
    color: black;
    text-align: center;
    transition: transform 0.3s;
    transform: translateY(-100%);
    z-index: 1000;
    font-size: 13px;
}

.notification.show {
    transform: translateY(0);
}

@supports (padding-top: env(safe-area-inset-top)) {
    .notification {
        padding-top: env(safe-area-inset-top);
    }

    .block2.active {
        padding-top: calc(15px + env(safe-area-inset-top));
    }

    .block1 {
        padding-top: 0 !important;
    }
}

@supports (padding-bottom: env(safe-area-inset-top)) {


    .footer {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

.qrcodeBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 10px 20px;
    height: 100%;
}

.qrcodeBlock>span {
    font-size: 13px;
    color: #a1a1a1;
}

.qrshBlock {
    height: 252px;
}

.qrcode {
    background-image: url(../assets/qr-dd.png);
    background-size: contain;
    background-position: center;
    width: 252px;
    margin-top: 10px;
    height: 252px;
}

.shcode {
    width: 252px;
    height: 76px;
    margin-top: 20px;
    background-color: #fff;
    background-image:
        repeating-linear-gradient(90deg,
            #111 0 2px, transparent 2px 5px,
            #111 5px 6px, transparent 6px 9px,
            #111 9px 12px, transparent 12px 15px,
            #111 15px 16px, transparent 16px 20px);
    background-size: 100% 100%;
    background-position: center;
    border: 0;
    box-sizing: border-box;
}

.start-div {
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    background: linear-gradient(145deg, #b2d2e9 40%, #dbefd6 70%);
    z-index: 9999;
    transition: opacity 0.3s ease;
    /* Плавное исчезновение */
}

.start-div.active {
    pointer-events: all;
    opacity: 1;
}

/* Состояние перед удалением */
.start-div.hiding {
    opacity: 0;
    pointer-events: none;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    display: none;
}


.video-background.active {
    display: block;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: 100vh;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.news {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.news>img {
    width: 100%;
    height: auto;
}

.news>div {
    display: flex;
    flex-direction: column;
    padding: 12px;
    padding-top: 10px;
}

.news>div>span {
    font-size: 12px;
    color: #a1a1a1;
    margin-bottom: 7px;
}

.news>div>p {
    font-weight: 300;
    font-size: 15px;
}


.news-main {
    height: auto;
}

.container-news {
    width: 100%;
}


.document_block_div {
    position: fixed;
    width: 100vw;
    height: 100vh;
    padding: 20px 10px;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: 0.2s all;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    padding-bottom: 40px
}

.document_block_div.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.document_block_div>div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    transform: translateY(100%);
    transition: 0.4s all;
}

.document_block_div>div.active {
    transform: translateY(0);
}

.main_block {
    width: 100%;
    background-color: #fff;
    border-radius: 17px;
    flex-direction: column;
    padding: 10px 15px;
}

.main_block>div {
    display: flex;
    align-items: center;
    padding: 15px 15px;
    gap: 15px;
}

.main_block>div>img {
    width: 18px;
    height: 18px;
}

.main_block>div>span {
    font-size: 14px;
}

.border {
    border-bottom: 1px solid #e9edee;
}

.close_block {
    background-color: #fff;
    font-size: 16px;
    text-align: center;
    padding: 15px 0;
    border-radius: 24px;
}


.modal {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    height: 100%;
    background-color: #f2f6f7;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    transition: top 0.5s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.modal-content {
    padding: 10px 20px 100px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-content>h1 {
    font-size: 22px;
    font-weight: 300;
    margin-top: 10px;
}

.numberNN {
    margin: 15px 0 13px 0;
    display: flex;
    align-items: center;
}

.numberNN>h3 {
    font-size: 27px;
    font-weight: 300;
}

.copyPng {
    width: 18px;
}

.handle {
    width: 40px;
    height: 5px;
    background-color: #ccc;
    border-radius: 5px;
    margin: 10px auto;
}

.open {
    top: 5%;
}

/* Учитываем вырезы на экранах */


.fullPasportBlock {
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.fullPasportBlock>h2 {
    font-size: 22px;
    font-weight: 300;
}

.fullPasportBlock>h3 {
    font-size: 16px;
    font-weight: 300;
    margin: 7px 0 13px 0;
}

.dataBlock2 {
    margin: 15px 0 0 0;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    gap: 15px;
}

.dataBlock2>div {
    display: flex;
}

.dataBlock2>div>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 3px;
}

.dataBlock2>div>div>h3 {
    font-size: 13px;
    font-weight: 300;
}

.dataBlock2>div>div>span {
    font-size: 13px;
    color: #a1a1a1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: opacity 0.3s;
}

.hidden {
    display: none;
}

.qrChange {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: auto;
}

.qrChange>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrChange>div>div {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ddd;
    padding: 13px;
}

.qrChange>div>div>img {
    width: 22px;
    height: 22px;
}

.qrChangeInfo {
    display: flex;
    align-items: center;
    gap: 70px !important;
    margin-top: 10px;
    justify-content: center;
    margin: 0 !important;
    padding: 15px 0 !important;
}

.qrChangeInfo>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrChangeInfo>div>div {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ddd;
    padding: 13px;
}

.qrChangeInfo>div>div>img {
    width: 22px;
    height: 22px;
}

.shText {
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}


.swiper-container {
    max-width: 100%;
    height: 60%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.documentSlider {
    width: 100%;
    padding-bottom: 12px !important;
    overflow: visible !important;
}

.documentSlider .swiper-wrapper {
    align-items: flex-start;
}

.documentSlider .swiper-slide {
    opacity: 1;
    transform: scale(1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.documentSlider .document-slide-animated {
    transition-property: transform, opacity, filter;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.35, 1);
}

.documentSlider .swiper-slide-active {
    z-index: 3;
}

.documentSlider .swiper-slide:not(.swiper-slide-active) {
    filter: saturate(0.98);
}

.documentSlider .swiper-pagination {
    bottom: 0 !important;
}



.search {
    width: 100%;
    background: #fff;
    position: relative;
    padding: 10px 10px;
    font-size: 13px;
    color: #a1a1a1;
    border-radius: 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search>img {
    width: 18px;
    height: 18px;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 200px;
}

.services>div {
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    height: 110px;
    justify-content: space-between;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    flex: 1 1 calc(50% - 10px);
    /* Учитывая зазор между элементами */
    margin: 5px;
    /* Зазор между элементами */
}

.services>div>span {
    font-size: 13px;
}

.services>div>div {
    /* border-radius: 50%;
                        padding: 5px;
                        background: black;
                        width: max-content; */
    padding: 8px;
    background-color: black;
    width: max-content;
    border-radius: 50%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.services>div>div>img {
    filter: brightness(0) invert(1);
    width: 18px;
    height: 18px;
    transform: rotate(0);
    object-fit: contain;
}


.columnMenu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 25px;
}

.columnMenu>button {
    font-size: 15px;
    padding: 12px 0;
    width: 160px;
    text-align: center;
    background: black;
    border-radius: 24px;
    border: transparent;
    color: #fff;
    align-self: center;
    font-weight: 300;
    margin-top: 15px;
}

.columnMenu>span {
    margin-top: 5px;
    text-align: center;
    font-size: 11px;
    text-decoration: underline;
}

.columnMenu>div {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 100%;
    border-radius: 12px;
}

.columnMenu>div>div {
    display: flex;
    gap: 10px;
    padding: 15px 15px;
    align-items: center;
}

.columnMenu>div>div>img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.columnMenu>div>div>span {
    font-size: 15px;
}

html,
body {
    touch-action: manipulation;

}

/* ===== Footer AI tab ===== */
.footer-ai-tab {
    color: white;
    position: relative;
}
.footer-ai-tab svg {
    display: block;
}
.footer-ai-tab span {
    font-size: 12px;
    color: white;
}

/* ===== Дія.AI screen ===== */
.diya-ai-block {
    overflow: hidden;
    background: transparent;
    padding: 0 !important;
}
.diya-ai-block.active {
    display: flex !important;
    flex-direction: column;
}

/* Top bar */
.dai-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0;
    flex-shrink: 0;
    gap: 8px;
}
.dai-topbar-btn {
    background: none;
    border: none;
    padding: 6px;
    color: #222;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}

/* Marquee */
.dai-marquee-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.dai-marquee-track {
    display: inline-block;
    animation: dai-marquee 18s linear infinite;
    font-size: 12px;
    color: #666;
}
@keyframes dai-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Messages */
.dai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Date chip */
.dai-date-chip {
    text-align: center;
    font-size: 13px;
    color: #555;
    background: rgba(255,255,255,0.75);
    border-radius: 20px;
    padding: 4px 14px;
    align-self: center;
    margin-bottom: 4px;
}

/* AI message block */
.dai-msg-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dai-msg-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.dai-sparkle-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    color: #222;
}
.dai-msg-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.dai-msg-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #111;
}

/* Action buttons (like/dislike/copy) */
.dai-actions {
    display: flex;
    gap: 18px;
    padding-left: 40px;
}
.dai-action-btn {
    background: none;
    border: none;
    padding: 0;
    color: #555;
    cursor: pointer;
    line-height: 0;
}
.dai-action-btn:active { color: #111; }

/* User message bubble */
.dai-user-bubble {
    align-self: flex-end;
    background: rgba(255,255,255,0.85);
    border-radius: 20px 20px 4px 20px;
    padding: 10px 16px;
    font-size: 15px;
    color: #111;
    max-width: 80%;
    line-height: 1.45;
    backdrop-filter: blur(4px);
}

/* Typing indicator */
.dai-typing-dots span {
    display: inline-block;
    width: 6px; height: 6px;
    background: #aaa;
    border-radius: 50%;
    margin: 0 2px;
    animation: dai-dot 1.2s infinite;
}
.dai-typing-dots span:nth-child(2) { animation-delay: .2s; }
.dai-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dai-dot {
    0%,80%,100% { transform: scale(0.7); opacity:0.5; }
    40% { transform: scale(1); opacity:1; }
}

/* Input bar */
.dai-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 14px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 18px 18px 0 0;
    position: relative;
    z-index: 5;
}
.dai-sparkle-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    color: #222;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dai-sparkle-btn:active { background: #eee; }
.dai-input {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 15px;
    outline: none;
    background: rgba(255,255,255,0.9);
    color: #111;
    -webkit-user-select: text !important;
    user-select: text !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dai-input::placeholder { color: #aaa; }

@keyframes diya-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== Settings Modal ===== */
/* ===== Settings Modal ===== */
.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-end;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.settings-modal.hidden {
    display: none;
}
.settings-sheet {
    background: #f2f2f7;
    width: 100%;
    height: 95vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.32s cubic-bezier(.32,.72,0,1);
    /* Критично: не дозволяємо sheet стискатись */
    min-height: 0;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 14px;
    background: rgba(242,242,247,0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    z-index: 2;
}
.settings-header h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #111;
    flex: 1;
    text-align: center;
}
.settings-back {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px 4px 2px;
    color: #007aff;
    display: flex;
    align-items: center;
    min-width: 60px;
    flex-shrink: 0;
}
.settings-save {
    background: #007aff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    color: #fff;
    border-radius: 20px;
    min-width: 60px;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
}
.settings-save:active { background: #005ecb; }

.settings-body {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px 16px 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.settings-section-title {
    font-size: 12px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 4px 6px;
    font-weight: 500;
    flex-shrink: 0;
}
.settings-section-title:first-child {
    margin-top: 8px;
}
.settings-group {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.settings-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 0;
    min-height: 48px;
    box-sizing: border-box;
}
.settings-field.border-top {
    border-top: 1px solid #f0f0f0;
}
.settings-field label {
    font-size: 14px;
    color: #111;
    font-weight: 400;
    flex-shrink: 0;
    width: 140px;
    line-height: 1.3;
}
.settings-field input {
    border: none;
    outline: none;
    font-size: 15px;
    color: #555;
    background: transparent;
    padding: 0;
    -webkit-user-select: text !important;
    user-select: text !important;
    width: 100%;
    text-align: right;
    min-width: 0;
}
.settings-field input::placeholder {
    color: #c7c7cc;
    text-align: right;
}

/* Photo upload */
.settings-field-photo {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: auto;
}
.photo-upload-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.photo-preview-wrap {
    width: 64px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e0e0e0;
    background: #f5f5f5;
}
.photo-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.photo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #007aff;
    color: #fff;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
}
.photo-upload-btn:active { background: #005ecb; }
.photo-clear-btn {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    text-align: left;
}

/* Signature canvas */
.settings-field-sign {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: auto;
}
.settings-field-sign label {
    width: auto;
    font-size: 13px;
    color: #999;
}
.sign-canvas-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
#signatureCanvas {
    border: 1.5px dashed #ccc;
    border-radius: 12px;
    background: #fafafa;
    touch-action: none;
    cursor: crosshair;
    width: 100%;
    height: 90px;
    display: block;
}
.clear-sign-btn {
    background: none;
    border: 1px solid #ff3b30;
    color: #ff3b30;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 20px;
    align-self: flex-start;
}

/* Hide all scrollbars without disabling scrolling */
html,
body,
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

/* v8: native service error is a centered modal with dimmed backdrop. */
#error-popup{align-items:center !important;justify-content:center !important;background:rgba(0,0,0,.52) !important}
#error-popup .error-content{width:min(340px,88vw);padding:32px 24px 26px;border-radius:22px}
#error-popup .sad-face{font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif}
.df-activate-sign{display:block;width:100%;margin:16px 0 8px;padding:14px 18px;border:0;border-radius:14px;background:#111;color:#fff;font-size:16px;font-weight:600}.df-activate-sign:disabled{opacity:.65}.df-sign-status{min-height:22px;margin-top:8px;text-align:center;font-size:14px;color:#555}.kalyna-marquee{display:inline-block;white-space:nowrap;animation:kalyna-scroll 34s linear infinite;will-change:transform}@keyframes kalyna-scroll{from{transform:translateX(100%)}to{transform:translateX(-100%)}}

/* v23: QR reveal takes exactly 1 second after card flip. */
.qrcodeBlock.qr-loading .qrshBlock{visibility:hidden;opacity:0}
.qrcodeBlock.qr-ready .qrshBlock{visibility:visible;opacity:1;transition:opacity .15s ease}
/* v23: signature controls */
.signature-activate-btn{display:block;width:100%;margin:12px 0 0;padding:13px 16px;border:0;border-radius:14px;background:#0a84ff;color:#fff;font-size:15px;font-weight:600;cursor:pointer}
.signature-activate-btn:disabled{opacity:.55}
.signature-status{min-height:20px;margin-top:8px;text-align:center;font-size:13px;color:#666}


/* v34: selected footer tab keeps the original icon/color unchanged. */
.footer > div.active .footer-icon img,
.footer > div.active .footer-icon svg,
.footer > div:not(.active) .footer-icon img,
.footer > div:not(.active) .footer-icon svg { filter: none !important; }
