@font-face {
  font-family: "Onest";
  src: url("fonts/onest-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(0.993 0.002 165);
  --bg-sunk: oklch(0.972 0.004 165);
  --bg-hover: oklch(0.955 0.005 165);
  --line: oklch(0.915 0.006 165);
  --line-strong: oklch(0.85 0.008 165);
  --line-input: oklch(0.66 0.01 165);

  --text: oklch(0.22 0.012 165);
  --text-2: oklch(0.46 0.012 165);
  --text-3: oklch(0.53 0.01 165);
  --text-on-accent: oklch(0.993 0.002 165);

  --accent: oklch(0.52 0.12 158);
  --accent-hover: oklch(0.46 0.11 158);
  --accent-ink: oklch(0.42 0.1 158);
  --accent-soft: oklch(0.955 0.03 158);
  --accent-line: oklch(0.82 0.07 158);

  --warn-ink: oklch(0.47 0.1 65);
  --warn-soft: oklch(0.965 0.04 85);
  --warn-line: oklch(0.85 0.09 80);
  --danger: oklch(0.53 0.19 27);
  --danger-hover: oklch(0.47 0.18 27);
  --danger-soft: oklch(0.965 0.02 27);
  --danger-line: oklch(0.85 0.07 27);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-hero: clamp(2.125rem, 1.45rem + 3vw, 3.5rem);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-14: 56px;
  --s-18: 72px;
  --s-24: 96px;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-full: 999px;

  --sh-1: 0 1px 2px oklch(0.22 0.012 165 / 0.06);
  --sh-2: 0 1px 2px oklch(0.22 0.012 165 / 0.05), 0 8px 24px oklch(0.22 0.012 165 / 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;

  --wrap: 1200px;
  --gutter: 16px;
  --tap: 44px;

  --ph-plan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 72' fill='none' stroke-width='2'%3E%3Crect x='2' y='2' width='92' height='68' rx='3' stroke='%23bfc8c3'/%3E%3Cpath d='M62 2v20M62 34v36' stroke='%23bfc8c3'/%3E%3Crect x='12' y='14' width='16' height='12' rx='2' stroke='%23bfc8c3'/%3E%3Crect x='34' y='14' width='16' height='12' rx='2' stroke='%23bfc8c3'/%3E%3Crect x='12' y='44' width='16' height='12' rx='2' stroke='%23bfc8c3'/%3E%3Crect x='34' y='44' width='16' height='12' rx='2' stroke='%23067d4d'/%3E%3Crect x='70' y='24' width='16' height='24' rx='2' stroke='%23bfc8c3'/%3E%3C/svg%3E");
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-xl); letter-spacing: -0.022em; }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
@media (min-width: 768px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
}

p { text-wrap: pretty; }

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--accent-line);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r);
}
.skip-link:focus { top: var(--s-3); color: var(--bg); }

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }

/* layout */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }
.wrap--mid { max-width: calc(1000px + var(--gutter) * 2); }

.section { padding: var(--s-14) 0; }
.section--tight { padding: var(--s-10) 0; }
.section--sunk { background: var(--bg-sunk); border-block: 1px solid var(--line); }
.section + .section:not(.section--sunk) { padding-top: 0; }
.section--sunk + .section:not(.section--sunk) { padding-top: var(--s-14); }
@media (min-width: 1024px) {
  .section { padding: var(--s-18) 0; }
  .section--sunk + .section:not(.section--sunk) { padding-top: var(--s-18); }
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-bottom: var(--s-6);
}
.section__head p { color: var(--text-2); margin-top: var(--s-2); max-width: 60ch; }
.section__more { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }

.page-head { padding-top: var(--s-8); padding-bottom: var(--s-6); }
.page-head__sub { margin-top: var(--s-2); color: var(--text-2); max-width: 65ch; }
@media (min-width: 1024px) {
  .page-head { padding-top: var(--s-10); padding-bottom: var(--s-8); }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--text-3);
  list-style: none;
}
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.993 0.002 165 / 0.94);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__bg { fill: var(--accent); }
.logo__seat { fill: var(--bg); opacity: 0.42; }
.logo__seat--free { opacity: 1; }

.nav {
  display: none;
  align-items: center;
  gap: var(--s-1);
  margin-left: var(--s-4);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { color: var(--text); background: var(--bg-hover); }
.nav__link[aria-current="page"] { color: var(--text); }

.site-header__cta { margin-left: auto; }

.menu { position: relative; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--r);
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--bg-hover); }
.menu__icon, .menu__icon::before, .menu__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.menu__icon { position: relative; }
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; }
.menu__icon::before { top: -6px; }
.menu__icon::after { top: 6px; }
.menu[open] .menu__icon { background: transparent; }
.menu[open] .menu__icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__icon::after { top: 0; transform: rotate(-45deg); }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: var(--s-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.menu__panel a:hover { background: var(--bg-hover); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
}
@media (max-width: 420px) {
  .site-header__cta .btn__long { display: none; }
}
@media (min-width: 421px) {
  .site-header__cta .btn__short { display: none; }
}

/* footer */

.site-footer {
  margin-top: var(--s-14);
  padding: var(--s-14) 0 var(--s-8);
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
  font-size: var(--fs-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8) var(--s-6);
}
.site-footer__about { grid-column: 1 / -1; max-width: 34ch; color: var(--text-2); }
.site-footer__about .logo { margin-bottom: var(--s-2); }
.site-footer h2 {
  font-size: var(--fs-sm);
  letter-spacing: 0;
  margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; display: grid; gap: var(--s-1); }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-2);
  text-decoration: none;
}
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  color: var(--text-3);
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .site-footer__about { grid-column: auto; }
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }

.btn--secondary { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn--secondary:hover { border-color: var(--line-input); background: var(--bg-sunk); color: var(--text); }

.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn--danger { background: var(--danger); color: var(--text-on-accent); }
.btn--danger:hover { background: var(--danger-hover); color: var(--text-on-accent); }

.btn--danger-outline { border-color: var(--danger-line); color: var(--danger); }
.btn--danger-outline:hover { background: var(--danger-soft); color: var(--danger-hover); }

.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
}
.linkbtn:hover { color: var(--text); text-decoration-color: currentColor; }

/* forms */

.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--text-3); }
.field__hint { font-size: var(--fs-sm); color: var(--text-2); }
.field__error { font-size: var(--fs-sm); color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line-input);
  border-radius: var(--r);
  background: var(--bg);
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.52 0.12 158 / 0.18);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg-sunk); color: var(--text-3); cursor: not-allowed; }

.select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23525a56' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
}

.select--inline { width: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: var(--fs-sm); margin-left: var(--s-2); }

.textarea { min-height: 120px; resize: vertical; field-sizing: content; max-height: 420px; }

.input-affix { position: relative; }
.input-affix .input { padding-right: 64px; }
.input-affix__text {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: var(--fs-sm);
  pointer-events: none;
}

.check {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  min-height: var(--tap);
  padding: 10px 0;
  cursor: pointer;
  line-height: 1.45;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid .span-all { grid-column: 1 / -1; }
}

.fgroup {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
}
.fgroup__body { display: grid; gap: var(--s-4); min-width: 0; }
.fgroup__title {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fgroup__head { display: grid; gap: var(--s-1); align-content: start; }
.fgroup__sub { font-size: var(--fs-sm); color: var(--text-2); }
@media (min-width: 900px) {
  .fgroup { grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--s-10); align-items: start; }
}

/* segmented control and toggle chips */

.seg {
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.seg--block { display: flex; }
.seg--block .seg__opt { flex: 1 1 0; }
.seg__opt { position: relative; display: flex; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 var(--s-4);
  border-radius: 7px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.seg__opt input:hover + span { color: var(--text); }
.seg__opt input:checked + span { background: var(--bg); color: var(--text); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.chip:hover { border-color: var(--text-3); background: var(--bg-sunk); color: var(--text); }
.chip__count { font-weight: 400; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip--on, a.chip[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

.chip-toggle { position: relative; display: inline-flex; }
.chip-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--bg);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip-toggle span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-input);
  border-radius: 4px;
  background: var(--bg) center / 10px 8px no-repeat;
}
.chip-toggle input[type="radio"] + span::before { border-radius: 50%; }
.chip-toggle input:hover + span { border-color: var(--text-3); }
.chip-toggle input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.chip-toggle input:checked + span::before {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%23fcfdfc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip-toggle input[type="radio"]:checked + span::before { background-image: none; box-shadow: inset 0 0 0 3px var(--bg); }
.chip-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* status, badges, alerts */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.status--review { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-ink); }
.status--rejected { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.status--hidden, .status--expired { color: var(--text-2); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.alert {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-sunk);
  font-size: var(--fs-sm);
}
.alert__title { font-size: var(--fs-base); font-weight: 600; }
.alert--warn { background: var(--warn-soft); border-color: var(--warn-line); }
.alert--warn .alert__title { color: var(--warn-ink); }
.alert--danger { background: var(--danger-soft); border-color: var(--danger-line); }
.alert--danger .alert__title { color: var(--danger); }
.alert--ok { background: var(--accent-soft); border-color: var(--accent-line); }
.alert--ok .alert__title { color: var(--accent-ink); }

.note { font-size: var(--fs-sm); color: var(--text-3); }

/* metro */

.metro { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.metro__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}
.l-m1 { background: #d6083b; }
.l-m2 { background: #2dbe2c; }
.l-m3 { background: #0078be; }
.l-m4 { background: #00bfff; }
.l-m5 { background: #8d5b2d; }
.l-m6 { background: #ed9121; }
.l-m7 { background: #800080; }
.l-m8 { background: #ffd702; }
.l-m9 { background: #999999; }
.l-m10 { background: #99cc00; }
.l-m11 { background: #82c0c0; }
.l-m12 { background: #a1b3d4; }
.l-m14 { background: #fcfdfc; box-shadow: inset 0 0 0 2px #d6083b; }
.l-m15 { background: #de64a1; }
.l-s1 { background: #d6083b; }
.l-s2 { background: #0078c9; }
.l-s3 { background: #009a49; }
.l-s4 { background: #ea7125; }
.l-s5 { background: #702785; }

/* photo placeholder */

.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--bg-sunk) var(--ph-plan) center / 34% auto no-repeat;
}
.ph__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--s-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* listing card */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8) var(--s-6);
  list-style: none;
}
@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: grid;
  gap: var(--s-3);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-lg);
}
.card:hover { color: var(--text); }
.card:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
  box-shadow: inset 0 0 0 1px oklch(0.22 0.012 165 / 0.04);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.025); }
.card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: oklch(0.22 0.012 165 / 0.72);
  color: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.card__body { display: grid; gap: 2px; }
.card__title { font-size: var(--fs-base); font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.card__price { font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.card__price b { font-weight: 600; }
.card__price span { color: var(--text-2); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--fs-sm); color: var(--text-2); }
.feats.card__feats {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card__feats li { display: inline; }
.card__feats li + li::before { margin: 0 6px; }

.feats { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; }
.feats li { white-space: nowrap; }
.feats li + li::before { content: "\00B7"; margin: 0 7px; color: var(--text-3); }

/* compact listing row (hero preview) */

.mini-list { list-style: none; display: grid; }
.mini {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3);
  margin: 0 calc(var(--s-3) * -1);
  border-radius: var(--r);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.mini:hover { background: var(--bg-hover); color: var(--text); }
.mini__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-sunk); }
.mini__media img { width: 100%; height: 100%; object-fit: cover; }
.mini__media .ph { background-size: 54% auto; }
.mini__title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.mini__price { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mini__meta { font-size: var(--fs-sm); color: var(--text-2); }

/* hero */

.hero { padding: var(--s-10) 0 var(--s-14); }
.hero__grid { display: grid; gap: var(--s-10); }
.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero__title span { display: block; color: var(--text-3); }
.hero__sub { margin-top: var(--s-4); font-size: var(--fs-md); color: var(--text-2); max-width: 46ch; }
.hero__search { margin-top: var(--s-8); }
.hero__types { margin-top: var(--s-5); }
.hero__owner { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--text-2); }
.hero__owner a { font-weight: 600; }
.hero__aside {
  align-self: start;
  padding: var(--s-5) var(--s-5) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--sh-1);
}
.hero__aside-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.hero__aside-head h2 { font-size: var(--fs-base); letter-spacing: -0.005em; }
.hero__aside-head a { font-size: var(--fs-sm); font-weight: 600; }
@media (min-width: 1024px) {
  .hero { padding: var(--s-18) 0 var(--s-8); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-14); align-items: start; }
  .hero__aside { margin-top: var(--s-3); }
}

.cities { margin-top: var(--s-8); }
.cities__label { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-2); }
.cities__list { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); list-style: none; }
.cities__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}
.cities__list a:hover { text-decoration-color: currentColor; }
.cities__list span { margin-left: 6px; color: var(--text-3); font-weight: 400; font-variant-numeric: tabular-nums; }

/* search box */

.search {
  display: grid;
  gap: var(--s-2);
}
.search__label { font-weight: 600; font-size: var(--fs-base); }
.search__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding: var(--s-2);
  border: 1px solid var(--line-input);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--sh-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.52 0.12 158 / 0.18); }
.search__input {
  width: 100%;
  min-height: 52px;
  max-height: 160px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  font-size: var(--fs-md);
  line-height: 1.4;
  resize: none;
  field-sizing: content;
}
.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--text-3); opacity: 1; }
.search__hint { font-size: var(--fs-sm); color: var(--text-2); }
.search--compact .search__input { min-height: 44px; padding: 9px 10px; font-size: var(--fs-base); }
@media (min-width: 640px) {
  .search__box { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .search__box .btn { min-width: 120px; }
}

/* waiting state and skeletons */

.wait { display: grid; gap: var(--s-6); padding: var(--s-6) 0; }
.wait__text {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
}
.wait__text::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.skel-card { display: grid; gap: var(--s-3); }
.skel {
  border-radius: var(--r-sm);
  background: var(--bg-hover);
  animation: pulse 1.4s ease-in-out infinite;
}
.skel--media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.skel--line { height: 14px; }
.skel--w80 { width: 80%; }
.skel--w50 { width: 50%; }
.skel--w60 { width: 60%; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.55; } }

/* understood query */

.understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.understood__label { font-size: var(--fs-sm); color: var(--text-2); margin-right: var(--s-1); }
.qchip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.understood__edit { font-size: var(--fs-sm); margin-left: var(--s-1); }

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.results-meta strong { color: var(--text); font-size: var(--fs-base); }

/* filters */

.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
}
.filters .field__label { font-size: var(--fs-xs); color: var(--text-2); }
.filters__type { grid-column: 1 / -1; }
.filters__checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.filters__actions { grid-column: 1 / -1; display: flex; gap: var(--s-3); align-items: center; }
.filters__actions .btn { flex: 1; }
@media (min-width: 900px) {
  .filters {
    grid-template-columns: minmax(180px, 1.4fr) minmax(96px, 0.7fr) minmax(130px, 1fr) auto auto;
    align-items: end;
    gap: var(--s-4);
  }
  .filters__type { grid-column: auto; }
  .filters__checks { grid-column: auto; flex-wrap: nowrap; gap: var(--s-4); }
  .filters__checks .check { padding: 0; white-space: nowrap; align-items: center; }
  .filters__actions { grid-column: auto; }
  .filters__actions .btn { flex: none; }
}

.chips + .filters { margin-top: var(--s-4); }
.city-search { margin-top: var(--s-4); }
.city-filters .filters__checks .check { min-height: 40px; padding: 8px 0; }
@media (min-width: 900px) {
  .city-filters { grid-template-columns: minmax(96px, 0.5fr) minmax(150px, 0.8fr) auto auto; }
}

/* pagination */

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-10);
  list-style: none;
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 var(--s-3);
  border-radius: var(--r);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.pager a:hover { background: var(--bg-hover); }
.pager [aria-current="page"] { background: var(--text); color: var(--bg); }
.pager .pager__gap { color: var(--text-3); min-width: 24px; padding: 0; }
.pager [aria-disabled="true"] { color: var(--text-3); }

/* empty state */

.empty {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  padding: var(--s-8);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty h2, .empty h3 { font-size: var(--fs-md); }
.empty p { color: var(--text-2); max-width: 56ch; }
.empty .btn-row { margin-top: var(--s-2); }
.empty--center { justify-items: center; text-align: center; }

/* coworking list */

.cw-list { list-style: none; border-top: 1px solid var(--line); }
.cw-list > li { border-bottom: 1px solid var(--line); }
.cw {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-1) var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  color: var(--text);
  text-decoration: none;
}
.cw:hover { color: var(--text); }
.cw:hover .cw__name { text-decoration: underline; text-decoration-color: var(--line-strong); }
.cw__logo {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-base);
}
.cw__logo img { width: 22px; height: 22px; object-fit: contain; }
.cw__logo--lg { width: 56px; height: 56px; font-size: var(--fs-lg); border-radius: var(--r-lg); }
.cw__logo--lg img { width: 30px; height: 30px; }
.cw__main { display: grid; gap: 2px; min-width: 0; }
.cw__name { font-weight: 600; }
.cw__metro { font-size: var(--fs-sm); color: var(--text-2); }
.cw__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--s-5);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.cw__prices b { color: var(--text); font-weight: 600; }
@media (min-width: 768px) {
  .cw { grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
  .cw__logo { grid-row: auto; }
  .cw__prices { justify-content: flex-end; text-align: right; }
}
.cw-note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-3); }

/* owners block and calculators */

.owner { display: grid; gap: var(--s-8); }
.owner__title { font-size: var(--fs-xl); letter-spacing: -0.025em; max-width: 18ch; }
.owner__text { margin-top: var(--s-3); color: var(--text-2); max-width: 48ch; }
.owner__list { margin-top: var(--s-5); display: grid; gap: var(--s-2); list-style: none; font-size: var(--fs-sm); }
.owner__list li { display: flex; gap: var(--s-3); }
.owner__list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23067d4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 900px) {
  .owner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-14); align-items: center; }
  .owner__title { font-size: var(--fs-2xl); }
}

.calc {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--sh-1);
}
.calc__title { font-size: var(--fs-base); }
.calc__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.calc__inputs > :first-child { grid-column: 1 / -1; }
@media (min-width: 520px) {
  .calc__inputs > :first-child { grid-column: auto; }
  .calc__inputs { grid-template-columns: 1.4fr 1fr 1fr; }
}
.calc__result {
  display: grid;
  gap: var(--s-1);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.calc__label { font-size: var(--fs-sm); color: var(--text-2); }
.calc__value {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.calc__value small { font-size: var(--fs-md); font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.calc__detail { font-size: var(--fs-sm); color: var(--text-2); }
.calc__cta { margin-top: var(--s-2); white-space: normal; }

/* how it works */

.how { display: grid; gap: var(--s-10); }
.how__col h3 { margin-bottom: var(--s-5); }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-5); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s-3);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.steps b { display: block; font-weight: 600; }
.steps p { color: var(--text-2); font-size: var(--fs-sm); margin-top: 2px; }
@media (min-width: 900px) {
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-14); }
}

/* listing page */

.gallery { display: grid; gap: var(--s-2); }
.gallery__main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .ph { background-size: 22% auto; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-2);
  list-style: none;
}
.gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--bg-sunk);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
@media (min-width: 768px) {
  .gallery__main { aspect-ratio: 3 / 2; }
}

.listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
.listing__body { display: grid; gap: var(--s-10); min-width: 0; }
.listing__aside { display: grid; gap: var(--s-2); align-content: start; }
.listing__head h1 { font-size: var(--fs-xl); }
.listing__where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-3);
  color: var(--text-2);
}
.listing__section h2 { font-size: var(--fs-md); margin-bottom: var(--s-4); }
@media (min-width: 1024px) {
  .listing { grid-template-columns: minmax(0, 1fr) 360px; column-gap: var(--s-14); row-gap: var(--s-10); align-items: start; }
  .listing__head { grid-column: 1; grid-row: 1; }
  .listing__gallery { grid-column: 1; grid-row: 2; }
  .listing__body { grid-column: 1; grid-row: 3; }
  .listing__aside { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 88px; }
  .listing__head + .listing__aside + .listing__body { grid-row: 2; }
  .listing__head h1 { font-size: var(--fs-2xl); }
}

.params {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.params__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.params dt { color: var(--text-2); }
.params dd { font-weight: 600; }
.params dd.no { font-weight: 400; color: var(--text-3); }
@media (min-width: 640px) {
  .params { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); }
}

.prose { max-width: 68ch; display: grid; gap: var(--s-4); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: var(--s-1); }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s-4); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--s-2); }

.address { display: grid; gap: var(--s-2); }
.address__line { font-weight: 600; }

.contact-box {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--sh-2);
}
.contact-box__price { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.contact-box__price span { font-size: var(--fs-base); font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.contact-box__facts { font-size: var(--fs-sm); color: var(--text-2); }
.contact-box__note { font-size: var(--fs-xs); color: var(--text-3); }

.contacts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contacts__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  min-height: var(--tap);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.contacts__row dt { color: var(--text-2); }
.contacts__row dd { font-weight: 600; overflow-wrap: anywhere; }
.contacts__row a { color: var(--text); }
.contacts__who { padding: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--text-2); }

.report { font-size: var(--fs-sm); }
.report > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.18em;
}
.report > summary::-webkit-details-marker { display: none; }
.report > summary:hover { color: var(--text); }
.report__form {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-sunk);
}
.report__form .check { min-height: 36px; padding: 6px 0; }
.report__form .btn { justify-self: start; margin-top: var(--s-2); }

/* coworking page */

.cw-head { display: flex; gap: var(--s-4); align-items: center; }
.cw-head h1 { font-size: var(--fs-xl); }
@media (min-width: 768px) {
  .cw-head h1 { font-size: var(--fs-2xl); }
}
.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.price-table th, .price-table td { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { font-weight: 400; color: var(--text-2); width: 55%; }
.price-table td { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 1px solid var(--line); }

/* manage page */

.manage-head {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.manage-head__top { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; }
.manage-head__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
}
.manage-head__thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-sunk); }
.manage-head__thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-head__thumb .ph { background-size: 54% auto; }
.manage-head__title { font-weight: 600; }
.manage-head__meta { font-size: var(--fs-sm); color: var(--text-2); }
.manage-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.manage-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-8);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.manage-stats b { display: block; color: var(--text); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }

.secret-link { display: grid; gap: var(--s-2); }
.secret-link .input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: var(--fs-sm); background: var(--bg); }

.danger-zone > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--danger);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  list-style: none;
}
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone__body { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-2); }

.state-list { display: grid; gap: var(--s-3); margin: var(--s-3) 0 var(--s-4); list-style: none; }
.state-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--text-2); }

/* new listing form */

.mode { display: grid; gap: var(--s-3); margin-bottom: var(--s-2); }
.mode .seg { display: flex; }
.mode .seg__opt { flex: 1 1 0; }
.mode .seg__opt span { padding: 4px 10px; }
@media (min-width: 640px) {
  .mode { justify-items: start; }
  .mode .seg { display: inline-flex; }
  .mode .seg__opt span { padding: 0 var(--s-4); }
  .mode .seg__opt { flex: none; }
}
.textarea.mode__text { min-height: 200px; }
.mode__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.uploads { display: grid; gap: var(--s-3); }
.uploads__drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--s-1);
  min-height: 112px;
  padding: var(--s-5);
  border: 1px dashed var(--line-input);
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.uploads__drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.uploads__drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.uploads__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.uploads__drop b { font-weight: 600; color: var(--accent-ink); }
.uploads__drop span { font-size: var(--fs-sm); color: var(--text-2); }
.uploads__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  list-style: none;
}
@media (min-width: 640px) {
  .uploads__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.uploads__item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-sunk); }
.uploads__item img { width: 100%; height: 100%; object-fit: cover; }
.uploads__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.uploads__remove::before {
  content: "\00D7";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: oklch(0.22 0.012 165 / 0.75);
  color: var(--bg);
  font-size: 16px;
  line-height: 1;
}
.uploads__cover {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: oklch(0.22 0.012 165 / 0.75);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
}
.uploads__status { font-size: var(--fs-sm); color: var(--text-2); }
.uploads__list:empty, .uploads__status:empty { display: none; }
.uploads__status--error { color: var(--danger); }

.submit-bar {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.submit-bar .btn { justify-self: stretch; }
@media (min-width: 640px) {
  .submit-bar .btn { justify-self: start; min-width: 240px; }
}

/* tool page */

.tool { display: grid; gap: var(--s-8); }
.tool__form { display: grid; gap: var(--s-4); align-content: start; }
.tool__result {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
}
.tool__big {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tool__big small { font-size: var(--fs-md); font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.breakdown { display: grid; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown__row dt { color: var(--text-2); }
.breakdown__row dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown__row--total dt, .breakdown__row--total dd { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-10); align-items: start; }
}

.cta-band {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-8);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-sunk);
}
.cta-band h2 { font-size: var(--fs-lg); max-width: 28ch; }
.cta-band p { color: var(--text-2); max-width: 60ch; }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-8); }
}

.tool-links { list-style: none; display: grid; gap: 0; margin-top: var(--s-3); border-top: 1px solid var(--line); }
.tool-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.tool-links a::after { content: "\2192"; color: var(--text-3); transition: transform var(--dur) var(--ease); }
.tool-links a:hover::after { transform: translateX(3px); color: var(--text); }

/* 404 */

.notfound { padding: var(--s-18) 0 var(--s-10); display: grid; gap: var(--s-4); max-width: 640px; }
.notfound__code { font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.notfound .search { margin-top: var(--s-4); }

/* legal and guide */

.legal {
  max-width: calc(760px + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s-10) var(--gutter) var(--s-14);
}
.prose h1 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.prose h2 + p, .prose h3 + p { margin-top: calc(var(--s-2) * -1); }
.prose a { overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
@media (min-width: 768px) {
  .prose h1 { font-size: var(--fs-2xl); }
}

/* messages */

.message { padding: var(--s-14) 0 var(--s-10); display: grid; gap: var(--s-4); max-width: 640px; }
.message .btn-row { margin-top: var(--s-2); }

/* form extras */

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.tri-list { display: grid; border-top: 1px solid var(--line); }
.tri {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.tri legend { float: left; font-size: var(--fs-sm); font-weight: 600; }
.tri .seg__opt span { min-height: 34px; padding: 0 var(--s-3); }

.form-alert { margin-bottom: var(--s-6); }

.disclosure { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
  padding: 0 var(--s-5);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after { content: "+"; font-size: var(--fs-lg); font-weight: 400; color: var(--text-3); line-height: 1; }
.disclosure[open] > summary::after { content: "\2212"; }
.disclosure > summary:hover { background: var(--bg-sunk); border-radius: var(--r-lg); }
.disclosure__body { padding: 0 var(--s-5) var(--s-5); }
.disclosure__body .fgroup:first-child { border-top: 0; }
.disclosure__body .fgroup { grid-template-columns: minmax(0, 1fr); }

/* manage extras */

.manage-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); list-style: none; }
@media (min-width: 640px) {
  .manage-photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.manage-photo { display: grid; gap: var(--s-1); }
.manage-photo__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-sunk); }
.manage-photo__media img { width: 100%; height: 100%; object-fit: cover; }
.manage-photo__media .ph { background-size: 54% auto; }
.manage-photo .badge { position: absolute; left: 4px; bottom: 4px; }
.manage-photo .linkbtn { min-height: 32px; font-size: var(--fs-xs); }
.manage-block { display: grid; gap: var(--s-4); }
.manage-block h2 { font-size: var(--fs-md); }
.inline-form { display: inline; }

/* result */

.result { display: grid; gap: var(--s-5); padding: var(--s-10) 0 var(--s-6); max-width: 760px; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
@media (min-width: 640px) {
  .copy-row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* tools index, owner aside */

.tool-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.tool-list a {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.tool-list b { font-size: var(--fs-md); font-weight: 600; }
.tool-list a:hover b { text-decoration: underline; text-decoration-color: var(--line-strong); }
.tool-list span { color: var(--text-2); font-size: var(--fs-sm); max-width: 70ch; }

.owner-cta { display: grid; gap: var(--s-3); padding-bottom: var(--s-3); }
.owner-cta p { font-size: var(--fs-sm); color: var(--text-2); }

.contacts-out { display: grid; gap: var(--s-2); }
.contacts-out .field__error { padding-top: var(--s-2); }

/* admin */

.admin { padding: var(--s-8) 0 var(--s-14); display: grid; gap: var(--s-10); }
.admin > *, .admin-grid > * { min-width: 0; }
.admin h2 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.admin h3 { font-size: var(--fs-sm); margin: var(--s-4) 0 var(--s-2); color: var(--text-2); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.flags { list-style: none; display: grid; gap: var(--s-2); }
.flags li { padding: var(--s-3) var(--s-4); border: 1px solid var(--danger-line); border-radius: var(--r); background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: var(--fs-sm); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 768px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.kpis--spaced { margin-top: var(--s-4); }
.kpi { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); background: var(--bg); }
.kpi span { font-size: var(--fs-xs); color: var(--text-2); }
.kpi b { font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.data-table th { background: var(--bg-sunk); font-weight: 600; color: var(--text-2); }
.data-table td.wrap-cell { white-space: normal; min-width: 220px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }
.admin-grid { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) {
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.log-tail { margin: 0; padding: var(--s-3); border-radius: var(--r); background: var(--bg-sunk); font-size: var(--fs-xs); overflow-x: auto; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .skel { animation: none; }
}

@media print {
  .site-header, .site-footer, .contact-box, .report { display: none; }
}
