/*
 * Styl główny dla layoutu publicznego / po zalogowaniu (nie admin).
 * Zmienne, glass, przyciski, pola – spójne z resztą aplikacji.
 */

:root {
  --bg-color: #0c0d10;
  --surface-color: #1a1c23;
  --accent-primary: #006c49;
  --accent-secondary: #4edea3;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(26, 28, 35, 0.8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --canvas-bg-1: #1a1c23;
  --canvas-bg-2: #0c0d10;
  --map-base-bg: #0f172a;
  --map-tile-opacity: 0.2;
}

.light-theme {
  --bg-color: #f1f5f9;
  --surface-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --canvas-bg-1: #e2e8f0;
  --canvas-bg-2: #f1f5f9;
  --map-base-bg: #f8fafc;
  --map-tile-opacity: 0.5;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#root {
  height: 100%;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #006c49;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.button:hover {
  background: #005238;
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.input {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 108, 73, 0.2);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.active-tool {
  background: rgba(0, 108, 73, 0.2) !important;
  border-color: var(--accent-primary) !important;
  color: white !important;
}

/* --- Layout główny: menu i zawartość --- */

.main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-primary);
}

.site-footer {
  margin-top: auto;
  padding: 24px 20px 28px;
}

.site-footer__content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-footer__text {
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer__link {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__link:hover {
  color: #006c49;
}

.site-footer__button {
  appearance: none;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.site-footer__button:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(0, 108, 73, 0.35);
  color: #006c49;
}

.main-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  transition: var(--transition);
}

.main-header__container {
  width: 100%;
  max-width: 1240px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.main-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.main-header__logo:hover {
  background: rgba(15, 23, 42, 0.05);
}

.main-header__logo img {
  height: 30px;
  width: auto;
}

.main-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.main-header__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1;
}

.main-header__nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 14px;
  width: calc(100% - 28px);
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.main-header__nav a:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.06);
}

.main-header__nav a:hover::after {
  background: rgba(0, 108, 73, 0.45);
}

.main-header__nav a.active {
  color: #006c49;
  background: rgba(0, 108, 73, 0.12);
}

.main-header__nav a.active::after {
  background: #006c49;
}

.main-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.main-header__actions .button.button-outline {
  min-height: 40px;
  border-radius: 10px;
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.main-header__actions .button.button-outline:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(0, 108, 73, 0.25);
}

.main-header__action-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  line-height: 1;
  transition: var(--transition);
}

.main-header__action-link:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.06);
}

.main-header__action-link--cta {
  background: #006c49;
  color: white;
  border: 1px solid #006c49;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.main-header__action-link--cta:hover {
  background: #005238;
}

.main-header__action-link--highlight {
  border-color: rgba(0, 108, 73, 0.3);
  color: #006c49;
  background: rgba(0, 108, 73, 0.08);
}

.main-header__action-link--highlight.active {
  border-color: #006c49;
  background: rgba(0, 108, 73, 0.14);
}

.main-header__actions-sep {
  color: rgba(71, 85, 105, 0.45);
  user-select: none;
}

.main-header__profile {
  position: relative;
}

.main-header__profile-trigger {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  transition: var(--transition);
}

.main-header__profile-trigger::after {
  content: "▾";
  font-size: 11px;
  line-height: 1;
}

.main-header__profile-trigger:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.06);
}

.main-header__profile[open] .main-header__profile-trigger {
  color: #006c49;
  border-color: rgba(0, 108, 73, 0.3);
  background: rgba(0, 108, 73, 0.08);
}

.main-header__profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  min-width: 180px;
  padding: 8px;
  z-index: 1001;
}

.main-header__profile-form {
  margin: 0;
}

.main-header__profile-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.main-header__profile-item:hover {
  background: rgba(0, 108, 73, 0.1);
  color: #006c49;
}

/* Hamburger button – hidden on desktop */
.main-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
  transition: var(--transition);
}

.main-header__hamburger:hover {
  background: rgba(15, 23, 42, 0.06);
}

.main-header__hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* X animation when open */
.mobile-nav-open .main-header__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-open .main-header__hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-nav-open .main-header__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-content {
  flex: 1;
  padding-top: 98px;
}

.main-content .glass-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Strona Demo – iframe z aplikacją React */
.demo-iframe-wrapper {
  flex: 1;
  min-height: 0;
  margin: -24px;
  padding: 24px;
  padding-top: 0;
}

.demo-iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 80px);
  border: none;
  border-radius: var(--border-radius);
  background: var(--surface-color);
}

/* Formularze auth (logowanie / rejestracja) – wyśrodkowana karta */
.auth-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px !important;
}

.auth-card__lead {
  margin-bottom: 24px;
}

.auth-form__errors {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  color: #f87171;
  font-size: 0.875rem;
}

.auth-form__errors ul {
  margin: 0;
  padding-left: 20px;
}

.auth-form__errors li + li {
  margin-top: 4px;
}

.auth-form__field {
  margin-bottom: 18px;
}

.auth-form__field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-form__checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form__field--checkbox-error .auth-form__checkbox {
  outline: 2px solid rgba(248, 113, 113, 0.45);
  outline-offset: 2px;
}

.auth-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-form__label--inline {
  display: inline;
  margin-bottom: 0;
  cursor: pointer;
}

.auth-form__label--error {
  color: #dc2626;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form__terms-link {
  color: inherit;
}

.auth-form__terms-link--error {
  color: #dc2626;
}

.auth-form__error-note {
  font-size: 0.75rem;
  color: #dc2626;
  line-height: 1.3;
}

.auth-form__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-form__input {
  width: 100%;
  display: block;
  font-size: 1rem;
}

.auth-form__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.auth-form__actions {
  margin-top: 24px;
  margin-bottom: 20px;
}

.auth-form__submit {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 1rem;
}

.auth-card__links {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-card__link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

.auth-card__link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.auth-card__link-form {
  display: inline;
  margin: 0;
}

button.auth-card__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.auth-card__separator {
  margin: 0 8px;
  color: var(--border-color);
}

/* Logowanie/rejestracja przez dostawców OAuth (Google, Facebook). */
.auth-oauth {
  margin-top: 8px;
  margin-bottom: 16px;
}

.auth-oauth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 4px 0 16px;
}

.auth-oauth__divider::before,
.auth-oauth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-oauth__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-oauth__form {
  margin: 0;
}

.auth-oauth__button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.auth-oauth__button:hover {
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.auth-oauth__button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.auth-oauth__button--facebook {
  background: #1877F2;
  border-color: #1877F2;
  color: #ffffff;
}

.auth-oauth__button--facebook:hover {
  background: #166FE5;
  border-color: #166FE5;
}

.auth-oauth__button--facebook .auth-oauth__icon path {
  fill: #ffffff;
}

.auth-oauth__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Komunikat notice/alert – auto-ukrywanie po 3 s */
.flash-stack {
  position: fixed;
  top: 76px;
  right: max(16px, calc((100vw - min(1240px, calc(100vw - 40px))) / 2));
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 40px));
  pointer-events: none;
}

.flash-message {
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.flash-message.flash--dismissed {
  opacity: 0;
  pointer-events: none;
}

.flash-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}

.flash-toast__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.flash-toast__text {
  font-size: 14px;
  line-height: 1.45;
  color: #0f172a;
}

.flash-message--notice {
  border-color: #9fdcc3;
  background: #f2fbf7;
}

.flash-message--notice .flash-toast__icon {
  background: #dcfce7;
  color: #166534;
}

.flash-message--alert {
  border-color: #fecaca;
  background: #fef2f2;
}

.flash-message--alert .flash-toast__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.flash-message--neutral {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.flash-message--neutral .flash-toast__icon {
  background: #e2e8f0;
  color: #334155;
}

/* Modal – dodawanie działki */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open,
.modal[aria-hidden="false"] {
  display: flex;
}
.modal[aria-hidden="true"] {
  display: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}
.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal__field[hidden] {
  display: none !important;
}
.modal__field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.modal__field--switch {
  align-items: center;
}
.modal__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.modal__label--inline {
  display: inline;
  margin-bottom: 0;
  cursor: pointer;
}
.modal__input {
  width: 100%;
}
.modal__checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}
.modal__switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.modal__switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.modal__switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.35);
  transition: transform 0.2s ease;
}
.modal__switch-input:checked + .modal__switch {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.modal__switch-input:checked + .modal__switch .modal__switch-knob {
  transform: translateX(20px);
}
.modal__switch-input:focus-visible + .modal__switch {
  box-shadow: 0 0 0 3px rgba(0, 108, 73, 0.24);
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.modal__hint {
  margin-top: -4px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.delete-confirm-btn {
  background: #dc2626;
  color: white;
  font-weight: 600;
}

.delete-confirm-btn:hover {
  background: #b91c1c;
}

/* Sketches list modal (stable classes; no utility dependency) */
.sketches-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sketches-modal-panel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

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

.sketches-modal-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.sketches-modal-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
}

.sketches-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.sketches-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
}

.sketches-modal-list {
  margin-bottom: 20px;
  max-height: 288px;
  overflow: auto;
  padding-right: 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sketches-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.sketches-modal-item-main {
  min-width: 0;
}

.sketches-modal-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.sketches-modal-item-date {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.sketches-modal-item-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #006c49;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.sketches-modal-item-link:hover {
  background: #005238;
}

.sketches-modal-empty {
  margin-bottom: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 20px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.sketches-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.sketches-modal-btn {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sketches-modal-btn:hover {
  background: #f8fafc;
}

/* React app content - fill viewport under fixed top header */
.react-app-content {
  margin-top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.react-app-content > #react-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Demo – mobile placeholder ── */
.demo-mobile-placeholder {
  display: none; /* ukryty na desktopie */
}

.demo-desktop-only {
  display: flex; /* widoczny na desktopie */
}

@media (max-width: 900px) {
  /* Pokaż placeholder, ukryj aplikację */
  .demo-mobile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 20px;
    background: var(--bg-color, #f8fafc);
  }

  .demo-desktop-only {
    display: none !important;
  }

  .demo-mobile-placeholder__card {
    max-width: 420px;
    width: 100%;
    background: var(--glass-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .demo-mobile-placeholder__icon {
    color: #006c49;
    background: rgba(0, 108, 73, 0.1);
    border-radius: 50%;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .demo-mobile-placeholder__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0;
    line-height: 1.25;
  }

  .demo-mobile-placeholder__lead {
    font-size: 1rem;
    color: var(--text-secondary, #475569);
    margin: 0;
    line-height: 1.6;
  }

  .demo-mobile-placeholder__hint {
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    background: rgba(0, 108, 73, 0.06);
    border: 1px solid rgba(0, 108, 73, 0.18);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0;
    line-height: 1.55;
  }

  .demo-mobile-placeholder__btn {
    margin-top: 8px;
    text-decoration: none;
  }
}

/* Grupa przycisków akcji działki */
.parcel-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Dropdown szkiców */
.sketch-dropdown {
  position: relative;
  display: inline-block;
}
.sketch-dropdown summary {
  cursor: pointer;
  list-style: none;
  font-weight: inherit;
}
.sketch-dropdown summary::-webkit-details-marker {
  display: none;
}
.sketch-dropdown__list {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 180px;
  background: var(--glass-bg, rgba(255,255,255,0.95));
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  padding: 4px 0;
  z-index: 20;
}
.sketch-dropdown__item {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.sketch-dropdown__item:hover {
  background: var(--hover-bg, rgba(0,0,0,0.05));
}

/* Karta cennika – wyśrodkowana */
.pricing-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
  padding: 24px;
}

.pricing-card {
  width: 100%;
  max-width: 380px;
  padding: 32px !important;
}

.pricing-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pricing-card__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.pricing-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.pricing-card__price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-card__cta {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
}

/* Lista działek (Moje działki) */
.parcels-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parcels-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
}

.parcels-list__name {
  font-weight: 500;
}

.parcels-list__number {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.parcels-list__actions {
  margin-top: 24px;
}

/* Tabela działek */
.parcels-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.parcels-table__th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}
.parcels-table__th--actions {
  text-align: right;
}
.parcels-table__row {
  border-bottom: 1px solid var(--border-color);
}
.parcels-table__row:last-child {
  border-bottom: none;
}
.parcels-table__cell {
  padding: 14px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}
.parcels-table__cell--actions {
  text-align: right;
}
.button--sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* ========== Responsywność (mobile / tablet) ========== */

@media (max-width: 767px) {
  .main-header {
    top: 8px;
    padding: 0 12px;
  }

  .main-header__container {
    min-height: 0;
    padding: 10px;
    gap: 8px;
    flex-wrap: nowrap;
    position: relative;
  }

  .main-header__logo {
    order: 1;
    padding: 6px;
  }

  .main-header__logo img {
    height: 26px;
  }

  /* Show hamburger on mobile */
  .main-header__hamburger {
    display: flex;
    order: 3;
    margin-left: 0;
  }

  /* Hide actions text on mobile – keep only if needed */
  .main-header__actions {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }

  .main-header__actions-sep {
    display: none;
  }

  /* Nav hidden by default on mobile */
  .main-header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    z-index: 1100;
  }

  /* Nav visible when .mobile-nav-open is set on header */
  .mobile-nav-open .main-header__nav {
    display: flex;
  }

  .main-header__nav a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
  }

  .main-content {
    padding: 84px 16px 16px;
  }

  .react-app-content {
    margin-top: 0;
    height: 100vh;
  }

  .main-content .glass-panel {
    padding: 16px;
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .auth-card-wrapper,
  .pricing-card-wrapper {
    padding: 16px;
  }

  .auth-card,
  .pricing-card {
    padding: 24px 20px !important;
  }

  .demo-iframe-wrapper {
    margin: -16px;
    padding: 16px;
    padding-top: 0;
  }

  .demo-iframe {
    min-height: calc(100vh - 120px);
  }

  .button {
    min-height: 44px;
    padding: 12px 16px;
  }

}

@media (max-width: 480px) {
  .main-header {
    top: 6px;
    padding: 0 8px;
  }

  .main-header__actions-sep {
    display: none;
  }

  .main-content {
    padding: 78px 12px 12px;
  }

  .react-app-content {
    margin-top: 0;
    height: 100vh;
  }

  .main-content .glass-panel {
    padding: 14px;
  }

  .auth-card__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .pricing-card__price {
    font-size: 1.375rem;
  }
}

/* Home page hero and components adapted from Stitch design tokens */
.home-hero {
  padding: 40px 24px;
}
.home-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--secondary-container, rgba(108, 248, 187, 0.15));
  color: var(--on-secondary-container, #00714d);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(0, 108, 73, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
}
.hero-title {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--primary, #000);
  font-weight: 700;
}
.hero-lead {
  color: var(--on-surface-variant, #45464d);
  max-width: 640px;
  margin-bottom: 20px;
  font-size: 1.0625rem;
}
.hero-ctas { display:flex; gap:12px; flex-wrap:wrap; }
.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 20px 40px rgba(2,6,23,0.08);
  aspect-ratio: 16 / 9;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.benefits-section { padding: 48px 24px; background: var(--surface-container, #eceef0); }
.benefits-inner { max-width:1200px; margin:0 auto; padding:0 12px; }
.benefits-grid { display:grid; gap:16px; grid-template-columns: 1fr; }
.benefit-card { background:#fff; padding:24px; border-radius:16px; border:1px solid var(--outline-variant, #c6c6cd); box-shadow: var(--shadow-sm); }
.benefit-card { box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.benefit-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(15, 23, 42, 0.13), 0 6px 14px rgba(15, 23, 42, 0.08); }
.benefit-card .icon { width:48px; height:48px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; margin-bottom:12px; }

.cta-banner { padding:48px 24px; }
.cta-panel { background:var(--primary-container, #131b2e); color: #fff; border-radius:32px; padding:36px; position:relative; overflow:hidden; box-shadow: 0 22px 44px rgba(2, 8, 23, 0.3), 0 8px 18px rgba(2, 8, 23, 0.18); }
.cta-panel .cta-actions { margin-top:20px; display:flex; gap:12px; }

@media(min-width: 992px) {
  .home-hero .hero-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Parcels Page Layout ===== */
.site-page-shell {
  min-height: calc(100vh - 118px);
  display: flex;
  flex-direction: column;
}

.site-page-shell > .parcels-footer {
  margin-top: auto;
  width: min(1240px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.parcels-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 118px);
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  padding: 0 0 24px;
}

.parcels-sidebar {
  grid-row: 1;
  position: sticky;
  top: 104px;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow-y: auto;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.parcels-sidebar-user {
  margin-bottom: 32px;
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.parcels-sidebar-user-name {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.parcels-sidebar-user-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.parcels-sidebar-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parcels-sidebar-nav a,
.parcels-sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.parcels-sidebar-nav a:hover,
.parcels-sidebar-nav-link:hover {
  background: #f1f5f9;
}

.parcels-sidebar-nav a.active,
.parcels-sidebar-nav-link.active {
  background: #d1fae5;
  color: #006c49;
  font-weight: 500;
}

.parcels-sidebar-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.parcels-main {
  grid-row: 1;
  margin-left: 0;
  padding-bottom: 0;
  overflow: visible;
  background: transparent;
  min-width: 0;
}

.parcels-content {
  width: 100%;
  padding: 8px 0 0;
}

.parcels-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.parcels-content > p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}

.parcels-page-header {
  margin-bottom: 28px;
  padding: 8px 0 4px;
}

.parcels-content .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.parcels-content .page-lead {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.parcels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.parcel-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09), 0 3px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.parcel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12), 0 5px 14px rgba(15, 23, 42, 0.08);
}

.parcel-card-header {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.parcel-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  flex-grow: 1;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
}

.parcel-rename-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.parcel-rename-btn:hover {
  color: #047857;
  background: #f0fdf4;
}

.parcel-rename-btn .material-symbols-outlined {
  font-size: 16px;
}

.parcel-card-town {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.parcel-card-location {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.4;
}

.parcel-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 8px;
}

.parcel-card-badge.ready {
  background: #d1fae5;
  color: #047857;
}

.parcel-card-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.parcel-card-stats {
  padding: 16px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
  flex: 1 1 auto;
  align-content: flex-start;
}

.parcel-stat {
  flex: 1;
}

.parcel-stat-label {
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-size: 11px;
}

.parcel-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.parcel-card-map {
  padding: 0;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.parcel-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.parcel-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cbd5e1;
  color: #64748b;
  font-size: 12px;
}

.parcel-card-actions {
  padding: 12px;
  display: flex;
  gap: 8px;
}

.parcel-card-mobile-sketches {
  display: none;
}

.parcel-card-mobile-sketches__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 10px;
}

.parcel-card-mobile-sketches__notice {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.parcel-card-mobile-sketches__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parcel-card-mobile-sketches__item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
}

.parcel-card-mobile-sketches__meta {
  min-width: 0;
}

.parcel-card-mobile-sketches__name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.parcel-card-mobile-sketches__date {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.parcel-card-mobile-sketches__empty {
  font-size: 13px;
  color: #64748b;
  padding: 10px 0 2px;
}

/* Ensure form wrapper from `form_with` grows to fill available space so inner button becomes full-width */
.parcel-card-actions > form,
.parcel-card-actions > .parcel-action-form {
  flex: 1;
  display: flex;
}

.parcel-card-actions > form .parcel-action-btn,
.parcel-card-actions > .parcel-action-form .parcel-action-btn {
  flex: 1;
}

.parcel-action-btn {
  flex-grow: 1;
  height: 40px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.parcel-action-btn--new-sketch {
  flex: 1 1 auto;
}

.parcel-action-btn--icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
}

.parcel-action-icon {
  font-size: 18px;
}

.parcel-action-btn.primary {
  background: #047857;
  color: white;
}

.parcel-action-btn.primary:hover {
  background: #059669;
}

.parcel-action-btn.secondary {
  background: #3b82f6;
  color: white;
}

.parcel-action-btn.secondary:hover {
  background: #2563eb;
}

.parcel-action-btn.danger {
  padding: 8px;
  background: transparent;
  border: 1px solid #fecaca;
  color: #dc2626;
  flex-grow: 0;
  width: 40px;
}

.parcel-action-btn.danger:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

.parcel-add-card {
  background: #eff6ff;
  border: 2px dashed #93c5fd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 160px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  width: 100%;
  font-family: inherit;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
}

.parcel-add-card:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.18), 0 6px 14px rgba(15, 23, 42, 0.08);
}

.parcel-add-icon {
  font-size: 32px;
  color: #3b82f6;
  margin-bottom: 12px;
}

.parcel-add-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.parcel-add-desc {
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.parcels-footer {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 12px;
  color: #64748b;
  z-index: auto;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08), 0 3px 8px rgba(15, 23, 42, 0.05);
}

.parcels-footer-inner {
  margin-left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parcels-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.parcels-footer-right {
  display: flex;
  gap: 24px;
}

.parcels-footer-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.parcels-footer-button:hover {
  color: #0f172a;
}

.parcels-footer a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.parcels-footer a:hover {
  color: #0f172a;
}

/* Tab System */
.parcels-tab-panel {
  display: none;
}

.parcels-tab-panel.active {
  display: block;
}

/* Finance Section */
.finance-section {
  width: 100%;
}

.finance-header {
  margin-bottom: 32px;
}

.finance-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.finance-subheader {
  color: #475569;
  font-size: 14px;
}

.finance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finance-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.finance-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.finance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e2e8f0;
}

.finance-card-info {
  flex: 1;
}

.finance-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.finance-card-date {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.finance-card-amount {
  text-align: right;
}

.finance-amount {
  font-size: 20px;
  font-weight: 700;
  color: #006c49;
}

.finance-card-body {
  padding: 16px;
}

.finance-card-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.finance-meta-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.finance-meta-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.finance-meta-value {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}

.finance-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finance-badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.finance-badge--success {
  background: #d1fae5;
  color: #005236;
}

.finance-badge--completed {
  background: #d1fae5;
  color: #005236;
}

.finance-badge--failed {
  background: #fee2e2;
  color: #7f1d1d;
}

.finance-card-footer {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.finance-link {
  color: #006c49;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.finance-link:hover {
  color: #005238;
  text-decoration: underline;
}

.finance-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.finance-empty-icon {
  font-size: 64px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.finance-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.finance-empty p {
  color: #475569;
  margin: 0 0 24px 0;
  font-size: 14px;
}

.empty-state {
  width: 100%;
  padding: 60px 24px;
  text-align: center;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
  color: #3b82f6;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.empty-state-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #047857;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.empty-state-btn:hover {
  background: #059669;
}

/* =============================================
   STRONA KONTAKTU (.contact-*)
   ============================================= */

.contact-container {
  max-width: 920px;
  margin: 0 auto 64px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1), 0 5px 14px rgba(15, 23, 42, 0.06);
}

.contact-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.contact-lead {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 11px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #3980f4;
  box-shadow: 0 0 0 4px rgba(57, 128, 244, 0.16);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-details-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}


@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    padding: 24px 20px;
  }
}

.contact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

/* =============================================
   STRONA REGULAMINU (.regulamin-*)
   ============================================= */

.regulamin-container {
  max-width: 1000px;
  margin: 0 auto 64px;
}

.regulamin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1), 0 5px 14px rgba(15, 23, 42, 0.06);
}

.regulamin-content {
  color: #334155;
  line-height: 1.75;
  font-size: 0.98rem;
}

.regulamin-content h1,
.regulamin-content h2,
.regulamin-content h3,
.regulamin-content h4 {
  color: #0f172a;
  line-height: 1.3;
  margin-top: 1.35em;
  margin-bottom: 0.55em;
}

.regulamin-content h1[id],
.regulamin-content h2[id],
.regulamin-content h3[id],
.regulamin-content h4[id] {
  scroll-margin-top: 120px;
}

.regulamin-content h1 { font-size: 1.9rem; }
.regulamin-content h2 { font-size: 1.45rem; }
.regulamin-content h3 { font-size: 1.15rem; }
.regulamin-content h4 { font-size: 1.02rem; }

.regulamin-content p {
  margin: 0 0 0.9em;
}

.regulamin-content ul,
.regulamin-content ol {
  margin: 0.4em 0 1em 1.25em;
}

.regulamin-content li {
  margin-bottom: 0.35em;
}

.regulamin-content hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.4em 0;
}

.regulamin-content a {
  color: #2563eb;
  text-decoration: underline;
}

.regulamin-content a:hover {
  color: #1d4ed8;
}

/* =============================================
   STRONA POMOCY / FAQ (.help-*)
   ============================================= */

.help-container {
  max-width: 1000px;
  margin: 0 auto 64px;
  display: grid;
  gap: 14px;
}

.help-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.help-tile__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.help-tile__summary::-webkit-details-marker {
  display: none;
}

.help-tile__title {
  color: #0f172a;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
}

.help-tile__chevron {
  color: #475569;
  transition: transform 0.2s ease;
}

.help-tile[open] .help-tile__chevron {
  transform: rotate(180deg);
}

.help-tile__content {
  border-top: 1px solid #e2e8f0;
  padding: 18px 22px 22px;
  color: #334155;
  line-height: 1.75;
  font-size: 0.98rem;
}

.help-tile__content h3 {
  margin: 1em 0 0.45em;
  color: #0f172a;
  font-size: 1.03rem;
  line-height: 1.35;
}

.help-tile__content p {
  margin: 0 0 0.8em;
}

.help-tile__content ol,
.help-tile__content ul {
  margin: 0.45em 0 1em 1.25em;
}

.help-tile__content li {
  margin-bottom: 0.35em;
}

.help-tile__content a {
  color: #2563eb;
  text-decoration: underline;
}

.help-tile__content a:hover {
  color: #1d4ed8;
}

@media (max-width: 1024px) {
  .site-page-shell {
    min-height: calc(100vh - 164px);
  }

  .site-page-shell > .parcels-footer {
    width: calc(100% - 24px);
    margin-bottom: 16px;
  }

  .parcels-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-auto-flow: row;
    width: calc(100% - 24px);
    gap: 12px;
    min-height: auto;
  }

  .parcels-sidebar {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    top: 0;
    max-height: none;
    width: 100%;
    padding: 10px;
  }

  .parcels-sidebar-user {
    display: none;
  }

  .parcels-sidebar-nav {
    flex-direction: row;
    gap: 8px;
  }

  .parcels-sidebar-nav-link {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
  }

  .parcels-sidebar-nav-link span {
    display: none;
  }

  .parcels-main {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    width: 100%;
  }

  .parcels-footer {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .parcels-footer-inner {
    margin-left: 0;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .parcel-card {
    width: 100%;
  }

  .parcel-card-actions {
    display: none;
  }

  .parcel-card-mobile-sketches {
    display: block;
    padding: 0 16px 14px;
  }

  .finance-card-meta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
  }

  .finance-meta-item {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .finance-meta-value {
    word-break: break-word;
  }

  .contact-card {
    padding: 24px;
  }

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

  .regulamin-card {
    padding: 22px;
  }

  .help-tile__summary {
    padding: 16px 18px;
  }

  .help-tile__content {
    padding: 16px 18px 20px;
  }

  .regulamin-content h1 { font-size: 1.55rem; }
  .regulamin-content h2 { font-size: 1.28rem; }
}

@media (max-width: 640px) {
  .site-page-shell > .parcels-footer {
    width: calc(100% - 16px);
    margin-bottom: 12px;
  }

  .parcels-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
  }

  .parcels-main {
    margin-left: 0;
    padding-top: 0;
  }

  .parcels-footer-inner {
    margin-left: 0;
  }

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

  .parcel-card-mobile-sketches__item {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =============================================
   STRONA FUNKCJONALNOŚCI (.feat-*)
   ============================================= */

.feat-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 0;
}

/* --- Hero --- */
.feat-hero {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.feat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006c49;
  margin-bottom: 16px;
}

.feat-badge--active {
  background: #6ffbbe;
  color: #002113;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
}

.feat-badge--white {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  margin-bottom: 12px;
}

.feat-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 20px;
}

.feat-hero__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  max-width: 580px;
  margin: 0 auto;
}

/* --- Bento Grid --- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

/* --- Cards --- */
.feat-card {
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  grid-column: span 4;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feat-card--light {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.feat-card--dark {
  background: #131b2e;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.28), 0 4px 12px rgba(2, 8, 23, 0.2);
  grid-column: span 4;
}

.feat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.08);
}

.feat-card--wide {
  grid-column: span 8;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}

.feat-card--span-8 {
  grid-column: span 8;
}

.feat-card--empty-slot {
  padding: 0;
}

.feat-card__media--empty {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 280px;
  background:
    linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.feat-card__media--empty .feat-placeholder-num {
  color: #c3cedb;
}

.feat-card--wide .feat-card__text {
  flex: 1;
  min-width: 0;
}

.feat-card--reverse {
  flex-direction: row-reverse;
}

.feat-card--full {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: 64px;
  background: rgba(0, 108, 73, 0.06);
  border: 1px solid rgba(0, 108, 73, 0.15);
  border-radius: 24px;
  padding: 56px 64px;
  box-shadow: 0 18px 38px rgba(0, 55, 37, 0.18), 0 6px 14px rgba(0, 55, 37, 0.12);
}

.feat-card--green .feat-card__text {
  flex: 1;
}

.feat-card--feature6 {
  align-items: stretch;
  gap: 36px;
}

.feat-card--feature6 .feat-card__text {
  flex: 1 1 44%;
}

/* --- Card elements --- */
.feat-card__icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.feat-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.feat-card__title--light {
  color: #ffffff;
}

.feat-card__title--xl {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 12px 0;
}

.feat-card__body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.feat-card__body--light {
  color: rgba(255,255,255,0.75);
}

.feat-card__body--lg {
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Icons --- */
.feat-icon {
  font-size: 28px;
  color: #006c49;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.feat-icon--light {
  color: #6ffbbe;
}

/* --- Check list --- */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.feat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.feat-check {
  font-size: 18px;
  color: #006c49;
  flex-shrink: 0;
}

/* --- Media placeholder --- */
.feat-card__media {
  flex-shrink: 0;
}

.feat-card__media--placeholder {
  flex: 1;
  min-height: 280px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), 0 3px 8px rgba(15, 23, 42, 0.06);
}

.feat-card__media--sm {
  min-height: 140px;
  flex: unset;
  width: 100%;
}

.feat-card__media--video {
  flex: 1;
  aspect-ratio: 16/9;
  min-height: 260px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
}

.feat-card__media--feature6 {
  flex: 1 1 56%;
  aspect-ratio: auto;
  min-height: 380px;
  padding: 10px;
  overflow: hidden;
}

.feat-card__image--feature6 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.feat-card__media--feature3 {
  padding: 0;
  overflow: hidden;
  min-height: 300px;
  background: #eaf1f7;
}

.feat-card__image--feature3 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.feat-placeholder-num {
  font-size: 4rem;
  font-weight: 800;
  color: #cbd5e1;
  user-select: none;
  line-height: 1;
}

/* --- Parcel mini-card (dark card) --- */
.feat-parcel-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: auto;
}

.feat-parcel-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.feat-parcel-card__id {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.feat-parcel-card__name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.feat-parcel-card__meta {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
}

/* --- Export tiles (PDF card) --- */
.feat-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.feat-export-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat-export-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.08);
}

.feat-export-tile__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

/* --- Feature highlights (green card) --- */
.feat-highlights {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.feat-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a;
}

/* --- Steps section --- */
.feat-steps {
  padding: 56px 0;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 56px;
}

.feat-steps__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.feat-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feat-step {
  text-align: center;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.11), 0 4px 12px rgba(15, 23, 42, 0.08);
}

.feat-step__icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 16px rgba(15,23,42,0.14), 0 2px 5px rgba(15,23,42,0.08);
  color: #006c49;
}

.feat-step__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.feat-step__body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

/* --- CTA Section --- */
.feat-cta {
  position: relative;
  background: #006c49;
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  color: white;
  overflow: hidden;
  margin-bottom: 64px;
  box-shadow: 0 24px 46px rgba(0, 55, 37, 0.26), 0 8px 18px rgba(0, 55, 37, 0.18);
}

.feat-cta__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.feat-cta__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.feat-cta__body {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

.feat-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.feat-cta__btn {
  min-width: 160px;
  justify-content: center;
  font-size: 0.9rem;
  padding: 12px 28px;
}

.feat-cta__btn--outline {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: white !important;
}

.feat-cta__btn--outline:hover {
  background: rgba(255,255,255,0.2) !important;
}

/* --- Footer --- */
.feat-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 40px 0;
  margin: 0 -24px;
}

.feat-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.feat-footer__brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.feat-footer__copy {
  font-size: 0.75rem;
  color: #94a3b8;
}

.feat-footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.feat-footer__links a {
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.feat-footer__links a:hover {
  color: #0f172a;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .feat-page {
    padding: 28px 16px 0;
  }

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

  .feat-card,
  .feat-card--span-8,
  .feat-card--wide,
  .feat-card--dark,
  .feat-card--full {
    grid-column: span 1;
    flex-direction: column;
    padding: 28px 24px;
  }

  .feat-card--full {
    padding: 40px 28px;
  }

  .feat-card__media--feature6 {
    min-height: 260px;
    padding: 6px;
  }

  .feat-card__media--placeholder {
    min-height: 180px;
  }

  .feat-card__media--feature3 {
    min-height: unset;
    height: auto;
    width: calc(100% + 48px);
    margin: 0 -24px -20px -24px;
    padding-bottom: 8px;
    flex: none;
    overflow: visible;
    background: none;
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
  }

  .feat-card__image--feature3 {
    object-fit: contain;
    object-position: center top;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 16px 16px;
    filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.18));
  }

  .feat-card__media--empty {
    min-height: 180px;
  }

  .feat-steps__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feat-hero__title {
    font-size: 1.8rem;
  }

  .feat-cta {
    padding: 48px 28px;
  }
}

/* --- Empty State --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 24px;
  padding: 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 48px;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

/* =============================================
   STRONA CENNIKA (.price-*)
   ============================================= */

.price-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.price-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1), 0 5px 14px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.13), 0 8px 16px rgba(15, 23, 42, 0.08);
}

.price-card--featured {
  background: #131b2e;
  color: #ffffff;
  border: none;
  box-shadow: 0 22px 46px rgba(2, 8, 23, 0.34), 0 8px 18px rgba(2, 8, 23, 0.24);
}

.price-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(111, 251, 190, 0.15), transparent 70%);
  pointer-events: none;
}

.price-card__header {
  margin-bottom: 32px;
}

.price-card__title {
  font-size: 2rem;
  font-weight: 700;
  margin: 16px 0 8px;
}

.price-card__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.price-card--featured .price-card__desc {
  color: rgba(255, 255, 255, 0.7);
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card__val {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-card__curr {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.8;
}

.price-card__period {
  font-size: 0.875rem;
  opacity: 0.6;
}

.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.price-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.price-card__check {
  color: #6ffbbe;
  font-size: 20px;
}

.price-card__btn {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  background: #006c49;
  color: #ffffff;
  border-radius: 12px;
}

.price-card__btn:hover {
  background: #005238;
}

.price-card__unavailable {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
  font-style: italic;
}

/* --- Info Column --- */
.price-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 24px;
}

.price-info__item {
  display: flex;
  gap: 16px;
}

.price-info__icon {
  font-size: 24px;
  color: #006c49;
  flex-shrink: 0;
  background: rgba(0, 108, 73, 0.08);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 108, 73, 0.16), 0 3px 8px rgba(15, 23, 42, 0.08);
}

.price-info__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.price-info__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 900px) {
  .price-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .price-card {
    padding: 32px 24px;
  }

  .price-card__val {
    font-size: 2.75rem;
  }
}

/* =============================================
   SEKCJA DANYCH KONTAKTOWYCH
   ============================================= */

.contact-details-section {
  padding: 80px 0;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  margin: 0 -24px;
}

.contact-details-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-details__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-details__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-details__lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 108, 73, 0.1);
  color: #006c49;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item__value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-details__card {
  background: var(--bg-color);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .contact-details-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- Visibility Utilities --- */
.hide-on-mobile {
  display: inline-flex !important;
}

.show-on-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }

  .show-on-mobile {
    display: flex !important;
  }
}

/* =============================================
   LANDING PAGES (.lp-*)
   ============================================= */

.landing-layout .landing-content {
  padding-top: 98px;
}

.landing-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.landing-header__container {
  width: 100%;
  max-width: 1240px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-header__logo {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.landing-header__logo:hover {
  background: rgba(15, 23, 42, 0.05);
}

.landing-header__logo-image {
  height: 30px;
  width: auto;
}

.landing-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.landing-header__demo {
  white-space: nowrap;
}

.lp-page {
  overflow-x: hidden;
}

.lp-hero {
  padding-top: 24px;
}

.lp-mobile-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.lp-mobile-notice .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  color: #475569;
}

.lp-section {
  padding: 48px 24px;
}

.lp-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.lp-section__inner--center {
  text-align: center;
}

.lp-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.lp-section__title--center {
  text-align: center;
  margin-bottom: 32px;
}

.lp-section__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  max-width: 640px;
  margin-bottom: 24px;
}

.lp-section__inner--center .lp-section__lead {
  margin-left: auto;
  margin-right: auto;
}

.lp-auto-load {
  background: var(--surface-container, #eceef0);
}

.lp-auto-load__text .lp-section__lead {
  margin-bottom: 20px;
}

.lp-auto-load .lp-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.lp-feature-list {
  margin-top: 0;
}

.lp-parcel-preview {
  max-width: 360px;
  margin: 0 auto;
}

.lp-draw-section {
  background: #ffffff;
}

.lp-benefits-grid {
  margin-top: 8px;
}

.lp-steps {
  padding: 0;
  border-top: none;
  margin-bottom: 0;
}

.lp-pricing-section {
  background: var(--surface-container, #eceef0);
}

.lp-pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.lp-pricing-header .lp-section__lead {
  margin-left: auto;
  margin-right: auto;
}

.lp-pricing-card-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.lp-pricing-card {
  margin: 0;
}

.lp-faq-section {
  padding-bottom: 32px;
}

.lp-faq-grid {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.lp-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.lp-faq-item__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.lp-faq-item__summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item__title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #0f172a;
  line-height: 1.4;
}

.lp-faq-item__chevron {
  color: #475569;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lp-faq-item[open] .lp-faq-item__chevron {
  transform: rotate(180deg);
}

.lp-faq-item__content {
  border-top: 1px solid #e2e8f0;
  padding: 16px 22px 20px;
  color: #334155;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.lp-faq-item__content p {
  margin: 0;
}

.lp-faq-item__content a {
  color: #006c49;
  font-weight: 600;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .lp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .lp-auto-load .lp-section__inner {
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }

  .lp-parcel-preview {
    margin: 0;
  }

  .lp-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

