:root {
  --ink: #17201c;
  --ink-soft: #34423c;
  --paper: #f7f7f3;
  --surface: #ffffff;
  --line: #d7ddd8;
  --sage: #315c49;
  --ruby: #a23f35;
  --gold: #d6b765;
  --sky: #dce8ec;
  --shadow: 0 20px 45px rgba(23, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px 32px;
  color: #fff;
  background: rgba(11, 18, 15, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.market-strip,
.focus-list,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
}

.nav-links {
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-cta {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-links a:hover,
.header-cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86svh;
  padding: 130px 32px 72px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-moscow-apartment.png");
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 15, 13, 0.88) 0%, rgba(9, 15, 13, 0.64) 38%, rgba(9, 15, 13, 0.2) 72%),
    linear-gradient(180deg, rgba(9, 15, 13, 0.2) 0%, rgba(9, 15, 13, 0.48) 100%);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--ruby);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin-bottom: 22px;
  font-size: 5.6rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  width: min(640px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin-top: 28px;
}

.hero-contact a,
.contact-link {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-contact span,
.contact-link span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-contact strong,
.contact-link strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.muted-link {
  opacity: 0.82;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--ruby);
  box-shadow: 0 14px 28px rgba(162, 63, 53, 0.26);
}

.button.primary:hover {
  background: #8e342d;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

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

.market-strip div {
  min-height: 150px;
  padding: 30px 32px;
  background: var(--surface);
}

.market-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--sage);
  font-size: 1.9rem;
  font-weight: 850;
}

.market-strip p,
.service-grid p,
.proof-grid p,
.timeline p,
.site-footer p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.split-section,
.agent-section,
.buy-section,
.process-section,
.request-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.split-section,
.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.section-copy p:not(.eyebrow),
.request-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.72;
}

.agent-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.agent-card,
.proof-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agent-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
}

.agent-photo {
  display: grid;
  width: 180px;
  height: 220px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--sage);
  border-radius: 8px;
}

.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-photo span {
  font-size: 4rem;
  font-weight: 900;
}

.agent-card h2 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.agent-card p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-link {
  min-width: min(220px, 100%);
  color: var(--ink);
  border-color: var(--line);
  background: #f5f8f5;
}

.contact-link span {
  color: var(--ruby);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.proof-grid article {
  min-height: 122px;
  padding: 24px;
}

.proof-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 1.35rem;
  font-weight: 850;
}

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

.service-grid article {
  min-height: 240px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--ruby);
  font-weight: 850;
}

.buy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-list {
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  min-height: 44px;
  padding: 12px 16px;
  color: var(--sage);
  background: var(--sky);
  border: 1px solid #c8d8dd;
  border-radius: 999px;
  font-weight: 800;
}

.process-section {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 52px;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  min-height: 112px;
  padding: 24px;
  background: var(--surface);
}

.timeline span {
  color: var(--sage);
  font-weight: 850;
}

.request-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 88px max(32px, calc((100% - 1180px) / 2));
  color: #fff;
  background: var(--ink);
}

.request-section .eyebrow {
  color: var(--gold);
}

.request-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.contact-note {
  margin-top: 34px;
  color: var(--gold);
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.consent-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.consent-row a,
.footer-links a {
  color: var(--ruby);
  text-decoration: underline;
  text-underline-offset: 3px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(214, 183, 101, 0.35);
  border-color: var(--gold);
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--sage);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--ruby);
}

.form-status.is-pending {
  color: var(--sage);
}

.success-panel {
  padding: 18px;
  color: var(--ink);
  background: #eef7ef;
  border: 1px solid #b9d5bd;
  border-radius: 8px;
}

.success-panel h3 {
  margin-bottom: 6px;
  color: var(--sage);
}

.success-panel p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: #eef2ee;
  border-top: 1px solid var(--line);
}

.site-footer span {
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.plain-page {
  background: var(--paper);
}

.legal-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-brand {
  width: max-content;
  margin-bottom: 42px;
}

.legal-page h1 {
  margin-bottom: 24px;
  font-size: 3rem;
}

.legal-page h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.legal-page p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.legal-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-note {
  padding: 18px;
  background: #fff7df;
  border: 1px solid #ead38c;
  border-radius: 8px;
}

.admin-page {
  min-height: 100vh;
  background: #eef2ee;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100% - 1180px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.admin-topbar .brand {
  color: var(--ink);
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.admin-login {
  width: min(560px, 100%);
  margin: 42px auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-login h1,
.admin-heading h1 {
  margin-bottom: 22px;
  font-size: 2.35rem;
}

.admin-form,
.profile-form {
  display: grid;
  gap: 16px;
}

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.admin-heading,
.leads-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.leads-heading h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.leads-heading span {
  display: grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--sage);
  border-radius: 50%;
  font-weight: 900;
}

.lead-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.lead-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-item h3 {
  margin-bottom: 0;
}

.lead-item a {
  color: var(--ruby);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.lead-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.lead-meta strong {
  color: var(--sage);
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--ink-soft);
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding: 112px 22px 56px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(9, 15, 13, 0.88) 0%, rgba(9, 15, 13, 0.58) 100%);
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .market-strip,
  .split-section,
  .agent-section,
  .buy-section,
  .process-section,
  .request-section,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .split-section,
  .agent-section,
  .buy-section,
  .process-section {
    width: min(100% - 36px, 680px);
    padding: 64px 0;
  }

  .request-section {
    padding: 64px 18px;
  }

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

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

  .agent-card {
    grid-template-columns: 1fr;
  }

  .agent-photo {
    width: 100%;
    height: 260px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-cta {
    max-width: 136px;
    text-align: center;
  }

  .hero {
    min-height: 82svh;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .button {
    width: 100%;
  }

  .hero-contact {
    grid-template-columns: 1fr;
  }

  .market-strip div {
    min-height: 132px;
    padding: 24px 20px;
  }

  .service-grid article {
    min-height: auto;
  }

  .site-footer {
    display: block;
  }

  .admin-heading,
  .leads-heading {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .legal-page h1 {
    font-size: 2.25rem;
  }
}
