:root {
    --bg1: #f8fafc;
    --bg2: #e2e8f0;
    --card: #ffffff;
    --line: #e2e8f0;
    --muted: #64748b;
    --text: #0f172a;
    --blue: #1e3a8a;
    --blue-2: #1d4ed8;
    --orange: #ea580c;
    --orange-2: #c2410c;
    --green: #059669;
    --danger: #b91c1c;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #fff 0%, #f1f5f9 55%, #e2e8f0 100%);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.app {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px;
}

.layout,
.auth-layout,
.grid-2,
.contracts-grid,
.gas-cards,
.grid-3,
.info-grid {
    display: grid;
    gap: 24px;
}

.layout,
.auth-layout,
.grid-2,
.contracts-grid,
.gas-cards,
.grid-3,
.info-grid,
.stack,
.card-body {
    min-width: 0;
}

.layout {
    grid-template-columns: 280px minmax(0, 1fr);
}

.layout > *,
.card,
.shell,
.main {
    min-width: 0;
}

.panel,
.header,
.card,
.shell-head,
.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.panel,
.header {
    border-radius: 28px;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--line);
    padding: 0;
}

.auth-page {
    min-height: 100vh;
    padding: 16px;
}

.auth-layout {
    max-width: 1320px;
    min-height: calc(100vh - 32px);
    margin: 0 auto;
    grid-template-columns: 420px 1fr;
    align-items: stretch;
}

.auth-layout-compact {
    max-width: 620px;
    grid-template-columns: minmax(0, 1fr);
}

.auth-panel {
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-layout-compact .auth-main {
    min-height: calc(100vh - 32px);
}

.auth-card {
    width: 100%;
    max-width: 620px;
    border-radius: 28px;
    padding: 32px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--blue);
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
    position: relative;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand-title {
    font-weight: 700;
}

.brand-main {
    min-width: 0;
    flex: 1;
}

.brand-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
}

.brand-chevron {
    color: #cbd5e1;
    font-size: 14px;
}

.brand-menu {
    display: none;
    position: absolute;
    z-index: 20;
    left: 16px;
    right: 16px;
    top: calc(100% - 8px);
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--text);
}

.brand-menu.open {
    display: block;
}

.brand small {
    color: #cbd5e1;
}

.auth-copy h1,
h1 {
    margin: 0;
}

.auth-copy h1 {
    font-size: 34px;
    color: var(--blue);
}

.auth-copy p,
.subtitle,
.muted,
.auth-muted {
    color: var(--muted);
}

.auth-copy p {
    line-height: 1.7;
}

.mini-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 16px;
    margin-top: 16px;
}

.mini-card-note {
    margin-top: 6px;
    font-size: 14px;
}

.mini-card-title {
    margin-top: 4px;
    font-weight: 700;
    color: var(--blue);
}

.mini-card-contacts {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.search {
    position: relative;
    margin-bottom: 20px;
}

.search input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fafc;
    font-size: 14px;
}

.search .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.45;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    color: #334155;
}

.nav a:hover {
    background: #f8fafc;
}

.nav a.active {
    background: var(--blue);
    color: #fff;
}

.caps {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #94a3b8;
}

.auth-card-head h2 {
    margin: 0;
    font-size: 30px;
    color: var(--blue);
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-grid-full {
    grid-column: 1 / -1;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.auth-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fafc;
    font-size: 14px;
    color: var(--text);
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

.auth-footer-note {
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
}

.auth-footer-note a {
    color: var(--blue-2);
    font-weight: 600;
}

.form-errors,
.field-error {
    color: var(--danger);
    font-size: 14px;
}

.messages-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.flash-message {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #eff6ff;
    color: var(--blue);
}

.flash-success {
    background: #ecfdf5;
    color: #047857;
}

.flash-error {
    background: #fef2f2;
    color: var(--danger);
}

.main,
.shell,
.stack,
.list,
.contacts-list,
.quick {
    display: grid;
    gap: 12px;
}

.main,
.shell,
.stack {
    gap: 24px;
}

.main-full {
    min-width: 0;
}

.organization-strip {
    overflow: hidden;
}

.organization-strip-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 24px;
}

.organization-strip-summary {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.organization-strip-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
}

.organization-strip-actions {
    flex: 1;
    display: grid;
    gap: 16px;
}

.organization-switcher-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.organization-strip-link {
    justify-content: center;
    width: fit-content;
}

.balance {
    font-size: clamp(1.15rem, 1.2vw + 0.85rem, 1.9rem);
    font-weight: 700;
    color: var(--green);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f8fafc;
    border-radius: 18px;
    padding: 6px;
    max-width: 860px;
    width: 100%;
    min-width: 0;
}

.tab-link {
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #334155;
}

.tab-link.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    color: var(--blue);
    font-weight: 600;
}

.header-actions,
.page-actions,
.doc-actions,
.contract-title-row,
.badges,
.contract-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.contract-actions .btn {
    padding: 10px 14px;
    font-size: 14px;
}

.contract-actions {
    margin-top: 16px;
}

.header-actions {
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.header-lock-note {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.5;
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 12px 16px;
    border-radius: 16px;
    font-family: Arial, sans-serif;
    font-size: 13.3333px;
    line-height: normal;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    filter: brightness(0.98);
}

.btn.blue {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.btn.orange {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.btn[disabled] {
    opacity: 1;
    cursor: default;
}

.shell-head {
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

h1 {
    font-size: 34px;
    color: var(--blue);
}

.subtitle {
    margin-top: 8px;
    max-width: 900px;
    line-height: 1.6;
}

.card h3 {
    margin: 0;
    font-size: 24px;
}

.card-head {
    padding: 24px 24px 12px;
}

.card-body {
    padding: 0 24px 24px;
}

.grid-2 {
    grid-template-columns: 1.3fr 0.9fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info,
.contact {
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px;
}

.value {
    margin-top: 8px;
    line-height: 1.6;
}

.value-list > div + div {
    margin-top: 4px;
}

.value-accent,
.strong-blue,
.row-title,
.contact-name,
.table-object,
.gas-total {
    font-weight: 700;
    color: var(--blue);
}

.value-accent {
    color: var(--green);
}

.contact-name {
    margin-top: 4px;
}

.badges {
    gap: 8px;
}

.info .badges {
    margin-top: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--blue);
    font-size: 14px;
}

.metric {
    padding: 20px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.num {
    font-size: 36px;
    font-weight: 700;
    color: var(--blue);
}

.payment,
.doc-row,
.contract {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.contract {
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contract:hover,
.contract:focus-visible {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.payment,
.doc-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.text-right {
    text-align: right;
}

.quick button {
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--text);
}

.quick-link {
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--text);
}

.quick button:hover,
.quick-link:hover {
    background: #f8fafc;
}

.contracts-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.docs-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

.contract.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.contract-row {
    align-items: stretch;
}

.contract-main {
    display: grid;
    gap: 14px;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.contract-number {
    font-size: 24px;
    font-weight: 700;
}

.contract-muted {
    color: #cbd5e1;
}

.contract-period {
    margin-top: 0;
}

.contract-side-stats {
    display: grid;
    gap: 8px;
    align-content: start;
}

.contract.active .btn {
    background: #fff;
    color: var(--blue);
    border-color: #fff;
}

.contract .btn {
    position: relative;
    z-index: 1;
}

.state-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 12px;
    background: #fff;
    color: var(--blue);
    font-size: 14px;
}

.state-badge.gray {
    background: #f1f5f9;
    color: #475569;
}

.success-box {
    background: #ecfdf5;
    color: #047857;
    border-radius: 18px;
    padding: 16px;
}

.gas-cards {
    grid-template-columns: repeat(2, 1fr);
}

.consumption-charts {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.consumption-charts-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.consumption-charts-pair .gas-cards {
    display: contents;
}

.gas-card .card-body {
    padding-top: 0;
}

.gas-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: #f8fafc;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.gas-total {
    margin-top: 6px;
    font-size: 30px;
}

.plan-badge {
    background: #ffedd5;
    color: var(--orange-2);
}

.fact-badge {
    background: #fee2e2;
    color: var(--danger);
}

.bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 4px;
    min-width: 0;
}

.bar-col {
    text-align: center;
    font-size: 10px;
    color: var(--muted);
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    row-gap: 8px;
}

.bar-label,
.bar-value {
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.bar-wrap {
    height: 112px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 6px;
    display: flex;
    align-items: flex-end;
    margin-top: 2px;
}

.bar {
    width: 100%;
    background: var(--blue);
    border-radius: 12px;
}

.bar-wrap-stack {
    align-items: stretch;
}

.bar-stack {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar-within {
    border-radius: 0 0 12px 12px;
}

.bar-overlimit {
    background: var(--danger);
    border-radius: 12px 12px 0 0;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    min-height: 0;
}

.strong-danger {
    color: var(--danger);
    font-weight: 700;
}

.bar-segment-value {
    font-size: 9px;
    line-height: 1.15;
    padding-inline: 2px;
}

.table-wrap {
    overflow: auto;
    max-width: 100%;
    min-width: 0;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 14px;
}

th {
    background: #f8fafc;
    color: #475569;
    padding: 12px;
}

td {
    background: #fff;
    color: #475569;
    padding: 14px;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

td:first-child,
th:first-child {
    text-align: left;
    border-left: 1px solid var(--line);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    padding-left: 16px;
}

td:last-child,
th:last-child {
    border-right: 1px solid var(--line);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.filters-note,
.notification-copy,
.empty-state {
    line-height: 1.6;
}

.brand-dropdown-list {
    display: grid;
    gap: 10px;
}

.brand-dropdown-item,
.brand-dropdown-empty,
.brand-dropdown-action {
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px 16px;
}

.brand-dropdown-item {
    width: 100%;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.brand-dropdown-item:hover,
.brand-dropdown-item:focus-visible {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    outline: none;
}

.brand-dropdown-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #eef2ff 100%);
    border-color: #93c5fd;
}

.brand-dropdown-text {
    display: grid;
    gap: 4px;
}

.brand-dropdown-mark {
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
}

.brand-dropdown-title {
    font-weight: 700;
    color: var(--blue);
}

.brand-dropdown-copy {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.brand-dropdown-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.brand-dropdown-action {
    display: grid;
    gap: 4px;
    border: 1px dashed #cbd5e1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.brand-dropdown-action:hover,
.brand-dropdown-action:focus-visible,
.brand-dropdown-action.active {
    background: #eef2ff;
    border-color: #93c5fd;
    outline: none;
    transform: translateY(-1px);
}

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    color: var(--muted);
    background: #f8fafc;
}

.binding-layout,
.binding-periods {
    display: grid;
    gap: 24px;
}

.binding-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    justify-self: stretch;
    align-self: stretch;
}

.binding-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.binding-card-body {
    display: grid;
    gap: 24px;
    padding-top: 8px;
}

.binding-card-headline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.binding-head-note {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.binding-copy {
    line-height: 1.6;
    color: var(--muted);
}

.binding-search-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 0;
}

.binding-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.binding-verify-form {
    margin-top: 0;
}

.binding-submit {
    justify-content: center;
    min-height: 48px;
    width: fit-content;
}

.binding-feedback:empty {
    display: none;
}

.binding-feedback .flash-message {
    margin: 0;
}

.binding-verification {
    display: grid;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.binding-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.binding-section-head h4 {
    margin: 6px 0 0;
    font-size: 20px;
    color: var(--text);
}

.binding-periods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.binding-period-card {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.binding-period-label {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    text-transform: capitalize;
    min-height: 29px;
}

.binding-periods-placeholder .binding-period-card {
    border-style: dashed;
}

.binding-periods-placeholder .auth-input {
    color: transparent;
    cursor: default;
    opacity: 1;
}

.refresh-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff7ed;
    color: var(--orange-2);
    font-size: 12px;
    font-weight: 700;
}

.skeleton-line,
.skeleton-icon,
.skeleton-bar {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.skeleton-line,
.skeleton-icon {
    border-radius: 999px;
}

.skeleton-line {
    display: block;
    height: 14px;
    margin-top: 10px;
}

.skeleton-line:first-child {
    margin-top: 0;
}

.skeleton-tiny {
    width: 70%;
    height: 10px;
    margin-inline: auto;
}

.skeleton-sm {
    width: 36%;
}

.skeleton-md {
    width: 58%;
}

.skeleton-lg {
    width: 78%;
}

.skeleton-xl {
    width: 92%;
    height: 20px;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.skeleton-block {
    width: 100%;
}

.skeleton-right {
    max-width: 220px;
}

.skeleton-bar {
    width: 100%;
    height: 72px;
    border-radius: 12px;
}

.skeleton-line::after,
.skeleton-icon::after,
.skeleton-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: skeleton-shimmer 1.35s infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.filters-note {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    color: var(--muted);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
}

.profile-card .card-body {
    padding-top: 24px;
}

.profile-card h2,
.privacy-document h2 {
    color: var(--blue);
}

.profile-email {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
}

.profile-hint {
    line-height: 1.6;
}

.profile-contract-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.profile-contract-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.profile-contract-org {
    margin-top: 6px;
}

.profile-unlink-button {
    color: var(--danger);
    border-color: #fecaca;
}

.profile-empty {
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    text-align: center;
}

.privacy-page {
    padding: 16px;
}

.privacy-document {
    max-width: 960px;
    margin: 0 auto;
    padding: 36px;
    line-height: 1.7;
}

.privacy-document h1 {
    margin-bottom: 8px;
}

.privacy-document h2 {
    margin-top: 32px;
    font-size: 22px;
}

.privacy-document a {
    color: var(--blue-2);
    text-decoration: underline;
}

.privacy-back {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.cookie-notice {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-notice a {
    color: var(--blue-2);
    text-decoration: underline;
}

.cookie-notice-button {
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .layout,
    .grid-2,
    .contracts-grid,
    .gas-cards,
    .consumption-charts-pair,
    .auth-layout,
    .binding-layout,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .header,
    .shell-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 800px) {
    .info-grid,
    .grid-3,
    .tabs,
    .auth-form-grid,
    .binding-search-form,
    .binding-search-row,
    .binding-periods {
        grid-template-columns: 1fr;
    }

    .binding-section-head,
    .binding-card-headline {
        flex-direction: column;
    }

    .payment,
    .doc-row,
    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 24px;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .profile-contract-row,
    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-contract-row form,
    .profile-contract-row .btn,
    .cookie-notice-button {
        width: 100%;
    }

    .privacy-document {
        padding: 24px;
    }
}
