:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #d9e1e7;
  --soft: #f4f7f8;
  --paper: #ffffff;
  --accent: #0f7b6c;
  --accent-strong: #075d53;
  --warm: #d7a15a;
  --danger: #b24b49;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-offset: 80px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  background: #fbfcfc;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(240px, 72vw);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.header-cta {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344054;
  font-weight: 650;
}

.main-nav a:hover {
  background: var(--soft);
}

.header-cta {
  background: var(--accent);
  color: white;
  transition: background 150ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent-strong);
}

.account-btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #d0d5dd);
  background: white;
  color: #344054;
  font-weight: 650;
  cursor: pointer;
}

.account-btn:hover,
.account-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.partner-portal-link {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.partner-portal-link:hover,
.partner-portal-link:focus-visible {
  background: var(--accent);
  color: #fff;
}

.auth-partner-entry {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-partner-entry a {
  font-weight: 700;
  color: var(--accent);
}

.account-gate-partner {
  margin-top: 16px;
}

.developer-portal-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin: 8px 0 28px;
  color: var(--muted);
}

.developer-portal-entry .plan-cta {
  width: auto;
  min-width: 240px;
  text-decoration: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-card {
  position: relative;
  background: white;
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #667085;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.register-wizard-progress {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.register-wizard-progress li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #98a2b3;
  text-align: center;
  line-height: 1.2;
}

.register-wizard-progress li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #d0d5dd;
  background: #fff;
  font-size: 0.8rem;
}

.register-wizard-progress li.active {
  color: var(--accent-strong, #0f5132);
}

.register-wizard-progress li.active span {
  border-color: var(--accent);
  background: #f3faf7;
}

.register-wizard-progress li.done {
  color: #667085;
}

.register-wizard-progress li.done span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.register-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-step[hidden] {
  display: none !important;
}

.register-wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.register-wizard-nav .register-wizard-next,
.register-wizard-nav button[type="submit"],
.register-wizard-next {
  flex: 1;
}

.register-wizard-nav .secondary-btn,
.register-wizard-nav [data-register-back] {
  flex: 0 0 auto;
}

.register-customer-fields {
  display: grid;
  gap: 12px;
}

.register-customer-fields[hidden] {
  display: none !important;
}

.register-customer-hint {
  margin: -4px 0 0;
}

.register-finish-hint {
  margin: 0;
}

.auth-account-type {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.auth-account-type legend {
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-type-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #eaecf0);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 150ms ease, background 150ms ease;
}

.auth-type-option:has(input:checked) {
  border-color: var(--accent);
  background: #f3faf7;
}

.auth-type-option input {
  margin-top: 4px;
}

.auth-type-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-type-option strong {
  font-weight: 700;
  color: var(--ink, #101828);
}

.auth-type-option small {
  font-weight: 500;
  color: #667085;
}

.register-partner-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid var(--line, #eaecf0);
}

.register-partner-hint {
  margin: 0;
}

.register-ico-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.auth-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
}

.auth-consent input {
  margin-top: 3px;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent-strong, #0f5132);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.account-partner-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 0 0 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, white);
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.account-partner-banner[hidden] {
  display: none !important;
}

.account-partner-banner-copy {
  min-width: 0;
  flex: 1;
}

.account-partner-banner-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
}

.account-partner-banner-copy p {
  margin: 0;
}

.account-partner-banner .account-partner-summary {
  margin: 10px 0 0;
}

.account-partner-pending {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 28px;
}

.account-partner-summary {
  margin: 16px 0 20px;
  display: grid;
  gap: 8px;
}

.account-partner-summary div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
}

.account-partner-summary dt {
  margin: 0;
  color: #667085;
  font-weight: 600;
}

.account-partner-summary dd {
  margin: 0;
  font-weight: 600;
}

.auth-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--accent-strong, #0f5132);
  min-height: 1.2em;
}

.auth-status.error {
  color: #b42318;
}

.auth-status.success {
  color: var(--accent-strong, #0f5132);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tabs button {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tabs button:hover {
  background: #e8eef0;
  color: var(--ink);
}

.auth-tabs button.active,
.auth-tabs button.active:hover {
  background: #e8f3ec;
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  opacity: 0.7;
}

.password-toggle:hover {
  opacity: 1;
}

.auth-form input {
  padding: 10px 12px;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 8px;
  font: inherit;
}

.auth-email {
  font-weight: 650;
  color: #344054;
  margin-bottom: 12px;
}

.auth-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border, #eaecf0);
  border-radius: 8px;
  font-size: 0.9rem;
}

.auth-list li.muted {
  color: #667085;
  border: none;
  padding: 0;
}

.auth-list li button {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.save-search-btn {
  width: 100%;
  margin-top: 8px;
}

.favorite.active {
  color: #f79009;
}

.location a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border, #d0d5dd);
}

.location a:hover,
.location a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.developer-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--accent);
}

.developer-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

.developer-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
}

.developer-logo.has-image {
  background: #fff;
  border: 1px solid var(--line, #d8e0db);
  padding: 4px;
}

.developer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.developer-header h1 {
  margin: 0;
}

.developer-header p {
  margin: 4px 0 0;
  color: #667085;
}

#developerDesc {
  max-width: 65ch;
  color: #475467;
  margin-bottom: 28px;
}

/* ——— Zákaznický účet (/ucet) ——— */

.account-page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.account-gate {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 28px;
}

.account-gate h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.account-gate-lead {
  color: #475467;
  margin: 0 0 16px;
}

.account-benefits {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  color: #475467;
}

.account-benefits li {
  margin-bottom: 0.45rem;
}

.auth-account-hint {
  margin-top: 12px;
  font-size: 0.9rem;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.account-header-main {
  flex: 1;
  min-width: 200px;
}

.account-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.account-email {
  margin: 4px 0 0;
  color: #667085;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #eaecf0);
}

.account-nav button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, #d0d5dd);
  background: white;
  color: #344054;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-nav button.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
}

.account-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 0.75rem;
  font-weight: 700;
}

.account-nav button.active .account-nav-count {
  background: color-mix(in srgb, var(--accent) 18%, white);
}

.account-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.account-kpi {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border, #eaecf0);
  background: white;
}

.account-kpi strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.account-kpi span {
  color: #667085;
  font-size: 0.9rem;
}

.account-overview-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.account-panel[data-account-panel="overview"] > .account-panel-card {
  margin-bottom: 16px;
}

.account-panel-card {
  padding: 20px;
  border: 1px solid var(--border, #eaecf0);
  border-radius: 12px;
  background: white;
}

.account-panel-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.account-panel-head h2 {
  margin: 0 0 4px;
}

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

.account-quick-actions-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.account-quick-actions-row .secondary-btn,
.account-quick-actions-row button {
  width: auto;
}

.account-overview-more {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.account-empty-card a {
  color: var(--accent, #0f6b4d);
  font-weight: 600;
}

.account-recent-more {
  margin: 12px 0 0;
}

.account-project-card-actions .favorite {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .account-recent-grid > .account-project-card:nth-child(n+5) {
    display: none;
  }

  .account-quick-actions-row .secondary-btn,
  .account-quick-actions-row button {
    width: 100%;
  }
}

@media (min-width: 801px) {
  .account-recent-more {
    display: none;
  }
}

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

.account-project-card {
  border: 1px solid var(--border, #eaecf0);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.account-project-card-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #f2f4f7;
}

.account-project-card-body {
  padding: 14px 16px 16px;
}

.account-project-card-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.account-project-card-meta {
  color: #667085;
  font-size: 0.88rem;
  margin: 0 0 10px;
}

.account-favorite-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  font-weight: 600;
  color: #344054;
  font-size: 0.82rem;
}

.account-favorite-note small {
  font-weight: 500;
  color: #667085;
}

.account-favorite-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;
}

.account-project-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border, #eaecf0);
  border-radius: 10px;
  background: white;
  margin-bottom: 10px;
}

.account-list li.muted {
  justify-content: center;
  color: #667085;
  font-style: italic;
}

.account-list-main strong {
  display: block;
}

.account-list-main small {
  color: #667085;
}

.account-list-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.account-mini-list .account-list li {
  margin-bottom: 8px;
  padding: 10px 12px;
}

.account-empty-card {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed var(--border, #d0d5dd);
  border-radius: 12px;
  color: #667085;
}

.account-next-step h2 {
  margin: 0 0 6px;
}

.account-next-step-copy {
  margin: 0 0 14px;
  color: #344054;
}

.account-change-chips,
.account-layout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.account-change-chip,
.account-layout-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border, #eaecf0);
  background: #f2f4f7;
  color: #344054;
}

.account-change-chip {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-color: color-mix(in srgb, var(--accent) 22%, white);
  color: var(--accent);
}

.account-layout-chip {
  cursor: pointer;
  font-family: inherit;
}

.account-layout-chip.active {
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-color: color-mix(in srgb, var(--accent) 28%, white);
  color: var(--accent);
}

.account-project-card-payment {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #344054;
}

.account-project-card-payment span {
  display: block;
  font-weight: 500;
  color: #667085;
  font-size: 0.78rem;
}

.account-profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, white);
  background: color-mix(in srgb, var(--accent) 6%, white);
}

.account-profile-banner p {
  margin: 0;
  color: #344054;
}

.account-profile-form {
  padding: 20px;
}

.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-profile-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #344054;
}

.account-profile-grid input {
  font-weight: 400;
}

.account-profile-note {
  margin: 14px 0 0;
  color: #667085;
  font-size: 0.92rem;
}

.account-profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.account-inquiries-list .account-list-main {
  min-width: 0;
}

.account-list li.account-inquiry-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.account-inquiry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-inquiry-children {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.account-inquiry-children li {
  margin-bottom: 0;
  padding: 10px 12px;
  background: #f8fafc;
}

.account-inquiry-empty p {
  margin: 0 0 12px;
}

.account-inquiry-empty-actions {
  justify-content: center;
}

.account-inquiry-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f2f4f7;
  color: #475467;
  flex-shrink: 0;
}

.account-inquiry-status.active {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
}

.account-inquiry-status.done {
  background: #ecfdf3;
  color: #027a48;
}

.account-inquiry-status.muted {
  background: #f2f4f7;
  color: #667085;
}

.account-reviews-card {
  margin-top: 20px;
}

.account-reviews-card .account-list li {
  align-items: flex-start;
}

.account-reviews-card .account-list-main {
  min-width: 0;
}

.account-reviews-card .account-list-main small {
  display: block;
}

.account-reviews-card .account-list-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-notifications-card {
  margin-top: 20px;
}

.account-notification-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.account-notification-prefs {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border, #eaecf0);
  border-radius: 10px;
}

.account-notification-prefs legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.account-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: #344054;
}

.account-checkbox input {
  margin-top: 3px;
}

.account-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-search-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-search-badge.active {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
}

.account-search-badge.muted {
  color: #98a2b3;
}

.account-recommendations {
  margin-top: 16px;
}

.account-recommendations-grid {
  margin-top: 12px;
}

.account-delete-hint {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .account-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-profile-grid {
    grid-template-columns: 1fr;
  }

  .account-overview-columns {
    grid-template-columns: 1fr;
  }

  .account-header {
    align-items: flex-start;
  }

  .account-logout-btn {
    width: 100%;
  }
}

.segment-quick-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.segment-quick-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, #d0d5dd);
  font-weight: 600;
  color: #344054;
}

.segment-quick-links a:hover,
.segment-quick-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.segment-hero {
  background: var(--soft, #f2f4f7);
  padding: 48px 24px;
}

.segment-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.segment-hero h1 {
  margin: 8px 0 12px;
}

.segment-hero p#segmentDesc {
  max-width: 65ch;
  color: #475467;
  margin-bottom: 16px;
}

.segment-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.segment-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border, #d0d5dd);
  font-weight: 600;
  color: #344054;
}

.segment-links a:hover,
.segment-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.finance-layout + .finance-layout {
  margin-top: 24px;
}

.mortgage-calculator h3 {
  margin: 0 0 4px;
  grid-column: 1 / -1;
}

.guides-section {
  padding: 64px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.guides-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.guide-item {
  border: 1px solid var(--border, #eaecf0);
  border-radius: 12px;
  padding: 16px 20px;
  background: white;
}

.guide-item summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.guide-item summary::-webkit-details-marker {
  display: none;
}

.guide-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.guide-item[open] summary::after {
  content: "–";
}

.guide-body {
  margin-top: 12px;
  color: #475467;
  line-height: 1.6;
}

.guide-body a {
  color: var(--accent);
  font-weight: 650;
}

.developer-page #developerProjects.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.developer-page h2 {
  margin-top: 32px;
}

.review-summary {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.stars {
  color: #f79009;
  letter-spacing: 2px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 16px;
}

.review-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.review-form button {
  align-self: flex-start;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
}

.review-login-hint {
  color: #667085;
  margin-bottom: 16px;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}

.review-list li {
  border: 1px solid var(--border, #eaecf0);
  border-radius: 10px;
  padding: 12px 14px;
}

.review-list li p {
  margin: 6px 0;
}

.review-list li small {
  color: #667085;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px clamp(18px, 5vw, 72px) 56px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(10, 23, 30, 0.84) 0%, rgba(10, 23, 30, 0.58) 48%, rgba(10, 23, 30, 0.12) 100%),
    url("images/hero.jpg");
  background-image:
    linear-gradient(90deg, rgba(10, 23, 30, 0.84) 0%, rgba(10, 23, 30, 0.58) 48%, rgba(10, 23, 30, 0.12) 100%),
    image-set(
      url("images/hero.webp") type("image/webp"),
      url("images/hero.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  width: min(980px, 100%);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ce2d7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.7fr auto;
  gap: 10px;
  width: min(1050px, 100%);
  margin-top: 28px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

button {
  min-height: 44px;
  border: 0;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.search-panel button {
  align-self: end;
  padding: 0 22px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-links button {
  min-height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: white;
  transition: background 150ms ease, border-color 150ms ease;
}

.quick-links button:hover,
.quick-links button:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.55);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: white;
}

.market-strip article {
  padding: 24px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.market-strip article:last-child {
  border-right: 0;
}

.market-strip strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

.market-strip span {
  color: var(--muted);
}

.catalog-shell,
.compare-section,
.finance-section,
.developer-section,
.developer-directory,
.homepage-showcase,
.admin-section,
.journeys,
.guide-section {
  padding: 74px clamp(18px, 4vw, 56px);
}

.homepage-showcase {
  display: grid;
  gap: 48px;
  background: #f7faf9;
  border-bottom: 1px solid var(--line);
}

.showcase-hero .showcase-card,
.showcase-grid {
  margin-top: 18px;
}

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

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

.developer-directory-card a {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.developer-directory-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8f0ed;
  font-weight: 800;
}

.developer-directory-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-directory-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.developer-directory-card p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 18px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-header,
.results-toolbar,
.toolbar-actions,
.view-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-header h3 {
  margin: 0;
}

.filter-header button,
#resetFilters,
#clearCompare {
  min-height: 36px;
  padding: 0 12px;
  background: var(--soft);
  color: var(--ink);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.amenities-grid legend {
  grid-column: 1 / -1;
}

fieldset label,
.toggle-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.price-range {
  display: grid;
  gap: 10px;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 750;
}

.price-range-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-range-label output {
  font-weight: 800;
  color: var(--ink);
}

.price-range-track {
  position: relative;
  height: 32px;
}

.price-range-fill {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--line);
}

.price-range-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  left: var(--range-min, 0%);
  right: calc(100% - var(--range-max, 100%));
  border-radius: 999px;
  background: var(--accent);
}

.price-range-track input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 32px;
  margin: 0;
  transform: translateY(-50%);
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range-track input[type="range"].top {
  z-index: 2;
}

.price-range-track input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: transparent;
}

.price-range-track input[type="range"]::-moz-range-track {
  background: transparent;
}

.price-range-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(23, 33, 43, 0.32);
  cursor: pointer;
}

.price-range-track input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(23, 33, 43, 0.32);
  cursor: pointer;
}

.results-area {
  min-width: 0;
}

.results-toolbar {
  padding: 14px 0 18px;
}

.results-toolbar span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar-actions select {
  width: auto;
}

#saveSearch {
  padding: 0 16px;
  background: var(--ink);
}

.view-tabs {
  justify-content: flex-start;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.view-tabs button {
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
}

.view-tabs button.active {
  border-color: var(--accent);
  color: var(--ink);
}

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

.ad-slot {
  border: 1px solid #cfdde1;
  border-radius: 8px;
  background: #f7faf9;
}

.ad-slot span,
.ad-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-slot-inline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.ad-slot-inline strong {
  font-size: 0.98rem;
}

.ad-slot-inline button,
.ad-slot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ad-slot-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ad-slot-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.ad-slot-image {
  display: block;
  max-width: 160px;
  max-height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.ad-slot-compact .ad-slot-image {
  max-width: 100%;
  max-height: 120px;
}

.ad-slot-cta-compact {
  width: 100%;
}

.ad-slot-compact {
  display: grid;
  gap: 6px;
  margin: 16px 18px;
  padding: 14px;
}

.native-ad {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(15, 123, 108, 0.08), rgba(15, 123, 108, 0.02)),
    white;
}

.native-ad-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.native-ad h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.native-ad p {
  color: var(--muted);
}

.native-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.project-card {
  display: grid;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card:hover {
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  min-height: 190px;
  background: var(--soft) center/cover;
}

.project-image-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-loading {
  grid-column: 1 / -1;
  padding: 48px 16px;
  color: var(--muted);
  text-align: center;
}

#projekty,
#mapa,
#porovnani,
#financovani,
#pro-developery,
#pruvodce,
#doporuceni,
#newsletter {
  scroll-margin-top: 12px;
}

.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge.status {
  background: var(--accent);
  color: white;
}

.badge.top {
  background: var(--warm);
}

.badge.editorial {
  background: var(--ink);
  color: #fff;
}

.badge.featured {
  background: #1f6f8b;
  color: #fff;
}

.badge.location-partner {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.project-trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-decision-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-decision-chips span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.trust-chip.verified {
  background: #ecfdf3;
  color: #027a48;
}

.trust-chip.quality {
  background: #eff8ff;
  color: #175cd3;
}

.project-trust-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcfb;
}

.trust-breakdown summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-breakdown ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.trust-breakdown li.ok {
  color: #027a48;
}

.trust-breakdown li.missing {
  color: var(--muted);
}

.comparison-table-wrap .hint {
  margin-top: 12px;
}

.affordability-filter-hint {
  margin-top: -4px;
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3 {
  margin-bottom: 4px;
  font-size: 1.24rem;
}

.location {
  color: var(--muted);
}

.favorite {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  background: var(--soft);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats div {
  min-height: 74px;
  padding: 10px;
  background: var(--soft);
  border-radius: 8px;
}

.stats span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats strong {
  font-size: 0.95rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions .secondary-btn {
  font-size: 0.88rem;
  line-height: 1.2;
}

.secondary-btn {
  background: var(--soft);
  color: var(--ink);
}

.secondary-btn:hover {
  background: #e7eef1;
}

.map-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-panel.active {
  display: grid;
}

.project-grid.hidden {
  display: none;
}

.map-canvas {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(15, 123, 108, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 123, 108, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 28% 36%, rgba(215, 161, 90, 0.18), transparent 14%),
    radial-gradient(circle at 58% 50%, rgba(15, 123, 108, 0.16), transparent 18%),
    #edf3f0;
  background-size: 44px 44px;
}

#leafletMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-toolbar button,
.map-zoom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #344054;
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.map-toolbar button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.map-zoom {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.map-zoom button {
  width: 44px;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
}

#drawArea.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.leaflet-popup-content {
  min-width: 180px;
}

.leaflet-popup-content h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.leaflet-popup-content p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #475467;
}

.leaflet-popup-content button {
  font-size: 0.85rem;
  padding: 6px 10px;
}

.map-point {
  position: absolute;
  z-index: 1;
  pointer-events: auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, z-index 180ms ease;
}

.map-point:hover,
.map-point:focus-visible,
.map-point.active {
  z-index: 6;
  background: transparent;
  outline: none;
  transform: translate(-50%, -50%) scale(1.12);
}

.pin-dot {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50% 50% 50% 8px;
  background: #c82424;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.24);
  transform: rotate(-45deg);
}

.pin-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.map-point.premium .pin-dot {
  background: #c82424;
  box-shadow: 0 0 0 5px rgba(215, 161, 90, 0.36), 0 10px 24px rgba(23, 33, 43, 0.24);
}

.pin-card {
  position: absolute;
  left: 28px;
  top: 50%;
  display: grid;
  width: max-content;
  max-width: 220px;
  gap: 4px;
  transform: translateY(-50%) scale(0.94);
  transform-origin: left center;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.16);
  opacity: 0.92;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.pin-card strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.pin-card small,
.pin-card em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.map-point:hover .pin-card,
.map-point:focus-visible .pin-card,
.map-point.active .pin-card {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.map-info {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: start;
  max-height: 760px;
  overflow: auto;
  padding: 0;
  background: white;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.map-search-panel {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.map-search-panel > strong {
  font-size: 1.15rem;
}

.map-selected {
  display: grid;
  gap: 5px;
  margin: 16px 18px 0;
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.map-selected span,
.map-selected small {
  color: var(--muted);
}

.map-selected span {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 18px 4px;
}

.map-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-align: center;
}

.map-actions a:last-child {
  background: var(--accent);
}

.map-info > button {
  margin: 0 18px 18px;
}

.map-result-meta {
  display: grid;
  gap: 4px;
  padding: 16px 18px 10px;
}

.map-result-meta span {
  color: var(--muted);
  font-size: 0.86rem;
}

.map-results-list {
  display: grid;
}

.map-result-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: white;
}

.map-result-item.active,
.map-result-item:hover {
  background: #f7faf9;
}

.map-result-item img {
  width: 92px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}

.map-result-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.map-result-main {
  min-width: 0;
}

.map-result-item .card-title-row {
  margin-bottom: 2px;
}

.map-result-item p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.map-result-item strong,
.map-result-item small {
  display: block;
}

.map-result-item small {
  margin-top: 4px;
  color: var(--muted);
}

.map-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.map-result-actions button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.map-legend {
  display: grid;
  gap: 8px;
  margin: 16px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c82424;
}

.legend-dot.top {
  background: var(--warm);
}

.legend-dot.partner {
  background: #fff;
  border: 2px solid var(--ink);
}

.empty-state {
  padding: 26px;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.comparison-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  width: 190px;
  background: var(--soft);
}

.finance-section {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finance-verified-wrap {
  margin-top: 10px;
}

.finance-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 0.9rem;
  font-weight: 600;
}

.finance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.mortgage-calculator,
.advisor-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mortgage-calculator {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calc-breakdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calc-breakdown div {
  min-height: 82px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calc-result span,
.calc-breakdown span,
.calc-result small,
.legal-note {
  color: var(--muted);
}

.calc-breakdown span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calc-result strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.calc-breakdown strong {
  font-size: 1.35rem;
}

.advisor-form {
  display: grid;
  gap: 10px;
}

.advisor-form textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
}

.developer-form-wrap {
  margin-top: 28px;
}

.developer-form-wrap .advisor-card {
  max-width: 640px;
}

.developer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.developer-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  font-family: inherit;
}

.developer-form button {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .developer-form {
    grid-template-columns: 1fr;
  }
}

.legal-note {
  margin: 0;
  font-size: 0.86rem;
}

.finance-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.developer-section {
  background: #f2f6f5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.developer-grid,
.pricing-preview,
.admin-board,
.journey-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.developer-grid article,
.pricing-preview article,
.admin-board article,
.journey-grid article,
.guide-grid article {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.developer-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 900;
}

.developer-grid h3,
.pricing-preview h3,
.admin-board h3,
.journey-grid h3,
.guide-grid h3 {
  font-size: 1.5rem;
}

.developer-grid p,
.pricing-preview p,
.admin-board li,
.journey-grid p,
.guide-grid p {
  color: var(--muted);
}

.pricing-preview {
  margin-top: 18px;
}

.pricing-preview strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.highlight-plan {
  border-color: rgba(15, 123, 108, 0.48) !important;
  box-shadow: 0 16px 42px rgba(15, 123, 108, 0.12);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 0 0 10px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.plan-price strong {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.plan-price span {
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-annual {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 9px;
  flex: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--ink);
}

.plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--accent);
  color: white;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}

.plan-cta:hover { background: var(--accent-strong); }

.plan-cta-secondary {
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.plan-cta-secondary:hover {
  background: var(--accent);
  color: white;
}

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

.admin-board ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journey-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.guide-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--accent);
  font-weight: 900;
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  padding: 12px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compare-tray a {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
}

.compare-tray button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 700;
}

.comparison-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.shared-selection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #b7e4c7;
  border-radius: 12px;
  background: #ecfdf3;
}

.shared-selection-copy {
  display: grid;
  gap: 2px;
}

.shared-selection-copy strong {
  color: #027a48;
}

.shared-selection-copy span {
  color: #05603a;
  font-size: 0.92rem;
}

.shared-selection-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-dialog {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(23, 33, 43, 0.55);
}

.site-prompt {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: var(--shadow);
}

.site-prompt::backdrop {
  background: rgba(16, 24, 40, 0.5);
}

.site-prompt-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--paper);
  border-radius: 14px;
}

.site-prompt-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.site-prompt-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.site-prompt-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.site-prompt-actions button {
  min-width: 110px;
  padding: 0 16px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  background: white;
  color: var(--ink);
  font-size: 1.6rem;
}

.detail-hero {
  position: relative;
  min-height: 340px;
  padding: 210px 26px 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent), var(--soft) center/cover;
  color: white;
}

.detail-hero-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.detail-hero-actions .favorite {
  background: white;
}

.detail-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}

.detail-account-actions [data-watch] {
  grid-column: 1 / -1;
}

.detail-account-actions .favorite {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.88rem;
  line-height: 1.25;
  text-align: center;
}

.account-watch-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
}

.detail-content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  padding: 24px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-facts div,
.lead-box {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.project-specifications {
  margin: 20px 0;
}

.project-specifications dl {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) 1fr;
  gap: 8px 18px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.project-specifications dt {
  color: var(--muted);
}

.project-specifications dd {
  margin: 0;
  font-weight: 650;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.detail-gallery-item {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 8px;
  background: var(--soft) center / cover no-repeat;
  cursor: zoom-in;
  padding: 0;
}

.detail-media {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
}

.detail-embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}

.detail-embed-play {
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 16px;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.detail-embed-play:hover,
.detail-embed-play:focus-visible {
  background: #262626;
}

.detail-embed-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-embed-ext {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.detail-documents {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.detail-documents li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 8px;
}

.detail-documents a {
  font-weight: 600;
}

.project-contact-card {
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

.project-contact-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.project-contact-card p {
  margin: 0 0 4px;
}

.lead-inquiry-form {
  display: grid;
  gap: 10px;
}

.lead-inquiry-form input {
  width: 100%;
}

.lead-status,
.form-sent-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.lead-status.success,
.form-sent-status.success {
  background: rgba(34, 139, 87, 0.12);
  color: #1e7e4f;
}

.lead-status .link-btn,
.form-sent-status .link-btn {
  color: inherit;
}

.lead-status.error,
.form-sent-status.error {
  background: rgba(200, 60, 60, 0.12);
  color: #c83c3c;
}

button.is-sent,
.footer-newsletter-row button.is-sent {
  background: var(--accent-strong);
}

.developer-link {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.floor-groups {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
}

.floor-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0 0 8px;
}

.floor-group-head h4 {
  margin: 0;
  font-size: 1.05rem;
}

.floor-group-plans {
  margin: 0;
  font-size: 0.9rem;
}

.floor-group-plans a {
  font-weight: 600;
}

.unit-table {
  width: 100%;
  border-collapse: collapse;
}

.unit-table th,
.unit-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  max-width: 360px;
  padding: 14px 16px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toast.active {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.toast-action {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-offset: 0px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 760px;
    padding-top: 72px;
  }

  .search-panel,
  .catalog-layout,
  .map-panel,
  .finance-layout,
  .developer-grid,
  .pricing-preview,
  .admin-board,
  .journey-grid,
  .guide-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .market-strip,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .ad-slot-inline {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .results-toolbar,
  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .mortgage-calculator {
    grid-template-columns: 1fr;
  }

  .calc-breakdown {
    grid-template-columns: 1fr;
  }

  .compare-tray {
    left: 12px;
    right: 12px;
    transform: none;
    flex-wrap: wrap;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .map-canvas,
  .map-info {
    max-height: none;
    min-height: 420px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.legal-content {
  display: grid;
  gap: 12px;
  max-width: 760px;
  font-size: 0.92rem;
  color: var(--ink-soft, #555);
}

.legal-consent,
.lead-form .legal-note,
.lead-form .form-sent-status,
.lead-inquiry-form .legal-note,
.lead-inquiry-form .form-sent-status {
  grid-column: 1 / -1;
}

.legal-consent a,
.legal-note a,
.footer-company a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-company {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 420px);
  gap: 16px 32px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.footer-newsletter-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.footer-newsletter-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer-newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.footer-newsletter-row input[type="email"] {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.footer-newsletter-row button {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.footer-newsletter-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.footer-newsletter-consent input {
  margin-top: 3px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 80vw);
}

.footer-navs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.card-title-row h3 a,
.map-result-item h3 a {
  color: inherit;
  text-decoration: none;
}

.card-title-row h3 a:hover,
.card-title-row h3 a:focus-visible,
.map-result-item h3 a:hover,
.map-result-item h3 a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .footer-newsletter,
  .footer-newsletter-row {
    grid-template-columns: 1fr;
  }

  .footer-navs,
  .site-footer nav {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.footer-legal summary {
  cursor: pointer;
  font-weight: 600;
  list-style: revert;
}

.footer-legal .legal-content {
  margin-top: 12px;
  max-width: 760px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ink, #1a1a1a);
  color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.86rem;
}

.cookie-banner a {
  color: #9adfc3;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 0 16px;
}

.legal-page {
  background: var(--soft);
}

.legal-page .site-header {
  background: rgba(255, 255, 255, 0.97);
}

.legal-main {
  display: grid;
  gap: 20px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.legal-hero {
  max-width: 820px;
  padding: 28px 0 8px;
}

.legal-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
}

.legal-hero > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.legal-version {
  font-size: 0.88rem;
}

.legal-toc,
.legal-section {
  padding: clamp(22px, 4vw, 42px);
}

.legal-toc ol {
  columns: 2;
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-toc li {
  margin: 0 0 8px;
  break-inside: avoid;
}

.legal-section {
  scroll-margin-top: 12px;
}

.legal-section h2 {
  margin: 6px 0 22px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.legal-section h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.legal-section p,
.legal-section li {
  line-height: 1.68;
}

.legal-section ul {
  display: grid;
  gap: 7px;
}

.legal-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.legal-identity div {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.legal-identity div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.legal-identity dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-identity dd {
  margin: 0;
  font-weight: 650;
}

.legal-price-grid,
.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legal-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-price-grid article,
.legal-contact-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.legal-price-grid h3,
.legal-contact-grid h3 {
  margin-top: 0;
}

.legal-price {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 750;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: white;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.legal-table th {
  background: var(--soft);
  font-size: 0.82rem;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .legal-nav {
    display: none;
  }

  .legal-main {
    padding-top: 28px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-identity,
  .legal-price-grid,
  .legal-contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-identity div:nth-child(odd) {
    border-right: 0;
  }
}
