.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjtxNTAgNTIgMjY1LjoxMyA1Mi40ODM3IDI2Ni42MDYgNTIuMjY1OEwyNjcuMDUyIDU0LjI3ODcgMjY3LjUzOSA1NS42MjgzIDI5MC4xODUgOTIuMTgzMSAyOTAuNTQ1IDkyLjc5NSAyOTAuNjU2IDkyLjk5Nk MyOTAuODc3IDkzLjUxMyAyOTEgOTQuMDgxNSAyOTEgOTQuNjc4MiAyOTEgOTcuMDY1MSAyODkuMDM4IDk5IDI4Ni42MTcgOTlMMjQwLjM4MyA5OUMyMzcuOTYzIDk5IDIzNiA5Ny4wNjUxIDIzNiA5NC42NzgyIDIzNiA5NC4zNzk5IDIzNi4wMzEgOTQuMDg4NiAyMzYuMDg5IDkzLjgwNzJMMjM2LjMzOCA5My4wMTYyIDIzNi44NTggOTIuMTMxNCAyNTkuNDczIDUzLjYyOTQgMjU5Ljk2MSA1Mi43OTg1IDI2MC40MDcgNTIuMjY1OEMyNjEuMiA1MS40ODM3IDI2Mi4yOTYgNTEgMjYzLjUwNiA1MVpNMjYzLjU4NiA2Ni4wMTgzQzI2MC43MzcgNjYuMDE4MyAyNTkuMzEzIDY3LjEyNDUgMjU5LjMxMyA2OS4zMzcgMjU5LjMxMyA2OS42MTAyIDI1OS4zMzIgNjkuODYwOCAyNTkuMzcxIDcwLjA4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3LjA3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA3Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ==========================================
   ИДЕАЛЬНЫЕ СИНХРОННЫЕ МАЯТНИКИ BERRY GROOMING 
   ========================================== */

@keyframes alternateMarqueeMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1620px);
    }
}

@keyframes verticalAlternateMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-140px);
    }
    /* Скорректировали шаг под новую высоту */
}

.custom-marquee-wrapper {
    display: flex !important;
    width: max-content !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    animation: alternateMarqueeMove 45s linear infinite alternate !important;
    will-change: transform;
}

.custom-vertical-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: max-content !important;
    animation: verticalAlternateMove 20s linear infinite alternate !important;
    will-change: transform;
}

.marquee-left-container:hover .custom-vertical-wrapper {
    animation-play-state: paused !important;
}

.marquee-right-container:hover .custom-marquee-wrapper {
    animation-play-state: paused !important;
}

.custom-marquee-container {
    display: flex !important;
    gap: 24px !important;
    flex-shrink: 0 !important;
    width: 1620px !important;
    min-width: 1620px !important;
    padding: 10px 0;
}

.marquee-card {
    flex-shrink: 0;
    width: 300px;
    position: relative;
}

.card-inner {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card:hover .card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
    border-color: #e5e7eb;
}

.card-image-box {
    height: 230px;
    overflow: hidden;
    background-color: #f9fafb;
}
    /* Немного уменьшили высоту картинки для идеального баланса текста */
    .card-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

.marquee-card:hover .card-image-box img {
    transform: scale(1.08);
}

.card-info {
    padding: 16px;
    background-color: #ffffff;
}

.card-tag {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-style: italic;
}

.card-text {
    color: #1f2937;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.4;
}

/* ==========================================
   ПРЕМИУМ-КАРТОЧКИ УСЛУГ BERRY GROOMING 
   ========================================== */

/* 1. Эффект Shimmer (алмазный блик для кнопок) */
@keyframes premiumBtnShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-btn-shimmer {
    position: relative;
    overflow: hidden;
}

    .animate-btn-shimmer::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
        transform: translateX(-100%);
        animation: premiumBtnShimmer 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    }

/* 2. Мягкий фокус и сочность для картинок */
.premium-breed-img {
    filter: grayscale(10%) contrast(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-service-card:hover .premium-breed-img {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.04) rotate(0.5deg);
}
/* Роскошный парящий голубой кокон для секции наград и услуг */
.premium-services-bg {
    background: linear-gradient(180deg, #F2F8FF 0%, #F7FAFF 50%, #F2F8FF 100%) !important;
    border: 1px solid rgba(37, 99, 235, 0.08) !important;
    border-radius: 3.5rem !important;
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.03) !important;
}
/* ========================================================================= */
/* ЛЮКСОВАЯ КНОПКА-КАПСУЛА BERRY GROOMING (МЯГКАЯ МАСЛЯНАЯ ЗАЛИВКА)          */
/* ========================================================================= */
.premium-all-services-btn {
    position: relative;
    background: #ffffff !important;
    color: #2563eb !important; /* Твой фирменный синий */
    border: 1px solid rgba(37, 99, 235, 0.16) !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.02) !important;
    overflow: hidden;
    z-index: 1;
    /* Задали ультра-плавный спуск назад при уходе мыши */
    transition: color 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

    /* Роскошная скользящая шторка-градиент */
    .premium-all-services-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 102%;
        height: 100%;
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        /* Изначально шторка полностью спрятана слева */
        transform: translateX(-100%);
        /* Масляный тайминг для скольжения шторки в обе стороны */
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
        z-index: -1;
    }

    /* Ховер состояние: плавно наплывает градиент и загорается мягкий неон */
    .premium-all-services-btn:hover {
        color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16) !important;
        transform: translateY(-2px);
    }

        /* Шторка плавно накрывает всю кнопку */
        .premium-all-services-btn:hover::before {
            transform: translateX(0);
        }

    /* Легкий алмазный микро-блик, который бежит поверх синего при наведении */
    .premium-all-services-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
        transform: translateX(-100%);
        z-index: 2;
    }

    .premium-all-services-btn:hover::after {
        transform: translateX(100%);
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }


/* ==========================================
   СТАБИЛЬНЫЙ СЛАЙДЕР КОМАНДЫ ДЛЯ ЛЮБОГО КОЛИЧЕСТВА МАСТЕРОВ
   ========================================== */
.team-slider-track {
    display: flex !important;
    width: max-content !important; /* Автоматически растянется под 50 мастеров */
    flex-wrap: nowrap !important;
    gap: 24px !important;
    will-change: transform;
    /* Плавный и дорогой сдвиг при нажатии на твои стрелки */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-team-card {
    width: 280px !important;
    flex-shrink: 0 !important;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

    .premium-team-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(37, 99, 235, 0.06) !important;
        border-color: rgba(37, 99, 235, 0.15) !important;
    }

.team-card-img-box {
    height: 340px;
    overflow: hidden;
    background-color: #f9fafb;
    position: relative;
}

    .team-card-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

.premium-team-card:hover .team-card-img-box img {
    transform: scale(1.05);
}

.team-card-info {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #f9fafb;
}

.premium-team-img {
    filter: grayscale(12%) contrast(0.96);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-team-card:hover .premium-team-img {
    filter: grayscale(0%) contrast(1.04);
    transform: scale(1.04);
}

/* ==========================================
   ИДЕНТИЧНЫЙ ПРЕМИУМ-ПОЛЗУНОК ДЛЯ ШТОРКИ ДО/ПОСЛЕ
   ========================================== */
.relative.w-full.h-80 .absolute.top-0.bottom-0.w-0.5 {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
}

    /* Создаем аккуратный белый диск со стрелочками на чистом CSS */
    .relative.w-full.h-80 .absolute.top-0.bottom-0.w-0.5::after {
        content: '↔' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        width: 36px !important;
        height: 36px !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        color: #2563eb !important; /* Твой фирменный синий */
        font-size: 16px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        pointer-events: none !important; /* Важно: пропускает клики сквозь себя на линию! */
    }

/* Элегантное увеличение диска при наведении на карточку */
.relative.w-full.h-80:hover .absolute.top-0.bottom-0.w-0.5::after {
    transform: translate(-50%, -50%) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2) !important;
}

/* ========================================================================= */
/* ПРЕМИУМ-ИНТЕРАКТИВ ДЛЯ КАРТОЧЕК БЛОГА BERRY GROOMING                      */
/* ========================================================================= */

/* 1. Эффект «Парящего глянца»: карточка взлетает и зажигает синий неон */
#blog article {
    border: 1px solid #f3f4f6 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

    #blog article:hover {
        transform: translateY(-8px) !important;
        border-color: rgba(37, 99, 235, 0.15) !important;
        box-shadow: 0 25px 60px rgba(37, 99, 235, 0.06) !important;
    }

    /* 2. Кинематографичный зум: картинка внутри бокса плавно увеличивается */
    #blog article .overflow-hidden img {
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    #blog article:hover .overflow-hidden img {
        transform: scale(1.05) !important;
    }

    /* 3. Интерактивная стрелка «Читать полностью»: мягкий вылет вправо */
    #blog article:hover .group\/link svg {
        transform: translateX(5px) !important;
    }

    #blog article .group\/link svg {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
