:root {
    --brand: #073f82;
    --brand-dark: #052e60;
    --brand-soft: #e7f3fb;
    --accent: #ef7f1a;
    --success: #147a43;
    --success-soft: #e7f7ed;
    --warning: #9a6300;
    --warning-soft: #fff4d7;
    --danger: #b4232f;
    --danger-soft: #fdebec;
    --ink: #172033;
    --muted: #5f6b7c;
    --line: #d9e0e8;
    --surface: #ffffff;
    --canvas: #f4f7fa;
    --shadow: 0 12px 32px rgba(9, 43, 84, 0.09);
    --radius: 18px;
    --radius-small: 11px;
    --page: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(47, 145, 207, 0.12), transparent 30rem),
        var(--canvas);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    transform: translateY(-150%);
    color: #fff;
    background: var(--brand-dark);
    border-radius: 8px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    color: #fff;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    box-shadow: 0 5px 20px rgba(3, 31, 65, 0.2);
}

.header-inner {
    width: min(100% - 28px, var(--page));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.brand img {
    width: 76px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.12));
}

.brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-identity {
    max-width: 230px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a,
.nav-button {
    min-height: 44px;
    padding: 11px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.nav-form {
    margin: 0;
}

.menu-toggle {
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    font-size: 24px;
    cursor: pointer;
}

.page-shell {
    width: min(100% - 28px, var(--page));
    min-height: calc(100vh - 150px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 54px) 0 64px;
}

.page-heading {
    max-width: 760px;
    margin: 0 0 28px;
}

.page-heading h1 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.page-heading p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.4vw, 1.12rem);
    white-space: pre-line;
}

.site-footer {
    padding: 24px 14px calc(24px + env(safe-area-inset-bottom));
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--brand);
}

.cookie-banner {
    position: fixed;
    z-index: 100;
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #c6d2df;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(9, 43, 84, 0.2);
}

.cookie-banner-copy {
    min-width: 0;
}

.cookie-banner-copy strong {
    color: var(--brand-dark);
}

.cookie-banner-copy p {
    max-width: 680px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.cookie-banner-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-banner-actions form {
    margin: 0;
}

.privacy-card h2 {
    margin-top: 30px;
}

.privacy-card h2:first-of-type {
    margin-top: 0;
}

.toolbar-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-form label {
    margin: 0;
    white-space: nowrap;
}

.toolbar-form select {
    width: auto;
    min-width: 135px;
}

.card {
    padding: clamp(20px, 4vw, 30px);
    background: var(--surface);
    border: 1px solid rgba(11, 63, 126, 0.11);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card + .card {
    margin-top: 20px;
}

.card h2,
.card h3 {
    margin-top: 0;
    color: var(--brand-dark);
}

.card h2:last-child,
.card h3:last-child,
.card p:last-child {
    margin-bottom: 0;
}

.hero {
    padding: clamp(26px, 6vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: clamp(26px, 6vw, 70px);
    overflow: hidden;
    background: linear-gradient(135deg, #fff, #edf7fd);
}

.hero h1 {
    margin: 0;
    color: var(--brand-dark);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    white-space: pre-line;
}

.hero-logo-panel {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 2 / 1;
    justify-self: center;
    overflow: hidden;
    background: linear-gradient(145deg, #0b67b2, #073f82 62%, #032d61);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 26px;
    box-shadow: 0 22px 38px rgba(3, 45, 97, 0.25);
}

.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 8px 10px rgba(0, 26, 63, 0.24));
}

.actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    min-height: 48px;
    padding: 12px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 12px;
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.button:focus-visible {
    background: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(7, 63, 130, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.button-secondary {
    color: var(--brand);
    background: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: #fff;
}

.button-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.button-danger:hover,
.button-danger:focus-visible {
    background: #8e1823;
}

.button-small {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.92rem;
}

.button[disabled],
.button.is-disabled {
    color: #788393;
    background: #e9edf2;
    border-color: #e0e5eb;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.alert {
    max-width: 860px;
    margin: 0 0 22px;
    padding: 15px 17px;
    color: var(--ink);
    background: var(--brand-soft);
    border-left: 5px solid var(--brand);
    border-radius: 11px;
}

.alert-success {
    background: var(--success-soft);
    border-color: var(--success);
}

.alert-warning {
    background: var(--warning-soft);
    border-color: var(--warning);
}

.alert-error,
.alert-danger {
    background: var(--danger-soft);
    border-color: var(--danger);
}

.social-proof {
    max-width: 860px;
    margin: 18px 0 22px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
    background: #eef8fd;
    border: 1px solid #c7e2f1;
    border-radius: 11px;
    font-weight: 700;
}

.social-proof-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(20, 122, 67, 0.12);
}

.form-card {
    max-width: 620px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    min-width: 0;
}

.form-group-full {
    grid-column: 1 / -1;
}

label,
.field-label {
    margin-bottom: 7px;
    display: block;
    color: var(--ink);
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #b9c3cf;
    border-radius: 10px;
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(7, 63, 130, 0.12);
}

.field-help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.check-row {
    min-height: 48px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: 22px;
    height: 22px;
    margin: 0;
}

.check-row label {
    margin: 0;
}

.date-grid {
    margin: 22px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
}

.date-card {
    min-height: 92px;
    padding: 12px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    text-align: center;
    text-decoration: none;
}

.date-card:hover,
.date-card:focus-visible,
.date-card.is-selected {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    outline: none;
}

.date-card.is-closed {
    color: #8b939f;
    background: #edf0f3;
    cursor: default;
}

.date-weekday {
    font-weight: 750;
}

.date-number {
    font-size: 1.2rem;
    font-weight: 800;
}

.date-availability {
    margin-top: 3px;
    font-size: 0.78rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
}

.slot-form {
    margin: 0;
}

.slot-button {
    width: 100%;
    min-height: 54px;
    padding: 10px;
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #91c9a7;
    border-radius: 11px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

.slot-button:hover,
.slot-button:focus-visible {
    color: #fff;
    background: var(--success);
    border-color: var(--success);
    outline: none;
}

.slot-button[disabled] {
    color: #8b939f;
    background: #edf0f3;
    border-color: #dde2e7;
    cursor: not-allowed;
}

.slot-button.is-current[disabled] {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    opacity: 1;
}

.appointment-summary {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(120deg, #f0f8fd, #fff);
    border: 1px solid #c9dfef;
    border-radius: 14px;
}

.appointment-date {
    display: flex;
    flex-direction: column;
}

.appointment-day {
    color: var(--muted);
    font-weight: 650;
}

.appointment-time {
    color: var(--brand-dark);
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 850;
    line-height: 1;
}

.status-pill {
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-confirmed {
    color: var(--success);
    background: var(--success-soft);
}

.status-pending {
    color: var(--warning);
    background: var(--warning-soft);
}

.status-cancelled {
    color: var(--danger);
    background: var(--danger-soft);
}

.stats-grid {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(9, 43, 84, 0.05);
}

.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(9, 43, 84, 0.12);
    outline: none;
}

.stat-value {
    display: block;
    color: var(--brand-dark);
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.stat-label {
    margin-top: 7px;
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.toolbar {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.toolbar form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid #e7ebf0;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--brand-dark);
    background: #f0f5f9;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.inline-form {
    margin: 0;
    display: inline;
}

.muted {
    color: var(--muted);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.stack {
    display: grid;
    gap: 18px;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.empty-state {
    padding: 34px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
}

.section-title {
    margin: 32px 0 14px;
    color: var(--brand-dark);
}

.client-meta {
    padding: 13px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--muted);
    background: #edf4f9;
    border-radius: 11px;
    font-size: 0.94rem;
}

.service-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.service-grid .card,
.cabin-grid .card {
    margin: 0;
}

.service-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.service-card > .actions {
    margin-top: auto;
    padding-top: 24px;
}

.service-kicker {
    margin-bottom: 7px;
    display: block;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.cabin-service-card {
    background: linear-gradient(145deg, #ffffff, #eef8fd);
}

.cabin-preview {
    margin: 5px 0 16px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--brand-soft);
    border: 1px solid #c4deef;
    border-radius: 13px;
}

.cabin-preview strong {
    color: var(--brand-dark);
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.1;
}

.cabin-preview span {
    color: var(--muted);
    font-weight: 650;
}

.cabin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 20px;
}

.cabin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.cabin-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.cabin-count {
    padding: 8px 11px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.cabin-sector {
    margin: 22px 0 26px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #f4f7fa;
    border-radius: 12px;
}

.cabin-sector span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cabin-sector strong {
    color: var(--brand-dark);
    font-size: 1.08rem;
}

.cabin-people-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 9px;
    list-style: none;
}

.cabin-person {
    min-width: 0;
    min-height: 52px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.cabin-person-marker {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(239, 127, 26, 0.13);
}

.cabin-person-name {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.cabin-empty-state {
    padding-top: 20px;
    padding-bottom: 20px;
}

.cabin-stations {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.cabin-stations h3 {
    margin-bottom: 14px;
}

.cabin-stations-list {
    display: grid;
    gap: 12px;
}

.cabin-station {
    padding: 15px 16px;
    background: linear-gradient(145deg, #ffffff, #f1f8fc);
    border: 1px solid #c9dfec;
    border-radius: 13px;
}

.cabin-station-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cabin-station-label {
    color: var(--brand-dark);
    line-height: 1.25;
}

.cabin-station-number {
    margin-top: 11px;
    color: var(--brand-dark);
    font-size: 1.12rem;
    font-weight: 850;
}

.cabin-station-meta,
.cabin-station-assignees {
    margin-top: 5px;
    color: var(--muted);
    font-weight: 650;
}

.cabin-station-assignees {
    padding-top: 9px;
    border-top: 1px solid rgba(15, 66, 132, 0.12);
    font-size: 0.92rem;
}

.cabin-station-empty {
    padding: 14px 16px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed #bfd1dc;
    border-radius: 12px;
}

.data-note {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    white-space: pre-line;
}

.campaign-countdown {
    margin: 22px 0;
    padding: clamp(22px, 5vw, 34px);
    color: #fff;
    background: linear-gradient(120deg, #052e60, #0b67b2);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    box-shadow: 0 16px 34px rgba(3, 45, 97, 0.2);
}

.campaign-countdown.is-urgent {
    background: linear-gradient(120deg, #7d3e00, #c36108);
}

.campaign-kicker {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.campaign-countdown p {
    max-width: 920px;
    margin: 8px 0 0;
    font-size: clamp(1.35rem, 4vw, 2.35rem);
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.025em;
    white-space: pre-line;
}

.campaign-days {
    color: #ffd18f;
    font-size: 1.18em;
    white-space: nowrap;
}

.campaign-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.campaign-actions a {
    color: #fff;
    font-weight: 750;
}

.public-booking-links {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.public-booking-links a {
    font-weight: 700;
}

.hero-manage-link {
    margin: 16px 0 0;
    font-size: 0.9rem;
}

.hero-manage-link a {
    font-weight: 700;
}

.access-choice-card {
    max-width: 980px;
    margin-inline: auto;
}

.access-choice-card > p {
    max-width: 780px;
}

.access-choice-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.access-choice-option {
    padding: clamp(20px, 4vw, 28px);
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.access-choice-option.is-recommended {
    border-color: rgba(20, 122, 67, 0.36);
    background: linear-gradient(145deg, #fff, var(--success-soft));
    box-shadow: 0 12px 28px rgba(20, 122, 67, 0.09);
}

.access-choice-option h3 {
    margin: 15px 0 8px;
    color: var(--brand-dark);
    font-size: 1.25rem;
}

.access-choice-option p {
    flex: 1;
    margin: 0 0 20px;
    color: var(--muted);
}

.slot-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.slot-link.is-selected {
    color: #fff;
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(20, 122, 67, 0.15);
}

.slot-button.is-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b939f;
    background: #edf0f3;
    border-color: #dde2e7;
    cursor: not-allowed;
}

.public-contact-card {
    margin-top: 20px;
}

.otp-card {
    margin-inline: auto;
}

.otp-input {
    max-width: 260px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 850;
    letter-spacing: 0.28em;
}

.selected-slot-summary {
    margin: 18px 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 12px;
}

.compact-actions {
    margin-top: 14px;
}

.simulator-service-card {
    background: linear-gradient(145deg, #fff, #fff6e9);
}

.current-cabin-simulator {
    margin-bottom: 20px;
    background: linear-gradient(145deg, #fff, #eef8fd);
}

.cabin-simulator-heading,
.result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.cabin-simulator-heading h2,
.result-heading h2 {
    margin-bottom: 4px;
}

.cabin-simulator-heading p,
.result-heading p {
    margin: 0;
    color: var(--muted);
}

.simulator-form-card {
    margin-top: 20px;
}

.simulator-result {
    margin-top: 20px;
    overflow: hidden;
    border-color: rgba(20, 122, 67, 0.25);
}

.saving-badge {
    min-width: 170px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #a8d5b8;
    border-radius: 14px;
    text-align: center;
}

.saving-badge span,
.saving-badge small {
    font-weight: 700;
}

.saving-badge strong {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.1;
}

.price-comparison {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.price-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f5f7fa;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.price-card-featured {
    background: var(--success-soft);
    border-color: #a8d5b8;
}

.price-card span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.price-card strong {
    color: var(--brand-dark);
    font-size: clamp(1.65rem, 5vw, 2.35rem);
}

.price-card-featured strong {
    color: var(--success);
}

.calculation-breakdown {
    padding: 18px;
    background: #f8fafc;
    border-radius: 13px;
}

.breakdown-row {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.breakdown-row:last-child {
    border-bottom: 0;
}

.sector-explorer {
    margin-top: 24px;
}

.is-highlighted-row td {
    background: #eef8fd;
}

.listino-admin-table input[type="number"] {
    min-width: 105px;
}

.listino-admin-table input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

@media (max-width: 1180px) {
    .admin-area .menu-toggle,
    .client-area .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        padding: 10px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--brand-dark);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 14px 24px rgba(3, 31, 65, 0.22);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .nav-button {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-logo-panel {
        width: min(100%, 360px);
        grid-row: 1;
    }

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

    .listino-admin-table {
        min-width: 760px;
    }
}

@media (max-width: 720px) {
    .header-inner,
    .page-shell {
        width: min(100% - 22px, var(--page));
    }

    .header-inner {
        min-height: 64px;
    }

    .brand img {
        width: 62px;
        height: 44px;
    }

    .admin-identity {
        max-width: 155px;
        font-size: 0.84rem;
    }

    .page-shell {
        padding-top: 28px;
    }

    .form-grid,
    .two-columns,
    .service-grid,
    .access-choice-grid {
        grid-template-columns: 1fr;
    }

    .actions .button {
        flex: 1 1 180px;
    }

    .responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        padding: 12px 14px;
        border-bottom: 8px solid var(--canvas);
    }

    .responsive-table tr:last-child {
        border-bottom: 0;
    }

    .responsive-table td {
        min-height: 38px;
        padding: 8px 0;
        display: grid;
        grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
        gap: 12px;
        border: 0;
        overflow-wrap: anywhere;
    }

    .responsive-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 750;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .responsive-table td.table-actions-cell {
        display: block;
    }

    .responsive-table td.table-actions-cell::before {
        display: none;
    }

    .table-actions .button,
    .table-actions form,
    .table-actions form .button {
        width: 100%;
    }

    .appointment-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .cabin-heading {
        flex-direction: column;
    }

    .toolbar,
    .toolbar form {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-form select {
        width: 100%;
    }

    .toolbar .form-group,
    .toolbar .button {
        width: 100%;
    }

    .campaign-actions {
        flex-direction: column;
    }

    .cabin-simulator-heading,
    .result-heading {
        flex-direction: column;
    }

    .saving-badge {
        width: 100%;
    }

    .price-comparison {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-banner-actions form,
    .cookie-banner-actions a,
    .cookie-banner-actions button {
        flex: 1 1 140px;
        width: 100%;
    }
}

@media (max-width: 430px) {
    .brand span {
        max-width: 190px;
    }

    .admin-identity {
        max-width: 120px;
    }

    .card,
    .hero {
        padding: 20px;
        border-radius: 15px;
    }

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

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

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
