:root {
    --color-primary: #2f6fed;
    --color-primary-dark: #1f52c4;
    --color-bg: #f4f6fb;
    --color-border: #e1e5ec;
    --color-text: #1c232b;
    --color-muted: #6b7280;
    --color-danger: #e5484d;
    --color-success: #17c964;
    --color-warning: #f5a524;
    --sidebar-bg: #0f1b33;
    --sidebar-bg-active: #17284a;
    --sidebar-text: #aab4cc;
    --sidebar-text-active: #ffffff;
    --sidebar-width: 240px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
}

/* Sidebar */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.5rem 0.75rem 1.5rem;
    letter-spacing: 0.01em;
}

.sidebar__logo {
    font-size: 1.2rem;
}

.sidebar__brand-accent {
    color: var(--color-primary);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.sidebar__section-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #5a6786;
    padding: 1rem 0.75rem 0.3rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar__link:hover {
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
}

.sidebar__link.active {
    background: var(--color-primary);
    color: #fff;
}

.sidebar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 1rem;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem 0.75rem;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar__user-name {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar__user-role {
    color: var(--sidebar-text);
    font-size: 0.78rem;
}

.sidebar__logout {
    width: 100%;
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
}

.sidebar__logout:hover {
    background: var(--color-danger);
}

/* App area */

.app-area {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.no-sidebar .app-area {
    margin-left: 0;
}

.content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem;
}

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

.site-footer {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    padding: 1.5rem 0;
}

.auth-card {
    max-width: 360px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Forms */

.form-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #333c48;
}

input, select, textarea {
    font-size: 0.95rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 100%;
    font-family: inherit;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
}

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

.field-hint {
    color: var(--color-muted);
    font-size: 0.82rem;
    margin: 0;
}

.field-error, .form-errors {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin: 0;
    padding-left: 1rem;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.message--success {
    background: #e2f9ec;
    color: #0e9448;
}

.message--error {
    background: #fdeaea;
    color: var(--color-danger);
}

/* Tables */

table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

table.data-table th, table.data-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.92rem;
}

table.data-table th {
    background: #f8f9fc;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.data-table tbody tr:last-child td {
    border-bottom: none;
}

table.data-table tfoot td {
    border-top: 2px solid var(--color-border);
    border-bottom: none;
    background: #f8f9fc;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1, .page-header h2 {
    margin: 0;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.search-form input {
    flex: 1;
}

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.detail-list {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    row-gap: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.detail-list dt {
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.detail-list dd {
    margin: 0;
}

.record-form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e3e7eb;
    color: #44505c;
}

.badge--new {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.badge--in_progress {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--on_hold {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--completed {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--draft {
    background: #e3e7eb;
    color: #44505c;
}

.badge--final {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--sent {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--accepted {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--rejected {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--closed {
    background: #e3e7eb;
    color: #44505c;
}

.badge--pending {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--received {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--declined {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--pass {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--fail {
    background: #fdeaea;
    color: var(--color-danger);
}

.badge--na {
    background: #e3e7eb;
    color: #44505c;
}

.badge--done {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--low {
    background: #e3e7eb;
    color: #44505c;
}

.badge--normal {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.badge--high {
    background: #fdf1da;
    color: #9a6a00;
}

.badge--urgent {
    background: #fdeaea;
    color: var(--color-danger);
    font-weight: 700;
}

.badge--issued {
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.badge--paid {
    background: #e2f9ec;
    color: #0e9448;
}

.badge--cancelled {
    background: #e3e7eb;
    color: #44505c;
}

.quick-actions--row {
    flex-direction: row;
    flex-wrap: wrap;
}

.quick-actions--row form {
    display: inline;
}

/* Dashboard */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef3fe;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card__icon svg {
    width: 20px;
    height: 20px;
}

.stat-card__label {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 0.25rem;
}

.stat-card__value {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    margin-bottom: 1.5rem;
}

.panel h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quick-actions .btn {
    text-align: center;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
}

.donut-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donut-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.empty-state {
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* Calendar */

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.calendar-nav h2 {
    margin: 0;
    min-width: 220px;
    text-align: center;
    font-size: 1.15rem;
}

table.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    table-layout: fixed;
}

table.calendar-table th {
    background: #f8f9fc;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.6rem;
    text-align: center;
}

td.calendar-day {
    vertical-align: top;
    border: 1px solid var(--color-border);
    padding: 0.4rem;
    height: 110px;
    width: 14.28%;
}

td.calendar-day--muted {
    background: #fafbfc;
    color: var(--color-muted);
}

td.calendar-day--today {
    background: #eef3fe;
}

.calendar-day__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.calendar-day__header a {
    text-decoration: none;
    color: inherit;
}

.calendar-day__add {
    color: var(--color-primary) !important;
    font-weight: 700;
    padding: 0 0.3rem;
}

.calendar-event {
    display: block;
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    background: #e4edfd;
    color: var(--color-primary-dark);
}

.calendar-event--measurement {
    background: #fdf1da;
    color: #9a6a00;
}

.calendar-event--visit {
    background: #e3e7eb;
    color: #44505c;
}

.calendar-event--other {
    background: #f1e4fd;
    color: #7c3aed;
}

.calendar-day__more {
    display: block;
    font-size: 0.72rem;
    color: var(--color-muted);
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.calc-tab {
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    background: transparent;
}

.calc-tab:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.calc-tab--active {
    background: var(--color-primary);
    color: #fff;
}

/* ===================== Strony publiczne (wizytówka) ===================== */

body.public {
    background: #fff;
}

.public-main {
    min-height: 60vh;
}

/* Nagłówek */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}

.site-logo__mark {
    color: var(--color-warning);
}

.site-logo__accent {
    color: var(--color-primary);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
}

.site-nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--color-text);
}

.site-header__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.btn-ghost {
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
}

/* Hero */

.hero {
    background: linear-gradient(160deg, #0f1b33 0%, #17284a 60%, #1f3566 100%);
    color: #fff;
    padding: 4.5rem 1.5rem 5rem;
}

.hero__inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: rgba(47, 111, 237, 0.2);
    border: 1px solid rgba(47, 111, 237, 0.5);
    color: #bdd3ff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 2.9rem;
    line-height: 1.12;
    margin: 0 0 1.1rem;
    letter-spacing: -0.02em;
}

.hero__lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c2cce0;
    margin: 0 0 1.8rem;
    max-width: 34rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.hero__note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: #8e9cba;
}

.hero__card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.hero__card-head {
    background: #f4f6fb;
    border-bottom: 1px solid var(--color-border);
    padding: 0.7rem 1rem;
    display: flex;
    gap: 0.4rem;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3d9e4;
}

.hero__card-body {
    padding: 1.4rem;
}

.hero__stat {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.hero__stat strong {
    font-size: 1.5rem;
    color: var(--color-primary);
    min-width: 2.2rem;
}

.hero__stat span {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.hero__bar {
    height: 8px;
    background: #eef1f7;
    border-radius: 999px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.hero__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #5b9bff);
    border-radius: 999px;
}

/* Sekcje */

.section {
    padding: 4.5rem 1.5rem;
}

.section--top {
    padding-top: 3rem;
}

.section--alt {
    background: var(--color-bg);
}

.section__inner {
    max-width: 1160px;
    margin: 0 auto;
}

.section__inner.narrow {
    max-width: 560px;
}

.section__title {
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 0.8rem;
}

.section__title--left {
    text-align: left;
}

.section__lead {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 44rem;
    margin: 0 auto 2.8rem;
}

.section__lead--left {
    text-align: left;
    margin-left: 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Funkcje */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.4rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Kroki */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.step h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Lista z ptaszkami */

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(23, 201, 100, 0.15);
    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Makieta telefonu */

.phone-mock {
    justify-self: center;
    width: 260px;
    border: 10px solid #0f1b33;
    border-radius: 32px;
    background: #0f1b33;
    box-shadow: 0 20px 50px rgba(15, 27, 51, 0.25);
}

.phone-mock__screen {
    background: var(--color-bg);
    border-radius: 22px;
    padding: 1.2rem 0.9rem;
}

.phone-mock__row {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.phone-mock__row span {
    font-size: 0.85rem;
    font-weight: 600;
}

.phone-mock__row em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--color-primary);
}

/* Cennik */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 1.3rem;
    align-items: start;
}

.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.plan-card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 12px 34px rgba(47, 111, 237, 0.16);
}

.plan-card__tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-card__name {
    margin: 0 0 0.3rem;
    font-size: 1.25rem;
}

.plan-card__desc {
    margin: 0 0 1.1rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    min-height: 2.6rem;
}

.plan-card__price {
    margin: 0 0 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.plan-card__price strong {
    font-size: 2.1rem;
    letter-spacing: -0.02em;
}

.plan-card__price span {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.plan-card__users {
    margin: 0 0 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    flex: 1;
}

.plan-card__features li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    color: var(--color-text);
}

.plan-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.plan-card__cta {
    text-align: center;
}

/* Wybór pakietu w rejestracji */

.plan-choice {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.plan-choice legend {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    padding: 0;
}

.plan-choice__option input[type="radio"] {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.plan-choice__option {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.plan-choice__option:hover {
    border-color: var(--color-primary);
}

.plan-choice__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.plan-choice__price {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.plan-choice__desc {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* FAQ */

.faq {
    max-width: 700px;
    margin: 4rem auto 0;
}

.faq h3 {
    text-align: center;
    font-size: 1.4rem;
    margin: 0 0 1.8rem;
}

.faq__item {
    border-top: 1px solid var(--color-border);
    padding: 1.2rem 0;
}

.faq__item h4 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
}

.faq__item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA */

.cta {
    background: var(--sidebar-bg);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta h2 {
    font-size: 1.9rem;
    margin: 0 0 0.7rem;
    letter-spacing: -0.02em;
}

.cta p {
    color: #c2cce0;
    margin: 0 0 1.8rem;
}

/* Panel informacyjny (brak subskrypcji) */

.notice-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-warning);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 3rem;
}

.notice-panel h2 {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
}

.notice-panel p {
    margin: 0 0 0.6rem;
    line-height: 1.6;
}

.inline-form {
    display: inline;
}

.auth-form {
    margin-top: 1rem;
}

.auth-form__footer {
    margin-top: 1rem;
    text-align: center;
}

/* Stopka publiczna */

.public-footer {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.public-footer__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.public-footer h3 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.9rem;
}

.public-footer a {
    display: block;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.public-footer a:hover {
    color: #fff;
}

.site-logo--footer {
    color: #fff;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.public-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 24rem;
}

.public-footer__muted {
    font-size: 0.85rem;
}

.public-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.2rem;
    font-size: 0.82rem;
}

/* Responsywność stron publicznych */

@media (max-width: 900px) {
    .hero__inner,
    .split {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero__visual {
        order: -1;
    }

    .public-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-header__inner {
        gap: 0.6rem;
        padding: 0.75rem 1rem;
    }

    .site-logo {
        font-size: 1rem;
    }

    .site-header__actions {
        gap: 0.4rem;
        margin-left: auto;
    }

    .site-header__actions .btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.78rem;
    }

    .hero {
        padding: 3rem 1.25rem 3.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }
}
