/* Modern CSS */
:root {
    --primary: #2563eb;
    --secondary: #4f46e5;
    --dark: #1e293b;
    --light: #f8fafc;
    --container-width: 80%;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.navbar {
    /*background: white; */
    padding: 1rem 10rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(248, 250, 252, 0.8);
    z-index: 1000;
}

.inter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

a:hover {
    background: rgba(0,0,0,0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6rem 0 4rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-wrapper {
    margin: 2rem auto;
    max-width: 400px;
    text-align: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-primary .btn-outline {
    background: white;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    border: 2px solid var(--primary);
}


.btn-outline {
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--light);
}

.section {
    padding: 3rem 10rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.detail:hover {
    transform: translateY(-5px);
}

.profile-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Participation Section */
.participation-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 0 auto;
    max-width: 1200px;
}

.benefits-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-box {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    margin: 2rem 0;
    color: white;
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-gradient:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.contact-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
    justify-content: center;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.instruction-attention {
    font-weight: 500;
}


/* Auth Section */
.auth-section {
    padding: 4rem 0;
}

.auth-card {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;

    margin-bottom: 1.5rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #64748b;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Specific Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .progress-grid {
        grid-template-columns: 1fr;
    }
}

.progress-card, .stats-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
}

.progress-item.completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-left: auto;
}

.start-card {
    text-align: center;
    padding: 2rem;
    background: rgba(0,123,255,0.05);
    border-radius: 12px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.progress-bar {
    width: 60%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.fa-check-circle {
    color: #28a745;
}

/* Questionnaire Specific Styles */
.questionnaire-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.questionnaire-header {
    text-align: center;
    margin-bottom: 2rem;
}

.question-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.question-text {
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.question-number {
    color: var(--primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.response-scale {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.radio-label {
    display: block;
    width: 80%;
    height: 3rem;
    padding: 0.8rem;
    text-align: center;
    align-content: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"]:checked + .radio-label {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.form-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* IGT Specific Styles */
.task-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.task-progress {
    display: flex;
    justify-content: center; /* Horizontal centering */
    gap: 2rem;
    margin: 2rem auto; /* Vertical spacing */
    padding: 1rem;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    max-width: 400px; /* Constrain width for better centering */
}

.progress-bar {
    width: 60%;
    margin: 0 auto; /* Center horizontally */
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-task-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
}

.progress-task-item span{
    margin-right: 1rem;
}

.decks-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin: 2rem auto;
    max-width: 800px;
    padding: 1rem;
}

.deck-card {
    width: 160px;
    height: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #e2e8f0;
}

.deck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.deck-card::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.deck-label {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

/* Different colors for different decks */
.deck-card[onclick*="A"] { --primary: #dc2626; } /* Red */
.deck-card[onclick*="B"] { --primary: #2563eb; } /* Blue */
.deck-card[onclick*="C"] { --primary: #16a34a; } /* Green */
.deck-card[onclick*="D"] { --primary: #9333ea; } /* Purple */

.deck-card.selected {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-body {
    overflow-y: auto;
    padding: 1rem;
    margin: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

.modal-footer {
    padding-top: 1rem;
    margin-top: auto; /* Pushes footer to bottom */
    text-align: right;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.text-success { color: #28a745; }
.text-danger { color: #dc3545; }

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
}

.result-item.total {
    font-weight: 600;
    background: rgba(0,123,255,0.1);
}

/* IGT Specific Styles */
.igt-page {
    height: 100vh;
    overflow: hidden;

}

.igt-page .section {
    height: calc(100vh - 76px);
    padding: 3rem 10rem;
}

.igt-page .task-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.igt-page .decks-grid {
    flex-grow: 1;
    gap: 1rem;
    padding: 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.igt-page .deck-card {
    width: 140px;
    height: 200px;
}

.igt-page .deck-card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.igt-page .progress-bar {
    margin: 0.5rem auto;
    width: 90%;
}

.igt-page .task-progress {
    margin: 0.5rem 0;
    padding: 0.5rem;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.igt-page .progress-task-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .igt-page .section {
        padding: 1.5rem 1rem;
        height: auto; /* снимаем ограничение по высоте */
    }

    .igt-page {
        /* height: 100vh; */ /* удалить */
        overflow-x: hidden; /* вместо overflow: hidden */
    }

    .modal-content {
        padding: 1.5rem;
    }

    .btn-primary.btn-block {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .modal-body {
        font-size: 1rem;
    }

    .igt-page .decks-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
        padding: 0.5rem;
    }

    .igt-page .deck-card {
        width: 40vw;
        height: 25vh;
        max-width: 140px;
        max-height: 180px;
    }

    .igt-page .deck-label {
        font-size: 2rem;
    }

    .igt-page .progress-task-item span {
        margin-right: 0.5rem;
    }

    .modal h3 {
        font-size: 1.2rem;
    }

    .result-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-item span {
        display: block;
        margin: 0.3rem 0;
    }

    .igt-page .task-progress {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0.1rem;
        margin-bottom: 0.1rem;
    }

    .igt-page .progress-task-item {
        flex: 1 1 120px;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.2rem;
        background: none;
    }
}

/* Modal positioning */
.igt-page .modal-content {
    top: 50%;
    transform: translate(-50%, -50%);
}

/* CCT Cold Specific Styles */
.task-info-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 400px; /* Constrain width for better centering */
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    justify-content: center; /* Center horizontally */
    padding: 0.5rem 1rem;
    width: 100%;
}

.info-item strong {
    margin-left: 0.5rem; /* Balanced spacing instead of auto */
    color: var(--primary);
    font-weight: 600;
    font-size: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.cct-card {
    aspect-ratio: 3/4;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.2s ease;
}

.cct-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.number-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.5rem;
    max-width: 800px;
    margin: 2rem auto;
}

.number-card {
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.number-card:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.number-card:active {
    transform: scale(0.98);
}

.balloon-container {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

/* CCT Cold Specific Styles */
.cct-cold-page {
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.cct-cold-page .section {
    height: calc(100vh - 76px);
    padding: 1rem 10rem;
}

.cct-cold-page .task-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cct-cold-page .task-info-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    max-width: none;
    padding: 0.1rem;
    margin:0;
}

.cct-cold-page .number-selector {
    grid-template-columns: repeat(17, 1fr);
    gap: 0.2rem;
    padding-bottom: 0.5rem;
    margin: 0.5rem 0;
    max-width: none;
}

.cct-cold-page .cards-grid {
    flex-grow: 1;
    grid-template-columns: repeat(16, 1fr);
    gap: 0.3rem;
    max-width: 800px;
}

.cct-cold-page .cct-card {
    aspect-ratio: 1;
    padding: 0.2rem;
    font-size: 0.8rem;
}

.cct-cold-page .cct-card {
    aspect-ratio: 0.8;
    border-width: 1px;
    }

.cct-cold-page .cct-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: cover;
}

.cct-cold-page .feedback-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cct-cold-page .section {
        padding: 0.5rem !important;
        height: calc(100vh - 60px) !important;
    }

    .cct-cold-page .task-info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.2rem;
        padding: 0.2rem;
        margin: 0.2rem 0;
        font-size: 0.6rem;
    }

    .cct-cold-page .info-item {
        flex-direction: column;
        align-items: center;
        padding: 0rem;
        text-align: center;
    }

    .cct-cold-page .info-item i {
        font-size: 0.9rem !important;
    }

    .cct-cold-page .info-item strong {
        font-size: 0.9rem;
        margin-left: 0;
    }

    .cct-cold-page .number-selector {
        grid-template-columns: repeat(8, 1fr);
        gap: 0.2rem;
        padding: 0.3rem;
        margin: 0.5rem 0;
    }

    .number-card {
        padding: 0.4rem;
        font-size: 0.8rem;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cct-cold-page .cards-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .cct-cold-page .cct-card {
        aspect-ratio: 0.8;
        border-width: 1px;
    }

    .cct-cold-page .cct-card img {
        max-width: 80%;
        max-height: 80%;
        object-fit: cover;
    }

    .feedback-message {
        bottom: 70px !important;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    /* Container adjustments */
    .cct-cold-page .task-card {
        gap: 0.5rem;
        padding-bottom: 80px; /* Space for feedback */
    }




}


.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/*@keyframes balloon-pump {*/
/*    0% { transform: scale(1); }*/
/*    50% { transform: scale(1.05); }*/
/*    100% { transform: scale(1); }*/
/*}*/

/*.balloon-pumped {*/
/*    animation: balloon-pump 0.3s ease;*/
/*}*/

/* BART specific styles */
.bart-page {
    height: 100vh;
    overflow: hidden;
}

.bart-page .section {
    height: calc(100vh - 76px);
    padding: 3rem 10rem;
}

.bart-page .task-card {
    display: grid;
    grid-template-areas: "buttons balloon taskinfo";
    grid-template-columns: auto 1fr auto;  /* auto width for buttons and info; balloon gets the remaining space */
    gap: 2rem;
    height: calc(100vh - 150px);
    align-items: center;
}

.bart-page .balloon-container {
    grid-area: balloon;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
    max-height: 70vh;
    margin: 0;
}

.bart-page .task-info-grid {
    grid-area: taskinfo;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: fit-content;
    align-items: center;
    justify-content: center;
}

.bart-page .info-item strong {
    font-size: 0.95rem;
}

.bart-page .action-buttons {
    grid-area: buttons;
    display: flex;
    flex-direction: column;  /* buttons will stack vertically */
    gap: 1rem;
    padding: 1rem 0;
    background: transparent;
    box-shadow: none;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
}

.bart-page #pump-button,
.bart-page #cash-out-button {
    padding: 1.5rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    width: 100%;
    border: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bart-page #pump-button:hover,
.bart-page #cash-out-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bart-page .section {
        padding: 0 !important;
        height: calc(100vh - 120px) !important;
        padding-bottom: 80px !important; /* Отступ для кнопок */
    }

    .bart-page .task-card {
        grid-template-areas:
            "progress"
            "balloon"
            "info";
        gap: 1rem;
        height: auto;
        padding-bottom: 90px;
    }

    .bart-page .progress-bar {
        width: 80%;
        height: 8px;
        margin: 0.5rem auto;
    }

    .bart-page .balloon-container {
        min-height: 40vh;
        max-height: 50vh;
        margin: 1rem 0;
    }

    #balloon {
        max-width: 65vw !important;
        max-height: 65vh !important;
    }

    .bart-page .task-info-grid {
        grid-area: info;
        display: grid;
        /*grid-template-columns: repeat(2, 1fr);*/
        /*gap: 0.5rem;*/
        /*padding: 1rem;*/
        /*margin: 0;*/
        box-shadow: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.2rem;           /* уменьшаем промежуток между элементами */
        padding: 0.3rem;        /* уменьшаем внутренние отступы */
        margin-bottom: 0.5rem;   /* уменьшаем отступ снизу */
        font-size: 0.75rem;
    }

    .bart-page .info-item {
        /*flex-direction: column;*/
        /*text-align: center;*/
        /*padding: 0.5rem;*/
        flex-direction: column;
        align-items: center;
        padding: 0.2rem;
    }

    .bart-page .info-item i {
        font-size: 0.9rem !important;
    }

    .bart-page .info-item span {
        font-size: 0.65rem;
        text-align: center;
    }

    .bart-page .info-item strong {
        font-size: 0.8rem;
    }

    .bart-page .action-buttons {
        /*flex-direction: row;*/
        position: fixed;
        /*bottom: 0;*/
        left: 0;
        right: 0;
        /*padding: 1rem;*/
        /*gap: 0.5rem;*/
        background: white;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        z-index: 100;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem;
        bottom: 0;
        margin-bottom: 0;
    }

    .bart-page #pump-button,
    .bart-page #cash-out-button {
        /*padding: 1rem;*/
        /*font-size: 1rem;*/
        /*width: 100%;*/
        /*order: 1;*/
        padding: 0.8rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .bart-page .action-buttons p {
        display: none; /* Скрываем текстовые подсказки */
    }


}

/* CCT-hot */
.hot-card {
    position: relative;
    overflow: hidden;
}

.hot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 8px;
}

.task-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#end-turn {
    background: var(--secondary); /* Use your secondary color */
    color: white;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    border: none;
}

#end-turn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    background: #4338ca; /* Darker shade of secondary */
}

#end-turn:active {
    transform: scale(0.98);
}

#end-turn::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

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

#end-turn:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

#end-turn:disabled::after {
    display: none;
}

/* CCT Hot Specific Styles */
/* CCT Hot Specific Styles */
.cct-hot-page {
    height: 100vh;
    overflow: hidden;
}

.cct-hot-page .navbar {
    padding: 0.2rem 10rem !important;

}

.cct-hot-page .section {
    /*height: calc(100vh - 250px);*/
    /*padding: 1rem 0;*/
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.cct-hot-page .container {
    /*height: calc(100vh - 250px);*/
    /*padding: 1rem 0;*/
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cct-hot-page .task-card {
    height: calc(100vh - 150px);
    /*display: flex;*/
    /*flex-direction: column;*/
    /*grid-template-areas: "buttons cards taskinfo";*/
    /*grid-template-columns: auto 1fr auto;*/
    ;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "buttons cards taskinfo";
    gap: 2rem;
    align-items: center;
}

.cct-hot-page .task-info-grid {
    /*grid-template-columns: repeat(4, 1fr);*/
    /*gap: 0.5rem;*/
    /*margin: 0.5rem 0;*/
    /*padding: 0.5rem;*/
    /*max-width: none;*/
    /*grid-area: taskinfo;*/
    grid-area: taskinfo;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 250px;
    padding: 1rem;
    border-radius: 8px;
}

.cct-hot-page .cards-grid {
    /*flex-grow: 1;*/
    /*grid-template-columns: repeat(8, 1fr);*/
    /*gap: 0.3rem;*/
    /*margin: 0.5rem auto;*/
    /*max-width: 800px;*/
    /*height: 100%;*/
    /*grid-area: cards;*/
    grid-area: cards;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.2rem !important;
    margin: 0 auto;
    padding: 0;
    grid-auto-rows: minmax(0, 1fr);
    height: 100%;
}

.cct-hot-page .hot-card {
    /*padding: 0.2rem;*/
    padding: 0;
    aspect-ratio: 3/4;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 100%;
    overflow: hidden;
}

.cct-hot-page .task-controls {
    /*margin-top: auto;*/
    /*padding: 1rem 0;*/
    /*grid-area: buttons;*/
    grid-area: buttons;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
}

.cct-hot-page .points-display {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
}

.cct-hot-page #end-turn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cct-hot-page {
        height: 100%;
        overflow: hidden;
    }

    .cct-hot-page .navbar {
        padding: 1rem !important;
    }

    .cct-hot-page .section {
        flex-direction: column;
        padding: 1rem 0;
        height: 100%;
        width: 100%;
    }

    .cct-hot-page .container {
        padding: 0;
    }

    .cct-hot-page .task-card {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 0rem;
        padding: 1rem;
    }

    .cct-hot-page .task-controls,
    .cct-hot-page .task-info-grid {
        width: 100%;
        padding: 1rem;
    }

    .cct-hot-page .task-controls {
        order: 3;
        margin: 0;
    }

    .cct-hot-page .task-controls p {
        display: none;
    }

    .cct-hot-page .task-info-grid {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.2rem;
        margin: 0;
    }

    .cct-hot-page .info-item {
        gap: 0.2rem;
        padding: 0;
    }

    .cct-hot-page .info-item strong {
        font-size: 0.95rem;
    }

    .cct-hot-page .cards-grid {
        order: 1;
        grid-template-columns: repeat(8, 1fr);
        gap: 0.4rem;
        width: 100%;
        height: auto;
    }

    .cct-hot-page .hot-card {
        aspect-ratio: 2/3;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

    .cct-hot-page .points-display {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        background: none;
    }

    .cct-hot-page #end-turn {
        width: 80%;
        font-size: 1rem;
        padding: 1rem;
        text-align: center;
    }

    #instruction-modal {
        /*display: none;*/
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        /*display: flex;*/
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    #instruction-modal .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        padding: 1.5rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    #instruction-modal .modal-body {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 1rem;
    }

    #instruction-modal button.btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Completion Screen Styles */
.completion-screen {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.icon-container {
    color: var(--primary);
    margin: 2rem 0;
    animation: bounce 2s infinite;
}

.completion-content h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.completion-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-bubble {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--primary);
}

.contact-reminder {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
}

.contact-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    transition: transform 0.3s ease;
}

.contact-badge:hover {
    transform: translateY(-2px);
    color: black;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,...") repeat;
    opacity: 0.1;
    pointer-events: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger .bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.stats-container {
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.money-earned {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 2rem 1.5rem;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .navbar {
        padding: 1rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
        text-align: center;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-box {
        padding: 1rem;
    }

    .lead {
        font-size: 1rem;
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img {
        max-width: 200px;
        margin: 0 auto;
    }

    .btn-outline,
    .btn-gradient {
        justify-content: center;
        text-align: center;
    }

    h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    h2, h4 {
        text-align: center;
    }

    .participation-card {
        padding: 1rem;
    }

    .response-scale {
        flex-wrap: wrap;
    }

    .radio-option {
        flex: 1 1 40%;
        margin-bottom: 0.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .decks-grid {
        gap: 1rem;
        padding: 0.5rem;
    }

    .deck-card {
        width: 120px;
        height: 180px;
    }

    .deck-label {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .number-selector {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    }

    .cct-card {
        font-size: 1rem;
    }

    #balloon {
        width: 100px;
        height: 150px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto;
    }

    .task-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .hot-card {
        aspect-ratio: 3/4;
    }

    .completion-screen {
        padding: 1.5rem;
    }

    .completion-stats {
        flex-direction: column;
    }

    .contact-badges {
        flex-direction: column;
    }
}

.terms-label, .privacy-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.terms-label a, .privacy-label a {
    color: var(--primary);
    text-decoration: underline;
}

.terms-label input[type="checkbox"], .privacy-label input[type="checkbox"] {
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #cbd5e0;
    border-radius: 0.25rem;
}

.feedback-message {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    color: #2c3e50;
    font-size: 1.1rem;
}

.feedback-message strong {
    color: #e74c3c;
}

.fa-spin {
    margin-right: 0.5rem;
}

.results-summary {
  margin-top: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.results-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.results-summary table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.results-summary thead {
  background-color: var(--primary);
  color: white;
}

.results-summary th,
.results-summary td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.results-summary tbody tr:last-child td {
  border-bottom: none;
}

/* Отдельная область для кнопки Подробнее */
.results-details {
  margin-top: 1rem;
  text-align: center;
}

.results-details a.details-link {
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.results-details a.details-link:hover {
  background-color: #4338ca;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .results-summary table {
    font-size: 0.9rem;
  }

  .results-summary th,
  .results-summary td {
    padding: 0.6rem 0.8rem;
  }

  .results-summary thead th {
    text-align: center;
  }

  .results-details a.details-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
}

/*Страница результатов */
/*.result-section {*/
/*      background: #fff;*/
/*      border-radius: 8px;*/
/*      box-shadow: 0 4px 10px rgba(0,0,0,0.05);*/
/*      padding: 1.5rem;*/
/*      margin-bottom: 2rem;*/
/*      padding: 3rem 10rem;*/
/*    }*/
/*    .result-section h2 {*/
/*      margin-bottom: 0.5rem;*/
/*      font-size: 1.4rem;*/
/*      color: var(--dark);*/
/*    }*/
/*    .result-section .section-desc {*/
/*      margin-bottom: 1rem;*/
/*      font-size: 0.95rem;*/
/*      color: #555;*/
/*    }*/
/*    .metrics-container {*/
/*      display: grid;*/
/*      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));*/
/*      gap: 1rem;*/
/*    }*/
/*    .metric-card {*/
/*      background: var(--light);*/
/*      border-left: 4px solid var(--primary);*/
/*      border-radius: 6px;*/
/*      padding: 0.8rem 1rem;*/
/*      display: flex;*/
/*      flex-direction: column;*/
/*    }*/
/*    .metric-title {*/
/*      font-size: 0.9rem;*/
/*      color: var(--dark);*/
/*      margin-bottom: 0.3rem;*/
/*    }*/
/*    .metric-value {*/
/*      font-size: 1.25rem;*/
/*      font-weight: 600;*/
/*      color: var(--secondary);*/
/*    }*/
/*    @media (max-width: 600px) {*/
/*      .metrics-container {*/
/*        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));*/
/*      }*/
/*    }*/

/*.result-section {*/
/*    margin: 2rem auto;*/
/*    max-width: 800px;*/
/*}*/
/*.result-section h2 {*/
/*    margin-bottom: .5rem;*/
/*}*/
/*.section-desc {*/
/*    font-size: .95rem;*/
/*    color: #555;*/
/*    margin-bottom: 1rem;*/
/*}*/
/*.metrics-container {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 1rem;*/
/*}*/
/*.metric-card {*/
/*    flex: 1 1 calc(50% - 1rem);*/
/*    background: #fff; padding: 1rem; border-radius: 6px;*/
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
/*}*/
/*.metric-title {*/
/*    font-weight: 600;*/
/*    margin-bottom: .5rem;*/
/*}*/
/*.metric-value {*/
/*    font-size: 1.5rem;*/
/*    color: var(--primary);*/
/*}*/
/*.metric-note {*/
/*    font-size: .85rem;*/
/*    color: #666;*/
/*    margin-top: .5rem;*/
/*}*/

    /* Специальная шкала риска */
/*.risk-score .metric-scale {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: .5rem;*/
/*    font-size: .8rem;*/
/*    margin: .5rem 0;*/
/*}*/
/*.risk-score .scale-bar {*/
/*    flex: 1;*/
/*    height: 6px;*/
/*    background: #eee;*/
/*    border-radius: 3px;*/
/*    overflow: hidden;*/
/*}*/
/*.risk-score .scale-bar .fill {*/
/*    height: 100%; background: var(--secondary);*/
/*}*/
/*.risk-score .low {*/
/*    color: green;*/
/*}*/
/*.risk-score .high {*/
/*    color: red;*/
/*}*/

/*@media (max-width: 600px) {*/
/*    .metric-card {*/
/*        flex: 1 1 100%;*/
/*    }*/
/*}*/
/* Общие стили */
.result-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin: 2rem auto;
  padding: 2rem 3rem;
  max-width: 800px;
}
.result-section h2 {
  margin-bottom: .5rem;
  font-size: 1.5rem;
  color: var(--dark);
}
.result-section .section-desc {
  font-size: .95rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Контейнер метрик */
.metrics-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Карточка метрики */
.metric-card {
  flex: 1 1 calc(50% - 1rem);
  background: var(--light);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.metric-title {
  font-size: .9rem;
  color: var(--dark);
  margin-bottom: .3rem;
  font-weight: 600;
}
.metric-value {
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 600;
}
.metric-note {
  font-size: .85rem;
  color: #666;
  margin-top: .5rem;
}

/* Шкала риска */
.risk-score .metric-scale {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  margin: .5rem 0;
}
.risk-score .low { color: green; }
.risk-score .high { color: red; }
.risk-score .scale-bar {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.risk-score .scale-bar .fill {
  height: 100%;
  background: var(--secondary);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .result-section {
    padding: 1.5rem 1.5rem;
    margin: 1.5rem auto;
  }
  .metrics-container {
    gap: .75rem;
  }
  .metric-card {
    flex: 1 1 100%;
  }
  .metric-value {
    font-size: 1.25rem;
  }
  .metric-title {
    font-size: .85rem;
  }
  .metric-note {
    font-size: .8rem;
  }
}

