:root {
  --bg: #202227;
  --panel: #202227;
  --line: #174e68;
  --cyan: #22d3ee;
  --green: #4ee2b1;
  --muted: #202227;
  --red: #ff3948;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(circle at 85% 0, #202227 0, transparent 30%), var(--bg);
  color: #f6fbff;
  font-family: Arial, sans-serif;
}
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 60px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.back {
  color: #a9bdcb;
  text-decoration: none;
  font-weight: 800;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.brand img {
  width: 66px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 11px;
  padding: 5px;
}
.hero {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #202227, #202227);
}
h1 {
  margin: 0 0 8px;
  font-size: 34px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.filters {
  display: flex;
  gap: 9px;
  overflow: auto;
  padding: 18px 0;
}
.filter {
  flex: none;
  border: 1px solid #28566f;
  border-radius: 999px;
  background: #202227;
  color: #cbd9e3;
  padding: 10px 15px;
  font-weight: 850;
  cursor: pointer;
}
.filter.active {
  border-color: var(--cyan);
  background: #202227;
  color: #69e7ff;
}
.district {
  margin: 20px 0 34px;
}
.district-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 13px;
}
.district-title h2 {
  margin: 0;
  font-size: 23px;
}
.district-title span {
  color: var(--muted);
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.card {
  overflow: hidden;
  border: 1px solid #1a536d;
  border-radius: 18px;
  background: var(--panel);
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
  color: inherit;
  padding: 0;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 14px 35px #0007;
}
.photo {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  background: #202227;
}
.copy {
  padding: 15px;
}
.name {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.3;
}
.stars {
  margin-left: 5px;
  color: var(--red);
  font-weight: 950;
}
.area {
  color: #93a9ba;
  font-size: 13px;
}
.route {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #ffffff10;
  color: #dce8ef;
  font-size: 12px;
}
.route b {
  color: var(--cyan);
}
.tags {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #202227cc;
  z-index: 20;
}
.modal.open {
  display: flex;
}
.widget {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #24708d;
  border-radius: 22px;
  background: #202227;
  box-shadow: 0 28px 80px #000;
}
.widget-head {
  position: relative;
}
.widget-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  background: #202227cc;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}
.widget-body {
  padding: 20px;
}
.widget-body h2 {
  margin: 0;
  font-size: 26px;
}
.widget-area {
  margin: 7px 0 16px;
  color: var(--muted);
}
.route-box {
  padding: 13px;
  border: 1px solid #1a607c;
  border-radius: 13px;
  background: #202227;
  color: #ddecf4;
}
.route-box b {
  color: var(--cyan);
}
.search {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  color: #8fa5b5;
  font-size: 12px;
}
.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid #28556d;
  border-radius: 10px;
  background: #202227;
  color: #fff;
  padding: 0 10px;
}
.features {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.features span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffffff0b;
  color: #d8e4eb;
  font-size: 12px;
}
.find {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 14px;
  background: linear-gradient(180deg, #202227, #202227);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.notice {
  display: none;
  margin-top: 12px;
  padding: 11px;
  border-radius: 10px;
  background: #11392f;
  color: #70eab8;
}
.empty {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .wrap {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }
  .top {
    align-items: flex-start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .photo {
    height: 215px;
  }
  h1 {
    font-size: 27px;
  }
  .search {
    grid-template-columns: 1fr;
  }
  .widget-image {
    height: 210px;
  }
}
