:root {
  --pem-bg: #f3f6fb;
  --pem-surface: #ffffff;
  --pem-surface-soft: #eef3fa;
  --pem-ink: #16243d;
  --pem-ink-soft: #5f6f88;
  --pem-line: #d8e0ec;
  --pem-primary: #123765;
  --pem-primary-700: #0f2f56;
  --pem-success: #5ba261;
  --pem-success-700: #4a9251;
  --pem-radius-lg: 18px;
  --pem-radius-md: 14px;
  --pem-radius-sm: 10px;
  --pem-shadow: 0 16px 44px rgba(18, 41, 73, 0.12);
  --pem-shadow-soft: 0 10px 24px rgba(18, 41, 73, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% 0, #f8fbff 0, var(--pem-bg) 54%);
  color: var(--pem-ink);
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--pem-primary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main {
  min-height: 60vh;
}

.pem-container {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 22px;
}

.pem-section {
  padding: 30px 0;
}

.pem-section-muted {
  background: linear-gradient(180deg, #f5f8fd, #eef3fb);
  border-top: 1px solid var(--pem-line);
  border-bottom: 1px solid var(--pem-line);
}

.pem-page-title {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pem-page-subtitle {
  margin: 12px 0 0;
  max-width: 72ch;
  color: var(--pem-ink-soft);
}

.pem-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pem-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pem-section-head a {
  color: var(--pem-primary);
  font-weight: 700;
  white-space: nowrap;
}

.pem-grid {
  display: grid;
  gap: 16px;
}

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

.pem-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pem-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pem-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 41, 73, 0.15);
}

.pem-btn-primary {
  background: var(--pem-primary);
  color: #fff;
}

.pem-btn-primary:hover {
  color: #fff;
  background: var(--pem-primary-700);
}

.pem-btn-success {
  background: var(--pem-success);
  color: #fff;
}

.pem-btn-success:hover {
  color: #fff;
  background: var(--pem-success-700);
}

.pem-btn-light {
  border-color: var(--pem-line);
  background: #fff;
  color: var(--pem-primary);
}

.pem-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 53, 95, 0.13);
  color: var(--pem-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.pem-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: var(--pem-ink-soft);
  font-size: 0.93rem;
}

.pem-chip-row {
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.pem-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #c9d8ec;
  background: rgba(255, 255, 255, 0.9);
  color: #11355f;
  font-size: 0.85rem;
  font-weight: 700;
}

.pem-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(246, 249, 253, 0.84);
  border-bottom: 1px solid rgba(17, 53, 95, 0.08);
}

.pem-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.pem-logo-wrap {
  min-width: 220px;
}

.pem-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pem-logo .custom-logo {
  width: auto;
  max-height: 44px;
}

.pem-logo-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #dfeafb;
}

.pem-logo-text {
  display: grid;
  gap: 2px;
}

.pem-logo-text strong {
  font-size: 1rem;
  line-height: 1.2;
}

.pem-logo-text small {
  font-size: 0.78rem;
  color: var(--pem-ink-soft);
}

.pem-main-nav {
  justify-self: center;
}

.pem-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 10px;
}

.pem-menu > li {
  position: relative;
}

.pem-menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  color: #203454;
  font-weight: 600;
  font-size: 0.92rem;
}

.pem-menu > li > a:hover,
.pem-menu > li.current-menu-item > a,
.pem-menu > li.current-menu-ancestor > a {
  background: #e4ecf9;
  color: var(--pem-primary);
}

.pem-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pem-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d7e1ef;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #365078;
}

.pem-header-icon svg {
  width: 19px;
  height: 19px;
}

.pem-header-menu-toggle {
  display: none;
  cursor: pointer;
}

.pem-mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}

.pem-mobile-nav.is-open {
  max-height: 420px;
  border-top-color: rgba(17, 53, 95, 0.08);
}

.pem-mobile-menu {
  margin: 0;
  padding: 10px 0 16px;
  display: grid;
  gap: 6px;
  list-style: none;
}

.pem-mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dce5f3;
  font-weight: 600;
}

.pem-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #6f8099;
  font-size: 0.84rem;
}

.pem-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pem-breadcrumb-item:not(:last-child)::after {
  content: "/";
  opacity: 0.6;
}

.pem-breadcrumb-item a {
  color: #49668f;
}

.pem-footer {
  margin-top: 38px;
  background: #0f2d53;
  color: rgba(255, 255, 255, 0.9);
}

.pem-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.pem-footer-brand strong {
  display: block;
  font-size: 1.03rem;
}

.pem-footer-brand p {
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.76);
}

.pem-footer-copy {
  margin-top: 14px;
  font-size: 0.85rem;
}

.pem-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.pem-footer-menu a {
  color: rgba(255, 255, 255, 0.82);
}

.pem-footer-menu a:hover {
  color: #fff;
}

.pem-hero,
.pem-city-hero,
.pem-sight-hero,
.pem-route-hero,
.pem-single-hero {
  position: relative;
  border-bottom: 1px solid var(--pem-line);
  overflow: hidden;
}

.pem-hero::before,
.pem-city-hero::before,
.pem-sight-hero::before,
.pem-route-hero::before,
.pem-single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 440px at 5% 0, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 58%, transparent 85%),
    radial-gradient(700px 400px at 78% 20%, rgba(17, 53, 95, 0.08), transparent 62%);
  pointer-events: none;
}

.pem-hero.has-image::after,
.pem-city-hero.has-image::after,
.pem-sight-hero.has-image::after,
.pem-route-hero.has-image::after,
.pem-single-hero.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(242, 247, 253, 0.95) 24%, rgba(242, 247, 253, 0.58) 50%, rgba(242, 247, 253, 0.2) 74%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.pem-hero-inner {
  position: relative;
  z-index: 1;
  padding: 44px 0 34px;
}

.pem-hero-copy {
  max-width: 670px;
}

.pem-hero-copy h1,
.pem-single-hero-content h1,
.pem-sight-hero-content h1,
.pem-route-hero-main h1,
.pem-city-hero-main h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pem-hero-copy p,
.pem-single-hero-content p,
.pem-sight-hero-content p,
.pem-route-hero-main p,
.pem-city-hero-main p {
  margin: 16px 0 0;
  max-width: 64ch;
  color: #4f6280;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.pem-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pem-chip-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d8e3f0;
  border-radius: 16px;
  box-shadow: var(--pem-shadow-soft);
}

.pem-chip {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 2px;
}

.pem-chip strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.pem-chip span {
  color: var(--pem-ink-soft);
  font-size: 0.83rem;
}

.pem-intro-wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.pem-intro-icon {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #d8e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.pem-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--pem-radius-md);
  overflow: hidden;
  border: 1px solid #dce5f2;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 41, 73, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 41, 73, 0.12);
}

.pem-card-image {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #dce9f9, #b9cde8);
  overflow: hidden;
}

.pem-card-image img,
.pem-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pem-card-video {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 1;
}

.pem-card-video.is-loaded {
  opacity: 1;
}

.pem-card-image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #dde9f7, #b9d1ee);
}

.pem-card-content {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.pem-card-content h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.3;
}

.pem-card-content p {
  margin: 0;
  color: var(--pem-ink-soft);
  font-size: 0.92rem;
}

.pem-card-kicker {
  color: #31537e;
  font-size: 0.82rem;
  font-weight: 700;
}

.pem-card-meta {
  margin-top: auto;
  color: #6c7f9d;
  font-size: 0.82rem;
}

.pem-city-card .pem-card-image {
  aspect-ratio: 16/10;
}

.pem-sight-card .pem-card-image {
  aspect-ratio: 16/9;
}

.pem-route-card .pem-card-image {
  aspect-ratio: 16/9;
}

.pem-season-grid .pem-season-card,
.pem-combo-grid .pem-season-card {
  min-height: 150px;
}

.pem-season-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border-radius: var(--pem-radius-md);
  border: 1px solid #dce6f2;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 41, 73, 0.05);
}

.pem-season-card h3 {
  margin: 0;
  font-size: 1rem;
}

.pem-season-card p {
  margin: 0;
  color: var(--pem-ink-soft);
  font-size: 0.9rem;
}

.pem-scenario-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pem-scenario-card {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #d9e3f1;
  border-radius: 12px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.88rem;
}

.pem-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.pem-main-column,
.pem-sidebar-column {
  min-width: 0;
}

.pem-side-card {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #d9e3f1;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 41, 73, 0.05);
}

.pem-side-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.pem-side-card-cta {
  background: linear-gradient(160deg, #133a6c 0%, #0f2f56 100%);
  color: #fff;
}

.pem-side-card-cta .pem-btn-primary {
  background: #fff;
  color: #123765;
}

.pem-icon-list,
.pem-check-list,
.pem-anchor-list,
.pem-nearby-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pem-icon-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}

.pem-icon-list span {
  color: var(--pem-ink-soft);
}

.pem-icon-list strong {
  text-align: right;
  color: #19365e;
}

.pem-icon-list a {
  color: var(--pem-primary);
}

.pem-check-list li {
  position: relative;
  padding-left: 20px;
  color: #344a6e;
  font-size: 0.92rem;
}

.pem-check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pem-success);
  position: absolute;
  left: 4px;
  top: 0.55em;
}

.pem-anchor-list a,
.pem-nearby-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #d9e3f1;
  background: #f8fbff;
  color: #2f4d78;
  font-weight: 600;
  font-size: 0.88rem;
}

.pem-anchor-list a:hover,
.pem-nearby-list a:hover {
  background: #eaf1fb;
}

.pem-article {
  padding: 18px;
  border: 1px solid #d9e3f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 41, 73, 0.05);
}

.pem-content {
  color: #2f466b;
}

.pem-content p {
  margin: 0 0 1em;
}

.pem-content h2,
.pem-content h3,
.pem-content h4 {
  color: #152d4c;
  margin: 1.35em 0 0.55em;
  line-height: 1.3;
}

.pem-content ul,
.pem-content ol {
  margin: 0 0 1em 1.2em;
}

.pem-content img,
.pem-content iframe,
.pem-content video {
  border-radius: 12px;
}

.pem-info-grid {
  gap: 12px;
}

.pem-info-card {
  border: 1px solid #d9e3f1;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 5px 14px rgba(18, 41, 73, 0.04);
}

.pem-info-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.pem-info-card p {
  margin: 8px 0 0;
  color: var(--pem-ink-soft);
  font-size: 0.9rem;
}

.pem-info-icon {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pem-city-hero-grid,
.pem-route-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 18px;
  padding: 24px 0;
}

.pem-sight-hero-content,
.pem-single-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 24px 0;
}

.pem-day-block {
  margin-bottom: 18px;
  border: 1px solid #d9e3f1;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(18, 41, 73, 0.05);
}

.pem-day-block h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}

.pem-timeline {
  display: grid;
  gap: 11px;
}

.pem-timeline-stop {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e1e9f4;
  border-radius: 10px;
  background: #fbfdff;
}

.pem-timeline-time {
  color: #2e4b74;
  font-weight: 700;
  font-size: 0.88rem;
}

.pem-timeline-body h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.pem-timeline-body p {
  margin: 6px 0 0;
  color: var(--pem-ink-soft);
  font-size: 0.9rem;
}

.pem-timeline-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.pem-timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pem-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pem-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d9e3f1;
}

.pem-sight-section {
  margin-top: 24px;
}

.pem-accordion {
  display: grid;
  gap: 8px;
}

.pem-accordion-item {
  border: 1px solid #d9e3f1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.pem-accordion-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 0;
  background: #fff;
  color: #163055;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 14px;
}

.pem-accordion-toggle:hover {
  background: #f3f7fd;
}

.pem-accordion-content {
  display: none;
  padding: 0 14px 12px;
  color: #4a6081;
  font-size: 0.92rem;
}

.pem-accordion-item.is-open .pem-accordion-content {
  display: block;
}

.pem-pagination {
  margin-top: 18px;
}

.pem-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pem-pagination .page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e3f1;
  border-radius: 10px;
  background: #fff;
  color: #2f4d79;
  font-weight: 700;
}

.pem-pagination .page-numbers.current {
  background: var(--pem-primary);
  color: #fff;
  border-color: var(--pem-primary);
}

.is-hidden {
  display: none !important;
}

.pem-more-button {
  margin-top: 10px;
  border: 1px solid #d8e3f1;
  background: #fff;
  color: #1f3f68;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .pem-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pem-scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pem-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .pem-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .pem-main-nav {
    display: none;
  }

  .pem-header-menu-toggle {
    display: inline-flex;
  }

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

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

  .pem-content-layout,
  .pem-city-hero-grid,
  .pem-route-hero-grid {
    grid-template-columns: 1fr;
  }

  .pem-sidebar-column {
    order: -1;
  }

  .pem-timeline-stop {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .pem-timeline-thumb {
    grid-column: 1 / -1;
    max-width: 260px;
  }

  .pem-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pem-container {
    padding: 0 14px;
  }

  .pem-hero-copy h1,
  .pem-single-hero-content h1,
  .pem-sight-hero-content h1,
  .pem-route-hero-main h1,
  .pem-city-hero-main h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .pem-grid-2,
  .pem-grid-3,
  .pem-grid-4,
  .pem-scenario-grid,
  .pem-chip-grid {
    grid-template-columns: 1fr;
  }

  .pem-section {
    padding: 22px 0;
  }

  .pem-card-content {
    padding: 12px;
  }

  .pem-intro-wrap {
    grid-template-columns: 1fr;
  }

  .pem-intro-icon {
    width: 68px;
    height: 68px;
    font-size: 1.45rem;
  }

  .pem-footer-inner {
    flex-direction: column;
  }

  .pem-side-card,
  .pem-article,
  .pem-day-block {
    padding: 12px;
  }

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

@media (max-width: 480px) {
  .pem-hero-actions .pem-btn {
    width: 100%;
  }

  .pem-logo-wrap {
    min-width: 0;
  }

  .pem-logo .custom-logo {
    max-height: 34px;
  }

  .pem-header-icon {
    width: 34px;
    height: 34px;
  }

  .pem-chip-row {
    gap: 6px;
  }

  .pem-pill {
    padding: 6px 10px;
    font-size: 0.81rem;
  }
}

/* UI alignment pass: denser cards, explicit iconography, mockup-like grids */
.pem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.38em;
  flex-shrink: 0;
}

.pem-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pem-btn .pem-icon,
.pem-card-kicker .pem-icon,
.pem-card-meta .pem-icon,
.pem-card-caption .pem-icon,
.pem-scenario-card .pem-icon {
  margin-right: 0.42em;
}

.pem-hero {
  border-bottom: 0;
}

.pem-hero-inner {
  padding-top: 56px;
  padding-bottom: 40px;
}

.pem-hero-copy {
  max-width: 780px;
}

.pem-hero-copy p {
  max-width: 56ch;
}

.pem-chip-grid {
  margin-top: -12px;
  padding: 8px 10px;
  border-radius: 18px;
  gap: 0;
}

.pem-chip {
  min-height: 84px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.pem-chip:not(:last-child) {
  border-right: 1px solid #e4ebf7;
}

.pem-chip-icon {
  color: #274b79;
  font-size: 1.2rem;
}

.pem-chip strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.2;
}

.pem-chip span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
}

.pem-grid-cities {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pem-grid-routes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.pem-grid-sights {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pem-grid-season {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pem-grid-start {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pem-grid-combo {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pem-grid-stay {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pem-card {
  border-radius: 12px;
  border-color: #d8e2f0;
  box-shadow: 0 4px 12px rgba(18, 41, 73, 0.06);
}

.pem-card:hover {
  box-shadow: 0 10px 22px rgba(18, 41, 73, 0.13);
}

.pem-card-image {
  aspect-ratio: 16 / 9;
}

.pem-card-content {
  gap: 6px;
  padding: 10px 11px 11px;
}

.pem-card-content h3 {
  font-size: 0.93rem;
}

.pem-card-content p {
  font-size: 0.81rem;
  line-height: 1.45;
}

.pem-card-route .pem-card-image {
  aspect-ratio: 16 / 7.8;
}

.pem-card-route .pem-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

.pem-card-route .pem-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #173f71;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
}

.pem-card-route .pem-card-kicker {
  display: inline-flex;
  align-items: center;
  color: #4c6488;
  font-size: 0.73rem;
  font-weight: 700;
  margin-left: auto;
}

.pem-card-route .pem-card-meta {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #516988;
  font-size: 0.75rem;
}

.pem-card-route .pem-card-meta span {
  display: inline-flex;
  align-items: center;
}

.pem-card-track {
  min-height: 20px;
  padding: 0 11px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pem-card-track-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #89a9d3;
  flex: 0 0 auto;
}

.pem-card-track-line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bdd0ea, #89a9d3);
}

.pem-card-city .pem-card-image,
.pem-card-sight .pem-card-image {
  aspect-ratio: 16 / 10;
}

.pem-card-city .pem-card-image::after,
.pem-card-sight .pem-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 44, 0.03) 28%, rgba(8, 24, 44, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}

.pem-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 10px 10px 11px;
  color: #fff;
  z-index: 3;
}

.pem-card-overlay h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.pem-card-overlay p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  line-height: 1.35;
}

.pem-card-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15, 34, 60, 0.35);
  z-index: 3;
}

.pem-card-favorite .pem-icon {
  margin: 0;
}

.pem-card-stats {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pem-card-stats span {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
}

.pem-card-overlay-compact {
  padding: 9px 9px 10px;
}

.pem-card-tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 30, 52, 0.52);
}

.pem-card-caption {
  display: inline-flex;
  align-items: center;
}

.pem-scenario-grid-home {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.pem-scenario-card {
  min-height: 64px;
  flex-direction: column;
  gap: 4px;
}

.pem-scenario-card .pem-icon {
  margin-right: 0;
  color: #496992;
  font-size: 1.18rem;
}

.pem-scenario-card span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.25;
}

.pem-info-card {
  padding: 12px;
}

.pem-info-card h3 {
  font-size: 0.88rem;
}

.pem-info-card p {
  font-size: 0.8rem;
}

.pem-info-icon {
  color: #2e4d79;
}

.pem-season-card {
  min-height: 124px;
}

.pem-season-card h3 .pem-icon {
  color: #2e4d79;
}

@media (max-width: 1280px) {
  .pem-grid-cities,
  .pem-grid-sights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pem-grid-start {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pem-scenario-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pem-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pem-chip:not(:last-child) {
    border-right: 0;
  }
}

@media (max-width: 1024px) {
  .pem-grid-routes,
  .pem-grid-routes-city,
  .pem-grid-season,
  .pem-grid-combo,
  .pem-grid-stay {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pem-grid-sights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pem-grid-cities,
  .pem-grid-routes,
  .pem-grid-routes-city,
  .pem-grid-season,
  .pem-grid-combo,
  .pem-grid-stay,
  .pem-grid-start,
  .pem-scenario-grid-home {
    grid-template-columns: 1fr;
  }

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

  .pem-chip-grid {
    grid-template-columns: 1fr;
  }
}

/* Pixel-perfect tuning v3 (home page parity with mockup) */
body {
  background: #f5f8fd;
  color: #193455;
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

.pem-container {
  width: min(1480px, calc(100vw - 40px));
  padding: 0;
}

.cookie-popup,
#cookie-popup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pem-header {
  position: relative;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7edf7;
  box-shadow: 0 1px 0 rgba(17, 45, 84, 0.03);
}

@media (min-width: 1025px) {
  .home .pem-header-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 42;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .admin-bar.home .pem-header-overlay {
    top: 32px;
  }
}

.pem-header-inner {
  min-height: 76px;
  gap: 20px;
}

.pem-logo-wrap {
  min-width: 220px;
}

.pem-logo {
  gap: 7px;
}

.pem-logo .custom-logo {
  max-height: 24px;
}

.pem-logo-text {
  gap: 0;
}

.pem-logo-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
}

.pem-logo-text small {
  display: none;
}

.pem-menu {
  gap: 4px;
}

.pem-menu > li > a {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  color: #304a70;
  font-size: 0.92rem;
  font-weight: 700;
}

.pem-menu > li.menu-item-has-children {
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.pem-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease;
}

.pem-menu > li.menu-item-has-children:hover > a::after,
.pem-menu > li.menu-item-has-children:focus-within > a::after {
  transform: translateY(1px) rotate(225deg);
}

.pem-menu .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 60;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(19, 47, 84, 0.16);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pem-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.pem-menu .sub-menu li {
  position: relative;
}

.pem-menu .sub-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  color: #2c486d;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.pem-menu .sub-menu a:hover,
.pem-menu .sub-menu .current-menu-item > a,
.pem-menu .sub-menu .current-menu-ancestor > a {
  background: #eef4fc;
  color: #1d4e86;
}

.pem-menu > li:hover > .sub-menu,
.pem-menu > li:focus-within > .sub-menu,
.pem-menu .sub-menu > li:hover > .sub-menu,
.pem-menu .sub-menu > li:focus-within > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pem-menu .sub-menu .sub-menu {
  top: -8px;
  left: calc(100% + 2px);
}

.pem-menu .sub-menu .sub-menu::before {
  top: 0;
  left: -10px;
  right: auto;
  bottom: 0;
  width: 10px;
  height: auto;
}

@media (min-width: 1025px) {
  .home .pem-header-overlay .pem-menu > li > a {
    background: transparent;
  }

  .home .pem-header-overlay .pem-menu > li > a:hover,
  .home .pem-header-overlay .pem-menu > li.current-menu-item > a,
  .home .pem-header-overlay .pem-menu > li.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.56);
  }

  .home .pem-header-overlay .pem-header-icon {
    background: transparent;
    border: 0;
  }
}

.pem-header-actions {
  gap: 6px;
}

.pem-header-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: #7388a8;
  background: transparent;
}

.pem-header-icon:hover {
  background: #eff4fb;
}

.pem-header-icon svg {
  width: 20px;
  height: 20px;
}

.pem-header-icon .pem-icon {
  width: 20px;
  height: 20px;
  margin: 0;
}

.pem-section {
  padding: 28px 0;
}

.pem-hero {
  margin-top: 18px;
  border: 1px solid #dbe6f5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4fd 0%, #e7f0fb 100%);
}

.home .pem-hero {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.pem-hero::before {
  background:
    radial-gradient(620px 320px at 16% 18%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.44) 58%, transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.pem-hero.has-image::after {
  inset: 0 0 0 36%;
  z-index: 0;
  opacity: 1;
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-size: auto 130%;
  background-position: right -16px bottom -10px;
}

.home .pem-hero.has-image::after {
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(242, 247, 253, 0.96) 24%, rgba(242, 247, 253, 0.6) 50%, rgba(242, 247, 253, 0.2) 74%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.pem-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 66px;
  padding-bottom: 104px;
}

@media (min-width: 1025px) {
  .home .pem-hero-inner {
    padding-top: 150px;
    padding-bottom: 112px;
  }

  .home .pem-hero-copy {
    max-width: 66%;
  }
}

.pem-hero-copy {
  max-width: 660px;
}

.pem-hero-copy h1 {
  font-size: clamp(3.55rem, 4.85vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home .pem-hero-copy h1 {
  font-size: 3rem;
}

.pem-hero-copy p {
  margin-top: 14px;
  max-width: 44ch;
  color: #6a7e9e;
  font-size: 1.18rem;
  line-height: 1.58;
}

.pem-hero-actions {
  margin-top: 22px;
  gap: 12px;
}

.pem-btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.97rem;
  font-weight: 800;
}

.pem-btn .pem-icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.35rem;
}

.pem-btn-light {
  border-color: #dce5f2;
  color: #3a567b;
}

.pem-chips-section {
  margin-top: -44px;
  padding-top: 0;
  position: relative;
  z-index: 4;
}

.pem-chip-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0;
  gap: 0;
  border: 1px solid #dde6f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(28, 61, 105, 0.12);
  overflow: hidden;
}

.pem-chip {
  min-height: 98px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
}

.pem-chip + .pem-chip {
  border-left: 1px solid #e8eef7;
}

.pem-chip strong {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
}

.pem-chip span {
  margin-top: 3px;
  font-size: 0.88rem;
  color: #7a8da9;
  line-height: 1.3;
}

.pem-chip .pem-chip-icon {
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

.pem-chip-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  color: currentColor;
}

.pem-chip-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pem-chip:nth-child(1) .pem-chip-icon { color: #67a656; }
.pem-chip:nth-child(2) .pem-chip-icon { color: #4f7db7; }
.pem-chip:nth-child(3) .pem-chip-icon { color: #69a469; }
.pem-chip:nth-child(4) .pem-chip-icon { color: #b98f48; }
.pem-chip:nth-child(5) .pem-chip-icon { color: #bf88cb; }
.pem-chip:nth-child(6) .pem-chip-icon { color: #69a967; }

.pem-section-head {
  margin-bottom: 16px;
}

.pem-section-head h2 {
  font-size: clamp(1.84rem, 2.3vw, 2.36rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pem-section-head a {
  font-size: 0.97rem;
  font-weight: 800;
}

.pem-section-subtitle {
  margin: 0 0 14px;
  color: #7f93ae;
  font-size: 0.92rem;
  font-weight: 500;
}

.home .pem-chips-section + .pem-section {
  padding-top: 16px;
}

.home .pem-chips-section + .pem-section .pem-section-head {
  align-items: center;
  margin-bottom: 16px;
}

.home .pem-chips-section + .pem-section .pem-section-subtitle {
  margin: 0 0 8px;
}

.pem-grid-cities {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.pem-grid-routes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pem-grid-season {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pem-grid-sights {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.pem-card,
.pem-season-card,
.pem-scenario-card {
  border: 1px solid #dfe8f4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(24, 53, 90, 0.05);
}

.pem-card:hover,
.pem-season-card:hover,
.pem-scenario-card:hover {
  box-shadow: 0 14px 28px rgba(24, 53, 90, 0.11);
}

.pem-card-city .pem-card-image {
  aspect-ratio: 0.95 !important;
}

.pem-card-city .pem-card-image::after,
.pem-card-sight .pem-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 44, 0.02) 6%, rgba(8, 24, 44, 0.76) 100%);
}

.pem-card-favorite {
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(21, 37, 63, 0.22);
  backdrop-filter: blur(6px);
  z-index: 5;
}

.pem-card-favorite .pem-icon {
  margin: 0;
}

.pem-card-overlay {
  inset: auto 0 0;
  padding: 16px;
  color: #fff;
  z-index: 4;
}

.pem-card-city .pem-card-overlay h3,
.pem-card-sight .pem-card-overlay h3 {
  margin: 0;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.15;
  font-weight: 600;
}

.pem-card-city-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.pem-card-city-meta span,
.pem-card-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.98);
}

.pem-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  z-index: 5;
}

.pem-card-route .pem-card-image {
  aspect-ratio: 1.86;
}

.pem-card-route .pem-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #173c71;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.pem-card-route .pem-card-content {
  display: grid;
  gap: 6px;
  padding: 16px 16px 14px;
}

.pem-card-route h3 {
  margin: 0;
  font-size: 1.11rem;
  line-height: 1.36;
  font-weight: 600;
}

.pem-card-route h3 a {
  color: inherit;
}

.pem-card-route .pem-card-route-meta,
.pem-card-route .pem-card-route-budget,
.pem-card-route .pem-card-content > p:not(.pem-card-route-meta):not(.pem-card-route-budget) {
  margin: 0;
}

.pem-card-route .pem-card-route-meta {
  color: #637898;
  font-size: 0.9rem;
  font-weight: 700;
}

.pem-card-route .pem-card-route-budget {
  color: #2c466d;
  font-size: 0.9rem;
  font-weight: 800;
}

.pem-card-route .pem-card-content > p:not(.pem-card-route-meta):not(.pem-card-route-budget) {
  color: #6f81a0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pem-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f4ab3a;
}

.pem-card-rating .pem-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: #f4ab3a;
}

.pem-card-rating small {
  color: #7588a7;
  font-size: 0.84rem;
  font-weight: 700;
}

.pem-card-route .pem-card-track {
  display: none;
}

.pem-card-map {
  height: 42px;
  margin: 0 14px 14px;
  border: 1px solid #d9e3f1;
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 42%, rgba(133, 176, 232, 0.14), transparent 24%),
    radial-gradient(circle at 68% 58%, rgba(133, 176, 232, 0.14), transparent 24%),
    linear-gradient(135deg, #fbfdff 24%, #eef4fb 24% 26%, #fbfdff 26% 49%, #eef4fb 49% 51%, #fbfdff 51% 74%, #eef4fb 74% 76%, #fbfdff 76%);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 14px 8px;
}

.pem-card-map-pin {
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #e55d63;
  box-shadow: 0 0 0 2px rgba(229, 93, 99, 0.18);
}

.pem-card-map-pin:nth-child(2) {
  background: #4e80c0;
  box-shadow: 0 0 0 2px rgba(78, 128, 192, 0.18);
}

.pem-season-card {
  min-height: 214px;
  padding: 0;
}

.pem-season-thumb {
  display: block;
  height: 112px;
  background-size: cover;
  background-position: center;
}

.pem-season-card h3 {
  padding: 14px 14px 0;
  margin: 0;
  font-size: 1.16rem;
  font-weight: 600;
}

.pem-season-card p {
  padding: 6px 14px 0;
  margin: 0;
  color: #697d9d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pem-season-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px 14px;
  color: #2f5f99;
  font-size: 0.9rem;
  font-weight: 800;
}

.pem-season-link::after,
.pem-section-head a::after {
  content: "›";
  margin-left: 0.35em;
  line-height: 1;
}

.pem-scenario-grid-home {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.pem-scenario-card {
  min-height: 160px;
  padding: 24px 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
}

.pem-scenario-card .pem-icon {
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 13px;
  border-radius: 50%;
  background: #edf4ff;
  color: #4b78b2;
}

.pem-scenario-card .pem-scenario-glyph {
  width: 54px;
  height: 54px;
  margin: 0;
}

.pem-scenario-card .pem-scenario-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pem-scenario-card:nth-child(2) .pem-icon {
  background: #edf8f1;
  color: #63a86c;
}

.pem-scenario-card:nth-child(3) .pem-icon {
  background: #f1ecfb;
  color: #8d74c2;
}

.pem-scenario-card:nth-child(4) .pem-icon {
  background: #edf8ef;
  color: #6ea465;
}

.pem-scenario-card:nth-child(5) .pem-icon {
  background: #f8f1e8;
  color: #b4864d;
}

.pem-scenario-card:nth-child(6) .pem-icon {
  background: #eef3fb;
  color: #6e86b7;
}

.pem-scenario-card strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
  font-weight: 800;
}

.pem-scenario-card small {
  display: block;
  color: #7b8faa;
  font-size: 0.88rem;
  line-height: 1.42;
  font-weight: 600;
}

.pem-card-sight .pem-card-image {
  aspect-ratio: 1.05;
}

.pem-card-overlay-compact {
  padding: 12px 12px 13px;
}

.pem-card-tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(19, 33, 57, 0.46);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.pem-card-sight h3 {
  font-size: 1.08rem;
}

.pem-card-sight .pem-card-caption {
  margin-top: 6px;
}

.pem-posts-hero {
  padding-top: 22px;
}

.pem-posts-hero-card {
  max-width: 820px;
  padding: 28px 30px;
  border: 1px solid #dfe8f4;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 18%, rgba(91, 162, 97, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 254, 0.94));
  box-shadow: 0 14px 32px rgba(24, 53, 90, 0.07);
}

.pem-grid-articles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pem-card-article {
  min-height: 100%;
}

.pem-card-article .pem-card-image {
  aspect-ratio: 1.62;
}

.pem-card-article-kicker {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18, 55, 101, 0.86);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.pem-card-article .pem-card-content {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.pem-card-article-meta,
.pem-card-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #6f83a2;
  font-size: 0.88rem;
  font-weight: 500;
}

.pem-card-article-meta span,
.pem-card-article-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pem-card-article-meta .pem-icon,
.pem-card-article-footer .pem-icon {
  width: 1rem;
  height: 1rem;
  color: #6e8db6;
}

.pem-card-article h3 {
  margin: 0;
  color: #18365f;
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 600;
}

.pem-card-article h3 a {
  color: inherit;
}

.pem-card-article-excerpt {
  color: #6a7e9d;
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 500;
}

.pem-card-article-footer {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 2px;
}

.pem-card-article-footer a {
  color: #123765;
  font-weight: 500;
}

.pem-card-article-footer a::after {
  content: "›";
  margin-left: 5px;
}

.pem-yandex-travel-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.3), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(91, 162, 97, 0.42), transparent 34%),
    linear-gradient(135deg, #123765, #1d5b96 58%, #4d9a62);
  box-shadow: 0 16px 34px rgba(18, 55, 101, 0.18);
}

.pem-yandex-travel-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
}

.pem-yandex-travel-card h3 {
  margin: 0;
  max-width: 14ch;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pem-yandex-travel-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  line-height: 1.52;
  font-weight: 500;
}

.pem-yandex-travel-card .pem-btn {
  align-self: flex-start;
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 500;
}

.pem-home-ad-section {
  padding-top: 18px;
}

.pem-home-ad-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  min-height: 260px;
  padding: 34px 38px;
  border: 1px solid #dce7f5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 18%, rgba(91, 162, 97, 0.18), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 52%, #ffffff 100%);
  box-shadow: 0 16px 38px rgba(24, 53, 90, 0.08);
}

.pem-home-ad-banner::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.pem-home-ad-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.pem-home-ad-content h2,
.pem-home-ad-content h3 {
  margin: 0 0 12px;
  color: #123765;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pem-home-ad-content p {
  max-width: 64ch;
  margin: 0 0 14px;
  color: #617694;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

.pem-home-ad-content .pem-ad-label {
  display: inline-flex;
  width: auto;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 55, 101, 0.08);
  color: #617694;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 500;
}

.pem-home-ad-content .pem-btn {
  width: auto;
  min-height: 44px;
  margin-top: 4px;
  font-weight: 500;
}

.pem-home-ad-media {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(18, 55, 101, 0.12);
}

.pem-home-ad-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.pem-intro-wrap {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  border: 1px solid #dde6f4;
  border-radius: 18px;
  padding: 30px 32px;
  background: #fff;
}

.pem-intro-icon {
  width: 86px;
  height: 86px;
  background: linear-gradient(180deg, #e7f1ff, #d7e9ff);
  color: #4a7cbf;
}

.pem-intro-icon .pem-icon {
  margin: 0;
  width: 40px;
  height: 40px;
}

.pem-intro-icon .pem-intro-glyph {
  margin: 0;
  width: 44px;
  height: 44px;
}

.pem-intro-icon .pem-intro-glyph svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pem-intro-wrap h2 {
  margin: 2px 0 10px;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 600;
}

.pem-main :is(h2, h3, h4, h5, h6) {
  font-weight: 600;
}

.pem-main .pem-section-head h2,
.pem-main .pem-card-route h3,
.pem-main .pem-season-card h3,
.pem-main .pem-intro-wrap h2 {
  font-weight: 600;
}

.single-gorod .pem-city-hero {
  padding: 20px 0 34px;
  border-bottom: 0;
  background: transparent;
  overflow: visible;
}

.single-gorod .pem-city-hero::before,
.single-gorod .pem-city-hero.has-image::after {
  display: none;
}

.single-gorod .pem-city-hero .pem-breadcrumbs {
  margin: 0 0 18px;
}

.single-gorod .pem-section {
  padding: 28px 0;
}

.single-gorod .pem-section-head-rich {
  align-items: flex-end;
  margin-bottom: 14px;
}

.single-gorod .pem-section-head-rich > div {
  min-width: 0;
}

.single-gorod .pem-section-head-rich .pem-section-subtitle {
  margin: 5px 0 0;
}

.single-gorod .pem-section-head-rich a {
  padding-bottom: 5px;
}

.pem-empty-note {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed #cdd9ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: #6d809d;
}

.pem-city-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.pem-city-hero-main {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 58px 430px 32px 46px;
  border-radius: 22px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(8, 28, 56, 0.9) 0%, rgba(10, 34, 67, 0.8) 38%, rgba(12, 38, 72, 0.38) 72%, rgba(12, 38, 72, 0.16) 100%),
    var(--hero-image, linear-gradient(135deg, #123765, #5f7d9f));
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(19, 53, 95, 0.16);
}

.pem-city-hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 38, 72, 0.08) 0%, rgba(12, 38, 72, 0.2) 100%);
  pointer-events: none;
}

.pem-city-hero-main > * {
  position: relative;
  z-index: 1;
}

.pem-city-hero-kicker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(10, 34, 67, 0.44);
  color: #fff;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.pem-city-hero-kicker .pem-icon {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.pem-city-hero-main h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 3.15vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(8, 28, 56, 0.24);
}

.pem-city-hero-main p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.03rem;
  line-height: 1.55;
}

.pem-city-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pem-city-hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
}

.pem-city-hero-stats .pem-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.pem-city-hero .pem-hero-actions {
  gap: 10px;
  margin-top: 26px;
}

.pem-city-hero .pem-btn {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.pem-city-hero .pem-btn .pem-icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0;
}

.pem-city-hero-side {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 320px;
  display: grid;
  gap: 12px;
  padding: 0;
}

.pem-city-hero-side .pem-side-card {
  border: 1px solid #dfe8f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(10, 34, 67, 0.13);
}

.pem-city-hero-side .pem-side-card {
  margin: 0;
  padding: 16px;
}

.pem-city-map-card h3,
.pem-city-useful-card h3,
.pem-city-hero-side .pem-side-card-cta h3 {
  margin: 0 0 12px;
}

.pem-city-map-preview {
  position: relative;
  min-height: 145px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #e0e9f4;
  background:
    radial-gradient(circle at 50% 50%, rgba(88, 154, 113, 0.2) 0 5px, transparent 6px),
    linear-gradient(34deg, transparent 0 44%, rgba(29, 74, 121, 0.16) 45% 48%, transparent 49%),
    linear-gradient(118deg, transparent 0 38%, rgba(29, 74, 121, 0.14) 39% 42%, transparent 43%),
    repeating-linear-gradient(0deg, rgba(25, 52, 85, 0.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(25, 52, 85, 0.07) 0 1px, transparent 1px 34px),
    #f4f8fd;
}

.pem-city-map-canvas {
  width: 100%;
  min-height: 174px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e0e9f4;
  border-radius: 12px;
  background: #eef4fb;
}

.pem-city-map-canvas.is-map-error {
  background:
    linear-gradient(135deg, rgba(19, 52, 85, 0.09) 0%, rgba(19, 52, 85, 0) 70%),
    #f4f8fd;
}

.pem-city-map-empty {
  margin: 0 0 12px;
  color: #4f6785;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pem-city-map-pin {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #123765;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 55, 101, 0.24);
}

.pem-city-map-pin .pem-icon {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
}

.pem-city-map-preview strong {
  position: absolute;
  left: 14px;
  bottom: 12px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #193455;
  line-height: 1.15;
}

.pem-ymap-balloon-image {
  width: 220px;
  max-width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.pem-ymap-balloon-image img {
  display: block;
  width: 100%;
  height: 122px;
  object-fit: cover;
}

.pem-ymap-balloon-link {
  display: inline-flex;
  margin-top: 8px;
  color: #123765;
  font-weight: 600;
}

.pem-city-useful-card .pem-icon-list {
  gap: 12px;
}

.pem-city-useful-card .pem-icon-list li {
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}

.pem-city-useful-card .pem-icon-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.pem-city-useful-card .pem-icon-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pem-city-hero-side .pem-side-card-cta {
  background: linear-gradient(160deg, #133a6c 0%, #0f2f56 100%);
}

.pem-city-hero-side .pem-side-card-cta .pem-btn-primary {
  justify-content: center;
  width: 100%;
  background: #fff;
  color: #123765;
}

.pem-city-plane-banner {
  overflow: hidden;
  padding: 0 !important;
}

.pem-city-plane-banner-media {
  min-height: 124px;
  background: linear-gradient(180deg, #dbeeff, #f4f8fd);
}

.pem-city-plane-banner-media img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.pem-city-plane-banner-content {
  display: grid;
  gap: 8px;
  padding: 15px 16px 16px;
}

.pem-city-plane-banner-content h3,
.pem-city-plane-banner-content p {
  margin: 0;
}

.pem-city-plane-banner-content h3 {
  color: #193455;
  font-size: 1.02rem;
  line-height: 1.25;
}

.pem-city-plane-banner-content p {
  color: #6b7f9b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pem-city-plane-banner-content .pem-btn {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
}

.pem-city-plane-banner-content :where(iframe, img, svg) {
  max-width: 100%;
}

.single-gorod .pem-info-grid {
  gap: 14px;
}

.single-gorod .pem-info-card {
  min-height: 160px;
  padding: 17px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(19, 53, 95, 0.05);
}

.single-gorod .pem-info-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 10px;
  color: #163d70;
  background: #eef5ff;
}

.single-gorod .pem-info-icon .pem-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
}

.single-gorod .pem-info-card h3 {
  max-width: 13ch;
  font-size: 1rem;
  line-height: 1.25;
}

.single-gorod .pem-info-card p {
  margin-top: 10px;
  color: #657997;
  line-height: 1.52;
}

.single-gorod .pem-grid-routes-city {
  gap: 16px;
}

.single-gorod .pem-scenario-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.single-gorod .pem-scenario-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: start;
  column-gap: 12px;
  padding: 16px;
  text-align: left;
}

.single-gorod .pem-scenario-card .pem-icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 38px;
  height: 38px;
  margin: 0;
}

.single-gorod .pem-scenario-card strong {
  align-self: end;
  color: #193455;
  font-size: 0.95rem;
  line-height: 1.2;
}

.single-gorod .pem-scenario-card small {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.single-gorod .pem-combo-grid {
  gap: 16px;
}

.single-gorod .pem-combo-grid .pem-season-card {
  min-height: 118px;
  padding: 20px;
}

.single-gorod .pem-combo-grid .pem-season-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 1.12rem;
}

.single-gorod .pem-combo-grid .pem-season-card h3 .pem-icon {
  width: 1.18rem;
  height: 1.18rem;
  margin: 0;
}

.single-gorod .pem-combo-grid .pem-season-card p {
  padding: 8px 0 0;
}

.pem-partner-widget {
  max-width: 100%;
}

.pem-partner-widget :where(iframe, img, svg) {
  max-width: 100%;
}

@media (min-width: 1025px) {
  .pem-city-hero-layout {
    display: block;
    min-height: 440px;
  }

  .single-gorod .pem-grid-start {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .single-gorod .pem-grid-routes-city {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pem-city-hero-layout {
    grid-template-columns: 1fr;
  }

  .pem-city-hero-main {
    min-height: 400px;
    padding: 56px 28px 34px;
  }

  .pem-city-hero-side {
    position: static;
    width: auto;
  }

  .single-gorod .pem-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pem-home-ad-banner {
    grid-template-columns: 1fr;
  }

  .pem-home-ad-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .single-gorod .pem-city-hero {
    padding-top: 14px;
  }

  .pem-city-hero-main {
    min-height: 360px;
    padding: 34px 20px 24px;
    border-radius: 18px;
  }

  .pem-city-hero-main h1 {
    max-width: 100%;
    font-size: 1.9rem;
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .pem-city-hero-main p {
    font-size: 0.98rem;
  }

  .pem-city-hero-stats {
    gap: 10px 16px;
  }

  .pem-city-hero .pem-hero-actions {
    width: 100%;
    align-items: stretch;
  }

  .pem-city-hero .pem-btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .single-gorod .pem-section-head-rich {
    align-items: flex-start;
    flex-direction: column;
  }

  .single-gorod .pem-scenario-grid {
    grid-template-columns: 1fr;
  }
}

.pem-header :where(*):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *),
.pem-main :where(*):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *),
.pem-footer :where(*):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *) {
  font-weight: 500 !important;
}

.pem-intro-wrap .pem-content p {
  margin-bottom: 0.7em;
  color: #59708f;
  font-size: 0.94rem;
  line-height: 1.6;
}

.pem-footer {
  margin-top: 18px;
  background: #14355f;
  color: rgba(255, 255, 255, 0.86);
}

.pem-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 24px;
  min-height: 112px;
  padding: 20px 0 22px;
}

.pem-footer-brand strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.92rem;
}

.pem-footer-brand p,
.pem-footer-copy,
.pem-footer-menu a {
  font-size: 0.72rem;
}

.pem-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pem-footer-menu-wrap strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.78rem;
}

.pem-footer-menu {
  display: grid;
  gap: 8px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 1280px) {
  .pem-grid-sights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pem-main-nav {
    display: none;
  }

  .pem-header-menu-toggle {
    display: inline-flex;
  }

  .pem-hero.has-image::after {
    inset: 0 0 0 36%;
    background-size: auto 88%;
  }

  .pem-chip-grid,
  .pem-grid-articles,
  .pem-grid-cities,
  .pem-grid-routes,
  .pem-grid-season,
  .pem-grid-sights,
  .pem-scenario-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pem-chip + .pem-chip {
    border-left: 0;
  }

  .pem-scenario-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pem-logo-text {
    display: none;
  }

  .pem-hero.has-image::after {
    inset: auto 0 0;
    background-size: cover;
    background-position: center right;
    opacity: 0.28;
  }

  .pem-hero-inner {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .pem-hero-copy h1 {
    font-size: 2rem;
  }

  .pem-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .pem-btn {
    width: 100%;
  }

  .pem-chips-section {
    margin-top: -22px;
  }

  .pem-chip-grid,
  .pem-grid-articles,
  .pem-grid-cities,
  .pem-grid-routes,
  .pem-grid-season,
  .pem-grid-sights,
  .pem-scenario-grid-home {
    grid-template-columns: 1fr;
  }

  .pem-intro-wrap {
    grid-template-columns: 1fr;
  }

  .pem-posts-hero-card {
    padding: 22px;
    border-radius: 18px;
  }

  .pem-footer-inner,
  .pem-footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pem-logo-wrap {
    min-width: 0;
  }

  .single-gorod .pem-container {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    padding: 0;
  }

  .single-gorod .pem-city-hero-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 34px 20px 24px !important;
  }

  .single-gorod .pem-city-hero-main > * {
    max-width: 100%;
    min-width: 0;
  }

  .single-gorod .pem-city-hero-main h1 {
    max-width: calc(100vw - 80px);
    font-size: 1.72rem;
  }

  .single-gorod .pem-city-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .single-gorod .pem-city-hero .pem-btn {
    width: calc(100vw - 80px);
    max-width: 100%;
  }

  .single-gorod .pem-section-head h2 {
    max-width: 100%;
    font-size: 1.45rem;
    line-height: 1.22;
    overflow-wrap: break-word;
  }

  .pem-home-ad-banner {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .pem-home-ad-banner::after {
    inset: 10px;
    border-radius: 14px;
  }

  .pem-home-ad-media,
  .pem-home-ad-media img {
    min-height: 170px;
  }

  .single-gorod .pem-city-useful-card .pem-icon-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .single-gorod .pem-city-useful-card .pem-icon-list strong {
    text-align: left;
  }
}

/* Mobile navigation drawer */
html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  --pem-mobile-admin-offset: 0px;
}

body.admin-bar {
  --pem-mobile-admin-offset: 32px;
}

.pem-burger {
  width: 21px;
  height: 16px;
  display: grid;
  align-content: space-between;
}

.pem-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.pem-header-menu-toggle[aria-expanded="true"] .pem-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pem-header-menu-toggle[aria-expanded="true"] .pem-burger span:nth-child(2) {
  opacity: 0;
}

.pem-header-menu-toggle[aria-expanded="true"] .pem-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pem-mobile-nav {
  position: fixed;
  top: var(--pem-mobile-admin-offset);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  height: calc(100vh - var(--pem-mobile-admin-offset));
  height: calc(100dvh - var(--pem-mobile-admin-offset));
  max-height: none;
  overflow: hidden;
  pointer-events: none;
  border: 0;
  visibility: hidden;
  overscroll-behavior: none;
}

.pem-mobile-nav.is-open {
  max-height: none;
  border: 0;
  pointer-events: auto;
  visibility: visible;
}

.pem-mobile-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(91, 162, 97, 0.18), transparent 32%),
    rgba(12, 31, 58, 0.42);
  opacity: 0;
  backdrop-filter: blur(0);
  transition: opacity 0.22s ease, backdrop-filter 0.22s ease;
}

.pem-mobile-nav.is-open .pem-mobile-backdrop {
  opacity: 1;
  backdrop-filter: blur(5px);
}

.pem-mobile-panel {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: auto;
  width: min(430px, calc(100vw - 20px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(218, 229, 244, 0.92);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
    radial-gradient(circle at 20% 0, rgba(207, 227, 255, 0.75), transparent 34%);
  box-shadow: 0 24px 70px rgba(10, 28, 54, 0.28);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.22, 1);
}

.pem-mobile-nav.is-open .pem-mobile-panel {
  transform: translateX(0);
}

.pem-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pem-mobile-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #17365f;
}

.pem-mobile-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(145deg, #123765, #1f5d9a);
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: -0.04em;
}

.pem-mobile-brand span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pem-mobile-brand strong {
  overflow: hidden;
  color: #17365f;
  font-size: 0.98rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pem-mobile-brand small {
  overflow: hidden;
  color: #7b8faa;
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pem-mobile-close {
  width: 42px;
  height: 42px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #dbe6f4;
  border-radius: 15px;
  background: #fff;
  color: #17365f;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 52, 91, 0.08);
}

.pem-mobile-close span::before,
.pem-mobile-close span::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.pem-mobile-close span::before {
  transform: rotate(45deg);
}

.pem-mobile-close span::after {
  transform: rotate(-45deg);
}

.pem-mobile-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pem-mobile-quick a {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #193455;
  box-shadow: 0 9px 18px rgba(25, 52, 85, 0.055);
}

.pem-mobile-quick svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #3c6fa8;
}

.pem-mobile-quick span {
  font-size: 0.9rem;
  line-height: 1.15;
}

.pem-mobile-menu-wrap {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.pem-mobile-menu-wrap::-webkit-scrollbar {
  width: 4px;
}

.pem-mobile-menu-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cddbed;
}

.pem-mobile-menu {
  margin: 0;
  padding: 0 0 4px;
  display: grid;
  gap: 8px;
  list-style: none;
}

.pem-mobile-menu li {
  min-width: 0;
  position: relative;
  list-style: none;
}

.pem-mobile-menu > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(25, 52, 85, 0.045);
}

.pem-mobile-menu > li.current-menu-item,
.pem-mobile-menu > li.current-menu-ancestor {
  border-color: rgba(91, 162, 97, 0.42);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbf4 100%);
}

.pem-mobile-menu a {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 0;
  color: #17365f;
  font-size: 1.02rem;
  line-height: 1.2;
}

.pem-mobile-menu > li:not(.menu-item-has-children) > a {
  grid-column: 1 / -1;
}

.pem-mobile-menu .pem-submenu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  margin-right: 8px;
  border: 1px solid #dbe6f4;
  border-radius: 13px;
  background: #f7faff;
  color: #47658b;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.pem-mobile-menu .pem-submenu-toggle span {
  width: 8px;
  height: 8px;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.pem-mobile-menu .is-open > .pem-submenu-toggle {
  background: #e9f3ff;
  color: #163d70;
}

.pem-mobile-menu .is-open > .pem-submenu-toggle span {
  transform: translateY(2px) rotate(225deg);
}

.pem-mobile-menu .sub-menu {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-height: 0;
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
  list-style: none;
  opacity: 0;
  transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.18s ease;
}

.pem-mobile-menu .is-open > .sub-menu {
  max-height: 720px;
  padding: 0 10px 12px;
  opacity: 1;
}

.pem-mobile-menu .sub-menu li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
}

.pem-mobile-menu .sub-menu li:not(.menu-item-has-children) > a {
  grid-column: 1 / -1;
}

.pem-mobile-menu .sub-menu a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f4f8fd;
  color: #47617f;
  font-size: 0.9rem;
}

.pem-mobile-menu .sub-menu .sub-menu {
  padding-left: 8px;
}

.pem-mobile-cta {
  display: grid;
  gap: 5px;
  padding: 17px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(18, 55, 101, 0.94), rgba(26, 82, 132, 0.92)),
    radial-gradient(circle at 85% 12%, rgba(91, 162, 97, 0.55), transparent 35%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(18, 55, 101, 0.2);
}

.pem-mobile-cta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.pem-mobile-cta strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.pem-mobile-cta a {
  justify-self: start;
  margin-top: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #123765;
  font-size: 0.86rem;
}

@media (max-width: 1024px) {
  .pem-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(247, 250, 255, 0.92);
    border-bottom: 1px solid rgba(216, 226, 240, 0.88);
    backdrop-filter: blur(14px) saturate(160%);
  }

  .admin-bar .pem-header {
    top: 32px;
  }

  .pem-header-inner {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .pem-logo-wrap {
    min-width: 0;
  }

  .pem-header-actions {
    gap: 7px;
  }

  .pem-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 16px rgba(20, 51, 88, 0.06);
  }
}

@media (max-width: 782px) {
  .admin-bar .pem-header {
    top: 46px;
  }

  body.admin-bar {
    --pem-mobile-admin-offset: 46px;
  }
}

@media (max-width: 480px) {
  .pem-mobile-panel {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    padding: 12px;
    border-radius: 24px;
  }

  .pem-mobile-brand small {
    display: none;
  }

  .pem-mobile-quick {
    grid-template-columns: 1fr;
  }

  .pem-mobile-menu a {
    font-size: 0.98rem;
  }
}

.pem-filter-panel {
  margin: 0 0 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(116, 136, 166, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(19, 48, 86, 0.08);
}

.pem-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.pem-filter-grid label,
.pem-filter-checks label {
  color: var(--pem-color-muted, #64748b);
  font-size: 0.86rem;
  font-weight: 500;
}

.pem-filter-grid select {
  width: 100%;
  margin-top: 0.38rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(116, 136, 166, 0.28);
  border-radius: 14px;
  background: #fff;
  color: var(--pem-color-text, #153154);
  font: inherit;
  font-weight: 500;
}

.pem-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.pem-filter-checks input {
  margin-right: 0.35rem;
}

.pem-filter-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pem-filter-panel-compact .pem-filter-checks {
  margin-top: 0;
}

.pem-timeline-meta,
.pem-timeline-note {
  margin: 0.35rem 0 0;
  color: var(--pem-color-muted, #64748b);
  font-size: 0.9rem;
  font-weight: 500;
}

.pem-timeline-note {
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: rgba(80, 153, 91, 0.09);
}

@media (max-width: 1180px) {
  .pem-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pem-filter-panel {
    padding: 1rem;
    border-radius: 18px;
  }

  .pem-filter-grid {
    grid-template-columns: 1fr;
  }

  .pem-filter-actions {
    flex-direction: column;
  }
}
