.container2 { max-width: 600px; margin: 0 auto; font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;  color: #333; line-height: 2.6; 
text-align:left; margin: 0 auto; 	 align-items: center;
    justify-content: center; }


.task-item { background: white; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }


.date { color: #888; font-size: 0.85em; }
.prompt { background: #f9f9f9; padding: 10px; border-left: 4px solid #0066ff; margin: 10px 0; font-weight: bold; }
.sol-text { background: #fff; border: 1px solid #eee; padding: 15px; border-radius: 4px; margin-top: 10px; line-height: 2.6;  }
.copy-btn { background: #0066ff; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; margin-top: 10px; }
.copy-btn:hover { background: #004ecc; }
.footer1 { text-align: center; margin-top: 40px; color: #777; font-size: 0.9em; }


		
.bookmark-btn { 
    display: block; 
    margin: 0 auto 20px auto; 
    background: #fff; 
    border: 1px solid #ccc; 
    padding: 10px 20px; 
    border-radius: 20px; 
    cursor: pointer; 
    color: #555;
    transition: 0.3s;
}
.bookmark-btn:hover { background: #f0f0f0; border-color: #999; }



/* Контейнер блока ожидания */
.patience-container {
    display: block;
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed #007bff;
    background: #f0f7ff;
    border-radius: 8px;
    font-family: sans-serif;
}

.patience-title {
    margin-top: 0;
    color: #0056b3;
    font-weight: bold;
}

.patience-text {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

/* Секция с копированием ссылки */
.share-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.share-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #007bff;
    border-radius: 6px;
    font-size: 0.85em;
    background: #fff;
}

.share-copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.share-copy-btn:hover {
    background: #0056b3;
}

/* Кнопки соцсетей */
.social-links-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
	 align-items: center;
    justify-content: center;
	
}

.social-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s, opacity 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
	text-decoration:none;
}

.social-btn.tg { background: #0088cc; }
.social-btn.vk { background: #4c75a3; }
.social-btn.ok { background: #ed812b; }

.social-btn-text {
    font-weight: bold;
    font-size: 14px;
	color:#fff;
}

/* Подвал блока */
.patience-footer {
    font-size: 0.8em;
    color: #888;
    margin-top: 15px;
    border-top: 1px solid #d0e7ff;
    padding-top: 10px;
}



.mobile-hint {
    display: none; /* По умолчанию скрыто */
    font-size: 0.85em;
    color: #0056b3;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;

}

/* Показываем только на экранах меньше 768px */
@media (max-width: 768px) {
    .mobile-hint {
        display: block;
    }
    .desktop-hint {
        display: none; /* Скрываем Ctrl+D на смартфонах */
    }
}
    
	
.container3 { 
            max-width: 900px; 
            margin: 0 auto; 
            font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;  
            color: #333; 
            line-height: 1.6; 
            text-align: left; 
            padding: 0 15px;
        }

        .task-item { 
            background: white; 
            border-radius: 8px; 
            padding: 20px; 
            margin-bottom: 20px; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
        }

        /* Шапка: H1 и селектор в одну строку */
        .header-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f2f5;
            padding-bottom: 12px;
        }

        .task-item h1 {
            font-size: 24px;
            margin: 0;
            color: #1a1a1a;
            border: none;
            padding: 0;
        }

        .pp-subject-list {
            margin: 0;
        }

        #pp-subjects {
            padding: 8px 14px;
            border-radius: 6px;
            border: 1px solid #007bff;
            background: #fff;
            font-size: 14px;
            cursor: pointer;
        }

        /* Таблица с защитой от обрезания текста на 100% */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin-top: 15px;
        }

        .task-item table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .task-item th, 
        .task-item td {
            padding: 12px 10px;
            text-align: left;
            border-bottom: 1px solid #eee;
            vertical-align: top;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .task-item th {
            background-color: #f8f9fa;
            color: #333;
            font-weight: bold;
            font-size: 15px;
        }

        .col-num { width: 50px; }
        .col-text { width: 35%; }
        .col-math { width: calc(65% - 50px); }

        .task-item td a {
            color: #0066ff;
            text-decoration: none;
        }

        .task-item td a:hover {
            text-decoration: underline;
        }

        .math-preview {
            width: 100%;
            overflow-x: auto;
            font-size: 1em;
        }

        /* Пагинация */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            margin-top: 25px;
            flex-wrap: wrap;
            font-size: 0.9em;
        }

        .pagination span {
            color: #666;
        }

        .pagination a, 
        .pagination span.active {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
            padding: 0 6px;
            border-radius: 4px;
            text-decoration: none;
            border: 1px solid #ddd;
            color: #0066ff;
            background-color: #fff;
        }

        .pagination span.active {
            background-color: #0066ff;
            border-color: #0066ff;
            color: #fff;
        }

        /* Мобильная адаптивность */
        @media (max-width: 768px) {
            .container2 {
                padding: 0 5px;
            }
            .task-item {
                padding: 12px;
            }
            .header-flex {
                flex-direction: column;
                align-items: flex-start;
            }
            #pp-subjects {
                width: 100%;
            }
            .task-item h1 {
                font-size: 20px;
            }
            .task-item table, .task-item thead, .task-item tbody, .task-item th, .task-item td, .task-item tr {
                display: block;
            }
            .task-item thead {
                display: none;
            }
            .task-item tr {
                margin-bottom: 15px;
                border: 1px solid #ddd;
                border-radius: 6px;
                padding: 10px;
                background: #fff;
            }
            .task-item td {
                display: block;
                border: none;
                padding: 6px 0;
                width: 100% !important;
            }
            .col-num {
                font-weight: bold;
                color: #888;
                border-bottom: 1px solid #eee !important;
                margin-bottom: 6px;
                padding-bottom: 4px !important;
            }
        }

.task-item td a,
td.col-text a {
    color: #0066ff;
    text-decoration: none;
}

.task-item td a span,
td.col-text a span {
    color: inherit;
}