:root {
    --primary: #336e78;
    --primary-dark: #2980b9;
    --accent: #3498db;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 10px 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.top-bar .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
    background: #fff;
    border-radius: 8px;
    padding: 3px 10px;
}

.top-bar .brand__logo {
    display: block;
    height: 32px;
    width: auto;
    max-width: min(180px, 42vw);
    object-fit: contain;
}

.top-actions {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn.primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.nav-btn.primary:hover {
    background-color: white;
    color: var(--accent);
}

.container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

h1 {
    color: var(--primary);
    text-align: center;
    margin-top: 0;
}

p {
    line-height: 1.7;
    color: #555;
    font-size: 16px;
}

ul {
    line-height: 1.9;
    color: #555;
}

.procedure-block {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.procedure-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.procedure-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.android-install-hint {
    margin-top: 14px;
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-label {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    white-space: nowrap;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    min-width: 240px;
    padding: 8px 0;
    z-index: 1100;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.dropdown-menu button:hover {
    background: #f0f7fa;
    color: var(--primary);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 900;
}

/* модалки поверх фона (account.css задаёт z-index 1000) */
.modal {
    z-index: 1000;
}

/* дерево выбора модели прибора на главной */
#treeModelsModal.modal-overlay {
    z-index: 1200;
}

#treeModelsModal .modal-window--tree {
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#treeModelsModal .modal-body {
    min-height: 280px;
    max-height: 50vh;
    overflow: auto;
}

#treeModelsModal .modal-footer.buttons {
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .session-label {
        white-space: normal;
    }
}

