* {
    box-sizing: border-box;
}

:root {
    --dark: #111827;
    --dark-soft: #1f2937;
    --accent: #ff6b00;
    --accent-hover: #e95f00;
    --background: #f3f4f6;
    --white: #ffffff;
    --text: #18212f;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #18864b;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    background: var(--dark);
    color: var(--white);
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-main {
    font-size: 30px;
}

.logo-number {
    margin-left: 4px;
    color: var(--accent);
    font-size: 30px;
}

.header-text {
    color: #d1d5db;
    font-size: 14px;
}

main {
    flex: 1;
}

.hero {
    padding: 42px 0 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 0, 0.16), transparent 35%),
        linear-gradient(135deg, #111827, #1f2937);
}

.hero-card {
    max-width: 820px;
    padding: 42px;
    color: var(--white);
}

.hero-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 107, 0, 0.65);
    border-radius: 999px;
    color: #ffb47d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 650px;
    margin: 20px 0 28px;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.55;
}

.search-box {
    display: flex;
    max-width: 760px;
    padding: 6px;
    border-radius: 14px;
    background: var(--white);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    color: var(--text);
    background: transparent;
    font-size: 18px;
}

.search-box button,
.request-button {
    border: 0;
    border-radius: 10px;
    padding: 0 28px;
    color: var(--white);
    background: var(--accent);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.search-box button:hover,
.request-button:hover {
    background: var(--accent-hover);
}

.examples {
    margin-top: 15px;
    color: #9ca3af;
    font-size: 13px;
}

.example {
    margin-left: 8px;
    border: 0;
    color: #ffb47d;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
}

.results-section {
    padding: 34px 0 56px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.result-header h2 {
    margin: 0;
}

.result-header span {
    color: var(--muted);
}

.products {
    display: grid;
    gap: 14px;
}

.product {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 22px rgba(17, 24, 39, 0.05);
}

.product-brand {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-article {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 800;
}

.product-name {
    line-height: 1.4;
}

.product-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.product-stock {
    color: var(--success);
    font-weight: 800;
}

.product-price {
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
}

.product-button {
    border: 1px solid var(--accent);
    border-radius: 9px;
    padding: 11px 18px;
    color: var(--accent);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.welcome-block,
.empty-result {
    padding: 54px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: var(--white);
    text-align: center;
}

.welcome-block h2,
.empty-result h2 {
    margin: 12px 0 8px;
}

.welcome-block p,
.empty-result p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.5;
}

.welcome-icon,
.empty-icon {
    font-size: 40px;
}

.request-button {
    margin-top: 20px;
    padding: 13px 22px;
}

.footer {
    padding: 20px 0;
    color: #9ca3af;
    background: var(--dark);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.hidden {
    display: none !important;
}

@media (max-width: 820px) {
    .header-text {
        display: none;
    }

    .hero-card {
        padding: 26px 0;
    }

    .search-box {
        flex-direction: column;
        background: transparent;
    }

    .search-box input {
        border-radius: 10px;
        background: var(--white);
    }

    .search-box button {
        margin-top: 8px;
        padding: 15px;
    }

    .examples {
        line-height: 2;
    }

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

    .product-name {
        grid-column: 1 / -1;
    }

    .product-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .hero {
        padding-top: 20px;
    }

    h1 {
        letter-spacing: -1px;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .product-name {
        grid-column: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 6px;
    }
}

/* Состояние настоящего поиска через API */
.search-box input:disabled {
    opacity: 0.85;
}

.search-box button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.product-label + div + .product-label {
    margin-top: 8px;
}


/* ==================================================================
   ЭТАП 3.3A — ШАПКА МАГАЗИНА И МОДАЛЬНОЕ ОКНО АККАУНТА
   ================================================================== */

body.modal-open {
    overflow: hidden;
}

.logo {
    color: var(--white);
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.navigation-link {
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    color: #d1d5db;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.navigation-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-button,
.account-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 9px 13px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.cart-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.account-button {
    border: 1px solid var(--accent);
    color: var(--white);
    background: var(--accent);
}

.cart-button:hover,
.account-button:hover {
    transform: translateY(-1px);
}

.cart-button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.account-button:hover {
    background: var(--accent-hover);
}

.cart-icon,
.account-icon {
    font-size: 16px;
}

.cart-count {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 6px;
    color: var(--dark);
    background: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 14, 25, 0.76);
    backdrop-filter: blur(7px);
    overflow-y: auto;
}

.account-modal {
    position: relative;
    width: min(100%, 560px);
    margin: auto;
    padding: 34px;
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    animation: account-modal-in 0.2s ease-out;
}

@keyframes account-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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

.modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: #f3f4f6;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--dark);
    background: #e5e7eb;
}

.modal-logo {
    display: flex;
    align-items: baseline;
    margin-bottom: 22px;
    font-weight: 900;
    letter-spacing: -1px;
}

.modal-logo .logo-main,
.modal-logo .logo-number {
    font-size: 25px;
}

.modal-heading {
    margin-bottom: 25px;
}

.modal-heading h2 {
    margin: 10px 0 8px;
    font-size: 30px;
    letter-spacing: -0.7px;
}

.modal-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.modal-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--accent-hover);
    background: rgba(255, 107, 0, 0.1);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registration-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > span {
    color: var(--dark-soft);
    font-size: 13px;
    font-weight: 800;
}

.form-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7dce3;
    border-radius: 11px;
    outline: none;
    padding: 12px 14px;
    color: var(--text);
    background: var(--white);
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.11);
}

.form-field input::placeholder {
    color: #9ca3af;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 94px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    color: var(--accent-hover);
    background: rgba(255, 107, 0, 0.08);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.registration-submit {
    min-height: 51px;
    border: 0;
    border-radius: 11px;
    color: var(--white);
    background: var(--accent);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.registration-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.form-legal {
    margin: -4px 0 0;
    color: #8a929f;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.form-message {
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.4;
}

.form-message.error {
    color: #a61b1b;
    background: #feecec;
}

.form-message.success {
    color: #116b3b;
    background: #e9f8ef;
}

.login-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.login-offer button {
    border: 0;
    padding: 3px;
    color: var(--accent-hover);
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1040px) {
    .main-navigation {
        display: none;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .logo-main,
    .logo-number {
        font-size: 25px;
    }

    .cart-text {
        display: none;
    }

    .account-button span:last-child {
        display: none;
    }

    .cart-button,
    .account-button {
        min-width: 43px;
        padding: 8px 10px;
    }

    .cart-button {
        gap: 5px;
    }
}

@media (max-width: 520px) {
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .account-modal {
        width: 100%;
        max-height: 94vh;
        overflow-y: auto;
        margin: 0;
        padding: 28px 20px 24px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-heading h2 {
        font-size: 26px;
    }
}


/* ==================================================================
   ЭТАП 3.3B — СОСТОЯНИЕ ОТПРАВКИ ФОРМЫ
   ================================================================== */

.registration-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.form-field input:disabled,
.password-toggle:disabled {
    cursor: wait;
    opacity: 0.75;
}

.form-message {
    overflow-wrap: anywhere;
}


/* ==================================================================
   ЭТАП 3.4 — СЕССИИ, ВХОД И УВЕДОМЛЕНИЯ
   ================================================================== */

.site-toast {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 2000;
    max-width: min(420px, calc(100% - 32px));
    padding: 15px 18px;
    border-radius: 12px;
    color: #116b3b;
    background: #e9f8ef;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.2);
    font-size: 14px;
    font-weight: 800;
    animation: account-modal-in 0.2s ease-out;
}

.site-toast.error {
    color: #a61b1b;
    background: #feecec;
}

#profileView {
    padding: 8px 0;
}

@media (max-width: 520px) {
    .site-toast {
        top: 74px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* ==================================================================
   ЭТАП 3.5 — ПОДТВЕРЖДЕНИЕ EMAIL
   ================================================================== */

.verification-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 16px;
    background: #f8fafc;
}

.verification-status {
    margin-bottom: 5px;
    font-weight: 900;
}

.verification-status.pending {
    color: #b45309;
}

.verification-status.verified {
    color: var(--success);
}

.verification-description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.verification-button {
    flex: 0 0 auto;
    border: 1px solid var(--accent);
    border-radius: 9px;
    padding: 10px 13px;
    color: var(--accent-hover);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.verification-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.verification-link-box {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 107, 0, 0.06);
    font-size: 12px;
}

.verification-link-box a {
    overflow-wrap: anywhere;
    color: var(--accent-hover);
    font-weight: 700;
}

.verification-link-box small {
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 520px) {
    .verification-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .verification-button {
        width: 100%;
    }
}


/* ==================================================================
   ЭТАП 4.1 — КОРЗИНА
   ================================================================== */

.cart-modal {
    position: relative;
    width: min(100%, 820px);
    max-height: min(88vh, 850px);
    overflow-y: auto;
    margin: auto;
    border-radius: 22px;
    padding: 30px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.cart-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cart-modal-header h2 {
    margin: 8px 0 0;
    font-size: 30px;
}

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

.cart-state h3 {
    margin: 12px 0 7px;
    color: var(--text);
    font-size: 22px;
}

.cart-state p {
    margin: 0;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 17px;
    background: #fafbfc;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-brand {
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-item-article {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 900;
}

.cart-item-name {
    margin-top: 8px;
    color: var(--text);
    line-height: 1.4;
}

.cart-item-delivery {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.cart-item-controls {
    min-width: 180px;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 10px;
}

.cart-quantity {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
}

.cart-quantity button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.cart-quantity button:hover:not(:disabled) {
    background: #f1f3f5;
}

.cart-quantity button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.cart-quantity span {
    min-width: 38px;
    text-align: center;
    font-weight: 900;
}

.cart-item-price {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.cart-item-price span {
    color: var(--muted);
    font-size: 12px;
}

.cart-item-price strong {
    font-size: 18px;
}

.cart-delete-button {
    border: 0;
    padding: 3px;
    color: #b42318;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cart-summary {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-total-row {
    font-size: 22px;
}

.cart-summary small {
    color: var(--muted);
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 700px) {
    .cart-modal {
        width: 100%;
        max-height: 94vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 24px 18px;
    }

    #cartModal {
        align-items: flex-end;
        padding: 0;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item-controls {
        min-width: 0;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
    }

    .cart-item-price {
        justify-items: start;
    }
}


/* ==================================================================
   ЭТАП 4.2B — ОФОРМЛЕНИЕ И МОИ ЗАКАЗЫ
   ================================================================== */

.checkout-modal,
.order-details-modal {
    position: relative;
    width: min(100%, 760px);
    max-height: min(92vh, 920px);
    overflow-y: auto;
    margin: auto;
    border-radius: 22px;
    padding: 32px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.checkout-form {
    display: grid;
    gap: 18px;
}

.checkout-form h3 {
    margin: 6px 0 -4px;
    font-size: 17px;
}

.checkout-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    background: var(--white);
    font: inherit;
}

.checkout-options {
    display: grid;
    gap: 10px;
}

.checkout-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #fafbfc;
    cursor: pointer;
}

.checkout-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
}

.checkout-option input {
    margin-top: 3px;
}

.checkout-option span {
    display: grid;
    gap: 3px;
}

.checkout-option small,
.checkout-note {
    color: var(--muted);
    line-height: 1.4;
}

.checkout-delivery-fields {
    display: grid;
    gap: 14px;
}

.order-success-modal {
    width: min(100%, 480px);
    margin: auto;
    border-radius: 22px;
    padding: 42px 32px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.order-success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #116b3b;
    background: #e9f8ef;
    font-size: 42px;
    font-weight: 900;
}

.order-success-modal h2 {
    margin: 0 0 12px;
}

.order-success-number {
    display: block;
    margin: 12px 0 18px;
    color: var(--accent-hover);
    font-size: 28px;
}

.profile-orders-section {
    margin: 20px 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.profile-section-heading h3 {
    margin: 0 0 5px;
}

.profile-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.orders-state {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.orders-list {
    display: grid;
    gap: 9px;
}

.order-card {
    width: 100%;
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    background: #fafbfc;
    text-align: left;
    cursor: pointer;
}

.order-card:hover {
    border-color: var(--accent);
}

.order-card-top,
.order-card-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-card-number {
    font-size: 16px;
}

.order-card-details {
    color: var(--muted);
    font-size: 12px;
}

.order-card-details strong {
    color: var(--text);
    font-size: 15px;
}

.order-status {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    color: #8a4b08;
    background: #fff4d8;
    font-size: 12px;
    font-weight: 900;
}

.order-status-confirmed {
    color: #174ea6;
    background: #e8f0fe;
}

.order-status-preparing {
    color: #9a3412;
    background: #ffedd5;
}

.order-status-in_transit {
    color: #6b21a8;
    background: #f3e8ff;
}

.order-status-ready_for_pickup,
.order-status-completed {
    color: #116b3b;
    background: #e9f8ef;
}

.order-status-clarification_required {
    color: #92400e;
    background: #fef3c7;
}

.order-status-cancelled {
    color: #a61b1b;
    background: #feecec;
}

.order-details-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.order-details-heading h2 {
    margin: 0;
}

.order-details-heading p {
    margin: 0;
    color: var(--muted);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.order-info-grid > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.order-info-grid span {
    color: var(--muted);
    font-size: 12px;
}

.order-items-list {
    display: grid;
    gap: 10px;
}

.order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #fafbfc;
}

.order-item p {
    margin: 5px 0;
}

.order-item small {
    color: var(--muted);
}

.order-item-price {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 5px;
}

.order-item-price span {
    color: var(--muted);
    font-size: 12px;
}

.order-details-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0 24px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    font-size: 20px;
}

.order-comment {
    margin-bottom: 24px;
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
}

.order-comment p {
    margin: 7px 0 0;
}

.order-history {
    display: grid;
    gap: 0;
}

.order-history-item {
    position: relative;
    display: grid;
    gap: 4px;
    margin-left: 8px;
    border-left: 2px solid var(--border);
    padding: 0 0 22px 22px;
}

.order-history-dot {
    position: absolute;
    top: 3px;
    left: -7px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--accent);
}

.order-history-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.order-history-item small {
    color: var(--muted);
}

@media (max-width: 650px) {
    .checkout-modal,
    .order-details-modal {
        width: 100%;
        max-height: 94vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 25px 18px;
    }

    #checkoutModal,
    #orderDetailsModal {
        align-items: flex-end;
        padding: 0;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-item {
        grid-template-columns: 1fr;
    }

    .order-item-price {
        justify-items: start;
    }

    .profile-section-heading {
        flex-direction: column;
    }

    .order-card-top,
    .order-card-details {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==================================================================
   ЭТАП 4.2C — ОТДЕЛЬНОЕ ОКНО ЗАКАЗОВ И ОТМЕНА
   ================================================================== */

.orders-modal {
    position: relative;
    width: min(100%, 760px);
    max-height: min(90vh, 880px);
    overflow-y: auto;
    margin: auto;
    border-radius: 22px;
    padding: 30px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.orders-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.orders-modal-header h2 {
    margin: 8px 0 5px;
    font-size: 30px;
}

.orders-modal-header p {
    margin: 0;
    color: var(--muted);
}

.orders-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.order-cancel-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 24px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px;
    background: #fff7f7;
}

.order-cancel-section p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.order-cancel-button {
    flex: 0 0 auto;
    border: 1px solid #dc2626;
    border-radius: 9px;
    padding: 10px 14px;
    color: #b91c1c;
    background: var(--white);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.order-cancel-button:hover:not(:disabled) {
    color: var(--white);
    background: #dc2626;
}

.order-cancel-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 650px) {
    .orders-modal {
        width: 100%;
        max-height: 94vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 24px 18px;
    }

    #ordersModal {
        align-items: flex-end;
        padding: 0;
    }

    .orders-modal-header,
    .order-cancel-section {
        align-items: stretch;
        flex-direction: column;
    }

    .order-cancel-button {
        width: 100%;
    }
}


/* ==================================================================
   ЭТАП 4.3.1 — SAFE ORDERS REDESIGN
   Только визуальные изменения. JavaScript и HTML не затрагиваются.
   ================================================================== */

/* ------------------------------------------------------------------
   КНОПКА «МОИ ЗАКАЗЫ» В ШАПКЕ
   ------------------------------------------------------------------ */

#myOrdersButton {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 7px 20px rgba(0, 0, 0, 0.16);

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

#myOrdersButton::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: #ff6b00;
}

#myOrdersButton .account-icon {
    display: inline-grid;
    place-items: center;

    width: 25px;
    height: 25px;

    border-radius: 7px;

    color: #ff8a32;
    background: rgba(255, 107, 0, 0.14);
}

#myOrdersButton:hover {
    border-color: rgba(255, 107, 0, 0.9);

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.17),
            rgba(255, 107, 0, 0.065)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 9px 25px rgba(0, 0, 0, 0.2);

    transform: translateY(-1px);
}

#myOrdersButton:active {
    transform: translateY(0);
}


/* ------------------------------------------------------------------
   ФОН ОКНА «МОИ ЗАКАЗЫ»
   ------------------------------------------------------------------ */

#ordersModal {
    padding: 24px;

    background: rgba(3, 10, 22, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.orders-modal {
    width: min(94vw, 900px);
    max-height: min(90vh, 880px);

    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;

    padding: 28px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 107, 0, 0.09),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            #132137 0%,
            #0c1728 58%,
            #091321 100%
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5);
}

.orders-modal-header {
    margin-bottom: 8px;
}

.orders-modal-header .modal-badge {
    color: #ff963f;
    background: rgba(255, 107, 0, 0.13);
}

.orders-modal-header h2 {
    color: #ffffff;
    letter-spacing: -0.02em;
}

.orders-modal-header p {
    max-width: 560px;

    color: rgba(255, 255, 255, 0.62);

    line-height: 1.5;
}

.orders-modal .modal-close {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.045);
}

.orders-modal .modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}


/* ------------------------------------------------------------------
   КНОПКА ОБНОВЛЕНИЯ
   ------------------------------------------------------------------ */

.orders-modal .verification-button,
.orders-toolbar .verification-button {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    color: rgba(255, 255, 255, 0.9);

    background: rgba(255, 255, 255, 0.055);

    box-shadow: none;

    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.orders-modal .verification-button:hover,
.orders-toolbar .verification-button:hover {
    border-color: #ff6b00;

    color: #ffffff;

    background: rgba(255, 107, 0, 0.13);
}


/* ------------------------------------------------------------------
   СОСТОЯНИЯ ЗАГРУЗКИ И ПУСТОГО СПИСКА
   ------------------------------------------------------------------ */

.orders-modal .orders-state {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    padding: 35px 20px;

    color: rgba(255, 255, 255, 0.62);

    background: rgba(255, 255, 255, 0.025);
}

.orders-modal .orders-state h3 {
    color: #ffffff;
}

.orders-modal .orders-state p {
    color: rgba(255, 255, 255, 0.58);
}


/* ------------------------------------------------------------------
   КАРТОЧКИ ЗАКАЗОВ
   ------------------------------------------------------------------ */

.orders-modal .orders-list {
    gap: 11px;
}

.orders-modal .order-card {
    position: relative;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;

    padding: 17px 18px;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.orders-modal .order-card::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    opacity: 0;

    background: #ff6b00;

    transition: opacity 0.18s ease;
}

.orders-modal .order-card:hover {
    border-color: rgba(255, 107, 0, 0.78);

    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 0, 0.12),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 10px 27px rgba(0, 0, 0, 0.18);

    transform: translateY(-2px);
}

.orders-modal .order-card:hover::before {
    opacity: 1;
}

.orders-modal .order-card-number {
    color: #ffffff;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 0.01em;
}

.orders-modal .order-card-details {
    color: rgba(255, 255, 255, 0.58);
}

.orders-modal .order-card-details strong {
    color: #ffffff;
}

.orders-modal .order-card-top {
    align-items: flex-start;
}


/* ------------------------------------------------------------------
   БЕЙДЖИ СТАТУСОВ В СПИСКЕ
   ------------------------------------------------------------------ */

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: fit-content;

    border: 1px solid transparent;
    border-radius: 999px;

    padding: 6px 10px;

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.order-status::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: currentColor;
}


/* Заказ создан */

.order-status-received {
    border-color: rgba(70, 158, 255, 0.25);

    color: #72b5ff;

    background: rgba(47, 135, 230, 0.13);
}


/* Подтверждён */

.order-status-confirmed {
    border-color: rgba(73, 203, 130, 0.25);

    color: #69d89a;

    background: rgba(38, 169, 96, 0.13);
}


/* Готовится */

.order-status-preparing {
    border-color: rgba(192, 122, 255, 0.27);

    color: #c28aff;

    background: rgba(136, 67, 207, 0.15);
}


/* В пути */

.order-status-in_transit {
    border-color: rgba(174, 128, 255, 0.27);

    color: #bc96ff;

    background: rgba(118, 74, 203, 0.15);
}


/* Готов к получению */

.order-status-ready_for_pickup {
    border-color: rgba(82, 212, 144, 0.26);

    color: #72dfa6;

    background: rgba(38, 169, 96, 0.14);
}


/* Получен / завершён */

.order-status-completed {
    border-color: rgba(82, 212, 144, 0.26);

    color: #72dfa6;

    background: rgba(38, 169, 96, 0.14);
}


/* Требуется уточнение */

.order-status-clarification_required {
    border-color: rgba(255, 184, 70, 0.28);

    color: #ffbf58;

    background: rgba(216, 130, 18, 0.15);
}


/* Отменён */

.order-status-cancelled {
    border-color: rgba(186, 197, 214, 0.2);

    color: #b7c0cf;

    background: rgba(145, 156, 174, 0.13);
}


/* ------------------------------------------------------------------
   СВЕТЛАЯ КАРТОЧКА КОНКРЕТНОГО ЗАКАЗА
   ------------------------------------------------------------------ */

#orderDetailsModal {
    padding: 24px;

    background: rgba(3, 10, 22, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.order-details-modal {
    width: min(94vw, 940px);
    max-height: min(91vh, 900px);

    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;

    padding: 32px;

    color: #172236;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6f8fb 100%
        );

    box-shadow:
        0 32px 95px rgba(0, 0, 0, 0.5);
}

.order-details-modal .modal-close {
    border: 1px solid #e2e7ef;

    color: #59677a;

    background: #f6f8fb;
}

.order-details-modal .modal-close:hover {
    color: #172236;
    background: #e9edf3;
}


/* Шапка заказа */

.order-details-modal .order-details-heading {
    display: grid;
    gap: 11px;

    margin-bottom: 22px;

    border: 1px solid #e0e6ee;
    border-radius: 16px;

    padding: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(28, 45, 73, 0.055);
}

.order-details-modal .order-details-heading h2 {
    color: #152136;

    font-size: 27px;
    letter-spacing: -0.02em;
}

.order-details-modal .order-details-heading p {
    color: #6e7a8c;

    line-height: 1.5;
}


/* Информация о заказе */

.order-details-modal .order-info-grid {
    gap: 11px;
}

.order-details-modal .order-info-grid > div {
    border: 1px solid #e1e6ee;
    border-radius: 12px;

    padding: 13px 14px;

    background: #ffffff;
}

.order-details-modal .order-info-grid span {
    color: #8b95a4;
}

.order-details-modal .order-info-grid strong {
    color: #344257;
}


/* Товары */

.order-details-modal .order-items-list {
    gap: 9px;
}

.order-details-modal .order-item {
    border: 1px solid #e1e6ee;
    border-radius: 13px;

    padding: 15px;

    background: #ffffff;

    box-shadow:
        0 5px 16px rgba(28, 45, 73, 0.035);
}

.order-details-modal .order-item p {
    color: #536074;
}

.order-details-modal .order-item small {
    color: #8994a4;
}

.order-details-modal .order-item-price strong {
    color: #172236;
}


/* Итог */

.order-details-modal .order-details-total {
    border-top-color: #dfe5ed;

    color: #59677a;
}

.order-details-modal .order-details-total strong {
    color: #152136;

    font-size: 22px;
}


/* Комментарий */

.order-details-modal .order-comment {
    border: 1px solid #e1e6ee;

    color: #354258;

    background: #ffffff;
}


/* История */

.order-details-modal .order-history-item {
    border-left-color: #d9e0ea;
}

.order-details-modal .order-history-dot {
    border-color: #ffffff;

    background: #2f87e6;

    box-shadow: 0 0 0 2px #2f87e6;
}

.order-details-modal .order-history-item strong {
    color: #285c94;
}

.order-details-modal .order-history-item p {
    color: #707c8e;
}

.order-details-modal .order-history-item small {
    color: #939dac;
}


/* Отмена */

.order-details-modal .order-cancel-section {
    border: 1px solid #f0cccc;
    border-radius: 13px;

    background: #fff8f8;
}

.order-details-modal .order-cancel-section p {
    color: #7c6a6a;
}

.order-details-modal .order-cancel-button {
    border-color: #db3838;

    color: #c62c2c;

    background: #ffffff;
}

.order-details-modal .order-cancel-button:hover:not(:disabled) {
    color: #ffffff;
    background: #d93636;
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
    #ordersModal,
    #orderDetailsModal {
        align-items: flex-end;

        padding: 0;
    }

    .orders-modal,
    .order-details-modal {
        width: 100%;
        max-height: 95vh;

        margin: 0;

        border-radius: 22px 22px 0 0;

        padding: 23px 17px;
    }

    .orders-modal-header {
        align-items: flex-start;
    }

    .orders-modal .order-card {
        gap: 10px;
    }

    .order-details-modal .order-info-grid {
        grid-template-columns: 1fr;
    }
}



/* ==================================================================
   ЭТАП 4.3.2 — PARTON52 UNIFIED HEADER
   Только CSS. HTML и JavaScript не изменяются.
   ================================================================== */

/* Общая шапка */

.site-header {
    position: relative;
    z-index: 50;

    min-height: 76px;

    border-bottom: 0;

    background:
        radial-gradient(
            circle at 18% -80%,
            rgba(255, 107, 0, 0.09),
            transparent 38%
        ),
        linear-gradient(
            105deg,
            #091321 0%,
            #101b2d 52%,
            #091321 100%
        );

    box-shadow:
        0 9px 30px rgba(1, 7, 17, 0.26),
        inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.site-header::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #ff6b00 0%,
            #ff8a24 48%,
            #ff6b00 100%
        );

    box-shadow:
        0 0 13px rgba(255, 107, 0, 0.42);
}


/* Контейнер шапки */

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 34px;

    padding-top: 10px;
    padding-bottom: 10px;
}


/* ------------------------------------------------------------------
   ЛОГОТИП
   ------------------------------------------------------------------ */

.logo,
.site-logo,
.brand,
.header-logo {
    position: relative;

    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    color: #ffffff;

    text-decoration: none;

    font-family:
        "Arial Black",
        "Segoe UI Black",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(25px, 2.1vw, 34px);
    font-weight: 900;
    font-style: italic;

    line-height: 1;
    letter-spacing: -1.5px;

    transform: skewX(-7deg);

    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 7px 19px rgba(0, 0, 0, 0.34);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.logo:hover,
.site-logo:hover,
.brand:hover,
.header-logo:hover {
    transform:
        skewX(-7deg)
        translateY(-1px);

    filter: brightness(1.08);
}


/* Подчёркивание фирменного знака */

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    content: "";

    position: absolute;

    right: 2px;
    bottom: -7px;
    left: 3px;

    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 107, 0, 0),
            #ff6b00 18%,
            #ff923f 82%,
            rgba(255, 107, 0, 0)
        );

    box-shadow:
        0 0 9px rgba(255, 107, 0, 0.44);
}


/* Если 52 уже находится в отдельном span */

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    color: #ff6b00;

    text-shadow:
        0 0 14px rgba(255, 107, 0, 0.32);
}


/* ------------------------------------------------------------------
   НАВИГАЦИЯ
   ------------------------------------------------------------------ */

.main-nav,
.header-nav {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-left: auto;
}

.main-nav button,
.header-nav button,
.main-nav a,
.header-nav a {
    position: relative;

    border: 0;
    border-radius: 9px;

    padding: 11px 14px;

    color: rgba(255, 255, 255, 0.79);

    background: transparent;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.main-nav button::after,
.header-nav button::after,
.main-nav a::after,
.header-nav a::after {
    content: "";

    position: absolute;

    right: 14px;
    bottom: 5px;
    left: 14px;

    height: 2px;

    border-radius: 999px;

    background: #ff6b00;

    opacity: 0;

    transform: scaleX(0.3);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.main-nav button:hover,
.header-nav button:hover,
.main-nav a:hover,
.header-nav a:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

    transform: translateY(-1px);
}

.main-nav button:hover::after,
.header-nav button:hover::after,
.main-nav a:hover::after,
.header-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* ------------------------------------------------------------------
   ПРАВАЯ ГРУППА ДЕЙСТВИЙ
   ------------------------------------------------------------------ */

.header-actions {
    display: flex;
    align-items: center;

    gap: 11px;

    flex: 0 0 auto;
}

.header-actions > button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 11px;

    padding: 9px 15px;

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;

    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


/* Мои заказы */

#myOrdersButton {
    border: 1px solid rgba(255, 107, 0, 0.76);

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(255, 107, 0, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 0 1px rgba(255, 107, 0, 0.04),
        0 7px 21px rgba(0, 0, 0, 0.19);
}

#myOrdersButton::before {
    width: 3px;

    background:
        linear-gradient(
            180deg,
            #ff973e,
            #ff5d00
        );
}

#myOrdersButton .account-icon {
    width: 25px;
    height: 25px;

    display: inline-grid;
    place-items: center;

    border-radius: 7px;

    color: #ff8528;

    background: rgba(255, 107, 0, 0.13);

    box-shadow:
        inset 0 0 0 1px rgba(255, 107, 0, 0.12);
}

#myOrdersButton:hover {
    border-color: #ff7a18;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(255, 107, 0, 0.22),
            rgba(255, 107, 0, 0.075)
        );

    box-shadow:
        0 0 21px rgba(255, 107, 0, 0.17),
        0 9px 25px rgba(0, 0, 0, 0.22);

    transform: translateY(-2px);
}


/* Корзина */

#cartButton {
    border: 1px solid rgba(255, 255, 255, 0.17);

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 7px 20px rgba(0, 0, 0, 0.16);
}

#cartButton:hover {
    border-color: rgba(255, 107, 0, 0.66);

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.13),
            rgba(255, 107, 0, 0.045)
        );

    transform: translateY(-2px);
}


/* Счётчик корзины */

#cartCount {
    min-width: 24px;
    height: 24px;

    display: inline-grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    padding: 0 6px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #556174,
            #303a49
        );

    font-size: 11px;
    font-weight: 900;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


/* Профиль / вход */

#accountButton {
    min-width: 128px;

    border: 1px solid #ff7a17;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff7410 0%,
            #ff5d00 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 8px 24px rgba(255, 92, 0, 0.22);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.16);
}

#accountButton:hover {
    border-color: #ff994d;

    background:
        linear-gradient(
            135deg,
            #ff862d 0%,
            #ff6507 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 29px rgba(255, 92, 0, 0.3);

    transform: translateY(-2px);
}


/* Иконки в кнопках */

.header-actions .account-icon,
.header-actions .cart-icon {
    flex: 0 0 auto;

    font-size: 15px;
}


/* Разделитель перед профилем */

#accountButton {
    position: relative;

    margin-left: 13px;
}

#accountButton::before {
    content: "";

    position: absolute;

    top: 7px;
    bottom: 7px;
    left: -13px;

    width: 1px;

    background: rgba(255, 255, 255, 0.12);
}


/* ------------------------------------------------------------------
   АДАПТАЦИЯ
   ------------------------------------------------------------------ */

@media (max-width: 1000px) {
    .header-inner {
        gap: 18px;
    }

    .main-nav,
    .header-nav {
        gap: 4px;
    }

    .main-nav button,
    .header-nav button,
    .main-nav a,
    .header-nav a {
        padding-right: 9px;
        padding-left: 9px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-actions > button {
        padding-right: 11px;
        padding-left: 11px;
    }
}

@media (max-width: 780px) {
    .site-header {
        min-height: auto;
    }

    .header-inner {
        min-height: auto;

        flex-wrap: wrap;

        gap: 13px;

        padding-top: 13px;
        padding-bottom: 15px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 26px;
    }

    .main-nav,
    .header-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        border-top: 1px solid rgba(255, 255, 255, 0.07);

        padding-top: 8px;
    }

    .header-actions {
        margin-left: auto;
    }

    #myOrdersButton span:last-child,
    #cartButton span:not(#cartCount) {
        display: none;
    }

    #myOrdersButton,
    #cartButton {
        min-width: 44px;

        padding-right: 9px;
        padding-left: 9px;
    }

    #accountButton {
        min-width: auto;
        margin-left: 4px;
    }

    #accountButton::before {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-inner {
        gap: 9px;
    }

    .header-actions {
        gap: 5px;
    }

    #accountButton {
        max-width: 132px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .main-nav,
    .header-nav {
        justify-content: space-between;
    }

    .main-nav button,
    .header-nav button,
    .main-nav a,
    .header-nav a {
        flex: 1;

        text-align: center;
    }
}



/* ==================================================================
   ЭТАП 4.3.3 — EXACT APPROVED HEADER
   Шапка по утверждённому эскизу.
   ================================================================== */

/* --------------------------------------------------------------
   ОБЩАЯ ПАНЕЛЬ
   -------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;
    min-height: 116px;

    border: 0;

    background:
        radial-gradient(
            circle at 8% -80%,
            rgba(35, 69, 112, 0.28),
            transparent 42%
        ),
        linear-gradient(
            110deg,
            #07111f 0%,
            #0e1a2b 46%,
            #07111d 100%
        );

    box-shadow:
        0 13px 35px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.site-header::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #ff6100,
            #ff8b25 48%,
            #ff6100
        );

    box-shadow:
        0 0 12px rgba(255, 102, 0, 0.55);
}


/* --------------------------------------------------------------
   ВНУТРЕННИЙ КОНТЕЙНЕР
   -------------------------------------------------------------- */

.header-inner {
    width: min(100% - 70px, 1420px);
    min-height: 116px;

    display: grid;
    grid-template-columns:
        minmax(285px, 1fr)
        auto
        auto;

    align-items: center;

    column-gap: 52px;

    margin: 0 auto;
    padding: 0;
}


/* --------------------------------------------------------------
   ЛОГОТИП ПАРТОН52
   -------------------------------------------------------------- */

.logo,
.site-logo,
.brand,
.header-logo {
    position: relative;

    width: fit-content;

    display: inline-flex;
    align-items: center;

    margin: 0;

    color: #f7f8fb;

    font-family:
        "Arial Black",
        "Arial Narrow",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(34px, 2.45vw, 47px);
    font-weight: 900;
    font-style: italic;

    line-height: 0.92;
    letter-spacing: -3px;

    text-decoration: none;
    text-transform: uppercase;

    transform: skewX(-12deg);

    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.12),
        0 5px 16px rgba(0, 0, 0, 0.42);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.logo:hover,
.site-logo:hover,
.brand:hover,
.header-logo:hover {
    filter: brightness(1.1);

    transform:
        skewX(-12deg)
        translateY(-1px);
}


/* Металлический оттенок текста */

.logo,
.site-logo,
.brand,
.header-logo {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 34%,
            #d3d9e1 62%,
            #ffffff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* Оранжевая часть 52 */

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    color: #ff6500;

    background:
        linear-gradient(
            180deg,
            #ff8b23 0%,
            #ff5b00 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow:
        none;
}


/* Подчёркивание под логотипом */

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -13px;
    left: 3px;

    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 100, 0, 0),
            #ff6100 12%,
            #ff8d29 82%,
            rgba(255, 100, 0, 0)
        );

    box-shadow:
        0 0 9px rgba(255, 103, 0, 0.4);
}


/* --------------------------------------------------------------
   ЦЕНТРАЛЬНАЯ НАВИГАЦИЯ
   -------------------------------------------------------------- */

.main-nav,
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    margin: 0;
}

.main-nav button,
.header-nav button,
.main-nav a,
.header-nav a {
    position: relative;

    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    padding: 10px 8px;

    color: rgba(255, 255, 255, 0.82);
    background: transparent;

    font: inherit;
    font-size: 15px;
    font-weight: 750;

    line-height: 1;
    white-space: nowrap;

    text-decoration: none;
    cursor: pointer;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.main-nav button::after,
.header-nav button::after,
.main-nav a::after,
.header-nav a::after {
    content: "";

    position: absolute;

    right: 8px;
    bottom: 3px;
    left: 8px;

    height: 2px;

    border-radius: 999px;

    opacity: 0;

    background: #ff6b00;

    transform: scaleX(0.35);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.main-nav button:hover,
.header-nav button:hover,
.main-nav a:hover,
.header-nav a:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.035);

    transform: translateY(-1px);
}

.main-nav button:hover::after,
.header-nav button:hover::after,
.main-nav a:hover::after,
.header-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* --------------------------------------------------------------
   КНОПКИ СПРАВА
   -------------------------------------------------------------- */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;

    margin: 0;
}

.header-actions > button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border-radius: 12px;

    padding: 11px 20px;

    font-size: 15px;
    font-weight: 900;

    line-height: 1;
    white-space: nowrap;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


/* --------------------------------------------------------------
   МОИ ЗАКАЗЫ
   -------------------------------------------------------------- */

#myOrdersButton {
    min-width: 190px;

    border: 1px solid rgba(255, 112, 14, 0.92);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(255, 102, 0, 0.105),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.075),
        0 0 18px rgba(255, 99, 0, 0.14),
        0 9px 24px rgba(0, 0, 0, 0.22);
}

#myOrdersButton::before {
    width: 3px;

    background:
        linear-gradient(
            180deg,
            #ff963d,
            #ff5c00
        );
}

#myOrdersButton .account-icon {
    width: 30px;
    height: 30px;

    display: inline-grid;
    place-items: center;

    border-radius: 8px;

    color: #ff720c;

    background: rgba(255, 105, 0, 0.12);

    box-shadow:
        inset 0 0 0 1px rgba(255, 113, 15, 0.12);

    font-size: 18px;
}

#myOrdersButton:hover {
    border-color: #ff8730;

    background:
        linear-gradient(
            135deg,
            rgba(255, 105, 0, 0.22),
            rgba(255, 105, 0, 0.075)
        );

    box-shadow:
        0 0 25px rgba(255, 105, 0, 0.22),
        0 12px 29px rgba(0, 0, 0, 0.25);

    transform: translateY(-2px);
}


/* --------------------------------------------------------------
   КОРЗИНА
   -------------------------------------------------------------- */

#cartButton {
    min-width: 175px;

    border: 1px solid rgba(255, 255, 255, 0.17);

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.02)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 9px 23px rgba(0, 0, 0, 0.2);
}

#cartButton:hover {
    border-color: rgba(255, 112, 14, 0.7);

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.13),
            rgba(255, 107, 0, 0.04)
        );

    transform: translateY(-2px);
}

#cartCount {
    min-width: 28px;
    height: 28px;

    display: inline-grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;

    padding: 0 7px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #596476,
            #303947
        );

    font-size: 12px;
    font-weight: 900;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}


/* --------------------------------------------------------------
   ПРОФИЛЬ
   -------------------------------------------------------------- */

#accountButton {
    position: relative;

    min-width: 195px;

    margin-left: 10px;

    border: 1px solid #ff7b19;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff7916 0%,
            #ff5d00 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.19),
        0 10px 27px rgba(255, 92, 0, 0.25);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.19);
}

#accountButton::before {
    content: "";

    position: absolute;

    top: 4px;
    bottom: 4px;
    left: -20px;

    width: 1px;

    background: rgba(255, 255, 255, 0.14);
}

#accountButton:hover {
    border-color: #ff9b54;

    background:
        linear-gradient(
            135deg,
            #ff892f 0%,
            #ff6508 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.21),
        0 12px 31px rgba(255, 92, 0, 0.31);

    transform: translateY(-2px);
}


/* --------------------------------------------------------------
   ИКОНКИ
   -------------------------------------------------------------- */

.header-actions .account-icon,
.header-actions .cart-icon {
    flex: 0 0 auto;

    font-size: 18px;
}


/* --------------------------------------------------------------
   СРЕДНИЕ ЭКРАНЫ
   -------------------------------------------------------------- */

@media (max-width: 1250px) {
    .header-inner {
        width: min(100% - 40px, 1180px);

        grid-template-columns:
            minmax(220px, 1fr)
            auto
            auto;

        column-gap: 25px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 34px;
    }

    .main-nav,
    .header-nav {
        gap: 14px;
    }

    .header-actions {
        gap: 9px;
    }

    .header-actions > button {
        min-height: 48px;

        padding-right: 14px;
        padding-left: 14px;

        font-size: 13px;
    }

    #myOrdersButton {
        min-width: 155px;
    }

    #cartButton {
        min-width: 135px;
    }

    #accountButton {
        min-width: 150px;
    }
}


/* --------------------------------------------------------------
   ПЛАНШЕТ И МОБИЛЬНАЯ ВЕРСИЯ
   -------------------------------------------------------------- */

@media (max-width: 900px) {
    .site-header {
        min-height: auto;
    }

    .header-inner {
        width: min(100% - 28px, 850px);
        min-height: auto;

        display: flex;
        flex-wrap: wrap;

        gap: 14px;

        padding: 16px 0 18px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 31px;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav,
    .header-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        border-top: 1px solid rgba(255, 255, 255, 0.075);

        padding-top: 9px;
    }

    .header-actions > button {
        min-width: 48px;

        padding-right: 11px;
        padding-left: 11px;
    }

    #myOrdersButton span:last-child,
    #cartButton span:not(#cartCount) {
        display: none;
    }

    #myOrdersButton,
    #cartButton {
        min-width: 50px;
    }

    #accountButton {
        min-width: auto;
        margin-left: 2px;
    }

    #accountButton::before {
        display: none;
    }
}


@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 20px, 520px);

        gap: 9px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 26px;
        letter-spacing: -2px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-actions > button {
        min-height: 44px;

        border-radius: 9px;

        padding: 8px 9px;
    }

    #accountButton {
        max-width: 125px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .main-nav,
    .header-nav {
        justify-content: space-around;

        gap: 4px;
    }

    .main-nav button,
    .header-nav button,
    .main-nav a,
    .header-nav a {
        flex: 1;

        padding-right: 7px;
        padding-left: 7px;

        font-size: 12px;
        text-align: center;
    }
}



/* ==================================================================
   PARTON52 FINAL HEADER ALIGNMENT
   Финальная коррекция пропорций и выравнивания.
   ================================================================== */

.site-header {
    min-height: 88px !important;
}

.site-header::after {
    height: 2px !important;

    box-shadow:
        0 0 8px rgba(255, 107, 0, 0.34) !important;
}

.header-inner {
    width: min(calc(100% - 64px), 1540px) !important;
    min-height: 88px !important;

    display: grid !important;
    grid-template-columns:
        minmax(300px, 1fr)
        auto
        auto !important;

    align-items: center !important;

    column-gap: 46px !important;

    margin: 0 auto !important;
    padding: 0 !important;
}


/* ================================================================
   ЛОГОТИП
   ================================================================ */

.logo,
.site-logo,
.brand,
.header-logo {
    justify-self: start !important;

    margin: 0 !important;

    font-size: clamp(38px, 2.65vw, 52px) !important;
    line-height: 1 !important;
    letter-spacing: -3px !important;

    transform: skewX(-11deg) !important;
}

.logo:hover,
.site-logo:hover,
.brand:hover,
.header-logo:hover {
    transform:
        skewX(-11deg)
        translateY(-1px) !important;
}

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    right: 1px !important;
    bottom: -10px !important;
    left: 2px !important;

    height: 2px !important;

    opacity: 0.85;
}


/* ================================================================
   ЦЕНТРАЛЬНАЯ НАВИГАЦИЯ
   ================================================================ */

.main-nav,
.header-nav {
    justify-self: center !important;

    gap: 26px !important;

    margin: 0 !important;
}

.main-nav button,
.header-nav button,
.main-nav a,
.header-nav a {
    min-height: 42px !important;

    padding: 9px 8px !important;

    font-size: 14px !important;
}


/* ================================================================
   ПРАВЫЕ КНОПКИ
   ================================================================ */

.header-actions {
    justify-self: end !important;

    gap: 12px !important;

    margin: 0 !important;
}

.header-actions > button {
    min-height: 48px !important;

    border-radius: 10px !important;

    padding: 9px 16px !important;

    font-size: 14px !important;
}


/* ================================================================
   МОИ ЗАКАЗЫ — БЕЗ ЯРКОГО ОРАНЖЕВОГО ОБОДА
   ================================================================ */

#myOrdersButton {
    min-width: 158px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.15) !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 7px 18px rgba(0, 0, 0, 0.17) !important;

    transform: none !important;
}

#myOrdersButton::before {
    display: none !important;
}

#myOrdersButton .account-icon {
    width: 26px !important;
    height: 26px !important;

    border-radius: 7px !important;

    color: #ff8125 !important;
    background: rgba(255, 107, 0, 0.11) !important;

    font-size: 15px !important;
}

#myOrdersButton:hover {
    border-color:
        rgba(255, 107, 0, 0.55) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.11),
            rgba(255, 255, 255, 0.03)
        ) !important;

    box-shadow:
        0 0 14px rgba(255, 107, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.19) !important;

    transform: translateY(-1px) !important;
}


/* ================================================================
   КОРЗИНА
   ================================================================ */

#cartButton {
    min-width: 150px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.15) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        ) !important;
}

#cartButton:hover {
    border-color:
        rgba(255, 107, 0, 0.48) !important;

    transform: translateY(-1px) !important;
}

#cartCount {
    min-width: 25px !important;
    height: 25px !important;

    font-size: 11px !important;
}


/* ================================================================
   ПРОФИЛЬ
   ================================================================ */

#accountButton {
    min-width: 162px !important;
    min-height: 48px !important;

    margin-left: 8px !important;

    border-color: #ff7d1d !important;

    border-radius: 10px !important;

    padding-right: 17px !important;
    padding-left: 17px !important;
}

#accountButton::before {
    top: 6px !important;
    bottom: 6px !important;
    left: -11px !important;
}


/* ================================================================
   ЭКРАНЫ ДО 1300 PX
   ================================================================ */

@media (max-width: 1300px) {
    .header-inner {
        width: min(calc(100% - 40px), 1240px) !important;

        grid-template-columns:
            minmax(230px, 1fr)
            auto
            auto !important;

        column-gap: 22px !important;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 35px !important;
    }

    .main-nav,
    .header-nav {
        gap: 12px !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .header-actions > button {
        padding-right: 12px !important;
        padding-left: 12px !important;

        font-size: 13px !important;
    }

    #myOrdersButton {
        min-width: 142px !important;
    }

    #cartButton {
        min-width: 126px !important;
    }

    #accountButton {
        min-width: 140px !important;
    }
}


/* ================================================================
   ПЛАНШЕТЫ И ТЕЛЕФОНЫ
   ================================================================ */

@media (max-width: 900px) {
    .site-header {
        min-height: auto !important;
    }

    .header-inner {
        width: min(calc(100% - 28px), 860px) !important;
        min-height: auto !important;

        display: flex !important;
        flex-wrap: wrap !important;

        gap: 12px !important;

        padding: 14px 0 16px !important;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 30px !important;
    }

    .header-actions {
        margin-left: auto !important;
    }

    .main-nav,
    .header-nav {
        order: 3 !important;

        width: 100% !important;

        justify-content: center !important;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.07) !important;

        padding-top: 8px !important;
    }

    #myOrdersButton,
    #cartButton {
        min-width: 47px !important;
    }

    #myOrdersButton span:last-child,
    #cartButton span:not(#cartCount) {
        display: none !important;
    }

    #accountButton {
        min-width: auto !important;
        margin-left: 2px !important;
    }

    #accountButton::before {
        display: none !important;
    }
}



/* ==================================================================
   PARTON52 LOGO CLIPPING FIX
   Исправление обрезания наклонного логотипа.
   ================================================================== */

.logo,
.site-logo,
.brand,
.header-logo {
    overflow: visible !important;

    box-sizing: content-box !important;

    min-width: max-content !important;

    padding:
        8px
        14px
        10px
        10px !important;

    margin:
        -8px
        -14px
        -10px
        -10px !important;

    line-height: 1.18 !important;
    letter-spacing: -2px !important;

    transform-origin: center left !important;

    white-space: nowrap !important;

    clip-path: none !important;
    -webkit-clip-path: none !important;
}

.logo span,
.site-logo span,
.brand span,
.header-logo span {
    display: inline-block !important;

    overflow: visible !important;

    padding-top: 2px !important;
    padding-bottom: 2px !important;

    line-height: 1.08 !important;

    white-space: nowrap !important;
}

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    margin-left: 3px !important;

    padding-right: 3px !important;
}

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    right: 10px !important;
    bottom: 1px !important;
    left: 10px !important;
}



/* ==================================================================
   PARTON52 LOGO ARTIFACT AND MODAL CLOSE FIX
   ================================================================== */


/* ------------------------------------------------------------------
   1. УБИРАЕМ БЕЛЫЙ АРТЕФАКТ СПРАВА ОТ ЛОГОТИПА
   ------------------------------------------------------------------ */

.logo,
.site-logo,
.brand,
.header-logo {
    overflow: visible !important;

    color: #f5f7fa !important;

    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    -webkit-text-fill-color: currentColor !important;

    filter: none !important;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 3px 0 rgba(121, 132, 148, 0.22),
        0 7px 16px rgba(0, 0, 0, 0.42) !important;
}

.logo span,
.site-logo span,
.brand span,
.header-logo span {
    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    -webkit-text-fill-color: currentColor !important;

    filter: none !important;
}

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    color: #ff6500 !important;

    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    -webkit-text-fill-color: #ff6500 !important;

    text-shadow:
        0 1px 0 rgba(255, 178, 112, 0.2),
        0 5px 13px rgba(255, 101, 0, 0.24) !important;
}

.logo::before,
.site-logo::before,
.brand::before,
.header-logo::before {
    display: none !important;
}


/* ------------------------------------------------------------------
   2. НОРМАЛЬНО РАЗМЕЩАЕМ КРЕСТИК В КАРТОЧКЕ ЗАКАЗА
   ------------------------------------------------------------------ */

.order-details-modal {
    position: relative !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding:
        36px
        52px
        32px
        32px !important;

    scrollbar-gutter: stable !important;
}

.order-details-modal > .modal-close,
#closeOrderDetailsModal {
    position: sticky !important;

    top: 0 !important;
    right: 0 !important;

    z-index: 20 !important;

    float: right !important;

    width: 42px !important;
    height: 42px !important;

    margin:
        -18px
        -35px
        8px
        16px !important;

    display: inline-grid !important;
    place-items: center !important;

    border:
        1px solid
        #dce3ec !important;

    border-radius: 50% !important;

    color: #647287 !important;

    background: #f7f9fc !important;

    box-shadow:
        0 5px 16px rgba(22, 37, 59, 0.1) !important;

    font-size: 25px !important;
    line-height: 1 !important;

    cursor: pointer !important;
}

.order-details-modal > .modal-close:hover,
#closeOrderDetailsModal:hover {
    color: #172236 !important;

    border-color: #c8d1dd !important;

    background: #edf1f6 !important;
}


/* Полоса прокрутки не должна заходить под кнопку */

.order-details-modal::-webkit-scrollbar {
    width: 10px;
}

.order-details-modal::-webkit-scrollbar-track {
    border-radius: 999px;

    background: #edf1f6;
}

.order-details-modal::-webkit-scrollbar-thumb {
    border: 2px solid #edf1f6;
    border-radius: 999px;

    background: #9da8b7;
}

.order-details-modal::-webkit-scrollbar-thumb:hover {
    background: #7f8b9c;
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
    .order-details-modal {
        padding:
            28px
            20px
            24px !important;
    }

    .order-details-modal > .modal-close,
    #closeOrderDetailsModal {
        position: sticky !important;

        margin:
            -14px
            -5px
            8px
            12px !important;
    }
}



/* ==================================================================
   PARTON52 ORDER DETAILS STYLE PATCH
   ================================================================== */


/* ------------------------------------------------------------------
   ОБЩАЯ КАРТОЧКА ЗАКАЗА
   ------------------------------------------------------------------ */

.order-details-modal {
    width: min(95vw, 1080px) !important;

    color: #172236 !important;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f7fb 100%
        ) !important;
}

.order-details-heading {
    display: grid !important;

    gap: 14px !important;

    margin-bottom: 18px !important;

    border: 1px solid #dfe5ed !important;
    border-radius: 17px !important;

    padding: 21px !important;

    background: #ffffff !important;

    box-shadow:
        0 10px 28px rgba(25, 42, 68, 0.055) !important;
}

.order-details-heading h2 {
    margin: 0 !important;

    color: #142033 !important;

    font-size: clamp(25px, 3vw, 34px) !important;
    letter-spacing: -0.03em !important;
}

.order-details-heading p {
    margin: 0 !important;

    color: #738094 !important;

    line-height: 1.5 !important;
}


/* ------------------------------------------------------------------
   ШКАЛА ДВИЖЕНИЯ ЗАКАЗА
   ------------------------------------------------------------------ */

.parton-order-progress {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(95px, 1fr));

    gap: 0;

    margin-top: 9px;

    padding:
        12px
        0
        3px;
}

.parton-order-progress::before {
    content: "";

    position: absolute;

    top: 21px;
    right: 9%;
    left: 9%;

    height: 3px;

    border-radius: 999px;

    background: #d9e0e9;
}

.parton-order-progress-step {
    position: relative;
    z-index: 1;

    display: grid;
    justify-items: center;

    gap: 11px;

    color: #909aaa;

    text-align: center;
}

.parton-order-progress-point {
    width: 18px;
    height: 18px;

    border: 4px solid #ffffff;
    border-radius: 50%;

    background: #cfd6df;

    box-shadow:
        0 0 0 2px #cfd6df;
}

.parton-order-progress-step strong {
    max-width: 115px;

    font-size: 11px;
    line-height: 1.25;
}

.parton-order-progress-step.is-complete {
    color: #28629e;
}

.parton-order-progress-step.is-complete
.parton-order-progress-point {
    background: #3286dd;

    box-shadow:
        0 0 0 2px #3286dd;
}

.parton-order-progress-step.is-current
.parton-order-progress-point {
    box-shadow:
        0 0 0 2px #3286dd,
        0 0 0 7px rgba(50, 134, 221, 0.14);
}

.parton-order-progress.is-cancelled::before {
    background: #e0e4ea;
}

.parton-order-progress.is-cancelled
.parton-order-progress-point {
    background: #c6cdd6;

    box-shadow:
        0 0 0 2px #c6cdd6;
}


/* ------------------------------------------------------------------
   БЛОКИ ВНУТРИ КАРТОЧКИ
   ------------------------------------------------------------------ */

.order-info-grid > div,
.order-item,
.order-comment,
.order-cancel-section {
    border-color: #dfe5ed !important;

    background: #ffffff !important;

    box-shadow:
        0 6px 18px rgba(25, 42, 68, 0.035) !important;
}

.order-info-grid > div {
    border-radius: 12px !important;

    padding: 14px !important;
}

.order-info-grid span {
    color: #8a95a5 !important;
}

.order-info-grid strong {
    color: #364459 !important;
}

.order-item {
    border-radius: 13px !important;

    padding: 16px !important;
}

.order-item p {
    color: #526074 !important;
}

.order-item small {
    color: #8a95a5 !important;
}

.order-item-price strong {
    color: #142033 !important;
}

.order-details-total {
    border-top-color: #dce3eb !important;

    color: #5b687a !important;
}

.order-details-total strong {
    color: #142033 !important;

    font-size: 22px !important;
}


/* ------------------------------------------------------------------
   ИСТОРИЯ СТАТУСОВ
   ------------------------------------------------------------------ */

.order-history-item {
    border-left-color: #d8e0e9 !important;
}

.order-history-dot {
    border-color: #ffffff !important;

    background: #3286dd !important;

    box-shadow:
        0 0 0 2px #3286dd !important;
}

.order-history-item strong {
    color: #285d95 !important;
}

.order-history-item p {
    color: #6e7a8c !important;
}

.order-history-item small {
    color: #929cab !important;
}


/* ------------------------------------------------------------------
   ОТМЕНА ЗАКАЗА
   ------------------------------------------------------------------ */

.order-cancel-section {
    border-color: #efcccc !important;

    border-radius: 13px !important;

    background: #fffafa !important;
}

.order-cancel-section p {
    color: #826f6f !important;
}

.order-cancel-button {
    border-color: #d93b3b !important;

    color: #c72e2e !important;

    background: #ffffff !important;
}

.order-cancel-button:hover:not(:disabled) {
    color: #ffffff !important;

    background: #d93636 !important;
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
    .parton-order-progress {
        overflow-x: auto;

        grid-template-columns:
            repeat(5, minmax(96px, 1fr));

        padding-bottom: 12px;
    }

    .order-details-heading {
        padding: 17px !important;
    }
}



/* ==================================================================
   PARTON52 ORDERS WORKSPACE STYLE PATCH
   Финальный дизайн: список слева, карточка заказа справа.
   ================================================================== */


/* ------------------------------------------------------------------
   ОБЩЕЕ БОЛЬШОЕ ОКНО
   ------------------------------------------------------------------ */

#ordersModal {
    padding: 22px !important;

    background: rgba(3, 10, 22, 0.84) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.orders-modal.parton-orders-workspace {
    width: min(96vw, 1480px) !important;
    height: min(91vh, 900px) !important;
    max-height: none !important;

    display: grid !important;
    grid-template-columns:
        minmax(330px, 410px)
        minmax(0, 1fr) !important;

    overflow: hidden !important;

    margin: auto !important;
    padding: 0 !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.12) !important;

    border-radius: 23px !important;

    color: #ffffff !important;

    background: #0c1728 !important;

    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.52) !important;
}


/* ------------------------------------------------------------------
   ЛЕВАЯ КОЛОНКА СО СПИСКОМ ЗАКАЗОВ
   ------------------------------------------------------------------ */

.parton-orders-list-column {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.09);

    padding: 27px 22px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 107, 0, 0.09),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #111e32 0%,
            #0b1627 58%,
            #08111e 100%
        );
}


/* Шапка левой колонки */

.parton-orders-list-column
.orders-modal-header {
    flex: 0 0 auto;

    margin-bottom: 10px !important;
}

.parton-orders-list-column
.orders-modal-header h2 {
    margin:
        8px
        0
        6px !important;

    color: #ffffff !important;

    font-size: 29px !important;
    letter-spacing: -0.025em !important;
}

.parton-orders-list-column
.orders-modal-header p {
    max-width: 300px;

    margin: 0 !important;

    color:
        rgba(255, 255, 255, 0.62) !important;

    font-size: 13px !important;
    line-height: 1.5 !important;
}

.parton-orders-list-column
.modal-badge {
    color: #ff963f !important;

    background:
        rgba(255, 107, 0, 0.13) !important;
}

.parton-orders-list-column
.modal-close {
    color:
        rgba(255, 255, 255, 0.74) !important;

    background:
        rgba(255, 255, 255, 0.045) !important;
}

.parton-orders-list-column
.modal-close:hover {
    color: #ffffff !important;

    background:
        rgba(255, 255, 255, 0.1) !important;
}


/* Панель обновления */

.parton-orders-list-column
.orders-toolbar {
    flex: 0 0 auto;

    margin:
        8px
        0
        15px !important;
}

.parton-orders-list-column
.verification-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.14) !important;

    color:
        rgba(255, 255, 255, 0.88) !important;

    background:
        rgba(255, 255, 255, 0.05) !important;
}

.parton-orders-list-column
.verification-button:hover {
    border-color:
        rgba(255, 107, 0, 0.7) !important;

    color: #ffffff !important;

    background:
        rgba(255, 107, 0, 0.11) !important;
}


/* Список с отдельной прокруткой */

.parton-orders-list-column
.orders-list {
    min-height: 0;

    display: grid;
    align-content: start;

    gap: 10px !important;

    overflow-y: auto;

    padding:
        2px
        6px
        12px
        1px;

    scrollbar-gutter: stable;
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar {
    width: 8px;
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar-track {
    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.04);
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar-thumb {
    border:
        2px solid
        transparent;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.2);

    background-clip: padding-box;
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 107, 0, 0.48);

    background-clip: padding-box;
}


/* Пустой список */

.parton-orders-list-column
.orders-state {
    color:
        rgba(255, 255, 255, 0.62) !important;

    background:
        rgba(255, 255, 255, 0.025) !important;

    border-color:
        rgba(255, 255, 255, 0.13) !important;
}

.parton-orders-list-column
.orders-state h3 {
    color: #ffffff !important;
}

.parton-orders-list-column
.orders-state p {
    color:
        rgba(255, 255, 255, 0.58) !important;
}


/* ------------------------------------------------------------------
   КАРТОЧКИ ЗАКАЗОВ СЛЕВА
   ------------------------------------------------------------------ */

.parton-orders-list-column
.order-card {
    position: relative;

    width: 100% !important;

    display: grid !important;
    gap: 10px !important;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.1) !important;

    border-radius: 14px !important;

    padding:
        16px
        16px
        15px !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025) !important;

    text-align: left !important;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}

.parton-orders-list-column
.order-card::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    opacity: 0;

    background:
        linear-gradient(
            180deg,
            #ff953c,
            #ff5d00
        );

    transition:
        opacity 0.18s ease;
}

.parton-orders-list-column
.order-card:hover {
    border-color:
        rgba(255, 107, 0, 0.55) !important;

    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 0, 0.1),
            rgba(255, 255, 255, 0.035)
        ) !important;

    transform: translateY(-1px) !important;
}

.parton-orders-list-column
.order-card.is-active {
    border-color:
        rgba(255, 107, 0, 0.74) !important;

    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 0, 0.16),
            rgba(255, 255, 255, 0.045)
        ) !important;

    box-shadow:
        0 10px 27px
        rgba(0, 0, 0, 0.18) !important;
}

.parton-orders-list-column
.order-card.is-active::before {
    opacity: 1;
}

.parton-orders-list-column
.order-card-number {
    color: #ffffff !important;

    font-size: 16px !important;
}

.parton-orders-list-column
.order-card-details {
    color:
        rgba(255, 255, 255, 0.58) !important;
}

.parton-orders-list-column
.order-card-details strong {
    color: #ffffff !important;
}


/* Статусы внутри тёмной колонки */

.parton-orders-list-column
.order-status-received {
    color: #79baff !important;

    background:
        rgba(47, 135, 230, 0.15) !important;
}

.parton-orders-list-column
.order-status-confirmed,
.parton-orders-list-column
.order-status-ready_for_pickup,
.parton-orders-list-column
.order-status-completed {
    color: #73dfa7 !important;

    background:
        rgba(38, 169, 96, 0.15) !important;
}

.parton-orders-list-column
.order-status-preparing,
.parton-orders-list-column
.order-status-in_transit {
    color: #c293ff !important;

    background:
        rgba(118, 74, 203, 0.16) !important;
}

.parton-orders-list-column
.order-status-clarification_required {
    color: #ffc15d !important;

    background:
        rgba(216, 130, 18, 0.16) !important;
}

.parton-orders-list-column
.order-status-cancelled {
    color: #bdc5d1 !important;

    background:
        rgba(145, 156, 174, 0.14) !important;
}


/* ------------------------------------------------------------------
   ПРАВАЯ СВЕТЛАЯ КОЛОНКА
   ------------------------------------------------------------------ */

.parton-order-details-column {
    min-width: 0;
    min-height: 0;

    position: relative;

    overflow: hidden;

    color: #172236;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #eef2f7 100%
        );
}


/* Заглушка */

.parton-order-details-placeholder {
    min-height: 100%;

    display: grid;
    place-content: center;
    justify-items: center;

    padding: 40px;

    color: #7a8799;

    text-align: center;
}

.parton-order-placeholder-icon {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    border:
        1px solid
        #dfe5ed;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 12px 35px
        rgba(25, 42, 68, 0.07);

    font-size: 39px;
}

.parton-order-details-placeholder h3 {
    margin:
        0
        0
        8px;

    color: #172236;

    font-size: 25px;
    letter-spacing: -0.02em;
}

.parton-order-details-placeholder p {
    max-width: 390px;

    margin: 0;

    color: #7c8899;

    line-height: 1.55;
}


/* Карточка заказа с отдельной прокруткой */

.parton-embedded-order-details {
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    padding:
        28px
        34px
        36px;

    scrollbar-gutter: stable;
}

.parton-embedded-order-details::-webkit-scrollbar {
    width: 10px;
}

.parton-embedded-order-details::-webkit-scrollbar-track {
    background: #edf1f6;
}

.parton-embedded-order-details::-webkit-scrollbar-thumb {
    border:
        2px solid
        #edf1f6;

    border-radius: 999px;

    background: #a0aab8;
}

.parton-embedded-order-details::-webkit-scrollbar-thumb:hover {
    background: #7e8998;
}


/* Убираем стили отдельного старого модального окна
   внутри встроенной карточки */

.parton-embedded-order-details
.order-details-heading {
    margin-top: 0 !important;
}

.parton-embedded-order-details
.order-details-total {
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------------------
   ПЛАНШЕТ
   ------------------------------------------------------------------ */

@media (max-width: 1050px) {
    .orders-modal.parton-orders-workspace {
        grid-template-columns:
            minmax(290px, 350px)
            minmax(0, 1fr) !important;
    }

    .parton-orders-list-column {
        padding:
            23px
            18px;
    }

    .parton-embedded-order-details {
        padding:
            24px
            23px
            30px;
    }
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
   ------------------------------------------------------------------ */

@media (max-width: 780px) {
    #ordersModal {
        align-items: flex-end !important;

        padding: 0 !important;
    }

    .orders-modal.parton-orders-workspace {
        width: 100% !important;
        height: 95vh !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows:
            minmax(260px, 42%)
            minmax(0, 1fr) !important;

        border-radius:
            22px
            22px
            0
            0 !important;
    }

    .parton-orders-list-column {
        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.1);

        padding:
            20px
            16px;
    }

    .parton-orders-list-column
    .orders-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 82%);

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 8px;
    }

    .parton-orders-list-column
    .order-card {
        align-content: start;
    }

    .parton-order-details-column {
        min-height: 0;
    }

    .parton-embedded-order-details {
        padding:
            18px
            16px
            28px;
    }

    .parton-order-details-placeholder {
        padding: 24px;
    }
}


/* ------------------------------------------------------------------
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ------------------------------------------------------------------ */

@media (max-width: 520px) {
    .orders-modal.parton-orders-workspace {
        grid-template-rows:
            minmax(245px, 44%)
            minmax(0, 1fr) !important;
    }

    .parton-orders-list-column
    .orders-modal-header h2 {
        font-size: 25px !important;
    }

    .parton-orders-list-column
    .orders-modal-header p {
        font-size: 12px !important;
    }

    .parton-orders-list-column
    .orders-list {
        grid-auto-columns: minmax(225px, 88%);
    }

    .parton-order-placeholder-icon {
        width: 66px;
        height: 66px;

        font-size: 33px;
    }

    .parton-order-details-placeholder h3 {
        font-size: 22px;
    }
}



/* ==================================================================
   PARTON52 ORDERS POLISH 4A
   Полировка правой карточки заказа.
   ================================================================== */


/* Больше воздуха в правой части */

.parton-embedded-order-details {
    padding:
        30px
        36px
        46px !important;
}


/* Шапка заказа */

.parton-embedded-order-details
.order-details-heading {
    position: relative;

    overflow: hidden;

    gap: 16px !important;

    border-color: #dbe3ed !important;
    border-radius: 19px !important;

    padding:
        24px
        25px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(49, 134, 221, 0.09),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        ) !important;

    box-shadow:
        0 12px 34px
        rgba(23, 42, 70, 0.065) !important;
}

.parton-embedded-order-details
.order-details-heading::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            #ff9438,
            #ff5d00
        );
}

.parton-embedded-order-details
.order-details-heading h2 {
    color: #111d30 !important;

    font-size:
        clamp(28px, 3vw, 38px) !important;

    letter-spacing: -0.045em !important;
}

.parton-embedded-order-details
.order-details-heading > p {
    max-width: 620px;

    color: #68768a !important;

    font-size: 13px !important;
}


/* Бейдж текущего статуса */

.parton-embedded-order-details
.order-status {
    border: 1px solid
        rgba(49, 134, 221, 0.18);

    padding:
        7px
        12px;

    font-size: 11px;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.7);
}


/* Шкала статусов */

.parton-order-progress {
    margin-top: 13px !important;

    border-top:
        1px solid
        #e7ebf1;

    padding-top: 22px !important;
}

.parton-order-progress::before {
    top: 31px !important;

    height: 4px !important;

    background:
        linear-gradient(
            90deg,
            #dce3eb,
            #cfd8e3
        ) !important;
}

.parton-order-progress-point {
    width: 20px !important;
    height: 20px !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.parton-order-progress-step.is-current
.parton-order-progress-point {
    transform: scale(1.08);

    box-shadow:
        0 0 0 2px #3286dd,
        0 0 0 8px rgba(50, 134, 221, 0.14),
        0 5px 13px rgba(50, 134, 221, 0.22)
        !important;
}

.parton-order-progress-step strong {
    color: inherit;

    font-size: 11px !important;
    font-weight: 850;

    line-height: 1.3 !important;
}


/* Основные белые блоки */

.parton-embedded-order-details
.order-info-grid,
.parton-embedded-order-details
.order-items-list,
.parton-embedded-order-details
.order-history {
    gap: 11px !important;
}

.parton-embedded-order-details
.order-info-grid > div,
.parton-embedded-order-details
.order-item,
.parton-embedded-order-details
.order-comment {
    border-color: #dfe5ed !important;
    border-radius: 14px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfcfe
        ) !important;

    box-shadow:
        0 7px 21px
        rgba(25, 42, 68, 0.04) !important;
}


/* Информация о заказе */

.parton-embedded-order-details
.order-info-grid > div {
    position: relative;

    padding:
        15px
        16px !important;
}

.parton-embedded-order-details
.order-info-grid span {
    color: #8a95a5 !important;

    font-size: 11px !important;
}

.parton-embedded-order-details
.order-info-grid strong {
    color: #304057 !important;

    font-size: 13px !important;
}


/* Товары */

.parton-embedded-order-details
.order-item {
    position: relative;

    padding:
        17px
        18px !important;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.parton-embedded-order-details
.order-item:hover {
    border-color:
        rgba(255, 107, 0, 0.32) !important;

    box-shadow:
        0 11px 27px
        rgba(25, 42, 68, 0.07) !important;

    transform: translateY(-1px);
}

.parton-embedded-order-details
.order-item strong {
    color: #17243a !important;
}

.parton-embedded-order-details
.order-item p {
    margin:
        6px
        0 !important;

    color: #526176 !important;

    line-height: 1.45 !important;
}

.parton-embedded-order-details
.order-item small {
    color: #8b96a6 !important;
}

.parton-embedded-order-details
.order-item-price strong {
    color: #111d30 !important;

    font-size: 16px !important;
}


/* Итог */

.parton-embedded-order-details
.order-details-total {
    align-items: center;

    margin-top: 13px !important;

    border:
        1px solid
        #dce4ed !important;

    border-radius: 14px;

    padding:
        17px
        19px !important;

    color: #68758a !important;

    background:
        linear-gradient(
            135deg,
            #f9fbfd,
            #ffffff
        );

    box-shadow:
        0 8px 22px
        rgba(25, 42, 68, 0.045);
}

.parton-embedded-order-details
.order-details-total strong {
    color: #101c2e !important;

    font-size: 24px !important;
    letter-spacing: -0.025em;
}


/* История статусов */

.parton-embedded-order-details
.order-history {
    border:
        1px solid
        #dfe5ed;

    border-radius: 15px;

    padding:
        20px
        18px
        4px;

    background: #ffffff;

    box-shadow:
        0 8px 22px
        rgba(25, 42, 68, 0.04);
}

.parton-embedded-order-details
.order-history-item {
    padding-bottom: 27px !important;
}

.parton-embedded-order-details
.order-history-dot {
    width: 13px !important;
    height: 13px !important;

    box-shadow:
        0 0 0 2px #3286dd,
        0 4px 10px rgba(50, 134, 221, 0.18)
        !important;
}

.parton-embedded-order-details
.order-history-item strong {
    color: #245b94 !important;

    font-size: 13px !important;
}

.parton-embedded-order-details
.order-history-item p {
    color: #68768a !important;

    line-height: 1.5 !important;
}


/* Отмена заказа */

.parton-embedded-order-details
.order-cancel-section {
    border-radius: 14px !important;

    padding:
        16px !important;

    background:
        linear-gradient(
            145deg,
            #fffafa,
            #fff5f5
        ) !important;
}

.parton-embedded-order-details
.order-cancel-button {
    border-radius: 10px !important;

    padding:
        12px
        16px !important;
}


/* Мобильная версия */

@media (max-width: 700px) {
    .parton-embedded-order-details {
        padding:
            18px
            15px
            30px !important;
    }

    .parton-embedded-order-details
    .order-details-heading {
        padding:
            19px
            17px !important;
    }

    .parton-order-progress {
        padding-top: 20px !important;
    }

    .parton-order-progress::before {
        top: 29px !important;
    }
}



/* ==================================================================
   PARTON52 ORDERS POLISH 4B
   Полировка карточек заказов в левой колонке.
   ================================================================== */

.parton-orders-list-column .order-card {
    position: relative;

    min-height: 128px;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    align-items: start !important;
    gap: 10px 14px !important;

    padding:
        17px
        42px
        17px
        18px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.1) !important;

    border-radius: 15px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 255, 255, 0.045),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.02)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.035),
        0 7px 20px
        rgba(0, 0, 0, 0.12) !important;
}


/* Стрелка справа */

.parton-orders-list-column .order-card::after {
    content: "›";

    position: absolute;

    top: 50%;
    right: 15px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    transform:
        translateY(-50%);

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.parton-orders-list-column
.order-card:hover::after,
.parton-orders-list-column
.order-card.is-active::after {
    color: #ff8830;

    transform:
        translateY(-50%)
        translateX(2px);
}


/* Верхняя строка */

.parton-orders-list-column
.order-card-top {
    grid-column: 1 / -1;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;

    gap: 12px !important;
}


/* Номер заказа */

.parton-orders-list-column
.order-card-number {
    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}


/* Статус */

.parton-orders-list-column
.order-card .order-status {
    flex: 0 0 auto;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    padding:
        6px
        10px !important;

    font-size: 10px !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.055);
}


/* Информация: дата, товары, сумма */

.parton-orders-list-column
.order-card-details {
    grid-column: 1 / -1;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;

    gap: 8px 12px !important;

    margin-top: 2px !important;

    color:
        rgba(255, 255, 255, 0.55) !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
}

.parton-orders-list-column
.order-card-details strong {
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 900 !important;
}


/* Дополнительная тонкая линия */

.parton-orders-list-column
.order-card-details::before {
    content: "";

    width: 100%;
    height: 1px;

    margin-bottom: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0)
        );
}


/* Наведение */

.parton-orders-list-column
.order-card:hover {
    border-color:
        rgba(255, 107, 0, 0.42) !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 107, 0, 0.09),
            transparent 48%
        ),
        linear-gradient(
            135deg,
            rgba(255, 107, 0, 0.09),
            rgba(255, 255, 255, 0.025)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.04),
        0 10px 25px
        rgba(0, 0, 0, 0.18) !important;
}


/* Активный заказ */

.parton-orders-list-column
.order-card.is-active {
    border-color:
        rgba(255, 107, 0, 0.68) !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 107, 0, 0.13),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            rgba(255, 107, 0, 0.14),
            rgba(255, 255, 255, 0.035)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.055),
        0 11px 28px
        rgba(0, 0, 0, 0.2),
        0 0 0 1px
        rgba(255, 107, 0, 0.06) !important;
}

.parton-orders-list-column
.order-card.is-active::before {
    width: 4px !important;

    opacity: 1 !important;
}


/* На маленьких экранах */

@media (max-width: 780px) {
    .parton-orders-list-column .order-card {
        min-height: 120px;

        padding:
            15px
            38px
            15px
            16px !important;
    }

    .parton-orders-list-column
    .order-card-number {
        font-size: 16px !important;
    }

    .parton-orders-list-column
    .order-card-details {
        font-size: 11px !important;
    }
}



/* ==================================================================
   PARTON52 ORDER FRIENDLY PROGRESS STYLE
   ================================================================== */

.parton-order-friendly-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 17px;

    margin: 0 0 18px;

    border: 1px solid #dce4ed;
    border-radius: 17px;

    padding: 18px 20px;

    color: #172236;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(49, 134, 221, 0.09),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f9fc
        );

    box-shadow:
        0 10px 28px rgba(25, 42, 68, 0.055);
}


/* Иконка */

.parton-order-friendly-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(49, 134, 221, 0.16);
    border-radius: 16px;

    color: #245d98;

    background:
        linear-gradient(
            145deg,
            #edf6ff,
            #dfeeff
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 7px 18px rgba(49, 134, 221, 0.1);

    font-size: 25px;
    font-weight: 900;
}


/* Основной текст */

.parton-order-friendly-content {
    min-width: 0;

    display: grid;
    gap: 13px;
}

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

.parton-order-friendly-heading strong {
    display: block;

    margin-bottom: 5px;

    color: #172236;

    font-size: 16px;
    font-weight: 900;

    line-height: 1.25;
}

.parton-order-friendly-heading p {
    margin: 0;

    color: #6c798c;

    font-size: 12px;
    line-height: 1.5;
}

.parton-order-friendly-percent {
    flex: 0 0 auto;

    min-width: 48px;

    border: 1px solid #dce4ed;
    border-radius: 999px;

    padding: 7px 10px;

    color: #285f99;

    background: #ffffff;

    font-size: 12px;
    font-weight: 900;
    text-align: center;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


/* Полоса прогресса */

.parton-order-friendly-progress {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e1e7ee;

    box-shadow:
        inset 0 1px 3px rgba(21, 36, 58, 0.08);
}

.parton-order-friendly-progress span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #2479cf,
            #49a1f1
        );

    box-shadow:
        0 0 12px rgba(49, 134, 221, 0.3);

    transition: width 0.35s ease;
}


/* Требуется уточнение */

.parton-order-friendly-panel[
    data-status="clarification_required"
] {
    border-color: #efd69f;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(242, 160, 29, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #fffdf8,
            #fff8e9
        );
}

.parton-order-friendly-panel[
    data-status="clarification_required"
]
.parton-order-friendly-icon {
    border-color: rgba(242, 160, 29, 0.22);

    color: #9a5b00;

    background:
        linear-gradient(
            145deg,
            #fff5d9,
            #ffe8b4
        );
}

.parton-order-friendly-panel[
    data-status="clarification_required"
]
.parton-order-friendly-percent {
    color: #9a5b00;
}

.parton-order-friendly-panel[
    data-status="clarification_required"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #e29316,
            #f3b84f
        );
}


/* Готовится */

.parton-order-friendly-panel[
    data-status="preparing"
]
.parton-order-friendly-icon {
    border-color: rgba(132, 77, 201, 0.2);

    color: #7242aa;

    background:
        linear-gradient(
            145deg,
            #f4ecff,
            #e8dbfa
        );
}

.parton-order-friendly-panel[
    data-status="preparing"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #7548af,
            #a271dc
        );
}


/* В пути */

.parton-order-friendly-panel[
    data-status="in_transit"
]
.parton-order-friendly-icon {
    border-color: rgba(105, 78, 190, 0.2);

    color: #6748ad;

    background:
        linear-gradient(
            145deg,
            #f0ebff,
            #e2d8fb
        );
}

.parton-order-friendly-panel[
    data-status="in_transit"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #6748ad,
            #9a7ae1
        );
}


/* Готов к получению и завершён */

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
],
.parton-order-friendly-panel[
    data-status="completed"
] {
    border-color: #cfe8da;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(47, 166, 97, 0.1),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f1faf5
        );
}

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
]
.parton-order-friendly-icon,
.parton-order-friendly-panel[
    data-status="completed"
]
.parton-order-friendly-icon {
    border-color: rgba(47, 166, 97, 0.2);

    color: #247a49;

    background:
        linear-gradient(
            145deg,
            #eaf8f0,
            #d8f0e3
        );
}

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
]
.parton-order-friendly-percent,
.parton-order-friendly-panel[
    data-status="completed"
]
.parton-order-friendly-percent {
    color: #247a49;
}

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
]
.parton-order-friendly-progress span,
.parton-order-friendly-panel[
    data-status="completed"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #25834f,
            #50bd7a
        );
}


/* Отменён */

.parton-order-friendly-panel[
    data-status="cancelled"
] {
    border-color: #dde2e9;

    background:
        linear-gradient(
            145deg,
            #f7f8fa,
            #eef1f4
        );
}

.parton-order-friendly-panel[
    data-status="cancelled"
]
.parton-order-friendly-icon {
    border-color: #d8dde5;

    color: #697485;

    background:
        linear-gradient(
            145deg,
            #f1f3f6,
            #e3e7ec
        );
}

.parton-order-friendly-panel[
    data-status="cancelled"
]
.parton-order-friendly-percent {
    color: #697485;
}

.parton-order-friendly-panel[
    data-status="cancelled"
]
.parton-order-friendly-progress span {
    background: #a9b1bd;
}


/* Мобильная версия */

@media (max-width: 650px) {
    .parton-order-friendly-panel {
        grid-template-columns: 1fr;

        gap: 13px;

        padding: 16px;
    }

    .parton-order-friendly-icon {
        width: 47px;
        height: 47px;

        border-radius: 14px;

        font-size: 22px;
    }

    .parton-order-friendly-heading {
        gap: 10px;
    }

    .parton-order-friendly-heading strong {
        font-size: 15px;
    }
}



/* ==================================================================
   PARTON52 ORDER PREMIUM HEADER 4D
   Финальная полировка верхней части открытого заказа.
   ================================================================== */


/* Единый верхний блок заказа */

.parton-embedded-order-details .order-details-heading {
    position: relative;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: start;
    gap: 14px 22px !important;

    overflow: hidden;

    margin-bottom: 14px !important;

    border:
        1px solid
        #d9e2ed !important;
    border-radius:
        20px !important;

    padding:
        25px
        26px
        23px
        29px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 112, 18, 0.10),
            transparent 33%
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(49, 134, 221, 0.08),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

    box-shadow:
        0 16px 42px
        rgba(23, 42, 70, 0.075) !important;
}


/* Фирменная цветная линия слева */

.parton-embedded-order-details
.order-details-heading::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 5px;

    background:
        linear-gradient(
            180deg,
            #ff9b43,
            #ff6500
        );
}


/* Небольшая декоративная подсветка */

.parton-embedded-order-details
.order-details-heading::after {
    content: "📦";

    position: absolute;

    right: 20px;
    bottom: -22px;

    color:
        rgba(32, 65, 104, 0.035);

    font-size: 95px;
    line-height: 1;

    pointer-events: none;
}


/* Номер заказа */

.parton-embedded-order-details
.order-details-heading h2 {
    position: relative;
    z-index: 1;

    grid-column: 1;

    margin: 0 !important;

    color:
        #101d31 !important;

    font-size:
        clamp(
            29px,
            3.1vw,
            40px
        ) !important;

    font-weight:
        950 !important;

    line-height:
        1.08 !important;

    letter-spacing:
        -0.045em !important;
}


/* Подпись или дата под номером */

.parton-embedded-order-details
.order-details-heading > p {
    position: relative;
    z-index: 1;

    grid-column: 1;

    max-width: 640px;

    margin:
        -3px
        0
        0 !important;

    color:
        #718095 !important;

    font-size:
        13px !important;

    line-height:
        1.5 !important;
}


/* Статус справа */

.parton-embedded-order-details
.order-details-heading > .order-status {
    position: relative;
    z-index: 2;

    grid-column: 2;
    grid-row: 1 / span 2;

    align-self: start;
    justify-self: end;

    min-width: 120px;

    border:
        1px solid
        rgba(48, 128, 208, 0.18) !important;

    border-radius:
        999px !important;

    padding:
        9px
        14px !important;

    font-size:
        11px !important;
    font-weight:
        900 !important;

    text-align:
        center;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.8),
        0 7px 18px
        rgba(26, 57, 91, 0.07);
}


/* Блок краткой информации сразу под заголовком */

.parton-embedded-order-details
.order-info-grid {
    display: grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        ) !important;

    gap:
        11px !important;

    margin:
        0
        0
        17px !important;
}


/* Каждая краткая характеристика */

.parton-embedded-order-details
.order-info-grid > div {
    position: relative;

    min-height: 82px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        #dce4ed !important;

    border-radius:
        15px !important;

    padding:
        15px
        16px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f9fbfd
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(23, 42, 70, 0.045) !important;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* Лёгкое оживление карточек */

.parton-embedded-order-details
.order-info-grid > div:hover {
    border-color:
        rgba(255, 107, 0, 0.28) !important;

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 28px
        rgba(23, 42, 70, 0.07) !important;
}


/* Маленькая оранжевая точка */

.parton-embedded-order-details
.order-info-grid > div::before {
    content: "";

    position: absolute;

    top: 14px;
    right: 14px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #ff7418;

    box-shadow:
        0 0 0 4px
        rgba(255, 116, 24, 0.09);
}


/* Название параметра */

.parton-embedded-order-details
.order-info-grid span {
    display: block;

    margin-bottom:
        7px !important;

    color:
        #8a96a7 !important;

    font-size:
        10px !important;
    font-weight:
        800 !important;

    line-height:
        1.25 !important;

    letter-spacing:
        0.055em !important;

    text-transform:
        uppercase;
}


/* Значение параметра */

.parton-embedded-order-details
.order-info-grid strong {
    display: block;

    overflow-wrap:
        anywhere;

    color:
        #23344c !important;

    font-size:
        14px !important;
    font-weight:
        900 !important;

    line-height:
        1.35 !important;

    letter-spacing:
        -0.012em;
}


/* Сумма заказа выглядит заметнее */

.parton-embedded-order-details
.order-details-total {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        #d8e2ec !important;

    border-radius:
        16px !important;

    padding:
        18px
        20px !important;

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(255, 112, 18, 0.08),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        ) !important;

    box-shadow:
        0 10px 26px
        rgba(23, 42, 70, 0.055) !important;
}

.parton-embedded-order-details
.order-details-total strong {
    color:
        #101d31 !important;

    font-size:
        25px !important;
    font-weight:
        950 !important;

    letter-spacing:
        -0.035em !important;
}


/* Плавное появление открытого заказа */

@keyframes partonOrderHeaderAppear {
    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.parton-embedded-order-details
.order-details-heading,
.parton-embedded-order-details
.order-info-grid,
.parton-order-friendly-panel {
    animation:
        partonOrderHeaderAppear
        0.24s
        ease-out
        both;
}

.parton-embedded-order-details
.order-info-grid {
    animation-delay:
        0.035s;
}

.parton-order-friendly-panel {
    animation-delay:
        0.07s;
}


/* Планшеты */

@media (max-width: 1050px) {
    .parton-embedded-order-details
    .order-info-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-details-heading {
        grid-template-columns:
            1fr;

        gap:
            10px !important;

        padding:
            21px
            18px
            19px
            22px !important;
    }

    .parton-embedded-order-details
    .order-details-heading h2,
    .parton-embedded-order-details
    .order-details-heading > p,
    .parton-embedded-order-details
    .order-details-heading > .order-status {
        grid-column:
            1;
        grid-row:
            auto;
    }

    .parton-embedded-order-details
    .order-details-heading > .order-status {
        justify-self:
            start;

        min-width:
            0;

        margin-top:
            4px;
    }

    .parton-embedded-order-details
    .order-details-heading::after {
        right:
            7px;

        font-size:
            72px;
    }

    .parton-embedded-order-details
    .order-info-grid {
        grid-template-columns:
            1fr !important;
    }

    .parton-embedded-order-details
    .order-info-grid > div {
        min-height:
            72px;
    }
}


/* Учитываем пользователей без анимаций */

@media (prefers-reduced-motion: reduce) {
    .parton-embedded-order-details
    .order-details-heading,
    .parton-embedded-order-details
    .order-info-grid,
    .parton-order-friendly-panel {
        animation:
            none !important;
    }

    .parton-embedded-order-details
    .order-info-grid > div {
        transition:
            none !important;
    }
}



/* ==================================================================
   PARTON52 ORDER PRODUCT CARDS 4E
   Премиальное оформление состава заказа.
   ================================================================== */


/* Заголовок раздела */

.parton-embedded-order-details
.order-items-list {
    display: grid;

    gap: 12px;

    margin-top: 12px;
}


/* Основная карточка товара */

.parton-embedded-order-details
.order-item {
    position: relative;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;

    gap: 18px 28px !important;

    overflow: hidden;

    min-height: 112px;

    border:
        1px solid
        #dce4ed !important;

    border-radius:
        18px !important;

    padding:
        20px
        22px
        20px
        78px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 115, 24, 0.07),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        ) !important;

    box-shadow:
        0 10px 28px
        rgba(23, 42, 70, 0.055) !important;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* Иконка товара слева */

.parton-embedded-order-details
.order-item::before {
    content: "📦";

    position: absolute;

    top: 50%;
    left: 19px;

    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255, 111, 16, 0.17);

    border-radius:
        13px;

    background:
        linear-gradient(
            145deg,
            #fff4e9,
            #ffe5cf
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.85),
        0 7px 17px
        rgba(255, 111, 16, 0.09);

    font-size: 20px;

    transform:
        translateY(-50%);
}


/* Фирменная полоска */

.parton-embedded-order-details
.order-item::after {
    content: "";

    position: absolute;

    top: 15px;
    bottom: 15px;
    left: 0;

    width: 4px;

    border-radius:
        0 999px 999px 0;

    background:
        linear-gradient(
            180deg,
            #ff9b43,
            #ff6908
        );

    opacity: 0.9;
}


/* Hover */

.parton-embedded-order-details
.order-item:hover {
    border-color:
        rgba(255, 111, 16, 0.30) !important;

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 36px
        rgba(23, 42, 70, 0.085) !important;
}


/* Левая часть с описанием */

.parton-embedded-order-details
.order-item > div:first-child {
    min-width: 0;

    display: grid;

    gap: 6px;
}


/* Бренд и артикул */

.parton-embedded-order-details
.order-item > div:first-child > strong {
    display: block;

    overflow-wrap: anywhere;

    color:
        #16243a !important;

    font-size:
        15px !important;
    font-weight:
        900 !important;

    line-height:
        1.35 !important;

    letter-spacing:
        -0.014em;
}


/* Название товара */

.parton-embedded-order-details
.order-item p {
    margin:
        0 !important;

    color:
        #44536a !important;

    font-size:
        14px !important;
    font-weight:
        650;

    line-height:
        1.45 !important;
}


/* Срок получения */

.parton-embedded-order-details
.order-item small {
    display: inline-flex;

    width: fit-content;

    margin-top: 2px;

    border:
        1px solid
        #dce5ef;

    border-radius:
        999px;

    padding:
        5px 9px;

    color:
        #69788d !important;

    background:
        #f7f9fc;

    font-size:
        10px !important;
    font-weight:
        800 !important;

    line-height:
        1.2 !important;

    letter-spacing:
        0.02em;
}


/* Правая часть с ценой */

.parton-embedded-order-details
.order-item-price {
    min-width: 142px;

    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    gap: 7px !important;

    border-left:
        1px solid
        #e1e7ee;

    padding-left:
        22px;

    text-align: right;
}


/* Цена за штуку × количество */

.parton-embedded-order-details
.order-item-price span {
    color:
        #7b889a !important;

    font-size:
        11px !important;
    font-weight:
        750 !important;

    line-height:
        1.3 !important;
}


/* Итог по позиции */

.parton-embedded-order-details
.order-item-price strong {
    color:
        #111f34 !important;

    font-size:
        21px !important;
    font-weight:
        950 !important;

    line-height:
        1.1 !important;

    letter-spacing:
        -0.035em !important;
}


/* Анимация появления товаров */

@keyframes partonOrderItemAppear {
    from {
        opacity: 0;

        transform:
            translateY(7px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.parton-embedded-order-details
.order-item {
    animation:
        partonOrderItemAppear
        0.23s
        ease-out
        both;
}

.parton-embedded-order-details
.order-item:nth-child(2) {
    animation-delay: 0.035s;
}

.parton-embedded-order-details
.order-item:nth-child(3) {
    animation-delay: 0.07s;
}

.parton-embedded-order-details
.order-item:nth-child(4) {
    animation-delay: 0.105s;
}

.parton-embedded-order-details
.order-item:nth-child(n + 5) {
    animation-delay: 0.14s;
}


/* Планшеты */

@media (max-width: 850px) {
    .parton-embedded-order-details
    .order-item {
        grid-template-columns:
            1fr;

        gap:
            16px !important;
    }

    .parton-embedded-order-details
    .order-item-price {
        min-width:
            0;

        flex-direction:
            row;
        align-items:
            center;
        justify-content:
            space-between;

        border-top:
            1px solid
            #e1e7ee;

        border-left:
            0;

        padding-top:
            14px;
        padding-left:
            0;

        text-align:
            left;
    }
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-item {
        min-height:
            0;

        padding:
            18px
            16px
            17px
            62px !important;
    }

    .parton-embedded-order-details
    .order-item::before {
        left:
            13px;

        width:
            38px;
        height:
            38px;

        border-radius:
            11px;

        font-size:
            18px;
    }

    .parton-embedded-order-details
    .order-item-price {
        grid-column:
            1 / -1;

        margin-left:
            -46px;
    }

    .parton-embedded-order-details
    .order-item-price strong {
        font-size:
            19px !important;
    }
}


/* Без анимаций */

@media (prefers-reduced-motion: reduce) {
    .parton-embedded-order-details
    .order-item {
        animation:
            none !important;

        transition:
            none !important;
    }
}



/* ==================================================================
   PARTON52 ORDERS FINAL POLISH 4F
   Финальная полировка карточки заказа.
   ================================================================== */


/* Общий вертикальный ритм */

.parton-embedded-order-details > h3 {
    position: relative;

    margin:
        28px
        0
        13px !important;

    padding-left:
        15px;

    color:
        #15243a !important;

    font-size:
        17px !important;
    font-weight:
        950 !important;

    line-height:
        1.25 !important;

    letter-spacing:
        -0.025em;
}

.parton-embedded-order-details > h3::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 5px;
    height: 20px;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #ff9c45,
            #ff6807
        );

    transform:
        translateY(-50%);
}


/* Итог заказа */

.parton-embedded-order-details
.order-details-total {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top:
        14px !important;

    border:
        1px solid
        #d6e0ea !important;

    border-radius:
        18px !important;

    padding:
        21px
        23px !important;

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(255, 112, 18, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f9fc
        ) !important;

    box-shadow:
        0 13px 31px
        rgba(23, 42, 70, 0.065) !important;
}

.parton-embedded-order-details
.order-details-total span {
    color:
        #728095 !important;

    font-size:
        12px !important;
    font-weight:
        800 !important;

    line-height:
        1.4;
}

.parton-embedded-order-details
.order-details-total strong {
    color:
        #111f34 !important;

    font-size:
        clamp(
            24px,
            3vw,
            31px
        ) !important;

    font-weight:
        950 !important;

    line-height:
        1 !important;

    letter-spacing:
        -0.045em !important;
}


/* История заказа — вертикальный timeline */

.parton-embedded-order-details
.order-history {
    position: relative;

    display: grid;

    gap: 0;

    overflow: hidden;

    border:
        1px solid
        #dce4ed;

    border-radius:
        18px;

    padding:
        7px
        20px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    box-shadow:
        0 10px 28px
        rgba(23, 42, 70, 0.05);
}

.parton-embedded-order-details
.order-history::before {
    content: "";

    position: absolute;

    top: 31px;
    bottom: 31px;
    left: 31px;

    width: 2px;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 111, 16, 0.75),
            rgba(49, 134, 221, 0.18)
        );
}

.parton-embedded-order-details
.order-history-item {
    position: relative;

    display: grid !important;
    grid-template-columns:
        28px
        minmax(0, 1fr)
        auto;

    gap:
        4px
        14px !important;

    min-height:
        80px;

    border: 0 !important;
    border-bottom:
        1px solid
        #e5eaf0 !important;

    border-radius:
        0 !important;

    padding:
        18px
        0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}

.parton-embedded-order-details
.order-history-item:last-child {
    border-bottom:
        0 !important;
}

.parton-embedded-order-details
.order-history-dot {
    position: relative;
    z-index: 2;

    grid-column:
        1;
    grid-row:
        1 / span 3;

    align-self:
        start;
    justify-self:
        center;

    width:
        13px !important;
    height:
        13px !important;

    margin-top:
        3px;

    border:
        3px solid
        #ffffff;

    border-radius:
        50%;

    background:
        #ff7214 !important;

    box-shadow:
        0 0 0 4px
        rgba(255, 114, 20, 0.13),
        0 4px 11px
        rgba(255, 106, 5, 0.22);
}

.parton-embedded-order-details
.order-history-item strong {
    grid-column:
        2;

    color:
        #1b2b42 !important;

    font-size:
        14px !important;
    font-weight:
        900 !important;

    line-height:
        1.35 !important;
}

.parton-embedded-order-details
.order-history-item p {
    grid-column:
        2;

    margin:
        0 !important;

    color:
        #66758a !important;

    font-size:
        12px !important;

    line-height:
        1.5 !important;
}

.parton-embedded-order-details
.order-history-item small {
    grid-column:
        3;
    grid-row:
        1;

    align-self:
        start;

    color:
        #8c97a8 !important;

    font-size:
        10px !important;
    font-weight:
        750 !important;

    line-height:
        1.35 !important;

    white-space:
        nowrap;
}


/* Комментарий клиента */

.parton-embedded-order-details
.order-comment {
    position: relative;

    overflow: hidden;

    margin-top:
        20px;

    border:
        1px solid
        #d8e3ee !important;

    border-radius:
        17px !important;

    padding:
        18px
        20px
        18px
        62px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(49, 134, 221, 0.08),
            transparent 39%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f6f9fc
        ) !important;

    box-shadow:
        0 9px 24px
        rgba(23, 42, 70, 0.05) !important;
}

.parton-embedded-order-details
.order-comment::before {
    content: "💬";

    position: absolute;

    top: 17px;
    left: 17px;

    width:
        32px;
    height:
        32px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(49, 134, 221, 0.16);

    border-radius:
        10px;

    background:
        #edf6ff;

    font-size:
        15px;
}

.parton-embedded-order-details
.order-comment strong {
    display: block;

    margin-bottom:
        7px;

    color:
        #1c2c43 !important;

    font-size:
        13px !important;
    font-weight:
        900 !important;
}

.parton-embedded-order-details
.order-comment p {
    margin:
        0 !important;

    color:
        #627187 !important;

    font-size:
        12px !important;

    line-height:
        1.55 !important;
}


/* Блок отмены заказа */

.parton-embedded-order-details
.order-cancel-section {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap:
        18px;

    margin-top:
        20px;

    border:
        1px solid
        #efd9d7 !important;

    border-radius:
        17px !important;

    padding:
        17px
        18px !important;

    background:
        linear-gradient(
            145deg,
            #fffafa,
            #fff4f3
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(116, 36, 29, 0.04) !important;
}

.parton-embedded-order-details
.order-cancel-section p {
    margin:
        0 !important;

    color:
        #866965 !important;

    font-size:
        11px !important;

    line-height:
        1.5 !important;
}

.parton-embedded-order-details
.order-cancel-button {
    flex:
        0 0 auto;

    border:
        1px solid
        #e5aaa5 !important;

    border-radius:
        11px !important;

    padding:
        10px
        15px !important;

    color:
        #a83c34 !important;

    background:
        #ffffff !important;

    font-size:
        11px !important;
    font-weight:
        900 !important;

    cursor:
        pointer;

    box-shadow:
        0 5px 14px
        rgba(122, 40, 33, 0.06);

    transition:
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.parton-embedded-order-details
.order-cancel-button:hover {
    border-color:
        #cb655c !important;

    color:
        #ffffff !important;

    background:
        #c84d43 !important;

    transform:
        translateY(-1px);
}

.parton-embedded-order-details
.order-cancel-button:disabled {
    opacity:
        0.55;

    cursor:
        wait;

    transform:
        none;
}


/* Плавное появление финальных секций */

@keyframes partonOrderSectionAppear {
    from {
        opacity: 0;

        transform:
            translateY(6px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.parton-embedded-order-details
.order-details-total,
.parton-embedded-order-details
.order-comment,
.parton-embedded-order-details
.order-cancel-section,
.parton-embedded-order-details
.order-history {
    animation:
        partonOrderSectionAppear
        0.24s
        ease-out
        both;
}

.parton-embedded-order-details
.order-details-total {
    animation-delay:
        0.05s;
}

.parton-embedded-order-details
.order-comment,
.parton-embedded-order-details
.order-cancel-section {
    animation-delay:
        0.09s;
}

.parton-embedded-order-details
.order-history {
    animation-delay:
        0.13s;
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-details-total {
        align-items:
            flex-end;

        padding:
            18px !important;
    }

    .parton-embedded-order-details
    .order-details-total strong {
        font-size:
            23px !important;
    }

    .parton-embedded-order-details
    .order-history {
        padding:
            5px
            14px;
    }

    .parton-embedded-order-details
    .order-history::before {
        left:
            25px;
    }

    .parton-embedded-order-details
    .order-history-item {
        grid-template-columns:
            22px
            minmax(0, 1fr);

        gap:
            5px
            11px !important;
    }

    .parton-embedded-order-details
    .order-history-item small {
        grid-column:
            2;
        grid-row:
            auto;

        white-space:
            normal;
    }

    .parton-embedded-order-details
    .order-comment {
        padding:
            17px
            16px
            17px
            56px !important;
    }

    .parton-embedded-order-details
    .order-comment::before {
        top:
            15px;
        left:
            14px;
    }

    .parton-embedded-order-details
    .order-cancel-section {
        align-items:
            stretch;
        flex-direction:
            column;
    }

    .parton-embedded-order-details
    .order-cancel-button {
        width:
            100%;
    }
}


/* Пользователи без анимаций */

@media (prefers-reduced-motion: reduce) {
    .parton-embedded-order-details
    .order-details-total,
    .parton-embedded-order-details
    .order-comment,
    .parton-embedded-order-details
    .order-cancel-section,
    .parton-embedded-order-details
    .order-history {
        animation:
            none !important;
    }

    .parton-embedded-order-details
    .order-cancel-button {
        transition:
            none !important;
    }
}



/* ==================================================================
   PARTON52 PRODUCT PLACEHOLDER STYLES 5A
   Локальные категорийные изображения товаров.
   ================================================================== */

.parton-embedded-order-details
.order-item {
    grid-template-columns:
        68px
        minmax(0, 1fr)
        auto !important;

    padding-left:
        20px !important;
}


/* Убираем прежнюю emoji-коробку */

.parton-embedded-order-details
.order-item::before {
    display:
        none !important;
}


/* Новая локальная картинка */

.parton-embedded-order-details
.order-item-placeholder {
    grid-column:
        1;

    align-self:
        center;
    justify-self:
        center;

    width:
        62px;
    height:
        62px;

    display:
        block;

    border:
        1px solid
        rgba(169, 183, 200, 0.36);

    border-radius:
        17px;

    background:
        #f8fafc;

    object-fit:
        contain;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.9),
        0 8px 20px
        rgba(25, 46, 75, 0.07);
}


/* Описание */

.parton-embedded-order-details
.order-item > div:first-of-type {
    grid-column:
        2;
}


/* Цена */

.parton-embedded-order-details
.order-item-price {
    grid-column:
        3;
}


/* Планшеты */

@media (max-width: 850px) {
    .parton-embedded-order-details
    .order-item {
        grid-template-columns:
            62px
            minmax(0, 1fr) !important;
    }

    .parton-embedded-order-details
    .order-item > div:first-of-type {
        grid-column:
            2;
    }

    .parton-embedded-order-details
    .order-item-price {
        grid-column:
            1 / -1;

        margin-left:
            0;
    }
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-item {
        grid-template-columns:
            52px
            minmax(0, 1fr) !important;

        padding:
            16px !important;
    }

    .parton-embedded-order-details
    .order-item-placeholder {
        width:
            48px;
        height:
            48px;

        border-radius:
            14px;
    }

    .parton-embedded-order-details
    .order-item-price {
        margin-left:
            0 !important;
    }
}

