/* ============================================================
   PhnomPenhRental — design system
   Light marketplace language (Redfin-inspired system, own assets).
   Palette + type + components in one file. No frameworks.
   ============================================================ */

:root {
  --white: #ffffff;
  --cloud: #f4f8fc;
  --blue: #1b5fbf;
  --blue-dark: #14498f;
  --blue-tint: #e8f0fa;
  --saffron: #f5a623;
  --saffron-tint: #fdf0d7;
  --saffron-ink: #7a5200;
  --green: #1fa97c;
  --green-tint: #e2f5ee;
  --green-ink: #0c6b4d;
  --wa: #25d366;
  --tg: #2aabee;
  --ink: #1e2a38;
  --ink-2: #5a6b7b;
  --line: #e3eaf2;
  --shadow: 0 2px 8px rgba(30, 42, 56, 0.08);
  --shadow-lg: 0 8px 28px rgba(30, 42, 56, 0.12);
  --r: 10px;
  --r-lg: 14px;
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
  --sticky-bar-h: 58px;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

/* ------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 800;
}
h2 {
  font-size: clamp(24px, 3.4vw, 34px);
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 17px;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.prose a,
p a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 14px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 56px 0;
}
.section--cloud {
  background: var(--cloud);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 26px;
}
.section-head p {
  margin: 0;
  color: var(--ink-2);
}
.kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-dark);
}
.btn--outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--wa {
  background: var(--wa);
  color: var(--ink);
}
.btn--tg {
  background: var(--tg);
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--lg {
  font-size: 17px;
  padding: 16px 28px;
}
.btn--sm {
  font-size: 14px;
  padding: 9px 16px;
}

/* ------------------------------------------------ header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  margin-right: auto;
}
.logo > img {
  width: 40px;
  height: 40px;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__mark {
  width: auto;
  height: 21px;
  display: block;
}
.logo__word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.logo__word span {
  color: var(--saffron);
}
.logo__micro {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 3px;
  white-space: nowrap;
}
.nav {
  display: none;
}
.header__cta {
  display: none;
}
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--blue);
  background: var(--blue-tint);
  text-decoration: none;
}

/* mobile menu (checkbox hack — works without JS) */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#menu-state {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 0 18px;
}
#menu-state:checked ~ .mobile-menu {
  display: block;
}
#menu-state:checked ~ .header__in .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-state:checked ~ .header__in .menu-toggle span:nth-child(2) {
  opacity: 0;
}
#menu-state:checked ~ .header__in .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu a {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.mobile-menu .btn {
  margin: 10px 20px 0;
}
.header .wa-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--wa);
}
.header .wa-mini svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
}

@media (max-width: 430px) {
  .logo > img {
    width: 34px;
    height: 34px;
  }
  .logo__mark {
    height: 17px;
  }
  .header__in {
    gap: 10px;
  }
}

@media (min-width: 980px) {
  .nav {
    display: flex;
    gap: 2px;
    margin: 0 auto;
    padding: 0 16px;
    flex-wrap: nowrap;
  }
  .header__cta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: none;
  }
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .logo {
    margin-right: 0;
    flex: none;
  }
}

/* Compact desktop (980–1239px): icon-only WhatsApp, smaller lockup, tighter nav */
@media (min-width: 980px) and (max-width: 1239px) {
  .logo__mark {
    height: 18px;
  }
  .logo > img {
    width: 36px;
    height: 36px;
  }
  .logo__micro {
    font-size: 8.5px;
    letter-spacing: 0.11em;
  }
  .nav a {
    font-size: 14px;
    padding: 8px 8px;
  }
  .header__cta .btn--wa {
    display: none;
  }
  .header .wa-mini {
    width: 40px;
    height: 40px;
  }
  .header .wa-mini svg {
    width: 20px;
    height: 20px;
  }
}

/* Full desktop (≥1240px): text WhatsApp pill, no round icon */
@media (min-width: 1240px) {
  .header .wa-mini {
    display: none !important;
  }
}

/* ------------------------------------------------ hero */
.hero {
  position: relative;
  background: var(--cloud);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img,
.hero__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 48, 0.42) 0%, rgba(20, 32, 48, 0.55) 100%);
}
.hero__in {
  position: relative;
  z-index: 1;
  padding: 84px 0 96px;
  text-align: center;
  color: #fff;
}
.hero__in h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(10, 20, 34, 0.45);
  margin-bottom: 10px;
}
.hero__sub {
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 12px rgba(10, 20, 34, 0.55);
}
.hero--place .hero__in {
  padding: 130px 20px 120px;
}
.hero--place .hero__media img {
  object-position: center 62%;
}
.hero--place .hero__media::after {
  background: linear-gradient(180deg, rgba(20, 32, 48, 0.25) 0%, rgba(20, 32, 48, 0.45) 100%);
}
@media (max-width: 640px) {
  .hero--place .hero__in {
    padding: 84px 20px 76px;
  }
}
.hero--flat .hero__in {
  color: var(--ink);
  text-align: left;
  padding: 60px 0;
}
.hero--flat .hero__in h1 {
  color: var(--ink);
  text-shadow: none;
}

/* search bar */
.search {
  display: grid;
  gap: 10px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.search select,
.search input {
  width: 100%;
}
.search .btn {
  width: 100%;
}
@media (min-width: 768px) {
  .search {
    grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr auto;
    align-items: center;
  }
  .search .btn {
    width: auto;
  }
}

/* ------------------------------------------------ forms */
label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='url'],
select,
textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue-tint);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.field {
  margin-bottom: 16px;
}
.field-row {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
  .field-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 15px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  cursor: pointer;
  margin: 0;
}
.checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.form-note {
  font-size: 14px;
  color: var(--ink-2);
}
.form-error {
  color: #b3261e;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #b3261e;
}
.field.invalid .form-error {
  display: block;
}
.form-success {
  background: var(--green-tint);
  border: 1.5px solid var(--green);
  color: var(--green-ink);
  border-radius: var(--r-lg);
  padding: 22px;
}
.form-fail {
  background: #fdeceb;
  border: 1.5px solid #b3261e;
  color: #7c1a14;
  border-radius: var(--r-lg);
  padding: 18px;
}

/* multi-step */
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}
.steps li {
  list-style: none;
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: var(--line);
}
.steps li.done {
  background: var(--green);
}
.steps li.now {
  background: var(--blue);
}
.steps {
  padding: 0;
}
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.step-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ------------------------------------------------ cards */
.grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: block;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none !important;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cloud);
  position: relative;
}
.card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card__media img {
  transform: scale(1.045);
}
.card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.card__body {
  display: block;
  padding: 15px 16px 17px;
}
.card__price {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.card__title {
  display: block;
}
.card__price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 7px 0 5px;
}
.card__facts b {
  color: var(--ink);
  font-weight: 600;
}
.card__loc {
  font-size: 14.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  margin: 4px 0 2px;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
}
.badge--available {
  background: var(--green);
  color: #06281c;
}
.badge--featured {
  background: var(--saffron);
  color: #4a3000;
}
.badge--soft-green {
  background: var(--green-tint);
  color: var(--green-ink);
}
.badge--soft-saffron {
  background: var(--saffron-tint);
  color: var(--saffron-ink);
}
.badge--soft-blue {
  background: var(--blue-tint);
  color: var(--blue-dark);
}

/* district tiles */
.tile {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  color: #fff;
  text-decoration: none !important;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tile:hover img {
  transform: scale(1.05);
}
.tile__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 13px;
  background: linear-gradient(180deg, transparent, rgba(16, 26, 40, 0.78));
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
}
.tile__label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  opacity: 0.92;
}

/* ------------------------------------------------ trust strip */
.trust {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust__icon svg {
  width: 22px;
  height: 22px;
}
.trust__item h3 {
  font-size: 15.5px;
  margin: 2px 0 3px;
}
.trust__item p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
}

/* ------------------------------------------------ property page */
.gallery {
  display: grid;
  gap: 10px;
}
.gallery a {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.gallery__main img {
  aspect-ratio: 16 / 10;
}
@media (min-width: 768px) {
  .gallery {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 1fr;
  }
  .gallery__main {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}
.gallery__more {
  position: relative;
}
.gallery__more span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 26, 40, 0.55);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}

.prop-layout {
  display: grid;
  gap: 34px;
}
@media (min-width: 980px) {
  .prop-layout {
    grid-template-columns: 1.7fr 1fr;
    align-items: start;
  }
}
.prop-aside {
  position: sticky;
  top: 86px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.prop-aside .btn {
  width: 100%;
  margin-bottom: 10px;
}
.prop-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
}
.prop-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.facts-table th,
.facts-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.facts-table th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-2);
  width: 45%;
  font-weight: 600;
}
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 9px;
  padding: 0;
  margin: 0;
}
.amenities li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  background: var(--cloud);
  border-radius: var(--r);
  padding: 10px 13px;
}
.amenities svg {
  width: 17px;
  height: 17px;
  color: var(--green-ink);
  flex: none;
}
.map-ph {
  border-radius: var(--r-lg);
  background: var(--blue-tint);
  border: 1.5px dashed var(--blue);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* ------------------------------------------------ tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 15px;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-family: var(--font-head);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--cloud);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Long listing grids: skip rendering offscreen cards (big layout win) */
.js-listing-grid .card {
  content-visibility: auto;
  contain-intrinsic-size: 340px 420px;
}

/* ------------------------------------------------ filter bar (/rent/) */
.filterbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
@media (min-width: 900px) {
  .filterbar {
    grid-template-columns: repeat(6, 1fr) auto;
    align-items: end;
  }
}
.filterbar label {
  font-size: 12.5px;
  margin-bottom: 4px;
}
.filterbar select {
  padding: 10px 12px;
  font-size: 15px;
}
.result-count {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0 0 16px;
}

/* ------------------------------------------------ feature grid */
.features {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}
.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature__icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 17px;
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}

/* number steps (renters page) */
.numsteps {
  display: grid;
  gap: 20px;
  counter-reset: ns;
}
@media (min-width: 768px) {
  .numsteps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.numstep {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  counter-increment: ns;
}
.numstep::before {
  content: counter(ns);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ------------------------------------------------ banners */
.banner {
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--blue) 0%, #2f7ad6 100%);
  color: #fff;
  padding: 36px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.banner h2 {
  color: #fff;
  margin: 0 0 6px;
}
.banner p {
  margin: 0;
  opacity: 0.93;
}
.banner .btn {
  flex: none;
}
.banner--saffron {
  background: var(--saffron-tint);
  color: var(--ink);
}
.banner--saffron h2 {
  color: var(--ink);
}

/* ------------------------------------------------ guides */
.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: 26px;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose li {
  margin-bottom: 6px;
}
.prose blockquote {
  border-left: 4px solid var(--saffron);
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  color: var(--ink-2);
}
.guide-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none !important;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.guide-card h3 {
  margin: 10px 0 8px;
}
.guide-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0;
}

/* ------------------------------------------------ FAQ */
.faq {
  max-width: 760px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--blue);
  flex: none;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details > div {
  padding: 0 0 16px;
  color: var(--ink-2);
}

/* ------------------------------------------------ pricing */
.price-cols {
  display: grid;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .price-cols {
    grid-template-columns: 1fr 1fr;
  }
}
.price-col {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.price-col .big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  margin: 6px 0;
}
.price-col ul {
  padding: 0;
  margin: 14px 0 22px;
  flex: 1;
}
.price-col li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 15px;
}
.price-col li svg {
  width: 18px;
  height: 18px;
  color: var(--green-ink);
  flex: none;
  margin-top: 3px;
}

/* ------------------------------------------------ sticky mobile CTA bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(30, 42, 56, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px 6px;
  color: var(--ink);
  text-decoration: none !important;
}
.sticky-bar a + a {
  border-left: 1px solid var(--line);
}
.sticky-bar svg {
  width: 19px;
  height: 19px;
}
.sticky-bar .s-wa svg {
  color: #128c4b;
}
.sticky-bar .s-tg svg {
  color: #1181bb;
}
.sticky-bar .s-call svg {
  color: var(--blue);
}
@media (min-width: 768px) {
  .sticky-bar {
    display: none;
  }
  body {
    padding-bottom: 0 !important;
  }
}
body {
  padding-bottom: var(--sticky-bar-h);
}

/* ------------------------------------------------ footer */
.footer {
  background: var(--cloud);
  border-top: 1px solid var(--line);
  padding: 52px 0 30px;
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  gap: 30px;
  margin-bottom: 34px;
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer .footer__h {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.footer ul {
  padding: 0;
  margin: 0;
}
.footer li {
  list-style: none;
  margin-bottom: 8px;
}
.footer a {
  color: var(--ink);
}
.footer a:hover {
  color: var(--blue);
}
.footer__brand p {
  color: var(--ink-2);
  max-width: 34ch;
}
.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--ink-2);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
.footer__contacts {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ------------------------------------------------ breadcrumbs */
.crumbs {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 18px 0;
}
.crumbs ol {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.crumbs li {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.crumbs li + li::before {
  content: '›';
  color: var(--ink-2);
  margin: 0 3px;
}

/* ------------------------------------------------ motion */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------ misc */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--cloud);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none !important;
}
.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-30 {
  margin-bottom: 30px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.icon-inline {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
}
.empty-state img {
  width: 180px;
  margin: 0 auto 18px;
}
