html {
    font-size: 18px; /* по умолчанию 16px — это +12.5% */
}

@media (min-width: 1024px) {
    html {
        font-size: 20px; /* это +25% */
    }
}


/* Контейнер маршрута */
.delivery-route {
    position: relative;
    height: 60px;
    overflow: hidden;
}

/* Линия */
.delivery-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #6366f1 0%, #4f46e5 100%);
    transform: translateY(-50%);
    border-radius: 999px;
}

/* Точки-етапи */
.delivery-point {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #4f46e5;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Посилка, яка їде до клієнта */
.delivery-box {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    border: 2px solid #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transform: translateY(-50%);
    animation: delivery-move 12s ease-in-out infinite;
}

/* Гроші, що повертаються назад після доставки */
.money-cash {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px dashed #16a34a;
    background: #ecfdf3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transform: translateY(-50%);
    animation: money-back 12s ease-in-out infinite;
}

/* Анімація: посилка їде крок за кроком вперед */
@keyframes delivery-move {
    0%   { left: 0%; }
    20%  { left: 25%; }
    40%  { left: 50%; }
    60%  { left: 75%; }
    80%  { left: 100%; }
    100% { left: 100%; }  /* важливо: більше не повертаємось назад */
}

/* Анімація: гроші швидко летять назад після "Доставлено" */
@keyframes money-back {
    0%   { left: 100%; opacity: 0; }
    60%  { left: 100%; opacity: 0; }   /* чекаємо поки доставимо */
    70%  { left: 100%; opacity: 1; }   /* гроші з'являються у клієнта */
    100% { left: 0%;   opacity: 1; }   /* швидко летять до нас */
}

/* Підписи етапів */
.delivery-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
    color: #475569;
    text-align: center;
}
/* Анимация для успешного сообщения */
.contact-success {
    animation: success-pop 0.35s ease-out, success-glow 1.6s ease-out;
}

@keyframes success-pop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    60% {
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes success-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
}


/* Логістична стрічка (marquee) */
.logistics-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.4);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent),
    rgba(15, 23, 42, 0.03);
    padding: 6px 0;
}

.logistics-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite;
}

.logistics-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    color: #4b5563;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.logistics-pill span.icon {
    font-size: 14px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Карточка з градієнтною рамкою */
.logistics-gradient-card {
    position: relative;
    border-radius: 1rem;
    padding: 1px; /* рамка */
    background: linear-gradient(135deg, #4f46e5, #22c55e, #0ea5e9);
    background-size: 200% 200%;
    animation: gradient-border 6s ease infinite;
}

.logistics-gradient-card-inner {
    border-radius: calc(1rem - 1px);
    background: rgba(15, 23, 42, 0.96);
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}





/* Тумблер для тарифів */
.pricing-toggle {
    position: relative;
    border-radius: 999px;
    padding: 2px;
    background: rgba(15, 23, 42, 0.08);
}

.pricing-toggle-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    font-size: 13px;
}

.pricing-toggle-knob {
    position: absolute;
    top: 2px;
    bottom: 2px;
    width: 50%;
    border-radius: 999px;
    background: white;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease;
}

.pricing-toggle-option {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 6px 0;
    cursor: pointer;
    user-select: none;
}

.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.pricing-card:hover::before {
    opacity: 1;
}


/* Таймлайн для "Про компанію" */
.about-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-block: 0.4rem;
}

.about-timeline::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(129, 140, 248, 0.6), rgba(148, 163, 184, 0.4));
}

.about-timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.about-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #4f46e5;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Статистика */
.about-stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(79, 70, 229, 0.35);
}


@keyframes pulse-slow {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Навигационные ссылки (десктоп) */
.nav-link-base {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.nav-link-base::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #4f46e5, #22c55e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link-base:hover::after {
    transform: scaleX(1);
}

.nav-link-active {
    color: #4f46e5;
    font-weight: 600;
}

.nav-link-active::after {
    transform: scaleX(1);
}

/* Мобильные ссылки */
.nav-link-mobile {
    color: #4b5563;
}

.nav-link-mobile:hover {
    color: #4f46e5;
}

/* Шапка при скролле + логотип */
#site-header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.header-scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
}

#logo-warp {
    transition: transform 0.25s ease, border-radius 0.25s ease;
}

.header-scrolled #logo-warp {
    transform: scale(0.9) translateY(-1px);
    border-radius: 0.9rem;
}

/* Если ещё нет — анимация мягкого пульса логотипа */
@keyframes pulse-slow {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}


/* Пока логотип в начальной фазе – планетка с флагом скрыта */
.logo-pre-init .warp-flag-orbit {
    visibility: hidden;
}

/* Hover ефект для логотипу */
#logo-warp:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.55);
}




/* Контейнер персонажа */
.avatar-hero {
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 20%, #6366f1, #0f172a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: avatar-breath 4s ease-in-out infinite;
}

/* Внутреннее "тело" персонажа */
.avatar-body {
    width: 70%;
    height: 70%;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 20%, #e5e7eb, #9ca3af 85%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Лицо */
.avatar-face {
    position: relative;
    width: 70%;
    height: 55%;
    margin-top: 8%;
}

/* Глаза — базовое состояние */
.avatar-eye {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.08);
    overflow: hidden;
    transform-origin: center;
    animation: avatar-blink 6s infinite;
}

.avatar-eye::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 9999px;
    background: #0f172a;
    /* лёгкое "гуляние" зрачков */
    animation: eye-wander 7s ease-in-out infinite;
}

.avatar-eye-left {
    left: 18%;
    top: 25%;
}

.avatar-eye-right {
    right: 18%;
    top: 25%;
}

/* Рот */
.avatar-mouth {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    width: 35%;
    height: 14px;
}

/* Улыбка */
.avatar-mouth--smile {
    border-bottom: 3px solid #0f172a;
    border-radius: 9999px;
}

/* Круглый "О" */
.avatar-mouth--o {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: 2px solid #0f172a;
    bottom: 18%;
}

/* Прямая линия (смущение) */
.avatar-mouth--flat {
    height: 0;
    width: 35%;
    border-bottom: 2px solid #0f172a;
    opacity: 0.9;
}

/* Грустный рот */
.avatar-mouth--sad {
    border-top: 3px solid #0f172a;
    border-radius: 9999px;
    bottom: 10%;
}

/* Анимации состояний */

/* Печатает — оживляется */
.avatar--typing {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.45);
}

/* Подглядывает при проверке */
.avatar--peek {
    transform: rotate(4deg) translateY(-2px) scale(1.03);
}

/* Стыдится, когда показывают пароль */
.avatar--shy {
    transform: scale(0.96) translateY(2px) rotateZ(-3deg) rotateY(18deg);
    transform-style: preserve-3d;
    filter: hue-rotate(-10deg) brightness(1.05);
}

/* Щёчки при смущении */
.avatar--shy .avatar-face::before,
.avatar--shy .avatar-face::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 99, 132, 0.4);
    border-radius: 9999px;
    bottom: 28%;
    animation: blush 2s infinite;
}

.avatar--shy .avatar-face::before {
    left: 12%;
}
.avatar--shy .avatar-face::after {
    right: 12%;
}

/* В состоянии shy глаза "отводит", иногда подглядывает + чаще моргает */
.avatar--shy .avatar-eye {
    animation: shy-blink 3s infinite;
}

/* Грустит при ошибке — + дрожание тела */
.avatar--sad {
    transform: translateY(3px) scale(0.96);
    filter: grayscale(0.3);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.3);
}

.avatar--sad .avatar-body {
    animation: avatar-sad-shake 0.45s ease-in-out;
}

/* Радуется при успехе — + свечение */
.avatar--success {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 26px 50px rgba(37, 99, 235, 0.55);
}

.avatar--success .avatar-body {
    animation: avatar-glow 1.4s ease-in-out infinite;
}

/* "Дыхание" персонажа */
@keyframes avatar-breath {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-1px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

/* Обычное моргание */
@keyframes avatar-blink {
    0%, 88%, 92%, 100% {
        transform: scaleY(1);
    }
    90% {
        transform: scaleY(0.1);
    }
}

/* "Гуляющий" взгляд зрачков в спокойном состоянии */
@keyframes eye-wander {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(1px, 0);
    }
    50% {
        transform: translate(1px, 1px);
    }
    75% {
        transform: translate(-1px, 1px);
    }
}

/* Частое моргание со смущением + подглядывание */
@keyframes shy-blink {
    0% {
        transform: translate(5px, 2px) scaleY(1);    /* стеснительно смотрит в сторону */
    }
    60% {
        transform: translate(5px, 2px) scaleY(1);    /* всё ще в сторону, типа "я не дивлюсь" */
    }
    72% {
        transform: translate(0, 0) scaleY(1);        /* тихо подглядывает в центр */
    }
    76% {
        transform: translate(0, 0) scaleY(0.1);      /* моргнул, якобы нічого не бачив */
    }
    80% {
        transform: translate(0, 0) scaleY(1);        /* ще мить дивиться */
    }
    100% {
        transform: translate(5px, 2px) scaleY(1);    /* знову відвів погляд в сторону */
    }
}


/* Пульсация румянца */
@keyframes blush {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.6; }
}

/* Лёгкое "дрожание" при ошибке */
@keyframes avatar-sad-shake {
    0%   { transform: translateX(0) translateY(3px) scale(0.96); }
    20%  { transform: translateX(-3px) translateY(3px) scale(0.96); }
    40%  { transform: translateX(3px) translateY(3px) scale(0.96); }
    60%  { transform: translateX(-2px) translateY(3px) scale(0.96); }
    80%  { transform: translateX(2px) translateY(3px) scale(0.96); }
    100% { transform: translateX(0) translateY(3px) scale(0.96); }
}

/* Мягкое свечение при успехе */
@keyframes avatar-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
    }
    50% {
        box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
    }
}

