:root {
    --header-height: 88px;
    --footer-height: 160px;

    /* shadcn-like palette адаптированная под Oranza */
    --brand: #004c9b;
    --brand-foreground: #f9fafb;
    --brand-soft: #e0f2fe;

    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: var(--brand);

    --background: #0b1120;
    --foreground: #111827;

    --surface: #f3f4f6;
    --surface-soft: #ffffff;

    --muted: #6b7280;
    --muted-foreground: #6b7280;

    --danger: #b91c1c;
}

body {
    background-color: var(--surface);
    color: var(--foreground);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.has-fixed-header {
    padding-top: var(--header-height);
}

main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.page-home {
    background-image:
        linear-gradient(135deg, rgba(0, 53, 115, 0.5), rgba(0, 36, 81, 0.6)),
        url("../images/oranza-bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.page-home-old {
    background-color: #001f3f;
    color: #ffffff;
}




.bg-brand {
    background-color: var(--brand) !important;
}

.bg-brand-dark {
    background-color: #00376f !important;
}

.text-brand {
    color: var(--brand) !important;
}

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

.card-surface {
    background-color: var(--surface-soft);
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.btn-brand-primary {
    background-color: var(--brand);
    color: var(--brand-foreground);
    border-radius: 999px;
    padding-inline: 2.5rem;
    padding-block: 0.9rem;
    font-weight: 600;
}

.btn-brand-primary:hover {
    background-color: #003f7f;
    color: var(--brand-foreground);
}

.btn-brand-secondary {
    background-color: #033b75;
    color: #ffffff;
    border-radius: 999px;
    padding-inline: 2.5rem;
    padding-block: 0.9rem;
    font-weight: 600;
}

.btn-outline-secondary {
    border-radius: 999px;
    padding-inline: 2.5rem;
    padding-block: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bg-auth {
    background-color: #6485aa;
}

.auth-shell {
    max-width: 420px;
    width: 100%;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
    padding: 2.5rem 2.75rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 0.75rem;
    background: conic-gradient(from 180deg, #ff7d1a, #f97316 35%, #ffffff 36%, #ffffff 64%, #0f172a 65%, #0f172a 100%);
}

.header-logo {
    height: 40px;
    width: auto;
}

.bg-tag {
    background-color: #0b5ed7;
}

.bg-brand-soft {
    background-color: var(--brand-soft);
}

.oranza-footer {
    background-color: #002c5b;
    color: #ffffff;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.oranza-footer .logo-mark {
    background: conic-gradient(from 180deg, #ff7d1a, #f97316 35%, #ffffff 36%, #ffffff 64%, #0f172a 65%, #0f172a 100%);
}

.footer-hours div+div {
    margin-top: 0.15rem;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact a:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 1.1rem;
}

.footer-socials a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.footer-logo {
    height: 36px;
    width: auto;
}

.icon-pill {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    background-image: linear-gradient(135deg, #0b5ed7, #0f172a);
}

.track-card {
    background-color: #f9fafb;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
}

.hero-section {
    position: relative;
    padding-block: 5rem;
    background-image:
        linear-gradient(135deg, rgba(0, 37, 82, 0.75), rgba(0, 68, 135, 0.65)),
        url("../images/oranza-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.page-home .hero-section {
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(5rem + var(--header-height));
}

.hero-alt {
    padding-block: 5rem;
    color: #ffffff;
    position: relative;
}


.page-home .hero-alt {
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(5rem + var(--header-height));
}


.hero-pill-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.3rem;
    gap: 0.5rem;
}

.hero-pill {
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-pill.active {
    background: #ffffff;
    color: #0d3883;
}

.hero-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(13, 56, 131, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hero-alt-title {
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 600;
}

.hero-chat-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #ffffff;
}

.hex-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.hero-phone-alt span {
    color: #ffffff;
}

.hero-pill-separate {
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.hero-pill-separate:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-pill-separate .hero-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hero-tag-white {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-action-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    color: #ffffff;
}

.hero-action-card .btn {
    border: 0;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hero-action-card .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #0d3883;
}

.hero-action-card .btn-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.hero-action-card .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.hero-action-card .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.hero-track-card {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    color: #ffffff;
}

.hero-track-card .btn-light {
    border: 0;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #0d3883;
    transition: all 0.2s ease;
}

.hero-track-card .btn-light:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.pill-switch {
    background-color: rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 0.3rem;
    display: inline-flex;
    gap: 0.75rem;
}

.pill-switch button {
    border-radius: 999px;
    padding-inline: 1.75rem;
    padding-block: 0.7rem;
    font-weight: 600;
    border: 0;
}

.pill-switch .active {
    background-color: #ffffff;
    color: #0b5ed7;
}

.hero-actions {
    gap: 1.5rem;
}

.hero-phone-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stepper-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background-color: #e5e7eb;
    font-size: 0.875rem;
}

.stepper-step.active {
    background-color: var(--brand);
    color: #ffffff;
}

.stepper-step.completed {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.stepper-step span.badge {
    border-radius: 999px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.cargo-item {
    background-color: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
}

.cargo-item+.cargo-item {
    margin-top: 1rem;
}

.cargo-dimensions {
    border-top: 1px dashed var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.summary-card p {
    font-size: 0.95rem;
}

.summary-cargo-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    margin-bottom: 0.5rem;
}

.payment-method {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-method+.payment-method {
    margin-top: 0.5rem;
}

.payment-method .form-check-input {
    margin-top: 0;
    width: 1.15rem;
    height: 1.15rem;
}

.payment-method .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.order-summary {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.order-summary-card,
.order-summary-note {
    border-radius: 1.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.order-summary-card dl dt {
    font-weight: 600;
}

.order-summary-card dl dd {
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .order-summary {
        position: static;
        top: auto;
    }
}

.order-card {
    border-radius: 1rem;
    border-left: 4px solid #facc15;
}

.form-control,
.form-select {
    border-radius: 0.75rem;
    border-color: var(--input);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.btn-check+.btn-outline-brand {
    border-radius: 0.75rem;
    border-color: #e5e7eb;
    color: var(--foreground);
}

.btn-check:checked+.btn-outline-brand {
    background-color: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand);
}

.table-orders th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
}

.table-orders td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.badge-status {
    border-radius: 999px;
    padding-inline: 0.9rem;
    padding-block: 0.25rem;
    font-weight: 600;
}

.badge-status--new {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-status--inprogress {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-status--done {
    background-color: #dcfce7;
    color: #166534;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--brand);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.cookie-banner-description {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.cookie-banner-link {
    color: var(--brand);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-link:hover {
    color: #003f7f;
}

.cookie-banner-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-settings-content {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease-out;
    color: #111827;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cookie-settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--foreground);
}

.cookie-settings-close {
    background: none;
    border: 0;
    font-size: 1.25rem;
    color: var(--muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.cookie-settings-close:hover {
    background: var(--surface);
    color: var(--foreground);
}

.cookie-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cookie-category {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background: var(--surface-soft);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.form-switch .form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    border-radius: 0 0 1rem 1rem;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-actions button {
        width: 100%;
    }

    .cookie-settings-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cookie-settings-footer>div {
        flex-direction: column;
        width: 100%;
    }

    .cookie-settings-footer button {
        width: 100%;
    }
}

/* Order Timeline Styles */
.order-timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--muted);
    transition: all 0.3s;
}

.timeline-item.completed .timeline-marker {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.timeline-item.active .timeline-marker {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.timeline-content {
    padding-top: 0.25rem;
}

.timeline-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.timeline-date {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

.timeline-item.completed .timeline-title {
    color: var(--foreground);
}

.timeline-item.active .timeline-title {
    color: #92400e;
    font-weight: 700;
}

.timeline-item:not(.completed):not(.active) .timeline-title {
    color: var(--muted);
}