.course-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15) !important;
}

.math-gradient {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.geometry-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
}

.logic-gradient {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.russian-gradient {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.test-gradient {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
}

.course-header {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.course-icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.course-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

.course-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.course-content p {
    margin-bottom: 0;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
}

.topics-list {
    display: flex;
    flex-direction: column;
}

.topic-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.topic-dot {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.btn-study {
    font-weight: 500;
    border-radius: 0.6rem;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: default;
    transition: none;
}

.btn-study-two {
    font-weight: 500;
    width: 100%;
    border-radius: 0.6rem;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: default;
    transition: none;
}

.btn-study-imp {
    width: 130px; !important;
}

.btn-study-imp-2 {
    width: 170px; !important;
}

.btn-edit {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-delete {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}


.btn-unified {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
                      linear-gradient(135deg, #7c5ce3, #2563eb);
    background-origin: border-box;
    background-clip: text, border-box;
    -webkit-background-clip: text, border-box;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    user-select: none;
    transition: all 0.3s ease;

}

.btn-unified:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 92, 227, 0.3);
    background-color: rgba(124, 92, 227, 0.08);
}

.gradient-btn {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #2563eb 0%, #7c5ce3 100%);
    color: #fff;
    font-weight: 500;
}

.gradient-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #9b7ce3 100%);
    color: #fff;
}

.icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover .icon-container {
    transform: scale(1.1);
}

.icon-container.blue {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.icon-container.green {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.icon-container.purple {
    background-color: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}

.icon-container.red {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.bii {
    font-size: 1.8rem;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: #4a4a4a;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.stats-item i {
    font-size: 1.5rem;
}

.stats-item:nth-child(1) i {
    color: #3b82f6;
}

.stats-item:nth-child(2) i {
    color: #a855f7;
}

.stats-item:nth-child(3) i {
    color: #facc15;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/*консультация*/
#consultModal .modal-dialog {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    max-width: 400px;
    width: 100%;
}

#consultModal .modal-content {
    min-height: auto;
    overflow-y: auto;
    border-radius: 16px 0 0 16px;
    border: none;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

#consultModal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
}

#consultModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

#consultModal .modal-body {
    padding: 24px;
}

#consultModal.fade .modal-dialog {
    transform: translateY(-50%) translateX(100%);
    transition: transform 0.3s ease-out;
}

#consultModal.fade.show .modal-dialog {
    transform: translateY(-50%) translateX(0);
}

.consult-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-consult {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2563eb 0%, #7c5ce3 100%) !important;
    color: white !important;
    border: none;
}

.btn-consult:hover {
    background: linear-gradient(135deg, #7c5ce3 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

#consultForm .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

#consultForm .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

#consultForm .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#consultForm textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.send-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c5ce3 100%);
    border: none;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: linear-gradient(135deg, #7c5ce3 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Облачко с уведомлением */
.notification-bubble {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 32px 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-bubble.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.notification-bubble.success {
    border: 3px solid #10b981;
}

.notification-bubble.error {
    border: 3px solid #ef4444;
}

.notification-bubble .icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.notification-bubble.success .icon {
    color: #10b981;
}

.notification-bubble.error .icon {
    color: #ef4444;
}

.notification-bubble .message {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #1f2937;
}

/*бегущая строка*/

.ticker-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ticker-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.ticker-wrapper {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-content.clone {
    animation: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    gap: 12px;
}

.ticker-item i {
    font-size: 24px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ticker-separator {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 25px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ticker-section {
        padding: 16px 0;
    }

    .ticker-item {
        font-size: 14px;
        padding: 0 20px;
    }

    .ticker-item i {
        font-size: 20px;
        width: 38px;
        height: 38px;
        padding: 8px;
    }

    .ticker-separator {
        margin: 0 15px;
    }
}

/* ===== СТИЛЬ МОДАЛЬНОГО УВЕДОМЛЕНИЯ ===== */
.streak-modal .modal-content {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.streak-modal .modal-header {
    border: none;
    justify-content: center;
    position: relative;
    padding-bottom: 0;
}

.streak-modal .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-top: 10px;
}

.streak-modal .modal-body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 15px 10px;
}

.streak-modal .highlight {
    font-weight: 700;
    color: #ffd700;
}

.streak-modal .btn-primary {
    background: linear-gradient(135deg, #2563eb 50%, #7c3aed 50%);
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.streak-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.streak-modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.streak-modal .btn-close:hover {
    opacity: 1;
}

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

.tooltip .tooltip-inner {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 1px 12px !important;
    font-size: 0.9rem;
}

.premium-tooltip .tooltip-inner {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 0 12px !important;
    font-size: 0.8rem;
}

.tooltip .tooltip-arrow::before {
    border-bottom-color: #3b82f6 !important;
}

.modal-overlay-sub {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay-sub.show {
  opacity: 1;
  visibility: visible;
}

.modal-content-sub {
  width: 420px;
  max-width: 90%;
  background: #fff;
  padding: 32px 36px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);

  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-overlay-sub.show .modal-content-sub {
  transform: scale(1);
  opacity: 1;
}

.modal-content-sub.small {
  width: 360px;
}

.modal-title-sub {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.modal-text-sub {
  font-size: 16px;
  line-height: 1.45;
  color: #555;
  margin-bottom: 28px;
}

.modal-actions-sub {
  display: flex;
  justify-content: center;
}

#closeSubscriptionInfoModal {
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  background-color: #007bff;
  color: #fff;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

#closeSubscriptionInfoModal:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
    .adaptive-center-btn {
        display: block !important;
        margin: 0 auto !important;
        max-width: 228px;
    }
}

@media (max-width: 768px) {
    .adaptive-center-btn-one {
        display: block !important;
        margin: 0 auto !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 228px;
    }
}

@media (min-width: 769px) {
    .adaptive-center-btn {
        display: inline-flex !important;
        margin: 0 !important;
        max-width: none;
    }
}
