:root {
  --ap-blue: #064b86;
  --ap-blue-dark: #073b69;
  --ap-green: #10b981;
  --ap-green-dark: #047857;
  --ap-green-soft: #d1fae5;
  --ap-red: #dc2626;
  --ap-red-dark: #991b1b;
  --ap-red-soft: #fef2f2;
  --ap-text: #0f172a;
  --ap-muted: #64748b;
  --ap-border: #dce4ec;
  --ap-soft: #f7fafc;
  --ap-card: #ffffff;
  --ap-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.apartment-price-page {
  margin: 0;
  color: var(--ap-text);
  background: #ffffff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  z-index: 9999;
  background: var(--ap-blue);
  color: #fff;
  padding: .65rem .9rem;
  border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }
.ap-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.ap-section { padding: 72px 0; }
.ap-kicker {
  color: var(--ap-green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin: 0 0 .7rem;
}
.ap-section-head { max-width: 820px; margin-bottom: 26px; }
.ap-section-head h2 {
  margin: 0 0 .65rem;
  color: var(--ap-blue-dark);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.ap-section-head p { color: var(--ap-muted); margin: 0; font-size: 1.05rem; }
.ap-muted { color: #64748b; }

.ap-btn {
  appearance: none;
  border: 0;
  border-radius: 15px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ap-btn:hover { transform: translateY(-1px); }
.ap-btn-primary { background: var(--ap-blue); color: #fff; box-shadow: 0 14px 28px rgba(6,75,134,.22); }
.ap-btn-primary:hover { background: var(--ap-blue-dark); }
.ap-btn-secondary { background: var(--ap-green); color: #fff; }
.ap-btn-soft { background: #f1f5f9; color: var(--ap-blue-dark); border: 1px solid var(--ap-border); }

.ap-primary-btn,
button.ap-primary-btn,
.ap-btn-primary,
button[id^="save"] {
  min-height: 56px;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(6, 75, 134, .22);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.ap-primary-btn:hover,
button.ap-primary-btn:hover,
.ap-btn-primary:hover,
button[id^="save"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(6, 75, 134, .28);
}

input, select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ap-border);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}
input:focus, select:focus {
  outline: 3px solid rgba(16,185,129,.18);
  border-color: var(--ap-green);
}
.ap-form-error { color: var(--ap-red-dark); font-weight: 800; margin-top: 12px; }

[hidden] { display: none !important; }
@keyframes apFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 540px) {
  .ap-container { width: min(100% - 22px, 1180px); }

  .ap-primary-btn,
  button.ap-primary-btn,
  .ap-btn-primary,
  button[id^="save"] {
    width: 100%;
  }
}

/* Patch 133: při e-mailovém kroku držíme fokus na kalkulačce, aby do viewportu nelezla spodní SEO/ceníková sekce. */
body.ap-email-focus-mode .ap-seo,
body.ap-email-focus-mode .ap-faq {
  display: none;
}

body.ap-email-focus-mode .ap-wizard-section {
  min-height: calc(100vh - 76px);
  padding-bottom: clamp(96px, 12vh, 180px);
}

body.ap-email-focus-mode .ap-calc-shell {
  margin-bottom: 0;
}

