/* static/styles.css */
body {
    background-color: #1C4268;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}
header, nav, .nav-wrapper {
    background-color: #205583 !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.nav-content {
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.left-menu {
    display: flex;
    align-items: center;
    overflow: hidden;
}
.left-menu ul {
    margin-left: 80px;
}
.right {
    display: flex;
    align-items: center;
}
.content {
    max-width: 70%;
    margin: 80px auto 20px;
    background-color: #E8EDF1;
    padding: 20px;
    border-radius: 5px;
}
footer {
    background-color: #1C4268;
    color: #E8EDF1;
    padding: 20px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}
.btn-register, .btn-mirror {
    background-color: #7EAC2F;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    min-height: 36px;
    width: 100%;
    white-space: normal !important; /* разрешает перенос текста */
    word-break: break-word; /* ломает длинные слова если нужно */
    padding: 20px 15px !important;
    line-height: 1.4;
}
.btn-register:hover, .btn-mirror:hover {
    background-color: #93C638;
}
.btn-login {
    background-color: #7EAC2F;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    min-height: 36px;
    width: 100%;
    white-space: normal !important; /* разрешает перенос текста */
    word-break: break-word; /* ломает длинные слова если нужно */
    padding: 20px 15px !important;
    line-height: 1.4;
}
.btn-login:hover {
    background-color: #93C638;
}
.nav-content a {
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
}
.nav-content a:hover {
    color: #E8EDF1;
}
.lang-text {
    color: #FFFFFF;
    margin-right: 15px;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}
.lang-text i {
    margin-left: 5px;
    font-size: 12px;
}
.time {
    color: #FFFFFF;
    margin-right: 15px;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
}
.settings-icon {
    color: #FFFFFF;
    font-size: 24px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    min-height: 36px;
}
.menu-item i {
    margin-left: 5px;
    font-size: 12px;
}
footer a {
    color: #7EAC2F;
    font-family: 'Roboto', sans-serif;
}
footer a:hover {
    color: #E8EDF1;
}
.brand-logo {
    width: auto;
    margin-right: 80px;
    flex-basis: 0;
}
.brand-logo img {
    height: 18px;
}
h1 {
    color: #1C4268;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
}
h2 {
    color: #E8EDF1;
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    background-color: #205582;
    padding: 10px;
    margin-top: 2rem;
}
p {
    line-height: 1.6;
    color: #333;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 15px;
}
img.section-image {
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    display: block;
    border-radius: 5px;
}
@media (max-width: 600px) {
    .content {
        max-width: 100%;
        padding: 10px;
    }
    /* Переопределяем Materialize — он центрирует лого через position:absolute на мобилках */
    nav .brand-logo {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-right: 6px !important;
    }
    .brand-logo img {
        height: 22px;
    }
    h1 {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 1rem;
    }
    .nav-content {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .right {
        margin-left: auto;
        gap: 0;
    }
    /* Скрываем время, язык и шестерёнку в мобильной шапке */
    .time, .lang-text, .settings-icon {
        display: none !important;
    }
    /* Компактные кнопки в шапке */
    .nav-content .btn-register,
    .nav-content .btn-login {
        width: auto !important;
        min-height: unset !important;
        height: 30px !important;
        line-height: 30px !important;
        padding: 0 9px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        border-radius: 4px;
    }
    .nav-content ul.right li {
        padding: 0 2px;
    }
}

/* Кнопки в контенте — мобильный фикс */
.btn-row {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 26px 0;
}
.btn-row .btn-mirror,
.btn-row .btn-register {
    font-size: 1.05rem !important;
    margin: 0 !important;
}
.adaptive-btn {
  width: 100%;
  white-space: normal !important; /* разрешает перенос текста */
  word-break: break-word; /* ломает длинные слова если нужно */
  padding: 20px 15px !important;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .adaptive-btn {
    font-size: 1rem !important; /* уменьшаем шрифт на мобильных */
    padding: 15px 10px !important;
  }
}

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