.critical-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: radial-gradient(ellipse 150% 100% at center,
        transparent 0%,
        transparent 35%,
        rgba(255, 59, 48, 0.015) 50%,
        rgba(255, 59, 48, 0.045) 65%,
        rgba(255, 59, 48, 0.12) 80%,
        rgba(255, 59, 48, 0.22) 100%);
    animation: overwatchCritical 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    opacity: 0;
    transition: opacity 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.critical-overlay.active {
    opacity: 1;
}

@keyframes overwatchCritical {
    0% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 38%,
            rgba(255, 59, 48, 0.008) 53%,
            rgba(255, 59, 48, 0.025) 68%,
            rgba(255, 59, 48, 0.06) 83%,
            rgba(255, 59, 48, 0.16) 100%);
        transform: scale(1) translateZ(0);
        filter: brightness(1) saturate(1) hue-rotate(0deg);
    }

    8.33% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 37%,
            rgba(255, 59, 48, 0.012) 52%,
            rgba(255, 59, 48, 0.032) 67%,
            rgba(255, 59, 48, 0.075) 82%,
            rgba(255, 59, 48, 0.20) 100%);
        transform: scale(1.002) translateZ(0);
        filter: brightness(1.004) saturate(1.015) hue-rotate(0.5deg);
    }

    16.66% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 36%,
            rgba(255, 59, 48, 0.018) 51%,
            rgba(255, 59, 48, 0.042) 66%,
            rgba(255, 59, 48, 0.095) 81%,
            rgba(255, 59, 48, 0.26) 100%);
        transform: scale(1.005) translateZ(0);
        filter: brightness(1.009) saturate(1.035) hue-rotate(1deg);
    }

    25% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 35%,
            rgba(255, 59, 48, 0.025) 50%,
            rgba(255, 59, 48, 0.055) 65%,
            rgba(255, 59, 48, 0.115) 80%,
            rgba(255, 59, 48, 0.32) 100%);
        transform: scale(1.009) translateZ(0);
        filter: brightness(1.015) saturate(1.055) hue-rotate(1.5deg);
    }

    33.33% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 34%,
            rgba(255, 59, 48, 0.032) 49%,
            rgba(255, 59, 48, 0.068) 64%,
            rgba(255, 59, 48, 0.135) 79%,
            rgba(255, 59, 48, 0.38) 100%);
        transform: scale(1.014) translateZ(0);
        filter: brightness(1.022) saturate(1.075) hue-rotate(2deg);
    }

    41.66% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 33%,
            rgba(255, 59, 48, 0.038) 48%,
            rgba(255, 59, 48, 0.08) 63%,
            rgba(255, 59, 48, 0.155) 78%,
            rgba(255, 59, 48, 0.42) 100%);
        transform: scale(1.018) translateZ(0);
        filter: brightness(1.028) saturate(1.09) hue-rotate(2.5deg);
    }

    50% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 32%,
            rgba(255, 59, 48, 0.045) 47%,
            rgba(255, 59, 48, 0.092) 62%,
            rgba(255, 59, 48, 0.175) 77%,
            rgba(255, 59, 48, 0.46) 100%);
        transform: scale(1.022) translateZ(0);
        filter: brightness(1.035) saturate(1.105) hue-rotate(3deg);
    }

    58.33% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 33%,
            rgba(255, 59, 48, 0.038) 48%,
            rgba(255, 59, 48, 0.08) 63%,
            rgba(255, 59, 48, 0.155) 78%,
            rgba(255, 59, 48, 0.42) 100%);
        transform: scale(1.018) translateZ(0);
        filter: brightness(1.028) saturate(1.09) hue-rotate(2.5deg);
    }

    66.66% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 34%,
            rgba(255, 59, 48, 0.032) 49%,
            rgba(255, 59, 48, 0.068) 64%,
            rgba(255, 59, 48, 0.135) 79%,
            rgba(255, 59, 48, 0.38) 100%);
        transform: scale(1.014) translateZ(0);
        filter: brightness(1.022) saturate(1.075) hue-rotate(2deg);
    }

    75% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 35%,
            rgba(255, 59, 48, 0.025) 50%,
            rgba(255, 59, 48, 0.055) 65%,
            rgba(255, 59, 48, 0.115) 80%,
            rgba(255, 59, 48, 0.32) 100%);
        transform: scale(1.009) translateZ(0);
        filter: brightness(1.015) saturate(1.055) hue-rotate(1.5deg);
    }

    83.33% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 36%,
            rgba(255, 59, 48, 0.018) 51%,
            rgba(255, 59, 48, 0.042) 66%,
            rgba(255, 59, 48, 0.095) 81%,
            rgba(255, 59, 48, 0.26) 100%);
        transform: scale(1.005) translateZ(0);
        filter: brightness(1.009) saturate(1.035) hue-rotate(1deg);
    }

    91.66% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 37%,
            rgba(255, 59, 48, 0.012) 52%,
            rgba(255, 59, 48, 0.032) 67%,
            rgba(255, 59, 48, 0.075) 82%,
            rgba(255, 59, 48, 0.20) 100%);
        transform: scale(1.002) translateZ(0);
        filter: brightness(1.004) saturate(1.015) hue-rotate(0.5deg);
    }

    100% {
        background: radial-gradient(ellipse 150% 100% at center,
            transparent 0%,
            transparent 38%,
            rgba(255, 59, 48, 0.008) 53%,
            rgba(255, 59, 48, 0.025) 68%,
            rgba(255, 59, 48, 0.06) 83%,
            rgba(255, 59, 48, 0.16) 100%);
        transform: scale(1) translateZ(0);
        filter: brightness(1) saturate(1) hue-rotate(0deg);
    }
}

/* Дополнительная виньетка с максимальной плавностью */
.critical-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 59, 48, 0.03) 0%,
        transparent 25%,
        transparent 75%,
        rgba(255, 59, 48, 0.03) 100%
    );
    animation: vignettePulse 6.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    opacity: 0.6;
}

@keyframes vignettePulse {
    0% {
        opacity: 0.2;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    16.66% {
        opacity: 0.35;
        transform: scale(1.005) rotate(0.3deg);
        filter: blur(0.2px);
    }
    33.33% {
        opacity: 0.5;
        transform: scale(1.01) rotate(0.6deg);
        filter: blur(0.4px);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.015) rotate(0.9deg);
        filter: blur(0.6px);
    }
    66.66% {
        opacity: 0.5;
        transform: scale(1.01) rotate(0.6deg);
        filter: blur(0.4px);
    }
    83.33% {
        opacity: 0.35;
        transform: scale(1.005) rotate(0.3deg);
        filter: blur(0.2px);
    }
    100% {
        opacity: 0.2;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Третий слой для максимальной глубины */
.critical-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse 120% 80% at center,
        transparent 60%,
        rgba(255, 59, 48, 0.02) 75%,
        rgba(255, 59, 48, 0.06) 90%,
        rgba(255, 59, 48, 0.12) 100%
    );
    animation: pulseLayer 7s cubic-bezier(0.23, 1, 0.32, 1) infinite;
    opacity: 0.4;
}

@keyframes pulseLayer {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1) rotate(0deg);
    }
    20% {
        opacity: 0.35;
        transform: scale(1.012) rotate(0.4deg);
    }
    40% {
        opacity: 0.5;
        transform: scale(1.024) rotate(0.8deg);
    }
    60% {
        opacity: 0.65;
        transform: scale(1.036) rotate(1.2deg);
    }
    80% {
        opacity: 0.5;
        transform: scale(1.024) rotate(0.8deg);
    }
}

/* Мобильная оптимизация с улучшенной плавностью */
@media (max-width: 768px) {
    .critical-overlay {
        background: radial-gradient(ellipse 140% 120% at center,
            transparent 0%,
            transparent 30%,
            rgba(255, 59, 48, 0.02) 45%,
            rgba(255, 59, 48, 0.055) 60%,
            rgba(255, 59, 48, 0.13) 75%,
            rgba(255, 59, 48, 0.25) 100%);
        animation-duration: 4.5s;
    }

    .critical-overlay::before {
        animation-duration: 6s;
    }

    .critical-overlay::after {
        animation-duration: 6.5s;
    }
}

/* Максимальная оптимизация производительности */
.critical-overlay,
.critical-overlay::before,
.critical-overlay::after {
    will-change: transform, opacity, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    contain: layout style paint;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #F2F2F7;
    color: #222;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

.stats-widget {
    display: flex;
    gap: 20px;
    margin: 40px 0 20px 0;
    justify-content: center;
    padding: 0 20px;
}

.stats-block {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(60,60,67,0.07);
    padding: 32px 24px;
    text-align: center;
    min-width: 160px;
    flex: 1;
    max-width: 200px;
}

.stats-block .stat-number {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 7px;
    color: #007AFF;
}

.kanban-board {
    display: flex;
    gap: 18px;
    margin-top: 30px;
    justify-content: center;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: calc(100vh - 200px);
    -webkit-overflow-scrolling: touch;
}

.kanban-column {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(60,60,67,0.07);
    padding: 16px;
    width: 280px;
    flex: 0 0 280px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.kanban-column h3 {
    color: #007AFF;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 8px 0;
}



.kanban-card:active {
    box-shadow: 0 4px 12px rgba(60,60,67,0.12);
}

.kanban-card .assignee {
    font-size: 0.9em;
    color: #666;
    margin-top: 6px;
    background: #E5E5EA;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.kanban-card .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    width: 20px;
    height: 20px;
    display: none;
    touch-action: manipulation;
}

.kanban-card:hover .delete-btn {
    display: block;
}

.add-card-btn {
    background: #F7F7FA;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    color: #666;
    transition: background 0.2s;
    margin-top: 8px;
    text-align: center;
    border: 2px dashed #ddd;
    touch-action: manipulation;
}

.add-card-btn:hover {
    background: #E5E5EA;
    border-color: #007AFF;
}

.add-card-form {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(60,60,67,0.1);
    border: 1px solid #007AFF;
}

.add-card-form textarea,
.add-card-form input,
.add-card-form select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    font-family: inherit;
    resize: vertical;
    font-size: 16px;
    box-sizing: border-box;
}

.add-card-form textarea {
    min-height: 60px;
}

.form-buttons {
    display: flex;
    gap: 8px;
}

.form-buttons button {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    touch-action: manipulation;
    flex: 1;
}

.form-buttons button:first-child {
    background: #007AFF;
    color: white;
}

.form-buttons button:last-child {
    background: #E5E5EA;
    color: #666;
    flex: 0 0 auto;
    width: 40px;
}

/* Мобильная адаптация */
/* Мобильная адаптация с увеличенным масштабом */
@media (max-width: 1000px) {
    body {
        font-size: 24px;
        zoom: 1;
        -webkit-text-size-adjust: 110%;
        -moz-text-size-adjust: 110%;
        text-size-adjust: 110%;
    }

    .stats-widget {
        flex-wrap: wrap;
        gap: 16px;
        margin: 24px 0 20px 0;
        padding: 0 16px;
    }

    .stats-block {
        min-width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        padding: 28px 20px;
        border-radius: 20px;
        box-shadow: 0 3px 12px rgba(60,60,67,0.1);
    }

    .stats-block .stat-number {
        font-size: 2.6em;
        margin-bottom: 8px;
    }

    .stats-block div {
        font-size: 1.1em;
        line-height: 1.4;
    }

    .kanban-board {
        gap: 0;
        margin-top: 24px;
        padding: 0;
        padding-bottom: 24px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .kanban-column {
        width: 90vw;
        flex: 0 0 80vw;

        padding: 20px 24px;
        border-radius: 0;
        max-height: calc(100vh - 200px);
        scroll-snap-align: start;
        border-left: none;
        border-right: none;
        box-shadow: none;
        background: #F2F2F7;
    }

    .kanban-column:first-child {
        padding-left: 24px;
    }

    .kanban-column:last-child {
        padding-right: 24px;
    }

    .kanban-column h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
        text-align: center;
        background: #F2F2F7;
        padding: 16px 0;
        border-radius: 16px;
        color: #007AFF;
        font-weight: 700;
    }



    .kanban-card strong {
        font-size: 1.2em;
        line-height: 1.4;
    }

    .kanban-card div {
        font-size: 1em;
        line-height: 1.4;
        margin-top: 8px;
    }

    .kanban-card .assignee {
        font-size: 1em;
        padding: 6px 12px;
        border-radius: 12px;
        margin-top: 12px;
    }

    .kanban-card .delete-btn {
        display: block;
        opacity: 0.8;
        width: 32px;
        height: 32px;
        font-size: 20px;
        background: rgba(255, 59, 48, 0.1);
        border-radius: 50%;
        color: #FF3B30;
        top: 8px;
        right: 8px;
    }

    .add-card-btn {
        padding: 20px;
        font-size: 26px;
        border-radius: 16px;
        background: #fff;
        border: 2px dashed #007AFF;
        color: #007AFF;
        font-weight: 500;
    }

    .add-card-form {
        padding: 20px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 5px 20px rgba(60,60,67,0.15);
    }

    .add-card-form textarea,
    .add-card-form input,
    .add-card-form select {
        padding: 16px;
        font-size: 18px;
        border-radius: 12px;
        border: 1px solid #E5E5EA;
        margin-bottom: 12px;
    }

    .add-card-form textarea {
        min-height: 80px;
    }

    .form-buttons button {
        padding: 16px 20px;
        font-size: 17px;
        border-radius: 12px;
        font-weight: 500;
    }

    .success-message {
        font-size: 0.9em;
        margin-top: 8px;
    }

    .warning-icon {
        font-size: 0.9em;
        right: -12px;
        top: -8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 17px;
        -webkit-text-size-adjust: 115%;
        -moz-text-size-adjust: 115%;
        text-size-adjust: 115%;
    }

    .stats-widget {
        gap: 12px;
        padding: 0 12px;
        margin: 28px 0 24px 0;
    }

    .stats-block {
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 24px 16px;
        border-radius: 18px;
    }

    .stats-block .stat-number {
        font-size: 2.4em;
        margin-bottom: 8px;
    }

    .stats-block div {
        font-size: 1em;
    }

    .kanban-board {
        gap: 0;
        padding: 0;
        padding-bottom: 24px;
        margin-top: 28px;
    }

    .kanban-column {
        width: 100vw;
        flex: 0 0 100vw;
        padding: 16px 20px;
    }

    .kanban-column:first-child {
        padding-left: 20px;
    }

    .kanban-column:last-child {
        padding-right: 20px;
    }

    .kanban-column h3 {
        font-size: 1.3em;
        margin-bottom: 16px;
        padding: 14px 0;
    }

    .kanban-card {
        padding: 18px;
        margin-bottom: 18px;
        font-size: 1em;
    }

    .kanban-card strong {
        font-size: 1.1em;
    }

    .kanban-card div {
        font-size: 0.95em;
        margin-top: 6px;
    }

    .kanban-card .assignee {
        font-size: 0.9em;
        padding: 5px 10px;
    }

    .add-card-form textarea,
    .add-card-form input,
    .add-card-form select {
        padding: 14px;
        font-size: 17px;
    }

    .form-buttons button {
        padding: 14px 18px;
        font-size: 16px;
    }
}

/* Дополнительное увеличение для очень маленьких экранов */
@media (max-width: 360px) {
    body {


    }
}

/* Индикатор прокрутки для мобильных устройств */
@media (max-width: 1000px) {
    .kanban-board::after {
        content: '';
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 5px;
        background: rgba(0, 122, 255, 0.3);
        border-radius: 3px;
        z-index: 100;
    }

    .kanban-board::-webkit-scrollbar {
        display: none;
    }
}


/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .kanban-card .delete-btn {
        display: block;
        opacity: 0.6;
    }

    .add-card-btn:hover {
        background: #F7F7FA;
        border-color: #ddd;
    }

    .add-card-btn:active {
        background: #E5E5EA;
        border-color: #007AFF;
    }
}

/* Скрытие скроллбара в webkit браузерах */
.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.kanban-column::-webkit-scrollbar {
    width: 4px;
}

.kanban-column::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-column::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.stat-danger {
    color: #FF3B30 !important;
    position: relative;
}

.stat-success {
    color: #34C759 !important;
}

.warning-icon {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 1em;
    animation: pulse 1.5s infinite;
}

.success-message {
    font-size: 0.8em;
    color: #34C759;
    font-weight: 500;
    margin-top: 5px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

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

/* Мобильная адаптация для новых элементов */
@media (max-width: 768px) {
    .success-message {
        font-size: 0.7em;
    }

    .warning-icon {
        font-size: 0.5em;
        right: -8px;
    }
}




.stats-block {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(60,60,67,0.07);
    padding: 32px 24px;
    text-align: center;
    min-width: 160px;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.print-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    opacity: 0.6;
    touch-action: manipulation;
}

.print-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    opacity: 1;
}

.print-btn:active {
    background: rgba(0, 122, 255, 0.2);
    transform: scale(0.95);
}

/* Мобильная адаптация для кнопки печати */
@media (max-width: 1000px) {
    .print-btn {
        font-size: 20px;
        top: 12px;
        right: 12px;
        padding: 8px;
    }
}

/* Добавление в style.css */
.move-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 15;
}

.kanban-card:hover .move-buttons {
    opacity: 1;
}

.move-btn {
    background: rgba(0, 122, 255, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    touch-action: manipulation;
    z-index: 20;
}

.move-btn:hover {
    background: #007AFF;
    transform: scale(1.1);
}

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

.move-left {
    left: -14px;
}

.move-right {
    right: -14px;
}

/* Обновление kanban-card для совместимости с перетаскиванием */
/* Исправление стилей для drag-and-drop */
.kanban-card {
    background: #F7F7FA;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(60,60,67,0.05);
    padding: 12px 10px;
    margin-bottom: 12px;
    cursor: grab;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    touch-action: manipulation;
    user-select: none;
}

.kanban-card[draggable="true"] {
    cursor: grab;
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing;
    z-index: 1000;
}

.kanban-column.drag-over {
    background-color: rgba(0, 122, 255, 0.1);
    border: 2px dashed #007AFF;
    border-radius: 12px;
}

/* Стили для drop zone */
.kanban-column {
    min-height: 200px;
    transition: background-color 0.2s, border 0.2s;
}
.kanban-card:active {
    box-shadow: 0 4px 12px rgba(60,60,67,0.12);
}
/* Мобильная адаптация */
@media (max-width: 1000px) {
    .move-buttons {
        opacity: 1;
        position: static;
        transform: none;
        justify-content: center;
        margin: 12px 0 8px 0;
        gap: 12px;
        z-index: auto;
    }

    .move-btn {
        width: 72px;
        height: 72px;
        font-size: 32px;
        position: static;
        z-index: auto;
    }

    .kanban-card {
        padding: 16px 20px 20px 20px;
    }

    /* На мобильных устройствах отключаем drag-and-drop для лучшего UX */
    .kanban-card {
        draggable: false;
        cursor: default;
    }
}

@media (max-width: 480px) {
    .move-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}


@keyframes moveSuccess {
    0% {
        transform: scale(1) translateY(0);
        background: #F7F7FA;
    }
    50% {
        transform: scale(1.02) translateY(-2px);
        background: #E8F5E8;
        box-shadow: 0 4px 12px rgba(60,60,67,0.15);
    }
    100% {
        transform: scale(1) translateY(0);
        background: #F7F7FA;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}


/* Overlay и модальное окно */
.print-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.print-overlay.active {
    opacity: 1;
    visibility: visible;
}

.print-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.print-overlay.active .print-modal {
    transform: scale(1);
}

.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E5EA;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #007AFF;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.action-buttons {
    display: none;
    gap: 12px;
    margin-top: 20px;
}

.action-buttons.show {
    display: flex;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn {
    background: #007AFF;
    color: white;
}

.download-btn:hover {
    background: #0056CC;
}

.print-office-btn {
    background: #34C759;
    color: white;
}

.print-office-btn:hover {
    background: #28A745;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}

/* Мобильная адаптация */
@media (max-width: 1000px) {
    .print-modal {
        padding: 25px 20px;
        max-width: 350px;
    }

    .action-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.error-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
}