.hevkad-place-page.hvk-poluchit-mesto-page {
  --hpm-blue: #7b9cc5;
  --hpm-blue-2: #edf4fb;
  --hpm-dark: #374957;
  --hpm-text: #303030;
  --hpm-muted: #666;
  --hpm-line: rgba(123, 156, 197, 0.28);
  --hpm-soft: rgba(123, 156, 197, 0.1);
  --hpm-shadow: 0 22px 60px rgba(55, 73, 87, 0.1);
  --hpm-radius: 28px;
  --hpm-radius-sm: 18px;
  --hpm-max: 1425px;
  --hpm-pad: 15px;

  background: #fff;
  color: var(--hpm-text);
  overflow: hidden;
  padding-bottom: 48px;
}

@media (min-width: 1181px) {
  .hevkad-place-page.hvk-poluchit-mesto-page {
    --hpm-pad: 32px;
  }
}

.hevkad-place-page.hvk-poluchit-mesto-page *,
.hevkad-place-page.hvk-poluchit-mesto-page *::before,
.hevkad-place-page.hvk-poluchit-mesto-page *::after {
  box-sizing: border-box;
}

.hevkad-place-page.hvk-poluchit-mesto-page a {
  color: inherit;
  text-decoration: none;
}

.hevkad-place-page.hvk-poluchit-mesto-page img {
  display: block;
  max-width: 100%;
}

.hevkad-place-page.hvk-poluchit-mesto-page h1,
.hevkad-place-page.hvk-poluchit-mesto-page h2,
.hevkad-place-page.hvk-poluchit-mesto-page h3,
.hevkad-place-page.hvk-poluchit-mesto-page p {
  margin-top: 0;
}

.hpm-container {
  width: min(var(--hpm-max), 100%);
  margin: 0 auto;
  padding: 0 var(--hpm-pad);
}

.hpm-breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 24px 0 12px;
  color: var(--hpm-muted);
  font-size: 14px;
}

.hpm-breadcrumbs a {
  color: var(--hpm-dark);
}

.hpm-breadcrumbs span:last-child {
  color: #9aa7b1;
}

.hpm-section {
  padding: 44px 0;
}

.hpm-hero {
  padding: 22px 0 48px;
}

.hpm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: stretch;
}

.hpm-hero-card,
.hpm-visual-card,
.hpm-card,
.hpm-panel,
.hpm-cta {
  border: 1px solid var(--hpm-line);
  border-radius: var(--hpm-radius);
  background: #fff;
  box-shadow: var(--hpm-shadow);
}

.hpm-hero-card {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hpm-hero-card::before {
  content: "";
  position: absolute;
  right: -130px;
  top: -130px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: var(--hpm-soft);
  pointer-events: none;
}

.hpm-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--hpm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hpm-dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hpm-eyebrow::before {
  content: "✡";
  color: var(--hpm-blue);
}

.hevkad-place-page.hvk-poluchit-mesto-page h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 1.04;
  margin: 0 0 20px;
  color: var(--hpm-dark);
  letter-spacing: -0.035em;
}

.hpm-lead {
  position: relative;
  z-index: 1;
  font-size: clamp(18px, 1.5vw, 22px);
  color: #4d5962;
  max-width: 790px;
  margin: 0 0 26px;
}

.hpm-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.hpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--hpm-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.hpm-btn:hover {
  transform: translateY(-1px);
}

.hpm-btn--primary {
  background: var(--hpm-blue);
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(123, 156, 197, 0.28);
}

.hpm-btn--secondary {
  background: #fff;
  color: var(--hpm-dark);
  border-color: var(--hpm-line);
}

.hpm-btn--outline {
  background: #fff;
  color: var(--hpm-dark);
  border-color: var(--hpm-blue);
}

.hpm-badges {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hpm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: var(--hpm-blue-2);
  border: 1px solid var(--hpm-line);
  border-radius: 999px;
  color: var(--hpm-dark);
  font-size: 14px;
  font-weight: 700;
}

.hpm-badge::before {
  content: "✓";
  color: var(--hpm-blue);
  font-weight: 900;
}

.hpm-visual-card {
  padding: 22px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.hpm-visual-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hpm-visual-label {
  color: var(--hpm-muted);
  font-size: 14px;
}

.hpm-status-pill {
  background: var(--hpm-blue);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.hpm-map {
  height: 310px;
  border-radius: 24px;
  border: 1px solid var(--hpm-line);
  background: linear-gradient(135deg, #fff 0%, #f4f8fc 100%);
  position: relative;
  overflow: hidden;
}

.hpm-map::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(123, 156, 197, 0.2) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(123, 156, 197, 0.16) 0 1px, transparent 1px 46px);
}

.hpm-map-pin {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--hpm-line);
  box-shadow: 0 12px 28px rgba(55, 73, 87, 0.14);
}

.hpm-map-pin::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--hpm-blue);
}

.hpm-map-pin--1 { left: 16%; top: 20%; }
.hpm-map-pin--2 { left: 43%; top: 36%; }
.hpm-map-pin--3 { right: 16%; top: 18%; }
.hpm-map-pin--4 { left: 26%; bottom: 18%; }
.hpm-map-pin--5 { right: 24%; bottom: 22%; }

.hpm-mini-list {
  display: grid;
  gap: 10px;
}

.hpm-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--hpm-line);
}

.hpm-mini-row strong {
  color: var(--hpm-dark);
}

.hpm-mini-row span {
  color: var(--hpm-muted);
  text-align: right;
}

.hpm-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.hpm-section-head--center {
  justify-content: center;
  text-align: center;
}

.hpm-section-head h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  margin: 0;
  color: var(--hpm-dark);
  letter-spacing: -0.025em;
}

.hpm-section-head p {
  margin: 10px 0 0;
  max-width: 740px;
  color: var(--hpm-muted);
  font-size: 18px;
}

.hpm-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hpm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hpm-card,
.hpm-panel {
  padding: 24px;
  min-height: 100%;
}

.hpm-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--hpm-blue-2);
  border: 1px solid var(--hpm-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hpm-blue);
  font-weight: 900;
  margin-bottom: 16px;
}

.hpm-icon--small {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hpm-card h3,
.hpm-panel h3 {
  margin: 0 0 10px;
  color: var(--hpm-dark);
  font-size: 20px;
}

.hpm-card p {
  margin: 0;
  color: var(--hpm-muted);
}

.hpm-places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.hpm-plot {
  border: 1px solid var(--hpm-line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(55, 73, 87, 0.08);
  min-height: 100%;
}

.hpm-plot__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.hpm-plot__media {
  height: 148px;
  background: linear-gradient(135deg, #edf4fb, #fff);
  position: relative;
  border-bottom: 1px solid var(--hpm-line);
  overflow: hidden;
}

.hpm-plot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hpm-plot__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.hpm-plot__status {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.hpm-plot__status.free {
  background: var(--hpm-blue);
  color: #fff;
}

.hpm-plot__status.busy {
  background: #eef2f6;
  color: var(--hpm-dark);
}

.hpm-plot__title {
  font-size: 20px;
  margin: 0;
  color: var(--hpm-dark);
}

.hpm-plot__btn {
  margin-top: auto;
  min-height: 48px;
  width: 100%;
  font-size: 14px;
}

.hpm-note {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--hpm-blue-2);
  border: 1px solid var(--hpm-line);
  color: var(--hpm-dark);
}

.hpm-steps {
  counter-reset: hpm-step;
  display: grid;
  gap: 14px;
}

.hpm-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--hpm-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(55, 73, 87, 0.07);
}

.hpm-step::before {
  counter-increment: hpm-step;
  content: counter(hpm-step);
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--hpm-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
}

.hpm-step h3 {
  margin: 0 0 6px;
  color: var(--hpm-dark);
}

.hpm-step p {
  margin: 0;
  color: var(--hpm-muted);
}

.hpm-checklist {
  margin: 0;
  padding-left: 20px;
  color: var(--hpm-muted);
}

.hpm-checklist li + li {
  margin-top: 8px;
}

.hpm-docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hpm-doc {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--hpm-line);
  border-radius: 22px;
  background: #fff;
  align-items: center;
}

.hpm-doc strong {
  color: var(--hpm-dark);
}

.hpm-seo-text {
  columns: 2;
  column-gap: 36px;
  padding: 30px;
  border: 1px solid var(--hpm-line);
  border-radius: var(--hpm-radius);
  background: #fff;
  box-shadow: var(--hpm-shadow);
}

.hpm-seo-text p {
  margin: 0 0 16px;
  color: #4d5962;
  break-inside: avoid;
}

.hpm-tradition {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--hpm-radius);
  background: linear-gradient(135deg, var(--hpm-blue-2), #fff);
  border: 1px solid var(--hpm-line);
}

.hpm-tradition-symbol {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--hpm-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hpm-blue);
  font-size: 34px;
}

.hpm-tradition h2 {
  margin: 0 0 8px;
  color: var(--hpm-dark);
}

.hpm-tradition p {
  margin: 0;
  color: var(--hpm-muted);
  font-size: 18px;
}

.hpm-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.hpm-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--hpm-line);
  border-radius: 20px;
  background: #fff;
  color: var(--hpm-dark);
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hpm-link-card:hover {
  border-color: var(--hpm-blue);
  transform: translateY(-1px);
}

.hpm-link-card span {
  color: var(--hpm-blue);
}

.hpm-faq {
  display: grid;
  gap: 12px;
}

.hevkad-place-page.hvk-poluchit-mesto-page details {
  border: 1px solid var(--hpm-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.hevkad-place-page.hvk-poluchit-mesto-page summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--hpm-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.hevkad-place-page.hvk-poluchit-mesto-page summary::-webkit-details-marker {
  display: none;
}

.hevkad-place-page.hvk-poluchit-mesto-page summary::after {
  content: "+";
  color: var(--hpm-blue);
  font-size: 22px;
  line-height: 1;
}

.hevkad-place-page.hvk-poluchit-mesto-page details[open] summary::after {
  content: "−";
}

.hevkad-place-page.hvk-poluchit-mesto-page details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--hpm-muted);
}

.hpm-cta {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #fff, #f7fbff);
}

.hpm-cta h2 {
  margin: 0 0 8px;
  color: var(--hpm-dark);
  font-size: clamp(28px, 3vw, 42px);
}

.hpm-cta p {
  margin: 0;
  color: var(--hpm-muted);
  font-size: 18px;
  max-width: 780px;
}

.hpm-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

@media (max-width: 1180px) {
  .hpm-hero-grid {
    grid-template-columns: 1fr;
  }

  .hpm-grid-4,
  .hpm-places-grid,
  .hpm-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .hpm-seo-text {
    columns: 1;
  }

  .hpm-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .hpm-section {
    padding: 34px 0;
  }

  .hpm-hero-card {
    padding: 26px;
  }

  .hpm-actions,
  .hpm-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .hpm-btn {
    width: 100%;
  }

  .hpm-grid-4,
  .hpm-grid-2,
  .hpm-places-grid,
  .hpm-links,
  .hpm-docs {
    grid-template-columns: 1fr;
  }

  .hpm-section-head {
    display: block;
  }

  .hpm-map {
    height: 240px;
  }

  .hpm-step {
    grid-template-columns: 1fr;
  }

  .hpm-tradition {
    grid-template-columns: 1fr;
  }
}
