:root {
    --pge-blue: #005bff;
    --pge-blue-hover: #0049d8;
    --pge-blue-soft: rgba(0, 91, 255, 0.08);
    --pge-text: #282739;
    --pge-muted: #a2adb9;
    --pge-muted-dark: #667085;
    --pge-line: #e1e7ef;
    --pge-bg: #f5f7fa;
    --pge-white: #ffffff;
    --pge-price: #5aa300;
    --pge-radius: 8px;
    --pge-radius-lg: 12px;
    --pge-shadow: 0 8px 24px rgba(40, 39, 57, 0.06);
}

/* ===== ОБЩАЯ СТРАНИЦА СМЕТЫ ===== */
.pge-page,
.pge-page * {
    box-sizing: border-box;
}

.pge-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 16px 70px;
    color: var(--pge-text);
    font-family: inherit;
}

.pge-page button,
.pge-page input,
.pge-page select,
.pge-page textarea {
    font-family: inherit;
}

/* ===== ШАПКА СМЕТЫ ===== */
.pge-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 24px 26px;
    background: var(--pge-bg);
    border: 1px solid var(--pge-line);
    border-radius: var(--pge-radius-lg);
}

.pge-eyebrow {
    margin-bottom: 6px;
    color: var(--pge-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pge-hero h1 {
    margin: 0 0 7px;
    color: var(--pge-text);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.08;
}

.pge-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--pge-muted-dark);
    font-size: 15px;
    line-height: 1.55;
}

.pge-estimate-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(0, 91, 255, 0.18);
    border-radius: var(--pge-radius);
    background: var(--pge-white);
    color: var(--pge-blue);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.pge-estimate-number:empty {
    display: none;
}

/* ===== ОСНОВНЫЕ РАЗДЕЛЫ ===== */
.pge-section {
    margin-bottom: 16px;
    padding: 22px;
    background: var(--pge-white);
    border: 1px solid var(--pge-line);
    border-radius: var(--pge-radius-lg);
    box-shadow: var(--pge-shadow);
}

.pge-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pge-section-head > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pge-section h2 {
    margin: 0;
    color: var(--pge-text);
    font-size: clamp(21px, 3vw, 26px);
    font-weight: 600;
    line-height: 1.18;
}

.pge-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: var(--pge-radius);
    background: var(--pge-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.pge-link {
    color: var(--pge-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.pge-link:hover {
    color: var(--pge-blue-hover);
    text-decoration: underline;
}

/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.pge-items {
    display: grid;
    gap: 12px;
}

.pge-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 165px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: var(--pge-white);
    border: 1px solid var(--pge-line);
    border-radius: var(--pge-radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pge-item:hover {
    border-color: rgba(0, 91, 255, 0.32);
    box-shadow: 0 7px 20px rgba(40, 39, 57, 0.05);
}

.pge-item-image {
    width: 140px;
    height: 105px;
    overflow: hidden;
    border-radius: var(--pge-radius);
    background: var(--pge-bg);
    border: 1px solid #edf0f5;
}

.pge-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pge-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    color: var(--pge-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
}

.pge-item-main {
    min-width: 0;
}

.pge-item-main h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.pge-item-main h3 a {
    color: var(--pge-text);
    text-decoration: none;
}

.pge-item-main h3 a:hover {
    color: var(--pge-blue);
}

.pge-product-link {
    display: inline-flex;
    align-items: center;
    margin: -4px 0 9px;
    color: var(--pge-blue);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.pge-product-link::after {
    content: '→';
    margin-left: 4px;
    font-size: 12px;
}

.pge-product-link:hover {
    color: var(--pge-blue-hover);
    text-decoration: underline;
}

.pge-item-params {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
}

.pge-item-params > div {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.pge-item-params span {
    color: var(--pge-muted-dark);
}

.pge-item-params strong {
    color: var(--pge-text);
    font-weight: 500;
}

.pge-item-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 13px;
    font-size: 13px;
}

.pge-item-controls label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pge-muted-dark);
}

.pge-item-controls input {
    width: 66px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: var(--pge-radius);
    background: #fff;
    color: var(--pge-text);
    outline: 0;
}

.pge-item-controls input:focus {
    border-color: var(--pge-blue);
    box-shadow: 0 0 0 3px var(--pge-blue-soft);
}

.pge-text-danger {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pge-muted-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.pge-text-danger:hover {
    color: var(--pge-blue);
    text-decoration: underline;
}

.pge-item-price {
    text-align: right;
}

.pge-item-price span {
    display: block;
    margin-bottom: 5px;
    color: var(--pge-muted-dark);
    font-size: 13px;
}

.pge-item-price strong {
    color: var(--pge-price);
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.pge-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 42px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--pge-radius-lg);
    background: var(--pge-bg);
    color: var(--pge-muted-dark);
    text-align: center;
}

.pge-empty[hidden] {
    display: none;
}

.pge-empty strong {
    color: var(--pge-text);
    font-size: 18px;
    font-weight: 600;
}



.pge-param-editable {
    display: none !important;
}

/* ===== РЕДАКТИРОВАНИЕ ПОЗИЦИИ В СМЕТЕ ===== */
.pge-item-editors {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.pge-config-editor,
.pge-hours-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid var(--pge-line);
    border-radius: var(--pge-radius);
    background: var(--pge-bg);
}

.pge-variant-editor {
    min-width: 220px;
}

.pge-config-editor > span,
.pge-hours-editor > span {
    color: var(--pge-muted-dark);
    font-size: 12px;
    font-weight: 500;
}

.pge-stepper,
.pge-hours-control,
.pge-config-quantity-control {
    display: grid;
    grid-template-columns: 34px 56px 22px 34px;
    align-items: center;
    gap: 5px;
}

.pge-page .pge-stepper button,
.pge-stepper button,
.pge-page .pge-hours-control button,
.pge-hours-control button {
    appearance: none !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid var(--pge-blue) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--pge-blue) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.pge-page .pge-stepper button:hover,
.pge-stepper button:hover,
.pge-page .pge-hours-control button:hover,
.pge-hours-control button:hover {
    background: var(--pge-blue) !important;
    color: #fff !important;
}

.pge-stepper input,
.pge-hours-control input,
.pge-config-quantity-control input {
    width: 56px !important;
    height: 34px !important;
    padding: 0 5px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--pge-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.pge-stepper input:focus,
.pge-hours-control input:focus,
.pge-config-quantity-control input:focus {
    border-color: var(--pge-blue) !important;
    box-shadow: 0 0 0 3px var(--pge-blue-soft) !important;
}

.pge-stepper > span,
.pge-hours-control > span,
.pge-config-quantity-control > span {
    color: var(--pge-text);
    font-size: 13px;
    font-weight: 500;
}

.pge-variant-editor select {
    width: min(260px, 100%);
    height: 34px;
    margin: 0;
    padding: 0 34px 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: var(--pge-text);
    font-size: 13px;
    font-weight: 500;
    outline: 0;
    box-shadow: none;
}

.pge-variant-editor select:focus {
    border-color: var(--pge-blue);
    box-shadow: 0 0 0 3px var(--pge-blue-soft);
}

.pge-staff-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid var(--pge-line);
    border-radius: var(--pge-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pge-staff-switch:hover {
    border-color: rgba(0, 91, 255, 0.45);
    background: var(--pge-blue-soft);
}

.pge-staff-switch.is-active {
    border-color: var(--pge-blue);
    background: var(--pge-blue-soft);
}

.pge-staff-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pge-staff-switch-mark {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.pge-staff-switch-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(40, 39, 57, 0.2);
    transition: transform 0.2s ease;
}

.pge-staff-switch input:checked + .pge-staff-switch-mark {
    background: var(--pge-blue);
}

.pge-staff-switch input:checked + .pge-staff-switch-mark::after {
    transform: translateX(16px);
}

.pge-staff-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pge-staff-switch-copy b {
    color: var(--pge-text);
    font-size: 13px;
    font-weight: 600;
}

.pge-staff-switch-copy small {
    color: var(--pge-muted-dark);
    font-size: 12px;
    line-height: 1.3;
}

.pge-item-status,
.pge-item-error {
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.pge-item-status {
    background: var(--pge-blue-soft);
    color: var(--pge-blue);
}

.pge-item-error {
    border: 1px solid rgba(0, 91, 255, 0.2);
    background: #fff;
    color: var(--pge-text);
}

.pge-item.is-recalculating {
    opacity: 0.78;
}

.pge-item-price small {
    display: block;
    margin-top: 5px;
    color: var(--pge-muted-dark);
    font-size: 11px;
    line-height: 1.3;
}

.pge-stepper button:disabled,
.pge-stepper input:disabled,
.pge-variant-editor select:disabled,
.pge-hours-control button:disabled,
.pge-hours-control input:disabled,
.pge-staff-switch input:disabled ~ * {
    cursor: wait !important;
}

@media (max-width: 620px) {
    .pge-item-editors {
        flex-direction: column;
    }

    .pge-config-editor,
    .pge-hours-editor,
    .pge-staff-switch {
        width: 100%;
        min-width: 0;
    }
}

/* ===== ПОЛЯ МЕРОПРИЯТИЯ ===== */
.pge-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.pge-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pge-form-grid label > span {
    color: var(--pge-text);
    font-size: 14px;
    font-weight: 500;
}

.pge-form-grid input,
.pge-form-grid select,
.pge-form-grid textarea {
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: var(--pge-radius);
    background: #fff;
    color: var(--pge-text);
    font-size: 15px;
    outline: 0;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pge-form-grid input,
.pge-form-grid select {
    height: 46px;
}

.pge-form-grid textarea {
    min-height: 94px;
    resize: vertical;
}

.pge-form-grid input:focus,
.pge-form-grid select:focus,
.pge-form-grid textarea:focus {
    border-color: var(--pge-blue);
    box-shadow: 0 0 0 3px var(--pge-blue-soft);
}

.pge-form-grid input::placeholder,
.pge-form-grid textarea::placeholder {
    color: var(--pge-muted);
}

.pge-span-2 {
    grid-column: span 2;
}

/* ===== ДОСТАВКА ВНУТРИ СМЕТЫ ===== */
.pge-delivery-calculator .pgdc-wrap {
    margin: 0;
}

.pge-delivery-calculator .pgdc-context-estimate {
    --pg-accent: var(--pge-blue) !important;
    --pg-accent2: var(--pge-blue-hover) !important;
    --pg-price: var(--pge-price) !important;
    --pg-notes: var(--pge-muted-dark) !important;
    --pg-text: var(--pge-text) !important;
    --pg-muted: var(--pge-muted-dark) !important;
    --pg-line: var(--pge-line) !important;
    --pg-card: #fff !important;
    --pg-shadow: none !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-grid {
    gap: 14px !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-card {
    padding: 18px !important;
    border: 1px solid var(--pge-line) !important;
    border-radius: var(--pge-radius-lg) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-card h3 {
    margin-bottom: 15px !important;
    color: var(--pge-text) !important;
    font-size: 21px !important;
    font-weight: 600 !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-section-title {
    color: var(--pge-text) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-radio-box {
    border-width: 1px !important;
    border-color: #cbd5e1 !important;
    border-radius: var(--pge-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card:hover,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-radio-box:hover {
    border-color: var(--pge-blue) !important;
    background: var(--pge-blue-soft) !important;
    transform: none !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card.active,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-radio-box.active {
    border-color: var(--pge-blue) !important;
    background: var(--pge-blue) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card.active .pgdc-transport-title,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card.active .pgdc-transport-sub {
    color: #fff !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card.active .pgdc-badge,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-transport-card.active .pgdc-plate {
    border-color: rgba(255, 255, 255, 0.38) !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-vehicle {
    height: 130px !important;
    border-radius: var(--pge-radius) !important;
    background: var(--pge-bg) !important;
}

.pge-delivery-calculator .pgdc-context-estimate input {
    height: 46px !important;
    border-radius: var(--pge-radius) !important;
}

.pge-delivery-calculator .pgdc-context-estimate input:focus {
    border-color: var(--pge-blue) !important;
    box-shadow: 0 0 0 3px var(--pge-blue-soft) !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-extra-box,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-mini,
.pge-delivery-calculator .pgdc-context-estimate .pgdc-formula {
    border-radius: var(--pge-radius) !important;
    background: var(--pge-bg) !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-result-main {
    margin-bottom: 12px !important;
    padding: 18px !important;
    border: 1px solid var(--pge-line) !important;
    border-radius: var(--pge-radius) !important;
    background: var(--pge-bg) !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-price {
    color: var(--pge-price) !important;
    font-size: 34px !important;
    font-weight: 600 !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-distance-help-btn {
    color: var(--pge-blue) !important;
}

.pge-delivery-calculator .pgdc-context-estimate .pgdc-yandex-btn {
    border-radius: var(--pge-radius) !important;
    background: var(--pge-blue) !important;
    box-shadow: none !important;
}

.pge-notice {
    padding: 15px;
    border: 1px solid rgba(0, 91, 255, 0.22);
    border-radius: var(--pge-radius);
    background: var(--pge-blue-soft);
    color: var(--pge-text);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== ИТОГ ===== */
.pge-summary-section {
    background: #fff;
}

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

.pge-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--pge-radius);
    background: var(--pge-bg);
}

.pge-summary span {
    color: var(--pge-muted-dark);
    font-size: 14px;
}

.pge-summary strong {
    color: var(--pge-text);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.pge-summary .pge-grand {
    grid-column: 1 / -1;
    min-height: 66px;
    margin-top: 2px;
    padding: 15px 17px;
    border: 1px solid #e2e8f0;
    background: var(--pge-bg);
}

.pge-summary .pge-grand span {
    color: var(--pge-text);
    font-size: 18px;
    font-weight: 500;
}

.pge-summary .pge-grand strong {
    color: var(--pge-price);
    font-size: clamp(27px, 4vw, 34px);
    font-weight: 600;
}

.pge-disclaimer {
    margin-top: 14px;
    color: var(--pge-muted-dark);
    font-size: 13px;
    line-height: 1.55;
}

/* ===== КНОПКИ ===== */
.pge-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pge-button,
.pge-page button.pge-button {
    appearance: none;
    min-height: 46px;
    margin: 0;
    padding: 11px 17px;
    border: 1px solid var(--pge-blue);
    border-radius: var(--pge-radius);
    background: #fff;
    color: var(--pge-blue);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pge-button:hover,
.pge-page button.pge-button:hover {
    border-color: var(--pge-blue-hover);
    background: var(--pge-blue-soft);
    color: var(--pge-blue-hover);
    transform: translateY(-1px);
}

.pge-button:focus-visible,
.pge-page button.pge-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--pge-blue-soft);
}

.pge-button:disabled,
.pge-page button.pge-button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.pge-button-primary,
.pge-page button.pge-button-primary {
    border-color: var(--pge-blue);
    background: var(--pge-blue);
    color: #fff;
}

.pge-button-primary:hover,
.pge-page button.pge-button-primary:hover {
    border-color: var(--pge-blue-hover);
    background: var(--pge-blue-hover);
    color: #fff;
}

.pge-button-danger,
.pge-page button.pge-button-danger {
    margin-left: auto;
    border-color: #cbd5e1;
    background: #fff;
    color: var(--pge-muted-dark);
}

.pge-button-danger:hover,
.pge-page button.pge-button-danger:hover {
    border-color: var(--pge-blue);
    background: var(--pge-blue-soft);
    color: var(--pge-blue);
}

.pge-print-options {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.pge-print-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pge-muted-dark);
    font-size: 14px;
    cursor: pointer;
}

.pge-print-toggle input {
    accent-color: var(--pge-blue);
}

/* ===== СОХРАНЕННАЯ ССЫЛКА ===== */
.pge-save-result {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(0, 91, 255, 0.2);
    border-radius: var(--pge-radius);
    background: var(--pge-blue-soft);
    color: var(--pge-text);
}

.pge-save-result strong,
.pge-save-result span {
    display: block;
    margin-bottom: 8px;
}

.pge-saved-link {
    display: flex;
    gap: 8px;
}

.pge-saved-link input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #cbd5e1;
    border-radius: var(--pge-radius);
    background: #fff;
}

.pge-saved-link button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--pge-blue);
    border-radius: var(--pge-radius);
    background: var(--pge-blue);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

/* ===== ИНДИКАТОР СМЕТЫ И БЮДЖЕТА В ШАПКЕ ===== */
.pge-counter,
.elementor .pge-counter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: var(--pge-radius);
    background: transparent;
    color: var(--pge-text);
    font-family: inherit;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pge-counter:hover,
.elementor .pge-counter:hover {
    border-color: rgba(0, 91, 255, 0.16);
    background: var(--pge-blue-soft);
    color: var(--pge-blue);
    text-decoration: none !important;
}

.pge-counter.has-items,
.elementor .pge-counter.has-items {
    border-color: rgba(0, 91, 255, 0.13);
    background: var(--pge-white);
    box-shadow: 0 5px 16px rgba(40, 39, 57, 0.06);
}

.pge-counter-icon {
    flex: 0 0 auto;
    color: var(--pge-blue);
}

.pge-counter-title {
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.pge-counter-details {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pge-counter-details[hidden],
.pge-mobile-bar-details[hidden] {
    display: none !important;
}

.pge-counter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--pge-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.pge-counter-total {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 6px;
    background: var(--pge-bg);
    color: var(--pge-price);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.pge-counter.is-updated,
.pge-mobile-bar.is-updated {
    animation: pgeBudgetPulse 0.5s ease;
}

@keyframes pgeBudgetPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.035); box-shadow: 0 8px 22px rgba(0, 91, 255, 0.18); }
    100% { transform: scale(1); }
}

.pge-mobile-bar {
    display: none;
}

/* ===== КНОПКА «ДОБАВИТЬ В СМЕТУ» НА ТОВАРЕ ===== */
.pg-estimate-button-wrapper {
    clear: both;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #edf0f5;
}

button.pge-add-button,
.rent-calculator button.pge-add-button,
.pg-estimate-button-wrapper button.pge-add-button,
.elementor button.pge-add-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 1px solid var(--pge-blue) !important;
    border-radius: 6px !important;
    background: var(--pge-blue) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    outline: 0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.pge-add-button-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

button.pge-add-button span,
button.pge-add-button strong,
.rent-calculator button.pge-add-button span,
.rent-calculator button.pge-add-button strong,
.elementor button.pge-add-button span,
.elementor button.pge-add-button strong {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
}

button.pge-add-button strong:not(:empty)::before {
    content: '·';
    margin-right: 7px;
    opacity: 0.72;
}

button.pge-add-button::before,
button.pge-add-button::after,
.rent-calculator button.pge-add-button::before,
.rent-calculator button.pge-add-button::after,
.elementor button.pge-add-button::before,
.elementor button.pge-add-button::after {
    display: none !important;
    content: none !important;
}

button.pge-add-button:hover,
.rent-calculator button.pge-add-button:hover,
.pg-estimate-button-wrapper button.pge-add-button:hover,
.elementor button.pge-add-button:hover {
    border-color: var(--pge-blue-hover) !important;
    background: var(--pge-blue-hover) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

button.pge-add-button:focus-visible,
.rent-calculator button.pge-add-button:focus-visible,
.elementor button.pge-add-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.14) !important;
}

button.pge-add-button:active,
.rent-calculator button.pge-add-button:active,
.elementor button.pge-add-button:active {
    transform: translateY(0) !important;
}

button.pge-add-button.is-added,
.rent-calculator button.pge-add-button.is-added,
.elementor button.pge-add-button.is-added {
    border-color: var(--pge-blue) !important;
    background: var(--pge-blue) !important;
}

button.pge-add-button:disabled,
.rent-calculator button.pge-add-button:disabled,
.elementor button.pge-add-button:disabled {
    border-color: var(--pge-muted) !important;
    background: var(--pge-muted) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.pge-add-message {
    min-height: 0;
    margin: 0;
    color: var(--pge-muted-dark);
    font-size: 13px;
    line-height: 1.35;
}

.pge-add-message:empty {
    display: none;
}

.pge-add-message a {
    color: var(--pge-blue);
    font-weight: 500;
}

@media (max-width: 480px) {
    .pg-estimate-button-wrapper {
        align-items: flex-start;
    }

    button.pge-add-button,
    .rent-calculator button.pge-add-button,
    .pg-estimate-button-wrapper button.pge-add-button,
    .elementor button.pge-add-button {
        width: auto !important;
        max-width: 100% !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
}

.pge-print-header,
.pge-print-delivery {
    display: none;
}

/* ===== ПЛАНШЕТ И МОБИЛЬНЫЕ ===== */
@media (max-width: 900px) {
    .pge-item {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .pge-item-image {
        width: 110px;
        height: 90px;
    }

    .pge-item-price {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--pge-line);
        text-align: left;
    }

    .pge-item-price span {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .pge-page {
        padding: 12px 10px 92px;
    }

    .pge-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
        border-radius: var(--pge-radius-lg);
    }

    .pge-section {
        padding: 16px;
        border-radius: var(--pge-radius-lg);
    }

    .pge-section-head {
        align-items: flex-start;
    }

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

    .pge-span-2 {
        grid-column: auto;
    }

    .pge-summary {
        grid-template-columns: 1fr;
    }

    .pge-summary .pge-grand {
        grid-column: auto;
    }

    .pge-button-danger,
    .pge-page button.pge-button-danger {
        margin-left: 0;
    }

    .pge-mobile-bar {
        position: fixed;
        z-index: 9990;
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 54px;
        padding: 11px 14px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: var(--pge-radius-lg);
        background: var(--pge-blue);
        color: #fff;
        font-size: 15px;
        text-decoration: none !important;
        box-shadow: 0 12px 32px rgba(0, 91, 255, 0.25);
    }

    .pge-mobile-bar-title {
        font-weight: 600;
    }

    .pge-mobile-bar-details {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .pge-mobile-bar-details b {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 25px;
        height: 25px;
        padding: 0 7px;
        border-radius: 999px;
        background: #fff;
        color: var(--pge-blue);
        font-size: 12px;
        font-weight: 700;
    }

    .pge-mobile-bar-details strong {
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
    }

    .pge-mobile-bar.is-empty {
        justify-content: center;
    }
}

@media (max-width: 860px) {
    .pge-counter,
    .elementor .pge-counter {
        gap: 6px;
        min-height: 40px;
        padding: 6px 8px;
    }

    .pge-counter-title {
        font-size: 14px;
    }

    .pge-counter-total {
        padding: 0 7px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .pge-section-head {
        flex-direction: column;
    }

    .pge-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 11px;
        padding: 11px;
    }

    .pge-item-image {
        width: 82px;
        height: 78px;
    }

    .pge-item-main h3 {
        font-size: 17px;
    }

    .pge-item-params > div {
        width: 100%;
        font-size: 13px;
    }

    .pge-item-price strong {
        font-size: 21px;
    }

    .pge-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pge-actions .pge-button,
    .pge-actions .pge-print-options {
        width: 100%;
    }

    .pge-print-options {
        min-height: 38px;
    }

    .pge-saved-link {
        flex-direction: column;
    }
}


.pge-print-document {
    display: none;
}

/* ===== ПЕЧАТЬ / PDF 2.0 ===== */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 11mm 11mm;
    }

    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.pge-printing {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.pge-printing .site-header,
    body.pge-printing .site-footer,
    body.pge-printing header:not(.pge-pdf-header),
    body.pge-printing footer:not(.pge-pdf-footer),
    body.pge-printing nav,
    body.pge-printing .elementor-location-header,
    body.pge-printing .elementor-location-footer,
    body.pge-printing .pge-page > :not(.pge-print-document) {
        display: none !important;
    }

    body.pge-printing .pge-page {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #282739 !important;
        background: #fff !important;
        font-family: Arial, Helvetica, sans-serif !important;
    }

    body.pge-printing .pge-print-document {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        color: #282739;
        background: #fff;
        font-size: 9px;
        line-height: 1.35;
    }

    .pge-print-document,
    .pge-print-document * {
        box-sizing: border-box;
    }

    .pge-pdf-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12mm;
        margin: 0 0 4mm;
        padding: 0 0 3mm;
        border-bottom: .8mm solid #005bff;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .pge-pdf-brand {
        display: block;
        width: 92mm;
        min-width: 82mm;
    }

    .pge-pdf-logo {
        display: block;
        width: 88mm;
        max-width: 100%;
        height: auto;
        max-height: 24mm;
        object-fit: contain;
        object-position: left center;
        border-radius: 1.8mm;
    }

    .pge-pdf-brand > div:last-child {
        margin-top: 1.2mm;
        color: #7a8494;
        font-size: 7.3px;
        line-height: 1.25;
    }

    .pge-pdf-document-meta {
        min-width: 58mm;
        text-align: right;
    }

    .pge-pdf-kicker {
        margin-bottom: .8mm;
        color: #7a8494;
        font-size: 7px;
        font-weight: 700;
        letter-spacing: .11em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .pge-pdf-document-meta h1 {
        margin: 0;
        color: #282739;
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -.025em;
    }

    .pge-pdf-document-meta strong,
    .pge-pdf-document-meta span {
        display: block;
        margin-top: 1mm;
    }

    .pge-pdf-document-meta strong {
        color: #005bff;
        font-size: 9px;
        font-weight: 700;
    }

    .pge-pdf-document-meta span {
        color: #7a8494;
        font-size: 7.5px;
    }

    .pge-pdf-intro {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 5mm;
        margin: 0 0 3mm;
        padding: 2mm 3mm;
        border: .25mm solid #dce4ef;
        border-radius: 2mm;
        background: #f7f9fc;
        break-inside: avoid;
    }

    .pge-pdf-intro > div {
        display: flex;
        align-items: baseline;
        gap: 2mm;
    }

    .pge-pdf-intro span {
        color: #7a8494;
        font-size: 7px;
    }

    .pge-pdf-intro strong {
        color: #282739;
        font-size: 8.5px;
        font-weight: 700;
    }

    .pge-pdf-section {
        margin: 0 0 3mm;
        break-inside: auto;
    }

    .pge-pdf-section-title {
        margin: 0 0 2mm;
        padding-left: 2.2mm;
        border-left: .8mm solid #005bff;
        color: #282739;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .055em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .pge-pdf-info-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.7mm 5mm;
        padding: 2.5mm;
        border: .25mm solid #dce4ef;
        border-radius: 2mm;
        background: #f9fbfd;
        break-inside: avoid;
    }

    .pge-pdf-info-field {
        min-width: 0;
    }

    .pge-pdf-info-field.is-wide {
        grid-column: span 2;
    }

    .pge-pdf-info-field span,
    .pge-pdf-logistics-grid span,
    .pge-pdf-item-price span {
        display: block;
        margin-bottom: .45mm;
        color: #8a94a4;
        font-size: 6.5px;
        font-weight: 500;
        line-height: 1.2;
    }

    .pge-pdf-info-field strong {
        display: block;
        overflow-wrap: anywhere;
        color: #282739;
        font-size: 8px;
        font-weight: 650;
        line-height: 1.3;
    }

    .pge-pdf-items {
        border-top: .25mm solid #dce4ef;
    }

    .pge-pdf-item {
        display: grid;
        grid-template-columns: 23mm minmax(0, 1fr) 29mm;
        align-items: center;
        gap: 3.5mm;
        min-height: 20mm;
        padding: 1.8mm 0;
        border-bottom: .25mm solid #dce4ef;
        background: #fff;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .pge-pdf-item.is-no-photo {
        grid-template-columns: minmax(0, 1fr) 29mm;
    }

    .pge-pdf-item-photo {
        width: 23mm;
        height: 16.5mm;
        overflow: hidden;
        border-radius: 1.5mm;
        background: #f3f6fa;
    }

    .pge-pdf-item-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pge-pdf-photo-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #005bff;
        font-size: 7px;
        font-weight: 800;
        line-height: 1.05;
        text-align: center;
    }

    .pge-pdf-item-content {
        min-width: 0;
    }

    .pge-pdf-item-content h3 {
        margin: 0 0 1.4mm;
        color: #282739;
        font-size: 10px;
        font-weight: 750;
        line-height: 1.2;
    }

    .pge-pdf-params {
        display: flex;
        flex-wrap: wrap;
        gap: .7mm 3.5mm;
    }

    .pge-pdf-param {
        display: inline-flex;
        align-items: baseline;
        gap: 1mm;
        max-width: 100%;
        font-size: 7.2px;
        line-height: 1.3;
    }

    .pge-pdf-param span {
        color: #8a94a4;
    }

    .pge-pdf-param strong {
        overflow-wrap: anywhere;
        color: #465163;
        font-weight: 650;
    }

    .pge-pdf-item-price {
        min-width: 0;
        text-align: right;
    }

    .pge-pdf-item-price strong {
        display: block;
        color: #282739;
        font-size: 10.5px;
        font-weight: 800;
        line-height: 1.15;
        white-space: nowrap;
    }

    .pge-pdf-logistics-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.8mm 5mm;
        padding: 2.5mm;
        border: .25mm solid #dce4ef;
        border-radius: 2mm;
        background: #f9fbfd;
        break-inside: avoid;
    }

    .pge-pdf-logistics-grid > div {
        min-width: 0;
    }

    .pge-pdf-logistics-grid strong {
        display: block;
        overflow-wrap: anywhere;
        color: #282739;
        font-size: 8px;
        font-weight: 700;
        line-height: 1.25;
    }

    .pge-pdf-totals {
        display: flex;
        justify-content: flex-end;
        margin: 3mm 0 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .pge-pdf-totals-wrap {
        width: 83mm;
    }

    .pge-pdf-totals-list {
        width: 100%;
        overflow: hidden;
        border: .3mm solid #d3dce8;
        border-radius: 2mm;
        background: #fff;
    }

    .pge-pdf-totals-list > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5mm;
        padding: 1.75mm 3mm;
        border-bottom: .2mm solid #e8edf3;
        color: #5f6b7c;
        font-size: 8px;
        line-height: 1.25;
    }

    .pge-pdf-totals-list > div:last-child {
        border-bottom: 0;
    }

    .pge-pdf-totals-list strong {
        color: #282739;
        font-size: 8.5px;
        font-weight: 750;
        white-space: nowrap;
    }

    .pge-pdf-totals-list .pge-pdf-grand {
        padding: 2.7mm 3mm;
        border: 0;
        background: #005bff !important;
        color: #fff;
    }

    .pge-pdf-grand span,
    .pge-pdf-grand strong {
        color: #fff !important;
        font-weight: 800;
    }

    .pge-pdf-grand span {
        font-size: 10px;
    }

    .pge-pdf-grand strong {
        font-size: 15px;
    }

    .pge-pdf-note {
        margin: 1.5mm 0 0;
        color: #8a94a4;
        font-size: 6.6px;
        line-height: 1.35;
        text-align: right;
    }

    .pge-pdf-footer {
        display: flex !important;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8mm;
        margin-top: 3mm;
        padding-top: 2mm;
        border-top: .25mm solid #dce4ef;
        color: #8a94a4;
        break-inside: auto;
        page-break-inside: auto;
    }

    .pge-pdf-footer p {
        max-width: 125mm;
        margin: 0;
        font-size: 6.8px;
        line-height: 1.4;
    }

    .pge-pdf-footer > div {
        min-width: 35mm;
        text-align: right;
    }

    .pge-pdf-footer strong,
    .pge-pdf-footer span {
        display: block;
    }

    .pge-pdf-footer strong {
        color: #005bff;
        font-size: 8px;
    }

    .pge-pdf-footer span {
        margin-top: .4mm;
        font-size: 6.8px;
    }
}

/* ===== ДОСТАВКА НЕ НУЖНА ===== */
.pge-delivery-skip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--pge-line);
    border-radius: var(--pge-radius);
    background: #fff;
    color: var(--pge-text);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.pge-delivery-skip:hover {
    border-color: var(--pge-blue);
    background: var(--pge-blue-soft);
}

.pge-delivery-skip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pge-delivery-skip-mark {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color .2s ease;
}

.pge-delivery-skip-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(40, 39, 57, .18);
    transition: transform .2s ease;
}

.pge-delivery-skip input:checked + .pge-delivery-skip-mark {
    background: var(--pge-blue);
}

.pge-delivery-skip input:checked + .pge-delivery-skip-mark::after {
    transform: translateX(16px);
}

.pge-delivery-skip-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.pge-delivery-skip-copy b {
    font-size: 14px;
    font-weight: 600;
}

.pge-delivery-skip-copy small {
    color: var(--pge-muted-dark);
    font-size: 12px;
    font-weight: 400;
}

.pge-delivery-skipped {
    padding: 18px;
    border: 1px solid rgba(0, 91, 255, .22);
    border-radius: var(--pge-radius);
    background: var(--pge-blue-soft);
}

.pge-delivery-skipped strong,
.pge-delivery-skipped span {
    display: block;
}

.pge-delivery-skipped strong {
    margin-bottom: 4px;
    color: var(--pge-text);
    font-size: 17px;
    font-weight: 600;
}

.pge-delivery-skipped span {
    color: var(--pge-muted-dark);
    font-size: 14px;
}

.pge-print-delivery-none {
    padding: 12px 0;
}

.pge-print-delivery-none strong,
.pge-print-delivery-none span {
    display: block;
}

.pge-print-delivery-none span {
    margin-top: 3px;
    color: var(--pge-muted-dark);
}

@media (max-width: 768px) {
    .pge-delivery-section .pge-section-head {
        align-items: flex-start;
        gap: 12px;
    }

    .pge-delivery-skip {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== ДАННЫЕ МЕРОПРИЯТИЯ: ВЫКЛЮЧАТЕЛЬ РАЗДЕЛА ===== */
.pge-event-skip {
    flex: 0 0 auto;
}

.pge-event-skipped {
    padding: 18px;
    border: 1px solid rgba(0, 91, 255, .22);
    border-radius: var(--pge-radius);
    background: var(--pge-blue-soft);
}

.pge-event-skipped strong,
.pge-event-skipped span {
    display: block;
}

.pge-event-skipped strong {
    margin-bottom: 4px;
    color: var(--pge-text);
    font-size: 17px;
    font-weight: 600;
}

.pge-event-skipped span {
    color: var(--pge-muted-dark);
    font-size: 14px;
}

.pge-event-print-option.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pge-event-print-option.is-disabled input,
.pge-event-print-option.is-disabled span {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .pge-meta-section .pge-section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .pge-event-skip {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Гарантированное скрытие формы мероприятия независимо от display:grid темы/плагинов */
.pge-page [data-pge-event-form][hidden],
.pge-page [data-pge-event-skipped][hidden] {
    display: none !important;
}

/* ===== ОТПРАВКА СМЕТЫ В PLAY-GAME ===== */
.pge-button-send,
.pge-page button.pge-button-send {
    border-color: var(--pge-blue);
    background: var(--pge-blue);
    color: #fff;
    font-weight: 600;
}

.pge-button-send:hover,
.pge-page button.pge-button-send:hover {
    border-color: var(--pge-blue-hover);
    background: var(--pge-blue-hover);
    color: #fff;
}

.pge-send-panel {
    position: relative;
    margin-top: 18px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 91, 255, 0.22);
    border-radius: var(--pge-radius-lg);
    background: linear-gradient(180deg, rgba(0, 91, 255, 0.045) 0, #fff 92px);
    box-shadow: 0 12px 30px rgba(40, 39, 57, 0.08);
}

.pge-send-panel[hidden] {
    display: none !important;
}

.pge-send-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--pge-blue);
}

.pge-send-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.pge-send-panel-head span {
    display: block;
    margin-bottom: 4px;
    color: var(--pge-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pge-send-panel-head h3 {
    margin: 0 0 5px;
    color: var(--pge-text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.pge-send-panel-head p {
    margin: 0;
    color: var(--pge-muted-dark);
    font-size: 14px;
    line-height: 1.45;
}

.pge-send-close,
.pge-page button.pge-send-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid var(--pge-line);
    border-radius: 50%;
    background: #fff;
    color: var(--pge-muted-dark);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.pge-send-close:hover,
.pge-page button.pge-send-close:hover {
    border-color: rgba(0, 91, 255, .35);
    color: var(--pge-blue);
}

.pge-send-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pge-send-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.pge-send-grid label > span {
    color: var(--pge-text);
    font-size: 13px;
    font-weight: 500;
}

.pge-send-grid input,
.pge-send-grid textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cfd8e5;
    border-radius: var(--pge-radius);
    background: #fff;
    color: var(--pge-text);
    font-size: 14px;
    outline: 0;
    box-shadow: none;
}

.pge-send-grid input {
    height: 43px;
}

.pge-send-grid textarea {
    min-height: 82px;
    resize: vertical;
}

.pge-send-grid input:focus,
.pge-send-grid textarea:focus {
    border-color: var(--pge-blue);
    box-shadow: 0 0 0 3px var(--pge-blue-soft);
}

.pge-send-wide {
    grid-column: 1 / -1;
}

.pge-send-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pge-send-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pge-line);
}

.pge-send-footer > div {
    display: grid;
    gap: 3px;
}

.pge-send-footer strong {
    color: var(--pge-text);
    font-size: 13px;
    font-weight: 600;
}

.pge-send-footer span {
    color: var(--pge-muted-dark);
    font-size: 12px;
}

.pge-send-result {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--pge-radius);
    font-size: 13px;
    line-height: 1.5;
}

.pge-send-result[hidden] {
    display: none !important;
}

.pge-send-result strong,
.pge-send-result span,
.pge-send-result a {
    display: block;
}

.pge-send-result strong {
    margin-bottom: 3px;
}

.pge-send-result a {
    margin-top: 7px;
    color: inherit;
    font-weight: 600;
}

.pge-send-result.is-progress {
    border: 1px solid rgba(0, 91, 255, .2);
    background: var(--pge-blue-soft);
    color: var(--pge-blue);
}

.pge-send-result.is-success {
    border: 1px solid rgba(90, 163, 0, .25);
    background: rgba(90, 163, 0, .08);
    color: #467c00;
}

.pge-send-result.is-error {
    border: 1px solid rgba(180, 54, 54, .2);
    background: rgba(180, 54, 54, .06);
    color: #9d2f2f;
}

@media (max-width: 767px) {
    .pge-send-panel {
        padding: 17px 15px 16px;
    }

    .pge-send-panel-head h3 {
        font-size: 19px;
    }

    .pge-send-grid {
        grid-template-columns: 1fr;
    }

    .pge-send-wide {
        grid-column: auto;
    }

    .pge-send-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pge-send-footer .pge-button {
        width: 100%;
    }
}
