* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    gap: 10vw;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 50px;
    transition:
        background 0.4s ease,
        color 0.4s ease;
}

section {
    z-index: 5;
    position: relative;
    color: #3c8dff;
    padding: 5vw 5vw !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120,120,120,0.35);
}

.bubbles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.b {
    z-index: -1;
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(120,190,255,0.2);
}

.often-question {
    margin: 0 auto;
    padding: 60px 20px;    
}

.question-main-header {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
}

.question-main-paragraph {
    font-size: 15px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.faq-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.question-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    width: 100%;
    margin-bottom: 40px;
    align-items: start;
}

.type-qestion {
    margin-bottom: 24px;
}

.question-header {
    font-size: 18px;
    margin-bottom: 8px;
}

.question-paragrapher {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.questions-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.question-block {
    background: #f8f9fa;
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 15px;
    word-break: break-word;
    color: #1a1a1a;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.question-block:not(:empty)::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #6366f1;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.question-block:hover {
    background: #eef0f2;
}

.question-block:empty {
    display: none;
}

.answer-block {
            background: #fff;
            padding: 20px;
            border-left: 3px solid #6366f1;
            margin-top: 8px;
            margin-bottom: 4px;
            font-size: 14px;
            color: #4a5568;
            line-height: 1.6;
}

.education-terms-section {
    margin: auto;
    padding: 32px;
}

.concepts {
    text-align: center;
    font-size: 40px;
    margin-bottom: 24px;
    color: #3c8dff;
}

.education-terms-block {
    overflow: hidden;
    position: relative;
    padding: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.education-terms-header {
    font-size: 28px;
    margin-bottom: 16px;
    color: #4b5563;
}

.education-terms-paragraph {
    font-size: 18px;
    line-height: 28px;
    color: black;
    z-index: 3;
}

.glossary-terms-section {
    display: flex;
    flex-direction: column;
    width: 100%; 
    align-items: center;
}

.glossary-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    line-height: normal;
}

.glossary-terms-header {
    font-size: 18px;
    margin-bottom: 16px;
    color: white;
}

.glossary-terms-block {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 15px;
    color: white;
}

.glossary-terms-paragraph {
    font-size: 15px;
    line-height: 20px;
}

.page-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.page-nav a {
    color: white;
    font-size: 16px;
    padding: 8px 16px;
    background-color: #3c8dff;
    border-radius: 16px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

.page-nav a:hover {
    background-color: #0964e3;
}

.go-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    color: white;
    font-size: 16px;
    width: 40px;
    height: 40px;
    background-color: #3c8dff;
    border-radius: 50%;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    bottom: 16px;
    right: 16px;
    z-index: 3000;
    cursor: pointer;
    border: none;
    outline: none;
}

.go-top:hover {
    transform: translateY(-3px);
}

.depression-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 16px;
    padding-bottom: 48px;
}

.emotion-apathy     { background: rgba(100,100,110,0.35); border-color: rgba(180,180,190,0.2); }
.emotion-hopeless   { background: rgba(20,40,100,0.45);   border-color: rgba(80,120,255,0.25); }
.emotion-helpless   { background: rgba(40,60,110,0.38);   border-color: rgba(100,140,220,0.2); }
.emotion-hostile    { background: rgba(120,20,20,0.45);   border-color: rgba(255,80,80,0.25);  }
.emotion-anger      { background: rgba(160,20,20,0.45);   border-color: rgba(255,60,60,0.3);   }
.emotion-grief      { background: rgba(70,20,100,0.45);   border-color: rgba(180,80,255,0.25); }
.emotion-depress    { background: rgba(30,30,40,0.55);    border-color: rgba(120,120,140,0.2); }
.emotion-excited    { background: rgba(120,100,0,0.42);   border-color: rgba(255,220,60,0.25); }
.emotion-pity       { background: rgba(20,80,120,0.42);   border-color: rgba(80,180,255,0.25); }
.emotion-envy       { background: rgba(20,90,30,0.45);    border-color: rgba(80,220,80,0.25);  }
.emotion-despair    { background: rgba(60,30,90,0.42);    border-color: rgba(160,100,230,0.22);}
.emotion-irony      { background: rgba(0,90,90,0.42);     border-color: rgba(0,220,200,0.22);  }
.emotion-rage       { background: rgba(180,0,0,0.5);      border-color: rgba(255,40,40,0.35);  }
.emotion-revenge    { background: rgba(100,0,80,0.48);    border-color: rgba(255,60,200,0.25); }
.emotion-hate       { background: rgba(80,0,0,0.55);      border-color: rgba(200,0,0,0.3);     }
.emotion-dissat     { background: rgba(130,60,0,0.42);    border-color: rgba(255,140,40,0.25); }
.emotion-dislike    { background: rgba(100,40,60,0.4);    border-color: rgba(220,100,140,0.22);}
.emotion-fright     { background: rgba(40,0,120,0.48);    border-color: rgba(140,80,255,0.28); }
.emotion-humil      { background: rgba(80,40,0,0.45);     border-color: rgba(180,120,40,0.25); }
.emotion-guilt      { background: rgba(50,60,10,0.48);    border-color: rgba(150,170,40,0.22); }
.emotion-gloom      { background: rgba(25,25,30,0.55);    border-color: rgba(100,100,110,0.2); }
.emotion-irritate   { background: rgba(150,50,0,0.45);    border-color: rgba(255,100,40,0.28); }
.emotion-sadness    { background: rgba(30,50,90,0.45);    border-color: rgba(100,140,220,0.22);}
.emotion-suffer     { background: rgba(100,10,40,0.48);   border-color: rgba(220,60,110,0.25); }
.emotion-shame      { background: rgba(120,20,60,0.42);   border-color: rgba(255,80,140,0.25); }
.emotion-melancholy { background: rgba(30,20,100,0.48);   border-color: rgba(100,80,255,0.28); }
.emotion-anxiety    { background: rgba(100,80,0,0.45);    border-color: rgba(220,180,0,0.25);  }
.emotion-schaden    { background: rgba(10,70,30,0.48);    border-color: rgba(40,200,80,0.25);  }
.emotion-frustr     { background: rgba(120,50,0,0.48);    border-color: rgba(255,120,20,0.28); }
.emotion-stability  { background: rgba(40,90,140,0.48);   border-color: rgba(120,190,255,0.28);}

.education-terms-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateX(50%);
    width: 50%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3; 
}

#education .education-terms-block:nth-child(1)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/742/742751.png");
}

#education .education-terms-block:nth-child(2)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/4076/4076504.png");
}

#education .education-terms-block:nth-child(3)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/3209/3209265.png"); 
}

#education .education-terms-block:nth-child(4)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/2910/2910768.png");
}

#education .education-terms-block:nth-child(5)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/2965/2965567.png"); 
}

#education .education-terms-block:nth-child(6)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/4149/4149676.png");
}

#stress .education-terms-block:nth-child(1)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/2913/2913465.png"); 
}

#stress .education-terms-block:nth-child(2)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/9068/9068750.png");
}

#stress .education-terms-block:nth-child(3)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/4149/4149647.png"); 
}

#stress .education-terms-block:nth-child(4)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/3209/3209186.png"); 
}

#stress .education-terms-block:nth-child(5)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/1828/1828884.png");
}

#stress .education-terms-block:nth-child(6)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/3208/3208707.png");
}

#conflict .education-terms-block:nth-child(1)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/190/190406.png");
}

#conflict .education-terms-block:nth-child(2)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/1946/1946429.png");
}

#conflict .education-terms-block:nth-child(3)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/1828/1828843.png");
}

#conflict .education-terms-block:nth-child(4)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/1048/1048943.png"); 
}

#conflict .education-terms-block:nth-child(5)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/753/753345.png"); 
}

#conflict .education-terms-block:nth-child(6)::after {
    background-image: url("https://cdn-icons-png.flaticon.com/512/942/942748.png");
}

.main-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1500px;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(37,99,235,0.25);
    z-index: 1500;
    box-sizing: border-box;
    transition:
      transform 0.4s ease,
      opacity 0.3s ease;        
}

body.dark-theme .main-header {
    background: rgba(15,23,42,0.65);
    border: 1px solid rgba(96,165,250,0.2);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding-top: 40px;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: 64px;
    line-height: 1.2;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.hero-text {
    font-size: 22px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 18px 36px;
    background: #2563eb;
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

.about-section {
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: #2563eb;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about-card h2 {
    margin-bottom: 20px;
    color: #1e3a8a;
}

.about-card p {
    line-height: 1.8;
    color: #374151;
}

.test-preview-section {
    width: 100%;
}

.test-preview-block {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.test-preview-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #374151;
}

.start-test-btn {
    padding: 18px 34px;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.start-test-btn:hover {
    background: #1d4ed8;
    transform: scale(1.03);
}

.emotion-test-section {
    width: 100%;
}

.test-container {
    max-width: 900px;
    margin: auto;
}

.question-card {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.active-question {
    display: block;
}

.test-question {
    font-size: 32px;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #1e3a8a;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-btn {
    border: none;
    padding: 18px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.answer-btn:hover {
    background: #2563eb;
    color: white;
}

.result-block {
    display: none;
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.result-title {
    font-size: 42px;
    margin-bottom: 30px;
    color: #2563eb;
}

.result-text {
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #374151;
}

.restart-btn {
    border: none;
    padding: 18px 34px;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.statistics-section {
    width: 100%;
}

.statistics-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    overflow: hidden;
}

.history-block,
.chart-block {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    overflow-x: auto;
}

#emotionChart {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
}

.history-title {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1e3a8a;
}

.history-item {
    padding: 16px;
    border-radius: 12px;
    background: #eff6ff;
    margin-bottom: 14px;
}

.history-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.history-score {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.history-result {
    line-height: 1.6;
    color: #374151;
}

.chart-block {
    min-height: 400px;
}

@media(max-width: 900px) {

    .statistics-container {
        grid-template-columns: 1fr;
    }

}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 16px;
    background: #059669;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    gap: 8px;
}

.theme-toggle-btn:hover {
    background: #047857;
    transform: translateY(-2px);
}

.theme-toggle-btn .fa-moon {
    color: #dbeafe !important;
}

.theme-toggle-btn .fa-sun {
    color: #facc15 !important;
}

body.dark-theme {
    background: #0f172a;
}

body.dark-theme section {
    background: rgba(15, 23, 42, 0.7);
    color: white;
}

body.dark-theme .hero-title,
body.dark-theme .section-title,
body.dark-theme .test-question,
body.dark-theme .history-title,
body.dark-theme .education-terms-header {
    color: #60a5fa;
}

body.dark-theme .hero-text,
body.dark-theme .education-terms-paragraph,
body.dark-theme .result-text,
body.dark-theme .history-result,
body.dark-theme .question-main-paragraph {
    color: #d1d5db;
}

body.dark-theme .about-card,
body.dark-theme .question-card,
body.dark-theme .result-block,
body.dark-theme .history-block,
body.dark-theme .chart-block,
body.dark-theme .test-preview-block,
body.dark-theme .education-terms-block {
    background: #1e293b;
    color: white;
}

body.dark-theme .question-block {
    background: #1e293b;
    color: white;
}

body.dark-theme .question-block:hover {
    background: #334155;
}

body.dark-theme .answer-block {
    background: #0f172a;
    color: #d1d5db;
}

body.dark-theme .about-card p {
    color: #d1d5db;
}

body.dark-theme .answer-btn {
    background: #2563eb;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

body.dark-theme .answer-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

body.dark-theme .history-item {
    background: #0f172a;
}

body.dark-theme .test-preview-text {
    color: #d1d5db;
}

.recommendations-block {
    margin-top: 30px;
    text-align: left;
}

.recommendations-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2563eb;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 20px;
}

.recommendations-list li {
    line-height: 1.8;
    color: #374151;
    font-size: 18px;
}

body.dark-theme .recommendations-list li {
    color: #d1d5db;
}

.download-btn {
    margin-top: 20px;
    border: none;
    padding: 18px 34px;
    border-radius: 14px;
    background: #059669;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.download-btn:hover {
    background: #047857;
}

.history-pagination {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.history-pagination button {
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.history-pagination button:hover {
    background: #1d4ed8;
}

.history-pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

.history-page-info {
    font-weight: 600;
    color: #374151;
}

body.dark-theme .history-page-info {
    color: white;
}

.main-header.hide-nav {
    transform: translateX(-50%) translateY(-140%);
    opacity: 0;
    pointer-events: none;
}

/* =========================
   Планшети
========================= */

@media (max-width: 1024px) {
    .page-nav {
        width: 95%;
        gap: 6px;
    }

    .hero-title {
        font-size: 42px;
        text-align: center;
    }

    .hero-text {
        font-size: 22px;
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .statistics-container {
        flex-direction: column;
    }

    .faq-section {
        flex-direction: column;
    }

    .depression-container {
        grid-template-columns: 1fr 1fr;
    }

    .glossary-container {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================
   Телефони
========================= */

@media (max-width: 768px) {
    body {
        gap: 60px;
    }

    .question-card {
        padding: 25px;
    }

    .test-question {
        font-size: 24px;
    }

    .answer-btn {
        font-size: 16px;
    }

    .result-title {
        font-size: 30px;
    }

    .result-text {
        font-size: 18px;
    }

    .hero-section {
        padding-top: 120px;
        padding-inline: 20px;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 18px;
        line-height: 1.5;
    }

    .hero-btn {
        padding: 16px 28px;
        font-size: 16px;
    }

    .section-title,
    .concepts,
    .question-main-header {
        font-size: 34px;
        text-align: center;
    }

    .question-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    }

    .questions-block {
    width: 100%;
    }

    .about-card,
    .education-terms-block,
    .glossary-terms-block,
    .history-block,
    .chart-block {
      padding: 10px;
    }

    .history-pagination {
      justify-content: center;
      gap: 10px;
    }

    .history-page-info {
    font-size: 14px;
    }

    .test-container {
        padding: 20px;
    }

    .test-question {
        font-size: 26px;
        line-height: 1.4;
    }

    .answers {
        gap: 14px;
    }

    .answer-btn {
        width: 100%;
        font-size: 16px;
    }

    .result-block {
        padding: 24px;
    }

    .history-pagination {
        flex-wrap: wrap;
    }

    .depression-container,
    .glossary-container {
        grid-template-columns: 1fr;
    }

    .go-top {
        right: 16px;
        bottom: 16px;
        z-index: 50;
    }

}

/* =========================
   Маленькі телефони
========================= */

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-title,
    .concepts,
    .question-main-header {
        font-size: 28px;
    }

    .test-question {
        font-size: 22px;
    }

    .page-nav a,
    .theme-toggle-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 14px;
        padding: 14px 18px;
        border-radius: 14px;
    }

}

.mobile-menu-btn {
    display: none;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    top: 14px;
    left: 28px;
    z-index: 1200;
    padding: 8px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.3s ease;
    flex-shrink: 0;
}

body.dark-theme .site-logo {
    background: rgba(15,23,42,0.45);
}

.logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.dark-logo {
    display: none;
}

body.dark-theme .light-logo {
    display: none;
}

body.dark-theme .dark-logo {
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    color: #1e3a8a;
}

.logo-text p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #475569;
    line-height: 1.2;
}

body.dark-theme .logo-text h2 {
    color: #dbeafe;
}

body.dark-theme .logo-text p {
    color: #cbd5e1;
}

.site-footer {
    position: relative;
    margin-top: 0px;
    padding: 30px 5vw 30px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(37,99,235,0.15);
    overflow: hidden;
}

body.dark-theme .site-footer {
    background: rgba(15,23,42,0.55);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: auto;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.footer-logo-dark {
    display: none;
}

body.dark-theme .footer-logo-light {
    display: none;
}

body.dark-theme .footer-logo-dark {
    display: block;
}

.footer-logo h3 {
    font-size: 24px;
    color: #1e3a8a;
    margin: 0;
}

.footer-logo p {
    color: #64748b;
    margin-top: 4px;
}

body.dark-theme .footer-logo h3 {
    color: #dbeafe;
}

body.dark-theme .footer-logo p {
    color: #94a3b8;
}

.footer-description {
    max-width: 320px;
    line-height: 1.9;
    text-align: left;
    color: #475569;
    word-spacing: 1px;
}

body.dark-theme .footer-description {
    color: #cbd5e1;
}

.footer-column h4 {
    font-size: 18px;
    color: #2563eb;
    margin-bottom: 10px;
}

.footer-column a {
    text-decoration: none;
    color: #475569;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #2563eb;
    transform: translateX(4px);
}

body.dark-theme .footer-column a {
    color: #cbd5e1;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(120,120,120,0.18);
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

body.dark-theme .footer-bottom {
    color: #94a3b8;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    justify-content: flex-start;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37,99,235,0.12);
    color: #2563eb;
    font-size: 18px;
    transition: 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-4px);
    background: #2563eb;
    color: white;
}

body.dark-theme .footer-socials a {
    background: rgba(255,255,255,0.08);
    color: #dbeafe;
}

body.dark-theme .footer-socials a:hover {
    background: #3b82f6;
    color: white;
}

/* =========================
   АДАПТАЦІЯ HEADER + FOOTER
========================= */

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        position: fixed;
        top: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
        background: rgba(255,255,255,0.18);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        z-index: 2001;
        cursor: pointer;
        transition: 0.3s;
    }

    body.dark-theme .mobile-menu-btn {
        background: rgba(15,23,42,0.45);
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 3px;
        background: #2563eb;
        border-radius: 20px;
        transition: 0.3s;
    }

    body.dark-theme .mobile-menu-btn span {
        background: #dbeafe;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform:
            rotate(45deg)
            translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform:
            rotate(-45deg)
            translate(6px, -6px);
    }

    body.dark-theme .page-nav {
        background:
            rgba(15,23,42,0.55);
        border-left:
            1px solid rgba(255,255,255,0.08);
    }

    .main-header {
        width: calc(100% - 20px);
        padding: 14px 18px;
        min-height: auto;
        border-radius: 22px;
        justify-content: flex-start;
    }

    .site-logo {
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        max-width: calc(100% - 80px);
    }

    .logo-img {
        width: 42px;
        height: 42px;
    }

    .logo-text h2 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .page-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        padding: 110px 24px 40px;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid rgba(255,255,255,0.2);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        z-index: 2000;
        overflow-y: auto;
        transition:
          right 0.4s ease,
          opacity 0.3s ease;
        opacity: 0;
        
    }

    body.dark-theme .page-nav {
        background: rgba(15,23,42,0.82);
    }

    .page-nav.active {
        right: 0;
        opacity: 1;
    }

    .page-nav a,
    .theme-toggle-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 14px;
        padding: 14px 18px;
        border-radius: 14px;
    }

    .mobile-menu-btn {
        top: 10px;
        right: 12px;
        z-index: 2500;
    }

    /* FOOTER */

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (hover: hover) {
    .hero-btn:hover,
    .answer-btn:hover,
    .start-test-btn:hover,
    .download-btn:hover,
    .go-top:hover,
    .footer-socials a:hover {
        transform: translateY(-3px);
    }

}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(60,141,255,0.45);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(60,141,255,0.7);
}