:root {
  --navy: #101828;
  --navy-2: #1c2a45;
  --gold: #b98a2f;
  --gold-soft: #d9b563;
  --ivory: #f6f4ef;
  --card: #ffffff;
  --border: #e7e2d6;
  --text: #262a31;
  --muted: #8b8577;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(185, 138, 47, .06), transparent 240px),
    var(--ivory);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .18s ease;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-2);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #fff;
}

.btn-gold:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(185, 138, 47, .35);
}

.btn-outline {
  border-color: rgba(217, 181, 99, .8);
  color: #f3ead6;
}

.btn-outline:hover {
  background: rgba(217, 181, 99, .15);
  color: #fff;
}

.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #0b1220, var(--navy) 45%, #17233c);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.logo-ico {
  width: 30px;
  height: 30px;
  fill: var(--gold-soft);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .04em;
  color: #fff;
  line-height: 1.15;
}

.logo-text small {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.main-nav {
  display: flex;
  gap: 6px;
  flex: 1;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  letter-spacing: .02em;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.header-inner > .btn-outline {
  margin-left: auto;
}

.city-select {
  position: relative;
  margin-left: auto;
}

.header-inner .city-select + .btn-outline {
  margin-left: 0;
}

.city-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #f3ead6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
}

.city-pin {
  width: 16px;
  height: 16px;
  fill: var(--gold-soft);
}

.city-caret {
  width: 15px;
  height: 15px;
  fill: rgba(243, 234, 214, .7);
  transition: transform .18s ease;
}

.city-select:hover .city-btn,
.city-btn:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.city-select:hover .city-caret {
  transform: rotate(180deg);
}

.city-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(10, 20, 40, .22);
  z-index: 200;
}

.city-select:hover .city-menu {
  display: block;
}

.city-item {
  display: block;
  padding: 9px 18px;
  font-size: 14.5px;
  color: var(--text);
}

.city-item:hover {
  background: var(--ivory);
  color: var(--navy);
}

.city-item.current {
  color: var(--gold);
  font-weight: 700;
}

.page {
  padding: 30px 0 50px;
}

.layout3 {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 22px;
}

.panel-accent {
  background: linear-gradient(160deg, #fffdf7, #faf3e3);
  border-color: #ecdfc2;
}

.panel p {
  color: var(--muted);
  font-size: 14px;
}

.panel-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
}

.panel-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.cat-menu {
  display: flex;
  flex-direction: column;
}

.cat-group + .cat-group {
  margin-top: 4px;
}

.cat-root {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}

.cat-root:hover,
.cat-root.current {
  background: var(--navy);
  color: var(--gold-soft);
}

.cat-sub {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
}

.cat-sub a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 7px 12px;
  font-size: 14px;
  color: #55503f;
  border-radius: 8px;
}

.cat-sub a:hover {
  background: #f4efe3;
  color: var(--navy);
}

.cat-sub a.current {
  color: var(--gold);
  font-weight: 600;
}

.cat-count {
  flex-shrink: 0;
  min-width: 26px;
  text-align: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(185, 138, 47, .12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.cat-root.current .cat-count,
.cat-root:hover .cat-count {
  background: rgba(217, 181, 99, .25);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 46px;
  border-radius: var(--radius);
  background:
    radial-gradient(700px 220px at 85% -40%, rgba(217, 181, 99, .35), transparent),
    linear-gradient(120deg, #0b1220, var(--navy) 60%, var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 46px;
  bottom: 0;
  width: 110px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, .75);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero-stats i {
  width: 1px;
  height: 38px;
  background: rgba(217, 181, 99, .5);
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-soft);
  line-height: 1.1;
}

.stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
}

.section-title {
  margin: 0 0 18px;
  font-size: 24px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.listing-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
}

.listing-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  background:
    radial-gradient(180px 70px at 80% -20%, rgba(217, 181, 99, .5), transparent),
    linear-gradient(130deg, var(--navy), var(--navy-2));
  font-family: var(--serif);
  font-size: 40px;
  color: var(--gold-soft);
}

.listing-body {
  padding: 16px 18px 10px;
  flex: 1;
}

.listing-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.listing-price {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--muted);
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.badge {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(185, 138, 47, .14);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .04em;
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}

.popular-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-rank {
  flex-shrink: 0;
  width: 26px;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gold);
  text-align: center;
}

.popular-body {
  min-width: 0;
}

.popular-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.popular-name:hover {
  color: var(--gold);
}

.popular-body small {
  color: var(--muted);
  font-size: 12.5px;
}

.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-list b {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.breadcrumbs span {
  color: var(--gold);
}

.breadcrumbs b {
  color: var(--text);
}

.page-title {
  margin: 4px 0 22px;
  font-size: 30px;
}

.empty {
  padding: 18px 0;
  color: var(--muted);
}

.error-page {
  max-width: 560px;
  margin: 30px auto;
  padding: 52px 40px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-code {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  margin: 16px 0 10px;
  font-size: 26px;
  color: var(--navy);
}

.error-text {
  margin: 0 auto 28px;
  max-width: 400px;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.narrow-login {
  max-width: 420px;
}

.cabinet-hello {
  color: var(--muted);
  margin-top: -10px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-form input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--ivory);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 47, .15);
}

.login-form .btn {
  align-self: flex-start;
}

.own-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.own-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.own-list li:last-child {
  border-bottom: none;
}

.own-name {
  display: block;
  font-weight: 600;
}

.own-body small {
  color: var(--muted);
}

.status {
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: #eee9dd;
  color: #6b654f;
}

.status.st-active {
  background: rgba(39, 174, 96, .12);
  color: #1e8449;
}

.status.st-draft {
  background: #ececec;
  color: #666;
}

.status.st-moderation {
  background: rgba(230, 126, 34, .14);
  color: #b35c00;
}

.status.st-rejected {
  background: rgba(192, 57, 43, .12);
  color: #a93226;
}

.status.st-archived {
  background: rgba(127, 140, 141, .15);
  color: #5d6d6e;
}

.status.st-deleted {
  background: #222;
  color: #ddd;
}

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

.inline-form {
  display: contents;
}

.site-footer {
  margin-top: 20px;
  background: linear-gradient(90deg, #0b1220, var(--navy) 50%, #16223a);
  color: rgba(255, 255, 255, .72);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 20px;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 13.5px;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(217, 181, 99, .25);
  padding: 14px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

@media (max-width: 1120px) {
  .layout3 {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .col-right .panel {
    margin-bottom: 0;
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    row-gap: 4px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .layout3 {
    grid-template-columns: 1fr;
  }

  .col-left {
    order: 2;
  }

  .col-center {
    order: 1;
  }

  .col-right {
    order: 3;
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 24px;
  }

  .hero h1 {
    font-size: 26px;
  }
}
