/* Rent Tax CY (working name). Shared stylesheet for all pages, EN and RU. */

:root {
  --ink: #101312;
  --paper: #ffffff;
  --wash: #f0f2ef;
  --line: #c6ccc7;
  --muted: #444b47;
  --accent: #0b5d4b;
  --mark: #f7dc5a;
  --mark-soft: #fcf2b8;
  --danger: #a5251a;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(1rem, 4.5vw, 2rem);
  --measure: 38rem;
  --page: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p, ul, ol, dl, table, figure { margin: 0 0 1.1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
strong, b { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--mark);
}

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0.5rem; }

/* ---------- banner + header ---------- */
.banner { background: var(--wash); border-bottom: 1px solid var(--line); font-size: 0.875rem; line-height: 1.4; }
.banner p { margin: 0; padding: 0.55rem 0; }

.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); }
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand end" "nav nav";
  align-items: center;
  column-gap: 1rem;
}
.brand {
  grid-area: brand; justify-self: start;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none; padding: 0.9rem 0;
}
.brand span { box-shadow: inset 0 -0.36em 0 var(--mark); padding-inline: 0.05em; }
.brand:hover { text-decoration: none; }
.bar-end { grid-area: end; display: flex; align-items: center; gap: 0.6rem; }

.lang { display: flex; border: 2px solid var(--ink); }
.lang a, .lang span {
  display: flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0.3rem 0.65rem; font-size: 0.9375rem; font-weight: 600;
  color: var(--ink); text-decoration: none; line-height: 1.3;
}
.lang a:hover { background: var(--mark-soft); }
.lang [aria-current="true"] { background: var(--ink); color: #fff; }

.burger {
  display: none; align-items: center; gap: 0.55rem;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.3;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); padding: 0.3rem 0.7rem; cursor: pointer;
  min-width: 2.75rem; min-height: 2.75rem; justify-content: center;
}
.burger i, .burger i::before, .burger i::after {
  display: block; width: 1.05rem; height: 2px; background: var(--ink); position: relative;
}
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; }
.burger i::before { top: -0.34rem; }
.burger i::after { top: 0.34rem; }
.burger[aria-expanded="true"] { background: var(--ink); color: #fff; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); background: #fff; }
.burger[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); background: #fff; }

.nav { grid-area: nav; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 0.8rem 0; color: var(--ink); text-decoration: none; font-weight: 500;
  border-top: 1px solid var(--line);
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0.35rem 0 0 var(--mark); padding-left: 0.9rem; }

.js .burger { display: inline-flex; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }

@media (min-width: 48rem) {
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav end"; }
  .js .burger { display: none; }
  .js .nav, .nav { display: block; justify-self: start; margin-left: 2.5rem; }
  .nav ul { display: flex; gap: 1.75rem; }
  .nav a { border-top: 0; padding: 1.15rem 0 1.0rem; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -0.35rem 0 var(--mark); padding-left: 0; }
}

/* ---------- page head ---------- */
.page-head { padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.page-head h1 { font-size: clamp(1.8rem, 1.1rem + 3.2vw, 3.1rem); font-weight: 600; max-width: 20em; }
.lede { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4rem); line-height: 1.45; max-width: 36rem; margin: 1.1rem 0 0.75rem; }
.fine { font-size: 0.9375rem; color: var(--muted); max-width: 36rem; margin: 0 0 0.5rem; }
.fine a { color: inherit; }

/* ---------- calculator ---------- */
.tool {
  margin-top: 1.75rem; padding: 1.5rem 0 2.5rem;
  border-top: 3px solid var(--ink);
  display: grid; gap: 2.25rem;
}
@media (min-width: 62rem) {
  .tool { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
}
@media (min-width: 62rem) and (min-height: 52rem) {
  .tool-side { position: sticky; top: 1.25rem; }
}
.field { margin-bottom: 1.4rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: 1.125rem; margin-bottom: 0.25rem; }
.hint { color: var(--muted); font-size: 0.9375rem; margin: 0 0 0.45rem; }
.money { display: flex; max-width: 24rem; }
.money > span {
  display: flex; align-items: center; padding: 0 0.9rem;
  border: 2px solid var(--ink); border-right: 0; background: var(--wash);
  font-size: 1.5rem; font-weight: 500;
}
.money input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.75rem; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  height: 4rem; padding: 0 0.8rem; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
}
.field.minor .money > span { font-size: 1.1875rem; }
.field.minor .money input { height: 3rem; font-size: 1.25rem; }
.field.has-error .money > span, .field.has-error .money input { border-color: var(--danger); }
.field.has-error { border-left: 5px solid var(--danger); padding-left: 0.9rem; margin-left: -1.1rem; }
.msg { margin: 0.45rem 0 0; min-height: 1.5rem; font-size: 1rem; }
.has-error .msg { color: var(--danger); font-weight: 600; }
.static-row { display: flex; gap: 0.75rem; align-items: baseline; margin: 0 0 1.4rem; }
.static-row dt { font-weight: 600; }
.static-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 0 -0.4em 0 var(--mark); padding-inline: 0.1em; }

.results { background: var(--wash); padding: 0.4rem 1rem 1.25rem; border-top: 3px solid var(--ink); }
@media (min-width: 40rem) { .results { padding-inline: 1.5rem; } }
.ledger { margin: 0; }
.ledger .row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline;
  padding: 0.85rem 0; border-top: 1px solid var(--line);
}
.ledger .row:first-child { border-top: 0; }
.ledger dt { font-weight: 600; font-size: 1.125rem; }
.ledger dt small { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--muted); line-height: 1.35; }
.ledger dd {
  margin: 0; text-align: right; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; font-size: clamp(2rem, 1.3rem + 2.6vw, 2.9rem);
}
.ledger .total { border-top: 3px solid var(--ink); margin-top: 0.15rem; }
.ledger .total dd { font-weight: 700; }
.ledger.sub .row { padding: 0.6rem 0; }
.ledger.sub dd { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem); }
.ledger .empty { color: #6b726e; font-weight: 400; }
.results h2 { font-size: 1.125rem; font-weight: 600; margin: 1.25rem 0 0.1rem; }
.results h2::before, .prose h2::before { content: ""; display: block; border-top: 3px solid var(--ink); margin-bottom: 1rem; }
.results .note { font-size: 0.9375rem; margin: 0.75rem 0 0; color: var(--ink); }
.results .note + .note { margin-top: 0.5rem; }
.results h2 + .note { margin-top: 0.25rem; }
.trace { font-size: 0.9375rem; margin: 0.6rem 0 0; color: var(--muted); min-height: 1.4em; }

.example { border-top: 3px solid var(--ink); padding-top: 1rem; }
.example h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.9rem; }
.slip {
  font-family: var(--mono); font-size: 0.9375rem; line-height: 1.45;
  margin: 0 0 1.4rem; padding: 0; background: transparent;
}
.slip div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dotted #8c948f; }
.slip dt, .slip dd { margin: 0; }
.slip dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.slip .ind { padding-left: 1rem; color: var(--muted); }
.slip .sum { font-weight: 600; border-bottom: 2px solid var(--ink); }
.slip .final { font-weight: 600; background: var(--mark-soft); padding-inline: 0.4rem; margin-inline: -0.4rem; border-bottom: 0; }
.example h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.3rem; }
.tool-side, .example { min-width: 0; max-width: 100%; }
.try { list-style: none; padding: 0; margin: 0; max-width: 100%; }
.try li { border-top: 1px solid var(--line); min-width: 0; }
.try li:last-child { border-bottom: 1px solid var(--line); }
.try button {
  width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; text-align: left; font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; padding: 0.65rem 0; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: baseline;
}
.try button strong { min-width: 0; font-variant-numeric: tabular-nums; }
.try button span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 0.9375rem; grid-column: 1; font-variant-numeric: tabular-nums; }
.try button em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 0.9375rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }
.try button:hover { background: var(--mark-soft); }

/* ---------- prose ---------- */
.prose { padding-bottom: 1rem; }
.prose > * { max-width: var(--measure); }
.prose h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.05rem); font-weight: 600;
  margin: 2.75rem 0 1rem; max-width: none;
}
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--ink); }
.source { font-size: 0.9375rem; color: var(--muted); }
.source a { color: inherit; }

.table-wrap { max-width: 44rem; overflow-x: auto; margin: 0 0 1.3rem; }
table.data { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.data caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
.data th, .data td { text-align: left; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { border-bottom: 3px solid var(--ink); font-weight: 600; font-size: 0.9375rem; }
.data .r { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data tbody th { font-weight: 400; }
.data .part { display: block; font-size: 0.875rem; color: var(--muted); }
.data .col-you { display: none; }
.data[data-live="1"] .col-you { display: table-cell; }
.data tr.is-yours > * { background: var(--mark-soft); box-shadow: inset 0 1px 0 var(--mark); }
.data tr.is-yours > :first-child { box-shadow: inset 0.4rem 0 0 var(--mark), inset 0 1px 0 var(--mark); padding-left: 0.9rem; }
.data tr.is-yours > :last-child { padding-right: 0.5rem; }
.data tr.is-yours, .data tr.is-yours > th { font-weight: 600; }
.data tr.is-yours .part { font-weight: 400; color: var(--ink); }

/* ---------- guide ---------- */
.strip { display: grid; gap: 0; margin: 1.75rem 0 0; border-top: 3px solid var(--ink); }
.strip > div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.strip dt { font-size: 1rem; color: var(--muted); }
.strip dd { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
@media (min-width: 50rem) {
  .strip { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
  .strip > div { border-bottom: 0; padding: 1rem 0 1.25rem; }
}
.strip-note { font-size: 0.9375rem; color: var(--muted); max-width: 44rem; margin: 0.25rem 0 0; }
.strip-note a { color: inherit; }

.steps-block { margin-top: 2.5rem; }
.steps-block h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.05rem); font-weight: 600; margin: 0 0 0.8rem; max-width: var(--measure); }
.steps-block > p { max-width: var(--measure); }
.steps { list-style: none; margin: 1.25rem 0 0; padding: 0; max-width: 44rem; }
.step { border-top: 1px solid var(--line); position: relative; }
.step:first-child { border-top: 3px solid var(--ink); }
.step label { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding: 1.1rem 0; cursor: pointer; }
.step input { position: absolute; opacity: 0; width: 2.75rem; height: 2.75rem; left: 0; top: 1.1rem; margin: 0; cursor: pointer; }
.box {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 2px solid var(--ink); background: var(--paper);
  font-family: var(--mono); font-size: 1.25rem; font-weight: 500; line-height: 1;
}
.box svg { display: none; width: 1.7rem; height: 1.7rem; }
.box svg path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 26; stroke-dashoffset: 0; }
.step input:checked + .box { background: var(--accent); border-color: var(--accent); }
.step input:checked + .box .n { display: none; }
.step input:checked + .box svg { display: block; }
.step input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--mark); }
.step label:hover .box { background: var(--mark-soft); }
.step input:checked + .box:hover, .step label:hover input:checked + .box { background: var(--accent); }
.step-title { display: block; font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin-top: 0.15rem; }
.step-desc { display: block; margin-top: 0.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .step input:checked + .box svg path { animation: draw 0.28s ease-out; }
  @keyframes draw { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
}
.steps-status {
  position: sticky; bottom: 0; z-index: 5; max-width: 44rem;
  background: var(--paper); border-top: 3px solid var(--ink); padding: 0.85rem 0 0.95rem;
  box-shadow: 0 -0.6rem 0 var(--paper);
}
.steps-status p { margin: 0; line-height: 1.4; }
.steps-status .missing { font-size: 1.125rem; }
.steps-status .count { font-size: 0.9375rem; color: var(--muted); margin-top: 0.15rem; }
.steps-status.is-ready { border-top-color: var(--accent); }
.steps-status.is-ready .missing { color: var(--accent); font-weight: 700; font-size: 1.25rem; }
.steps-after { margin-top: 1rem; }

.callout { max-width: 44rem; margin: 2.5rem 0 2.75rem; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 0.45rem solid var(--mark); }
.callout p:last-child { margin-bottom: 0; }
.callout .lead { font-weight: 600; margin-bottom: 0.35rem; }

/* ---------- waiting list ---------- */
.waitlist { margin-top: 3rem; padding: 1.25rem 0 2.5rem; border-top: 3px solid var(--ink); }
.waitlist-inner { max-width: 34rem; }
.waitlist .what { margin-bottom: 1.1rem; }
.waitlist .price { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.3rem; }
.waitlist .status { margin: 0 0 1.1rem; font-weight: 500; border-left: 0.45rem solid var(--mark); padding-left: 0.75rem; }
.btn {
  display: inline-block; width: 100%; font: inherit; font-size: 1.1875rem; font-weight: 600; line-height: 1.2;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 0;
  padding: 0.95rem 1.4rem; cursor: pointer; text-align: center;
}
@media (min-width: 34rem) { .btn { width: auto; } }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn[disabled] { background: var(--wash); color: var(--muted); border-color: var(--line); cursor: default; }
.waitlist .who { margin: 1.4rem 0 0; }
.waitlist .small { font-size: 0.9375rem; color: var(--muted); margin: 0.9rem 0 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 3px solid var(--ink); background: var(--wash); padding: 1.75rem 0 2.5rem; font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 50rem) { .site-footer .wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; } }
.site-footer p { margin: 0 0 0.6rem; max-width: 40rem; }
.site-footer .brand { padding: 0 0 0.6rem; display: inline-block; font-size: 1.15rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink); }
.operator { font-family: var(--mono); font-size: 0.875rem; }

@media print {
  .banner, .burger, .nav, .lang, .waitlist .btn, .skip { display: none !important; }
  .steps-status { position: static; }
}

/* orchestrator patch 04.11.2026: the single-column .tool track was sized by min-content (nowrap amounts) and ran past the phone viewport */
.tool{grid-template-columns:minmax(0,1fr)}
@media (min-width:50rem){.tool{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}}

.data th, .data td { overflow-wrap: anywhere; min-width: 0; }
