/* Reset & Base */
:root {
    --primary: #3b82f6;
    /* Lighter, more vibrant blue */
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;

    /* Premium Palette */
    --bg-body: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --bg-card: rgba(255, 255, 255, 0.85);
    /* Glass base */

    --text-main: #0f172a;
    --text-muted: #64748b;

    --border: rgba(226, 232, 240, 0.8);
    --border-light: rgba(255, 255, 255, 0.6);

    --radius: 20px;
    /* Matching cookie modal */
    --radius-sm: 12px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.15);

    --font-main: 'Inter', system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
    --anim-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    background-attachment: fixed;
    /* Parallax-like effect */
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.cookie-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    height: 340px;
    width: 340px;
    max-width: calc(100% - 48px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cookie-notice.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-notice.hidden {
    display: none;
}

.cookie-notice__content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-notice.hidden {
    display: none;
}

.cookie-notice__content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 480px;
}

.cookie-notice__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cookie-notice__text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.cookie-notice__text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-notice__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.cookie-notice__actions .btn {
    padding: 10px;
    font-size: 0.95rem;
    width: 100%;
    margin: 0 !important;
    /* override inline styles if any */
}

/* Header */
.top-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

.brand-logo {
    height: 80px;
    width: auto;
}

.nav-controls {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #eff6ff;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    display: flex;
    gap: 12px;
    transition: all 0.2s;
}

.header-price:hover {
    border-color: var(--primary);
}

.header-price .cost-part strong {
    color: var(--primary);
}

.header-price .reserve-part {
    color: var(--success);
    font-size: 0.9em;
}

.language-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-select {
    appearance: none;
    padding: 8px 32px 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s;
}

.lang-select:hover {
    border-color: var(--secondary);
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.select-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Layout */
.main-content {
    max-width: 1280px;
    margin: 48px auto;
    padding: 0 24px;
    animation: fadeIn 0.8s ease-out;
}



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

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

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

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

.content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.hero-block {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 16px;
}

.hero-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.hero-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Calculator Card */
.calculator-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 48px;
    /* Increased padding */
    transition: transform var(--anim-fast), box-shadow var(--anim-fast);
}

.calculator-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form Elements */
.input-group {
    margin-bottom: 28px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.input-group label i {
    width: 24px;
    color: var(--primary);
    text-align: center;
    margin-right: 8px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.form-control {
    width: 100px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background: white;
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    /* Soft glow */
}

.form-range {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-val {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.dual-inputs {
    display: flex;
    gap: 24px;
}

.sub-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.sub-input .form-control.short {
    width: 100%;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Services */
.services-section {
    border-top: 1px solid var(--border);
    margin-top: 32px;
    padding-top: 24px;
}

.services-toggle-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.services-toggle-btn:hover {
    background: #f8fafc;
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.services-toggle-btn.open .toggle-icon {
    transform: rotate(180deg);
}

.services-content {
    display: none;
    margin-top: 24px;
    padding: 0 16px;
    animation: slideDown 0.3s ease forwards;
}

.services-content.open {
    display: block;
}

.service-row {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.service-row:last-child {
    border-bottom: none;
}

.service-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
}

.price-tag {
    font-size: 0.85rem;
    color: var(--primary);
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Actions */
.actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    /* Larger click area */
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn:active:not(:disabled) {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f8bf9 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: none;
}

.btn-success:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.btn-text-only {
    background: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 20px;
    width: 100%;
    padding: 10px;
}

.btn-text-only:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    margin: 40px auto 20px;
    padding: 0 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-cookie-button {
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 10px;
    border-width: 1px;
}

.footer-company {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.modal-overlay.open {
    display: flex !important;
}

.modal-dialog {
    background: white;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-dialog--compact {
    max-width: 560px;
}

.modal-header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    overflow: hidden;
    height: 100%;
}

.payment-body {
    padding: 32px;
}

.payment-status-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.payment-status-icon.success {
    background: #dcfce7;
    color: #16a34a;
}

.payment-status-icon.failure {
    background: #fee2e2;
    color: #dc2626;
}

.payment-status-content h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.payment-status-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.payment-actions {
    justify-content: flex-start;
}

.summary-column {
    padding: 32px;
    background: #f8fafc;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.form-column {
    padding: 32px;
    overflow-y: auto;
    background: white;
}

.summary-list ul {
    list-style: none;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
}

.summary-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

.features-included {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.features-included h5 {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-muted);
}

.features-included ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

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

/* Clean Form */
.clean-form .form-group {
    margin-bottom: 20px;
}

.clean-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.clean-form label.required::after {
    content: " *";
    color: var(--danger);
}

.clean-form input,
.clean-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.clean-form input:focus,
.clean-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-section-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.form-group.half {
    width: 48%;
    display: inline-block;
}

.offer-notice {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.offer-notice a {
    color: #2563eb;
    text-decoration: none;
}

.offer-notice a:hover {
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.modal-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 5;
    backdrop-filter: blur(3px);
}

.modal-status-card {
    width: min(420px, 100%);
    background: white;
    border-radius: 18px;
    padding: 24px;
    display: grid;
    gap: 16px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.modal-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto;
    background: #e0f2fe;
    color: #2563eb;
}

.modal-status-overlay.is-success .modal-status-icon {
    background: #dcfce7;
    color: #16a34a;
}

.modal-status-overlay.is-error .modal-status-icon {
    background: #fee2e2;
    color: #dc2626;
}

.modal-status-content h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.modal-status-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.status-msg {
    margin-top: 16px;
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
}

.success-notice {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
    background: #ecfdf3;
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 16px;
}

.success-notice__icon {
    color: #16a34a;
    font-size: 28px;
}

.success-notice__content h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.success-notice__content p {
    margin: 0 0 12px;
    color: #166534;
    font-size: 14px;
    line-height: 1.45;
}

.success-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Result Box */
.result-box {
    margin-top: 32px;
    padding: 20px;
    background: #eff6ff;
    border-radius: var(--radius);
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .modal-body-grid {
        grid-template-columns: 1fr;
    }

    .summary-column {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 300px;
    }

    .cookie-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 600px) {
    .nav-controls span {
        display: none;
    }

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

    .form-group.half {
        width: 100%;
        display: block;
    }

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

    .cookie-notice {
        padding: 16px;
    }

    .cookie-notice__content {
        flex: 1 1 100%;
    }

    .cookie-notice__actions {
        width: 100%;
    }

    .cookie-notice__actions .btn {
        width: 100%;
    }
}

/* PRINT / PDF STYLES */
.print-only {
    display: none;
}

@media print {
    @page {
        margin: 0.5cm;
        size: A4;
    }

    body {
        margin: 0;
        padding: 0;
        background: white;
        color: #000;
        font-family: 'Times New Roman', Times, serif;
        font-size: 11pt;
        /* Slightly smaller to fit */
        line-height: 1.3;
    }

    /* Hide UI elements */
    .top-nav,
    .sidebar,
    .input-group,
    .services-section,
    .actions-row,
    .btn,
    .close-modal,
    .modal-actions,
    .form-column,
    .card-header p,
    .services-toggle-btn,
    #downloadPdf,
    .result-box,
    .modal-header,
    .features-list,
    .summary-column,
    .hero-block {
        display: none !important;
    }

    /* Reset Layout for Print */
    .app-wrapper,
    .modal-overlay,
    .modal-dialog,
    .modal-body-grid,
    .content-grid,
    .main-content {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* Print Header */
    .print-only {
        display: block !important;
    }

    .print-header-layout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
    }

    .print-brand {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .print-logo {
        height: 60px;
        width: auto;
    }

    .print-brand div h1 {
        font-size: 24pt;
        font-weight: bold;
        color: #000;
        margin-bottom: 5px;
        margin-top: 0;
    }

    .print-brand div p {
        font-size: 14pt;
        color: #555;
        margin: 0;
    }

    .client-info {
        border: 1px solid #ccc;
        padding: 15px;
        margin-bottom: 30px;
        border-radius: 4px;
    }

    .client-info p {
        margin: 0 0 5px 0;
    }

    /* Table Styling */
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 30px;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
    }

    .print-table th {
        background-color: #f0f0f0 !important;
        font-weight: bold;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-table tr.total-row td {
        background-color: #e6e6e6 !important;
        font-weight: bold;
        font-size: 14pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-footer {
        margin-top: 50px;
        text-align: center;
        font-size: 10pt;
        color: #666;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }
}

* {
    max-width: 100%;
}

@media (max-width: 600px) {
    .top-nav {
        height: auto;
        padding: 12px 16px;
    }

    .brand-logo {
        height: 56px;
        /* меньше хедера */
    }

    .input-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .form-control {
        width: 100%;
        max-width: 100%;
    }

    .range-val {
        min-width: auto;
        flex: 0 0 auto;
    }

    .cookie-notice {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%) scale(0.96);

        width: calc(100% - 32px);
        max-width: 360px;
        max-height: 70vh;

        padding: 16px;
        gap: 12px;

        overflow: hidden;
        /* важно */
    }

    .cookie-notice.visible {
        transform: translate(-50%, -50%) scale(1);
    }

    .cookie-notice__text {
        max-height: 40vh;
        overflow-y: auto;
        padding-right: 4px;
    }

    .cookie-notice__actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}