:root {
  --navy: #0a2835;
  --ink: #172b34;
  --gold: #b49a62;
  --paper: #fff;
  --soft: #f4f3ef;
  --line: #dfe4e4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 92px;
  padding: 14px 5vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand img,
header img {
  width: 175px;
  height: 64px;
  object-fit: contain;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero {
  padding: 90px 7vw 110px;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 48%,
    #ffffff08 48%,
    #ffffff08 49%,
    transparent 49%
  );
  background-size: 56px 56px;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero span,
.catalog small,
.detail small,
.dashboard small,
.editor small {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 94px);
  line-height: 0.97;
  letter-spacing: -0.055em;
  margin: 24px 0;
  max-width: 1100px;
  font-weight: 500;
}
.hero h1 em {
  font-style: normal;
  color: #e4d4ad;
}
.hero p {
  font-size: 19px;
  line-height: 1.65;
  color: #d0dadd;
  max-width: 660px;
}
.catalog {
  padding: 76px 5vw 110px;
}
.catalog-head,
.dash-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 34px;
}
.catalog h2,
.dashboard h1,
.editor h1 {
  font-size: 42px;
  letter-spacing: -0.04em;
  margin: 8px 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.property-card {
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.25s;
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px #112b3518;
}
.photo {
  height: 290px;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo > span {
  position: absolute;
  left: 18px;
  top: 18px;
  background: var(--navy);
  color: #fff;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #b49a62;
  font-weight: 800;
  letter-spacing: 0.2em;
  background: linear-gradient(145deg, #f7f5ef, #e8e4d9);
}
.card-copy {
  padding: 22px;
}
.card-copy h3 {
  font-size: 24px;
  margin: 10px 0;
}
.card-copy p {
  color: #697b82;
  line-height: 1.55;
}
.card-copy strong {
  font-size: 20px;
  color: var(--navy);
}
.empty {
  grid-column: 1/-1;
  padding: 70px;
  border: 1px dashed #cbd2d3;
  text-align: center;
}
.detail {
  padding: 48px 5vw 100px;
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 520px;
  margin-bottom: 56px;
  overflow: hidden;
}
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.gallery img:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}
.gallery img:nth-child(n + 6) {
  display: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  max-width: 1250px;
  margin: auto;
  position: relative;
  z-index: 2;
  clear: both;
  background: #fff;
  padding: 44px;
  border: 1px solid var(--line);
}
.detail h1 {
  font-size: 54px;
  line-height: 1.05;
  margin: 12px 0;
}
.location {
  font-size: 20px;
  color: #60757d;
}
.facts {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 32px 0;
}
.facts span {
  font-size: 13px;
  color: #66777d;
}
.facts b {
  font-size: 25px;
  color: var(--navy);
  display: block;
}
.description {
  font-size: 17px;
  line-height: 1.8;
}
.detail aside {
  background: var(--soft);
  padding: 34px;
  height: max-content;
}
.detail aside h2 {
  font-size: 33px;
}
.cta,
.button,
button {
  display: block;
  background: var(--gold);
  color: #101f25;
  border: 0;
  padding: 17px 20px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.cta {
  margin-top: 16px;
}
.secondary {
  background: transparent;
  border: 1px solid var(--navy);
}
footer {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 5vw;
  font-size: 12px;
}
footer img {
  width: 145px;
  filter: grayscale(1) brightness(0) invert(1);
}
.admin-bg {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  place-items: center;
  padding: 30px;
}
.login {
  width: min(440px, 100%);
  background: #fff;
  padding: 42px;
}
.login img {
  width: 190px;
  height: 100px;
  object-fit: contain;
}
.login h1 {
  font-size: 34px;
  margin-bottom: 5px;
}
.login p {
  color: #66777d;
}
.login form,
.property-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cfd7d8;
  padding: 13px;
  background: #fff;
  font: inherit;
  text-transform: none;
}
.alert {
  background: #fee8e5;
  color: #8f251c;
  padding: 12px;
  margin-top: 20px;
}
.admin-page {
  background: #f4f6f6;
  min-height: 100vh;
}
.admin-header {
  position: static;
  height: 80px;
}
.dashboard,
.editor {
  padding: 58px 5vw;
}
.button {
  width: max-content;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
}
th,
td {
  text-align: left;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #65777e;
}
.editor {
  max-width: 1050px;
  margin: auto;
}
.property-form {
  grid-template-columns: 1fr 1fr;
  background: #fff;
  padding: 32px;
  border: 1px solid var(--line);
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
.actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.danger {
  color: #a02020;
  font-weight: bold;
}
.admin-header nav a {
  font-size: 11px;
}
@media (max-width: 850px) {
  header {
    height: 76px;
  }
  .brand img,
  header img {
    width: 135px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 65px 6vw 80px;
  }
  .catalog-head,
  .dash-title {
    align-items: flex-start;
    gap: 24px;
    flex-direction: column;
  }
  .gallery {
    height: auto;
    grid-template-columns: 1fr;
  }
  .gallery img {
    height: 300px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 24px;
  }
  .detail h1 {
    font-size: 40px;
  }
  .facts {
    gap: 18px;
    flex-wrap: wrap;
  }
  .property-form {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  nav {
    gap: 12px;
    font-size: 10px;
  }
}
