﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
}



.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}





.site-header {
    
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    border-bottom: 1px solid #e5e5e5;
}

.site-title-link {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    text-decoration: none;
}

    .site-title-link:hover {
        color: #000;
        text-decoration: none;
    }


.main-content {
    padding-top: 20px;
}



.center-page,
.home {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}



.logo,
.watermark {
    width: 59px;
    opacity: 0.35;
    margin-bottom: 25px;
    pointer-events: none;
}


.language-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lang-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
}

    .lang-title .sub {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #000;
    }



.lang-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-btn {
    width: 200px;
    padding: 14px 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    text-align: center;
}

    .lang-btn.ru {
        background: #1e4fa3;
    }

    .lang-btn.ee {
        background: #1565c0;
    }
body {
    margin: 0;
    padding: 0;
}

.main-content {
    padding-top: 70px; /* ровно под шапку */
}
.theory-page {
    padding-top: 0px; 
    text-align: center;
}

.training-page {
    text-align: center;
    margin-top: 40px;
}

.wheel {
    font-size: 80px;
    margin: 30px auto;
    transition: transform 2s ease-out;
}

    .wheel.spin {
        transform: rotate(1440deg);
    }

.spin-btn {
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    background: #1e4fa3;
    color: white;
    cursor: pointer;
}

    .spin-btn:hover {
        background: #1565c0;
    }

.result {
    margin-top: 30px;
    font-size: 22px;
    font-weight: bold;
}

.theory-block {
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
    line-height: 1.6;
}

.tech-photo {
    display: block;
    margin: 10px auto 30px;
    max-width: 300px;
}
.training-card {
    width: 360px;
    margin: 40px auto;
    padding: 25px 20px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-align: center;
}

.training-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.start-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 18px;
}

    .start-btn:hover {
        background: #222;
    }

.stance-name {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0;
}

.timer {
    width: 60px;
    height: 60px;
    margin: 10px auto 15px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.stance-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 15px auto;
    display: block;
    image-rendering: auto;
}

.answer-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

    .answer-buttons button {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        border: none;
        font-size: 22px;
        cursor: pointer;
    }

    .answer-buttons .correct {
        background: #4CAF50;
        color: #fff;
    }

    .answer-buttons .wrong {
        background: #E53935;
        color: #fff;
    }

    .answer-buttons button:hover {
        transform: scale(1.05);
    }
.training-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}
.progress {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}
.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px; /* высота шапки */
   
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    margin: 0; /* УБИРАЕМ стандартные отступы h1 */
    user-select: none;
}

.theory-page {
    max-width: 1150px;
    margin: 40px auto;
    padding: 30px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    line-height: 1.7;
}

    .theory-page h2 {
        text-align: center;
        margin-bottom: 40px;
    }

    .theory-page h3 {
        margin-top: 40px;
    }

    .theory-page hr {
        margin: 30px 0;
    }

    .theory-page ul {
        padding-left: 20px;
    }

    .theory-page li {
        margin-bottom: 8px;
    }


.theory-page {
    font-size: 22px; /* было ~16 → теперь нормально */
}

    /* Основной текст */
    .theory-page p,
    .theory-page li {
        font-size: 18px;
    }

    /* Подзаголовки (разделы) */
    .theory-page h3 {
        font-size: 24px;
        font-weight: 600;
    }

    /* Заголовок страницы */
    .theory-page h2 {
        font-size: 32px;
        font-weight: 700;
    }

    /* Списки — чтобы «дышали» */
    .theory-page ul {
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .theory-page li {
        margin-bottom: 10px;
    }
.timer-settings {
    margin: 15px 0;
    text-align: center;
}

    .timer-settings input {
        width: 80%;
    }

    .timer-settings span {
        display: block;
        font-size: 18px;
        margin-top: 5px;
    }
.timer-settings {
    margin: 20px 0;
    text-align: center;
}

    .timer-settings label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }

/* ползунок */
#timeRange {
    -webkit-appearance: none;
    width: 80%;
    height: 6px;
    border-radius: 5px;
    background: #bbb;
    outline: none;
    transition: background 0.3s;
}

    /* бегунок */
    #timeRange::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #1f3c88; /* стиль сайта */
        cursor: pointer;
    }

    /* Firefox */
    #timeRange::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #1f3c88;
        cursor: pointer;
    }

.timer-info {
    margin-top: 8px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* состояния звука */
.sound-on {
    color: #1f3c88;
    font-weight: 600;
}

.sound-off {
    color: #999;
}