html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Golos Text', 'Geologica', Arial, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
}

#app {
    min-height: 100vh;
    min-width: 0; /* Исправлено: не 100vw, а 0, чтобы не было переполнения */
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Защита от переполнения */
}

#main-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(120deg, #ffffff 0%, #b3c6e7 40%, #0033a0 80%, #d52b1e 100%);
    transition: background 0.5s;
    overflow: hidden;
}

#center-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    max-width: 95vw; /* Адаптивная ширина */
    min-height: 340px;
    background: rgba(255,255,255,0.25);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
    padding: 32px 16px; /* Меньше паддинги для мобильных */
    margin: 0 auto;
}

@media (max-width: 600px) {
    #center-content {
        min-width: 0;
        max-width: 98vw;
        padding: 18px 4vw;
        border-radius: 18px;
    }
    #start-btn {
        width: 140px;
        height: 140px;
        font-size: 1.2rem;
    }
    #speedometer-wrap, #speedometer-svg {
        width: 98vw !important;
        max-width: 320px;
        min-width: 0;
    }
}

#start-btn {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    border: 5px solid #0052a5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    font-size: 2.2rem;
    color: #0033a0;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 90vw;
}

#start-btn:hover {
    background: rgba(255,255,255,0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

#speedometer, #results {
    background: rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px);
    padding: 36px 28px;
    margin-top: 10px;
    text-align: center;
}

#cookie-modal > div {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px) !important;
}

/* Для заголовков можно задать отдельный стиль */
h1, h2, h3, .main-title {
    font-family: 'Geologica', 'Golos Text', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Для основного текста */
body, #center-content, .description, .results, button, input, div {
    font-family: 'Golos Text', 'Geologica', Arial, sans-serif;
}