:root {
    --primary-bg: #f4f6f8;
    --secondary-bg: #ffffff;
    --dark-bg: #1a1c20;
    --darker-bg: #111215;
    --accent-color: #b86e24;
    --accent-hover: #9c5c1c;
    --text-dark: #2c3036;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    --success-color: #218445;
    --success-bg: #dff2e5;
    --danger-color: #a52b2b;
    --danger-bg: #f8dddd;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
    --transition-base: .3s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--primary-bg); color: var(--text-dark); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.7; overflow-x: hidden; }
section[id] { scroll-margin-top: 90px; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section-padding { padding: 100px 0; }
.section-title { margin: 0 0 20px; color: var(--dark-bg); text-align: center; text-transform: uppercase; font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; }
.section-subtitle { max-width: 650px; margin: 0 auto 60px; color: var(--text-muted); text-align: center; font-size: 1.1rem; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease-out, transform .8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Nawigacja - układ zachowany ze starej strony. */
.navbar { position: sticky; top: 0; z-index: 1000; display: block; padding: 15px 0; background: var(--secondary-bg); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo img { display: block; height: 60px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 35px; margin: 0; padding: 0; list-style: none; }
.nav-menu a { color: var(--dark-bg); text-decoration: none; text-transform: uppercase; font-size: .9rem; font-weight: 600; letter-spacing: .5px; transition: color var(--transition-base); }
.nav-menu a:hover { color: var(--accent-color); }
.nav-logout { margin: 0; }
.nav-logout button { padding: 0; border: 0; background: transparent; color: var(--dark-bg); text-transform: uppercase; font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: .5px; cursor: pointer; }
.nav-logout button:hover { color: var(--accent-color); }
.admin-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #30343a; background: var(--darker-bg); color: #fff; box-shadow: 0 5px 20px rgba(0, 0, 0, .16); }
.admin-header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; min-height: 82px; }
.admin-brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.admin-brand:hover { color: #fff; }
.admin-brand img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.admin-brand span { display: grid; line-height: 1.15; }
.admin-brand small { color: #949ba3; text-transform: uppercase; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }
.admin-brand strong { margin-top: .2rem; font-size: 1rem; }
.admin-main-nav { display: flex; align-self: stretch; gap: .25rem; }
.admin-main-nav a { display: flex; align-items: center; padding: 0 1rem; border-bottom: 3px solid transparent; color: #b9bec4; text-decoration: none; font-size: .9rem; font-weight: 750; }
.admin-main-nav a:hover, .admin-main-nav a.active { border-bottom-color: var(--accent-color); color: #fff; background: rgba(255,255,255,.035); }
.admin-header-actions { display: flex; align-items: center; gap: .6rem; }
.admin-header-actions form { margin: 0; }
.admin-header-actions a, .admin-header-actions button { display: inline-flex; align-items: center; min-height: 38px; padding: .55rem .8rem; border: 1px solid #3c4249; border-radius: 4px; background: transparent; color: #c5c9ce; text-decoration: none; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.admin-header-actions a:hover, .admin-header-actions button:hover { border-color: var(--accent-color); color: #fff; }
.nav-menu .btn-nav-contact { padding: 10px 24px; border-radius: 4px; background: var(--accent-color); color: var(--text-light); }
.nav-menu .btn-nav-contact:hover { background: var(--accent-hover); color: #fff; }
.hamburger-btn { display: none; flex-direction: column; gap: 6px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.hamburger-btn span { display: block; width: 30px; height: 3px; border-radius: 3px; background: var(--dark-bg); transition: transform .3s ease, opacity .3s ease; }

/* Pierwsza sekcja z formularzem w miejscu dawnego kalkulatora. */
.hero-section { display: flex; min-height: 980px; background: var(--secondary-bg); position: relative; }
.hero-visual { flex: 1.2; min-width: 0; background: linear-gradient(rgba(26, 28, 32, .7), rgba(26, 28, 32, .3)), url('/images/hero_section_image.png') center/cover no-repeat; clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
.hero-content { flex: 1; max-width: none; padding: 60px 40px 60px 0; display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.hero-badge { display: block; margin-bottom: 15px; color: var(--accent-color); text-transform: uppercase; font-size: .9rem; font-weight: 800; letter-spacing: 2px; }
.hero-content > h1 { max-width: 720px; margin: 0 0 20px; color: var(--dark-bg); font-size: clamp(2.5rem, 4.3vw, 3.5rem); line-height: 1.08; font-weight: 900; }
.hero-content > p { max-width: 620px; margin: 0 0 30px; color: var(--text-muted); font-size: 1.08rem; }
.calculator-wrapper { width: 100%; max-width: 720px; padding: 30px 35px; border-top: 5px solid var(--accent-color); border-radius: 8px; background: var(--primary-bg); box-shadow: var(--shadow-md); }
.calc-heading { margin: 0 0 4px; color: var(--dark-bg); font-size: 1.45rem; font-weight: 800; }
.calc-subheading { margin: 0 0 20px; color: var(--text-muted); font-size: .95rem; }
.home-order-form { display: grid; gap: 14px; }
.home-order-form .form-row { display: flex; gap: 14px; margin: 0; }
.form-control-wide { flex: 1; min-width: 0; }
.form-control-wide label { display: block; margin-bottom: 5px; color: var(--dark-bg); font-size: .86rem; font-weight: 750; }
.form-control-wide label span { color: var(--text-muted); font-weight: 500; }
.form-control-wide input,
.form-control-wide select,
.form-control-wide textarea { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c8cdd2; border-radius: 4px; outline: none; background: var(--secondary-bg); color: var(--text-dark); font: inherit; line-height: 1.35; transition: border-color .2s, box-shadow .2s; }
.form-control-wide textarea { min-height: 65px; resize: vertical; }
.form-control-wide input:focus,
.form-control-wide select:focus,
.form-control-wide textarea:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(184, 110, 36, .12); }
.postal-control { flex: 0 0 145px; }
.street-control { flex: 1 1 auto; }
.number-control { flex: 0 0 125px; }
.address-row .number-control label { white-space: nowrap; }
.distance-hint { padding: 10px 13px; border-left: 4px solid var(--accent-color); border-radius: 3px; background: #f4eadf; color: #6c431c; font-size: .86rem; }
.distance-hint.is-loading { animation: distance-pulse 1.1s ease-in-out infinite alternate; }
.distance-result { padding: 11px 14px; border-left: 4px solid var(--success-color); border-radius: 3px; background: var(--success-bg); color: #175e35; font-size: .9rem; font-weight: 700; }
.distance-error { margin: 0; padding: 10px 13px; border-left: 4px solid var(--danger-color); background: var(--danger-bg); color: #7d1d1d; font-size: .9rem; font-weight: 700; }
.price-summary { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 4px; background: var(--secondary-bg); }
.price-summary > div { display: flex; justify-content: space-between; gap: 15px; padding: 3px 0; }
.price-summary .price-total { margin-top: 6px; padding-top: 9px; border-top: 2px solid var(--dark-bg); color: var(--accent-hover); font-size: 1.1rem; }
.order-consent { display: flex; align-items: flex-start; gap: 9px; color: #4e5359; font-size: .78rem; line-height: 1.4; cursor: pointer; }
.order-consent input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent-color); }
.order-consent a { color: var(--accent-hover); font-weight: 700; }
.btn-submit { display: block; width: 100%; padding: 16px; border: none; border-radius: 4px; background: var(--accent-color); color: var(--text-light); text-align: center; text-decoration: none; text-transform: uppercase; font-size: 1rem; font-weight: 800; letter-spacing: 1px; cursor: pointer; transition: background var(--transition-base); }
.btn-submit:hover { background: var(--accent-hover); color: #fff; }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }
.map-attribution { margin: -4px 0 0; color: #8a8d90; text-align: center; font-size: .68rem; }

/* Sekcje dolne - geometria i kolory starej strony. */
.process-section { background: var(--secondary-bg); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.process-step { text-align: center; }
.step-number { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent-color); color: var(--text-light); font-size: 1.5rem; font-weight: 800; }
.process-step h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; }
.process-step p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.features-section { background: var(--dark-bg); color: var(--text-light); }
.features-section .section-title { color: var(--text-light); }
.features-section .section-subtitle { color: #9da5ad; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-card { padding: 40px 30px; border-bottom: 4px solid var(--accent-color); border-radius: 8px; background: var(--darker-bg); transition: transform var(--transition-base); }
.feature-card:hover { transform: translateY(-10px); }
.feature-card h3 { margin: 0 0 15px; text-transform: uppercase; font-size: 1.3rem; font-weight: 700; }
.feature-card p { margin: 0; color: #a0aab2; font-size: .95rem; }
.faq-section { background: var(--secondary-bg); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px; border: 0; background: var(--primary-bg); color: var(--dark-bg); text-align: left; font: inherit; font-weight: 700; cursor: pointer; transition: background var(--transition-base); }
.faq-question:hover { background: #e9ecef; }
.faq-icon { font-size: 1.2rem; font-weight: 800; transition: transform .3s; }
.faq-answer { max-height: 0; padding: 0 20px; overflow: hidden; background: var(--secondary-bg); color: var(--text-muted); transition: max-height .4s ease, padding .4s ease; }
.faq-item.active .faq-answer { max-height: 300px; padding: 20px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.contact-section { background: var(--dark-bg); color: var(--text-light); }
.contact-section .section-title { color: var(--text-light); }
.contact-section .section-subtitle { color: #9da5ad; }
.contact-wrapper { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; padding: 45px 50px; border-radius: 8px; background: var(--secondary-bg); color: var(--text-dark); text-align: center; }
.contact-form { display: grid; gap: 16px; text-align: left; }
.contact-form .form-row { display: flex; gap: 16px; }
.contact-success { padding: 12px 16px; border-left: 4px solid var(--success-color); background: var(--success-bg); color: #175e35; font-weight: 700; }
.form-expired { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--accent-color); background: #fff4e8; color: #713d11; font-weight: 700; line-height: 1.45; }
.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; padding-top: 8px; border-top: 1px solid var(--border-color); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-link { color: var(--dark-bg); text-decoration: none; font-size: 1.18rem; font-weight: 750; }
.contact-link:hover { color: var(--accent-color); }
.contact-order-link { margin-top: 8px; }

/* Podstrony zamówienia, potwierdzenia i panel. */
.page-hero { padding: 4rem 0; background: var(--dark-bg); color: #fff; }
.page-hero h1 { margin: .4rem 0; font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
.page-hero p { margin: 0; color: #c3c6c5; }
.eyebrow { color: #dda15d; text-transform: uppercase; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.section { padding-top: 5rem; padding-bottom: 5rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.checkout-form { display: grid; gap: 1.25rem; }
.checkout-form fieldset, .admin-login-card, .detail-card, .empty-state, .confirmation-card, .legal-copy { padding: 2rem; border: 1px solid var(--border-color); border-radius: 5px; background: #fff; }
.checkout-form legend { float: none; width: auto; margin-bottom: 1.2rem; font-size: 1.25rem; font-weight: 800; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.address { grid-template-columns: minmax(0, 1fr) 150px 150px; }
.form-grid.postal { grid-template-columns: 180px minmax(0, 1fr); }
.form-label { font-weight: 700; }
.form-control, .form-select { min-height: 46px; padding: .7rem .85rem; border-color: #bfc4c9; border-radius: 4px; }
.field-validation-error, .validation-summary, .form-error { color: var(--danger-color); font-size: .9rem; }
.validation-summary:empty { display: none; }
.order-summary { position: sticky; top: 110px; padding: 2rem; border-top: 6px solid var(--accent-color); background: var(--dark-bg); color: #fff; }
.order-summary h2 { font-weight: 800; }
.order-summary > div, .confirmation-details > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.order-summary > div span { color: #b9bdbc; }
.order-summary .summary-total { margin-top: .7rem; padding-top: 1rem; border-top: 1px solid #666; }
.order-summary > p { color: #aeb2b1; font-size: .83rem; }
.confirmation-wrap, .admin-login-wrap { max-width: 850px; }
.confirmation-card { text-align: center; box-shadow: var(--shadow-md); }
.success-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--success-color); color: #fff; font-size: 2rem; font-weight: 900; }
.confirmation-details { max-width: 600px; margin: 2rem auto; padding: 1rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: left; }
.legal-copy { max-width: 900px; margin-left: auto; margin-right: auto; }
.legal-copy h2 { margin-top: 2rem; font-weight: 800; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); background: #fff; }
.admin-section { padding-top: 2rem; }
.admin-table { margin: 0; }
.admin-table th { background: var(--dark-bg); color: #fff; white-space: nowrap; }
.admin-table td { padding: 1rem .85rem; }
.admin-table td small { display: block; margin-top: .2rem; color: var(--text-muted); white-space: nowrap; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.admin-stats article { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border: 1px solid var(--border-color); border-left: 5px solid var(--dark-bg); border-radius: 5px; background: #fff; box-shadow: var(--shadow-sm); }
.admin-stats article span { color: var(--text-muted); font-weight: 700; }
.admin-stats article strong { font-size: 2rem; line-height: 1; }
.admin-stats .stat-new { border-left-color: var(--accent-color); }
.admin-stats .stat-shipped { border-left-color: var(--success-color); }
.admin-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 220px auto auto; gap: .75rem; margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: 5px; background: #fff; }
.admin-list-heading { display: flex; justify-content: space-between; align-items: center; }
.admin-list-heading p { margin: 0 0 .65rem; color: var(--text-muted); }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.admin-pagination .page-link { min-width: 130px; padding: .7rem 1rem; border: 1px solid var(--border-color); border-radius: 4px; color: var(--dark-bg); text-align: center; text-decoration: none; }
.admin-pagination .page-link:hover { border-color: var(--accent-color); color: var(--accent-hover); }
.admin-pagination .page-link.disabled { opacity: .45; pointer-events: none; }
.status-badge { display: inline-block; padding: .35rem .55rem; border-radius: 2px; background: #e4e1da; font-size: .78rem; font-weight: 800; }
.status-1 { background: #f7e6d3; color: #7c4615; }
.status-4 { background: #d7f0e2; color: #165838; }
.admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 1.25rem; align-items: start; }
.detail-card h2 { font-size: 1.2rem; font-weight: 800; }
.detail-card dl { display: grid; grid-template-columns: 120px 1fr; gap: .7rem 1rem; }
.detail-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.action-card { position: sticky; top: 110px; }
.message-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.message-list { display: grid; gap: .85rem; }
.message-card { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.6fr) auto; gap: 1.25rem; align-items: center; padding: 1.15rem 1.25rem; border: 1px solid var(--border-color); border-left: 5px solid transparent; border-radius: 5px; background: #fff; color: var(--text-dark); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.message-card:hover { border-color: var(--accent-color); color: var(--text-dark); transform: translateY(-2px); }
.message-card.is-unread { border-left-color: var(--accent-color); background: #fffaf4; }
.message-card > div:first-child { display: grid; }
.message-card span, .message-card p { color: var(--text-muted); }
.message-card p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.message-meta { display: grid; justify-items: end; gap: .3rem; white-space: nowrap; font-size: .82rem; }
.message-new, .message-replied { padding: .2rem .45rem; border-radius: 3px; font-weight: 800; }
.message-new { background: #f7e6d3; color: #7c4615 !important; }
.message-replied { background: var(--success-bg); color: #165838 !important; }
.message-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 1.25rem; align-items: start; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.btn-amber { --bs-btn-color: #fff; --bs-btn-bg: var(--accent-color); --bs-btn-border-color: var(--accent-color); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover); font-weight: 750; }
.admin-page-head { padding: 2.4rem 0; border-bottom: 1px solid var(--border-color); background: #fff; }
.admin-page-head .container { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.admin-page-head h1 { margin: .25rem 0 .35rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.admin-page-head p { margin: 0; color: var(--text-muted); }
.admin-page-meta { min-width: 190px; padding: .8rem 1rem; border-left: 3px solid var(--accent-color); background: var(--primary-bg); color: var(--text-muted); font-size: .78rem; }
.admin-page-meta strong { color: var(--dark-bg); font-size: .9rem; }
.admin-success { margin-bottom: 1.25rem; padding: 1rem 1.2rem; border-left: 4px solid var(--success-color); border-radius: 4px; background: var(--success-bg); color: #175e35; font-weight: 750; }
.pricing-form { display: grid; gap: 1.25rem; }
.pricing-settings-panel { overflow: hidden; }
.pricing-settings-grid { display: grid; grid-template-columns: .85fr .95fr 1.4fr .9fr; padding: 0; }
.pricing-setting-section { min-width: 0; padding: 1.35rem; }
.pricing-setting-section + .pricing-setting-section { border-left: 1px solid #e1e4e7; }
.pricing-setting-section h3 { margin: 0 0 1.1rem; color: #24282c; font-size: 1.05rem; font-weight: 800; }
.pricing-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pricing-field { min-width: 0; }
.pricing-field .form-label { margin-bottom: .35rem; color: #3f454b; font-size: .8rem; font-weight: 750; }
.pricing-help { display: block; margin-top: .4rem; color: var(--text-muted); font-size: .72rem; line-height: 1.4; }
.pricing-formula-note { display: flex; gap: 1.25rem; align-items: baseline; padding: .85rem 1.35rem; border-top: 1px solid #e1e4e7; background: #f7f8f9; font-size: .8rem; }
.pricing-formula-note strong { flex: 0 0 auto; color: #30353a; }
.pricing-formula-note span { color: var(--text-muted); }
.input-with-unit { display: flex; align-items: stretch; }
.input-with-unit .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-with-unit > span { display: flex; align-items: center; padding: 0 .75rem; border: 1px solid #bfc4c9; border-left: 0; border-radius: 0 4px 4px 0; background: #f1f3f4; color: var(--text-muted); white-space: nowrap; font-size: .76rem; font-weight: 750; }
.rate-card { padding: 0; overflow: hidden; }
.rate-card-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.75rem 1rem; }
.rate-card h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.rate-card-head p { margin: 0; color: var(--text-muted); font-size: .85rem; }
.fuel-reminder { max-width: 310px; align-self: center; padding: .7rem .9rem; border-left: 3px solid var(--accent-color); background: #fff6ed; color: #794719; font-size: .8rem; font-weight: 700; }
.rate-table { margin: 0; }
.rate-table thead th { padding: .75rem 1.75rem; border: 0; background: #34383d; color: #fff; font-size: .75rem; font-weight: 750; letter-spacing: .02em; }
.rate-table tbody th, .rate-table tbody td { padding: .65rem 1.75rem; border-color: #eceff1; }
.rate-table tbody tr:nth-child(even) { background: #fafbfc; }
.rate-table tbody th { width: 28%; color: var(--dark-bg); }
.rate-table tbody th strong { display: block; font-size: .92rem; }
.rate-zone-number { display: block; margin-bottom: .1rem; color: #858b91; text-transform: uppercase; font-size: .62rem; letter-spacing: .06em; }
.input-with-unit.compact { max-width: 260px; }
.input-with-unit.compact .form-control { min-width: 90px; font-variant-numeric: tabular-nums; }
.pricing-save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid #333940; border-radius: 5px; background: var(--darker-bg); color: #fff; box-shadow: 0 -5px 20px rgba(0,0,0,.12); }
.pricing-save-bar div { display: grid; }
.pricing-save-bar span { color: #989fa7; font-size: .8rem; }
.pricing-save-bar.has-changes { border-color: var(--accent-color); }
.pricing-save-bar.has-changes strong { color: #ffd3a7; }

/* Panel administracyjny - zwarty, użytkowy interfejs. */
.admin-body { background: #f2f3f5; color: #24272b; font-size: .95rem; }
.admin-main { min-height: calc(100vh - 82px); }
.admin-body .btn { border-radius: 4px; font-weight: 700; box-shadow: none; }
.admin-body .btn:focus-visible,
.admin-body .form-control:focus,
.admin-body .form-select:focus { border-color: #6f7780; box-shadow: 0 0 0 3px rgba(26, 28, 32, .1); }
.admin-body .form-control,
.admin-body .form-select { border-color: #c9cdd2; background-color: #fff; }
.admin-body .detail-card,
.admin-panel { border: 1px solid #d9dde1; border-radius: 5px; background: #fff; box-shadow: none; }
.admin-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.order-title-line { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.order-date { color: var(--text-muted); font-size: .85rem; }
.order-detail-head h1 { letter-spacing: -.03em; }
.order-detail-page { padding-bottom: 3rem; }
.order-overview { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); margin-bottom: 1.25rem; border: 1px solid #d9dde1; border-radius: 5px; background: #fff; }
.order-overview > div { display: grid; align-content: center; min-height: 105px; padding: 1.2rem 1.35rem; border-right: 1px solid #e1e4e7; }
.order-overview > div:last-child { border-right: 0; }
.order-overview span,
.order-overview small { color: var(--text-muted); font-size: .78rem; }
.order-overview strong { margin: .15rem 0; color: #202327; font-size: 1.15rem; line-height: 1.25; }
.order-overview > div:first-child strong { font-size: 1.5rem; }
.admin-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.order-detail-main,
.order-detail-sidebar { display: grid; gap: 1.25rem; min-width: 0; }
.order-detail-sidebar { position: sticky; top: 102px; }
.admin-panel { min-width: 0; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; padding: 1rem 1.25rem; border-bottom: 1px solid #e1e4e7; background: #fbfbfc; }
.admin-panel-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.admin-panel-head p { margin: .2rem 0 0; color: var(--text-muted); font-size: .8rem; line-height: 1.4; }
.admin-panel-body { padding: 1.25rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.customer-delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.customer-delivery-grid > div { display: grid; align-content: start; padding: 1.35rem; }
.customer-delivery-grid > div + div { border-left: 1px solid #e1e4e7; }
.field-caption { display: block; margin-bottom: .35rem; color: #737980; text-transform: uppercase; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.field-main { margin-bottom: .45rem; color: #202327; font-size: 1rem; font-style: normal; line-height: 1.5; }
.customer-contact-line { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; color: #48515b; }
.customer-contact-line strong { min-width: 58px; color: #34393f; font-size: .82rem; }
.customer-delivery-grid a { width: fit-content; color: #48515b; text-decoration: none; }
.customer-delivery-grid a:hover { color: var(--accent-hover); text-decoration: underline; }
.delivery-note { margin: 0 1.25rem 1.25rem; padding: .9rem 1rem; border-left: 3px solid #9d6a35; background: #f7f3ee; }
.delivery-note p { margin: .25rem 0 0; white-space: pre-wrap; }
.order-map-panel .admin-panel-head { background: #fff; }
.order-map { display: block; width: 100%; height: 360px; border: 0; background: #e8ebed; }
.map-footer { padding: .65rem 1rem; border-top: 1px solid #e1e4e7; background: #fbfbfc; color: var(--text-muted); font-size: .72rem; }
.map-unavailable { display: grid; gap: .3rem; min-height: 220px; place-content: center; padding: 2rem; color: var(--text-muted); text-align: center; }
.map-unavailable strong { color: #33383d; }
.shipment-line { display: grid; padding-bottom: 1.1rem; }
.financial-table { border-top: 1px solid #e1e4e7; }
.financial-table > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #e8eaec; }
.financial-table > div span { color: var(--text-muted); }
.financial-table .financial-total { margin-top: .25rem; padding: 1rem; border: 0; background: #f0f1f2; }
.financial-table .financial-total span,
.financial-table .financial-total strong { color: #1f2327; font-size: 1.05rem; }
.order-technical-data { display: flex; flex-wrap: wrap; gap: .55rem 1.35rem; padding-top: 1rem; color: var(--text-muted); font-size: .78rem; }
.admin-action-form { display: grid; gap: .75rem; }
.order-actions-panel hr { margin: 1.25rem 0; color: #cfd3d6; }
.document-actions { display: grid; gap: .65rem; }
.document-actions form { margin: 0; }
.document-preview-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
.document-preview-links a { padding: .55rem .45rem; border: 1px solid #cfd3d6; border-radius: 4px; color: #34393f; text-align: center; text-decoration: none; font-size: .76rem; font-weight: 700; }
.document-preview-links a:hover { border-color: var(--accent-color); color: var(--accent-hover); }
.document-date { display: block; margin-top: .6rem; color: var(--text-muted); text-align: center; }
.order-meta-panel dl { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: .7rem; margin: 0; }
.order-meta-panel dt { color: var(--text-muted); font-weight: 500; }
.order-meta-panel dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.admin-table tbody tr:hover { background: #faf7f3; }
.admin-table-action { text-align: right; }
.admin-table-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; min-width: 285px; }
.admin-table-actions form { margin: 0; }
.admin-table-actions .btn { white-space: nowrap; }
.pricing-save-bar { border-radius: 4px; box-shadow: 0 -2px 12px rgba(0,0,0,.08); }

/* Stopka - jak w poprzedniej stronie. */
.main-footer { padding: 60px 0 30px; background: var(--darker-bg); color: #6c757d; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-logo { height: 50px; width: auto; margin-bottom: 20px; }
.footer-col h2 { margin: 0 0 20px; color: var(--text-light); text-transform: uppercase; font-size: 1.2rem; font-weight: 700; }
.footer-col ul { margin: 0; padding: 0; list-style: none; line-height: 2; }
.footer-col a { color: #7d858d; text-decoration: none; }
.footer-col a:hover { color: var(--accent-color); }
.footer-phone-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(184, 110, 36, .35); border-radius: 6px; background: rgba(184, 110, 36, .12); color: var(--text-light) !important; font-weight: 700; transition: background .3s, transform .3s; }
.footer-phone-link:hover { background: var(--accent-color); transform: translateY(-2px); }
.footer-bottom { padding-top: 30px; border-top: 1px solid #2a2e33; text-align: center; font-size: .85rem; }
.map-attribution { margin-top: .55rem; font-size: .75rem; }
.map-attribution a, .map-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#scrollTopBtn { position: fixed; right: 30px; bottom: 30px; z-index: 999; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--accent-color); color: #fff; box-shadow: var(--shadow-md); font-size: 1.5rem; opacity: 0; visibility: hidden; cursor: pointer; transition: all .3s ease; }
#scrollTopBtn.visible { opacity: 1; visibility: visible; }

@media (max-width: 1120px) {
    .hero-section { flex-direction: column; }
    .hero-visual { flex: none; min-height: 420px; clip-path: none; }
    .hero-content { padding: 50px 20px 70px; }
    .calculator-wrapper { max-width: none; }
}

@media (max-width: 992px) {
    .process-grid, .features-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .admin-detail-grid { grid-template-columns: 1fr 1fr; }
    .action-card { position: static; grid-column: 1 / -1; }
    .admin-header-inner { grid-template-columns: auto 1fr; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
    .admin-main-nav { grid-column: 1 / -1; grid-row: 2; order: 3; min-height: 46px; overflow-x: auto; }
    .admin-header-actions { justify-self: end; }
    .pricing-settings-grid { grid-template-columns: 1fr 1fr; }
    .pricing-setting-section:nth-child(n+3) { border-top: 1px solid #e1e4e7; }
    .pricing-setting-section:nth-child(odd) { border-left: 0; }
    .admin-order-layout { grid-template-columns: 1fr; }
    .order-detail-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .order-overview { grid-template-columns: 1fr 1fr; }
    .order-overview > div:nth-child(2) { border-right: 0; }
    .order-overview > div:nth-child(-n+2) { border-bottom: 1px solid #e1e4e7; }
}

@media (max-width: 768px) {
    .section-padding { padding: 75px 0; }
    .hamburger-btn { display: flex; }
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; gap: 20px; padding: 22px 0; background: var(--secondary-bg); box-shadow: 0 10px 15px rgba(0, 0, 0, .1); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path .4s ease; }
    .nav-menu.is-active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .hamburger-btn.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .hero-visual { min-height: 330px; }
    .hero-content > h1 { font-size: 2.5rem; }
    .calculator-wrapper { padding: 26px 22px; }
    .process-grid, .features-grid, .footer-grid { grid-template-columns: 1fr; }
    .home-order-form .form-row, .address-row { flex-direction: column; gap: 14px; }
    .postal-control, .number-control { flex-basis: auto; }
    .contact-wrapper { padding: 35px 24px; }
    .contact-form .form-row { flex-direction: column; }
    .form-grid.two, .form-grid.address, .form-grid.postal, .admin-detail-grid { grid-template-columns: 1fr; }
    .action-card { grid-column: auto; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-toolbar { grid-template-columns: 1fr; }
    .admin-list-heading { align-items: flex-start; flex-direction: column; }
    .message-stats { grid-template-columns: 1fr; }
    .message-card { grid-template-columns: 1fr; gap: .65rem; }
    .message-meta { grid-auto-flow: column; justify-content: space-between; justify-items: start; }
    .message-detail-grid { grid-template-columns: 1fr; }
    .admin-brand span { display: none; }
    .admin-header-actions .admin-site-link { display: none; }
    .admin-main-nav a { padding: 0 .8rem; }
    .admin-page-head .container, .rate-card-head, .pricing-save-bar { align-items: stretch; flex-direction: column; }
    .admin-page-meta { min-width: 0; }
    .pricing-settings-grid, .pricing-fields-grid { grid-template-columns: 1fr; }
    .pricing-setting-section + .pricing-setting-section { border-top: 1px solid #e1e4e7; border-left: 0; }
    .pricing-setting-section:last-child { grid-column: auto; }
    .pricing-formula-note { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .rate-table thead th, .rate-table tbody th, .rate-table tbody td { padding-left: .8rem; padding-right: .8rem; }
    .rate-table { min-width: 620px; }
    .pricing-save-bar .btn { width: 100%; }
    .admin-head-actions { width: 100%; justify-content: flex-start; }
    .admin-head-actions .btn { flex: 1 1 180px; }
    .order-detail-sidebar { grid-template-columns: 1fr; }
    .admin-panel-head { align-items: flex-start; flex-direction: column; }
    .customer-delivery-grid { grid-template-columns: 1fr; }
    .customer-delivery-grid > div + div { border-top: 1px solid #e1e4e7; border-left: 0; }
    .contact-actions { width: 100%; }
    .contact-actions .btn { flex: 1 1 150px; }
    .order-map { height: 300px; }
    .admin-table-wrap { overflow: visible; border: 0; background: transparent; }
    .admin-table thead { display: none; }
    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td { display: block; width: 100%; }
    .admin-table tbody { display: grid; gap: .8rem; }
    .admin-table tbody tr { padding: .35rem 1rem .9rem; border: 1px solid #d9dde1; border-radius: 5px; background: #fff; }
    .admin-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: .8rem; padding: .65rem 0; border-color: #eceef0; text-align: left; }
    .admin-table td::before { content: attr(data-label); color: var(--text-muted); font-size: .72rem; font-weight: 700; }
    .admin-table td small { white-space: normal; overflow-wrap: anywhere; }
    .admin-table td.admin-table-action { display: block; padding-top: .85rem; border: 0; }
    .admin-table td.admin-table-action::before { display: none; }
    .admin-table-actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
    .admin-table-actions > a:first-child { grid-column: 1 / -1; }
    .admin-table-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .admin-header-inner { gap: .6rem; }
    .admin-header-actions button { padding-left: .65rem; padding-right: .65rem; }
    .admin-main-nav { gap: 0; margin-left: -14px; margin-right: -14px; padding: 0 14px; }
    .admin-main-nav a { flex: 0 0 auto; min-height: 44px; }
    .admin-page-head { padding: 1.6rem 0; }
    .admin-page-head h1 { font-size: 1.8rem; overflow-wrap: anywhere; }
    .order-overview { grid-template-columns: 1fr; }
    .order-overview > div { min-height: 88px; border-right: 0; border-bottom: 1px solid #e1e4e7; }
    .order-overview > div:last-child { border-bottom: 0; }
    .admin-panel-head, .admin-panel-body { padding-left: 1rem; padding-right: 1rem; }
    .financial-table > div { align-items: flex-end; flex-direction: column; gap: .2rem; }
    .financial-table .financial-total { align-items: flex-start; }
    .order-meta-panel dl { grid-template-columns: 1fr; gap: .1rem; }
    .order-meta-panel dd { margin-bottom: .65rem; }
    .order-map { height: 250px; }
    .admin-pagination { justify-content: stretch; gap: .5rem; }
    .admin-pagination .page-link { flex: 1; min-width: 0; padding: .65rem .4rem; }
    .rate-table { min-width: 0; }
    .rate-table thead { display: none; }
    .rate-table,
    .rate-table tbody,
    .rate-table tr,
    .rate-table th,
    .rate-table td { display: block; width: 100%; }
    .rate-table tbody { display: grid; gap: .75rem; padding: .8rem; }
    .rate-table tbody tr { padding: .85rem; border: 1px solid #dfe2e5; border-radius: 4px; background: #fff !important; }
    .rate-table tbody th { padding: 0 0 .65rem; border: 0; font-size: .9rem; }
    .rate-table tbody td { padding: .55rem 0 0; border: 0; }
    .rate-table tbody td::before { content: attr(data-label); display: block; margin-bottom: .25rem; color: var(--text-muted); font-size: .7rem; font-weight: 700; }
    .input-with-unit.compact { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

@keyframes distance-pulse {
    from { opacity: .65; }
    to { opacity: 1; }
}
