/* Внутренние страницы направлений */
.ea-city-page {
  background: #f4f7fa;
  color: #273746;
  font-family: inherit;
}

.ea-city-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ea-city-page h1,
.ea-city-page h2,
.ea-city-page h3 {
  font-family: inherit;
}

.ea-city-page p {
  margin: 0 0 1em;
}

/* Hero */
.ea-city-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 58px;
  background: linear-gradient(126deg, #071f36 0%, #0a3557 45%, #0a5b94 100%);
  color: #fff;
}

.ea-city-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  pointer-events: none;
}

.ea-city-hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -190px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035), 0 0 0 120px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.ea-city-hero .ea-city-container {
  position: relative;
  z-index: 1;
}

.ea-city-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  line-height: 1.4;
}

.ea-city-crumbs a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.ea-city-crumbs a:hover {
  color: #fff;
}

.ea-city-crumbs span[aria-current] {
  color: rgba(255, 255, 255, 0.88);
}

.ea-city-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 54px;
  align-items: center;
}

.ea-city-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #f3c64d;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ea-city-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3c64d;
  box-shadow: 0 0 0 4px rgba(243, 198, 77, 0.18);
}

.ea-city-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.05rem, 3.7vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.ea-city-hero__lead {
  max-width: 610px;
  margin-bottom: 24px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 15.5px;
  line-height: 1.6;
}

.ea-city-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.ea-city-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ea-city-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.ea-city-btn:focus-visible,
.ea-city-chips a:focus-visible,
.ea-city-route__cta:focus-visible,
.ea-city-faq__item summary:focus-visible {
  outline: 3px solid rgba(243, 198, 77, 0.65);
  outline-offset: 3px;
}

.ea-city-btn--primary {
  border-color: #f3c64d;
  background: #f3c64d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #18334b !important;
}

.ea-city-btn--primary:hover {
  border-color: #ffd76a;
  background: #ffd76a;
  color: #18334b !important;
}

.ea-city-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.ea-city-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.ea-city-btn--light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.ea-city-btn--light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.ea-city-btn--wide {
  width: 100%;
}

.ea-city-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  list-style: none;
}

.ea-city-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.ea-city-badges li::before {
  content: "✓";
  color: #f3c64d;
  font-size: 12px;
  font-weight: 700;
}

/* Route card */
.ea-city-route {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ea-city-route__head span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ea-city-route__head strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.ea-city-route__line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}

.ea-city-route__line i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 2px solid #f3c64d;
  border-radius: 50%;
  background: transparent;
}

.ea-city-route__line b {
  display: block;
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 4px, transparent 4px 9px);
}

.ea-city-route__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.ea-city-route__stats div {
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ea-city-route__stats div:last-child {
  border-right: 0;
  padding-right: 0;
}

.ea-city-route__stats strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ea-city-route__stats span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ea-city-route__road {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ea-city-route__road span {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ea-city-route__road strong {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.ea-city-route__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3c64d !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}

.ea-city-route__cta span {
  font-size: 17px;
  transition: transform 0.18s ease;
}

.ea-city-route__cta:hover span {
  transform: translateX(3px);
}

/* Trust strip */
.ea-city-trust {
  border-bottom: 1px solid #e2e9f0;
  background: #fff;
}

.ea-city-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 0;
}

.ea-city-trust__grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 18px;
  border-right: 1px solid #e8eef4;
}

.ea-city-trust__grid div:last-child {
  border-right: 0;
}

.ea-city-trust strong {
  color: #0a4d80;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
}

.ea-city-trust span {
  color: #7b8c9c;
  font-size: 10.5px;
  line-height: 1.35;
}

/* Убираем старую кнопку из общего футера на страницах направлений */
.ea-city-template #footer #row-1464168534,
.ea-city-template #footer .row:first-of-type {
  display: none !important;
}

/* Body */
.ea-city-body {
  padding: 56px 0 64px;
}

.ea-city-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.ea-city-article {
  padding: 38px 40px;
  border: 1px solid #e5ecf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(9, 40, 70, 0.05);
}

.ea-city-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #0a66b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ea-city-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3c64d;
  box-shadow: 0 0 0 3px rgba(243, 198, 77, 0.2);
}

.ea-city-text {
  color: #344658;
  font-size: 15.5px;
  line-height: 1.8;
}

.ea-city-text p {
  margin: 0 0 1.05em;
  text-align: left !important;
}

.ea-city-text > p:first-of-type {
  color: #1d3449;
  font-size: 17px;
  line-height: 1.7;
}

.ea-city-text strong {
  color: #163a5a;
}

.ea-city-text a {
  color: #0a66b7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ea-city-text a:hover {
  color: #094e8a;
}

.ea-city-text ul,
.ea-city-text ol {
  margin: 0 0 1.1em;
  padding-left: 20px;
}

.ea-city-text li {
  margin-bottom: 0.45em;
}

.ea-city-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 30px 0 6px;
  overflow: hidden;
  border: 1px solid #e7eef4;
  border-radius: 12px;
  background: #e7eef4;
}

.ea-city-facts > div {
  padding: 15px 16px;
  background: #f7fafc;
}

.ea-city-facts strong {
  display: block;
  color: #0a4d80;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.ea-city-facts span {
  display: block;
  margin-top: 3px;
  color: #8494a3;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* FAQ */
.ea-city-faq {
  margin-top: 38px;
  padding-top: 4px;
  border-top: 1px solid #e8eef4;
}

.ea-city-faq h2,
.ea-city-other h2 {
  margin: 0 0 16px;
  color: #173a57;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ea-city-faq__item {
  border-top: 1px solid #e8eef4;
}

.ea-city-faq__item:last-child {
  border-bottom: 1px solid #e8eef4;
}

.ea-city-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  color: #233c53;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.ea-city-faq__item summary::-webkit-details-marker {
  display: none;
}

.ea-city-faq__item summary span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #dce7f0;
  border-radius: 50%;
  color: #0a66b7;
  font-size: 16px;
  font-weight: 400;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ea-city-faq__item[open] summary {
  color: #0a4d80;
}

.ea-city-faq__item[open] summary span {
  border-color: #0a4d80;
  background: #0a4d80;
  color: #fff;
  transform: rotate(45deg);
}

.ea-city-faq__item > div {
  padding: 0 34px 17px 0;
}

.ea-city-faq__item > div p {
  margin: 0;
  color: #647786;
  font-size: 13px;
  line-height: 1.65;
}

/* Other directions */
.ea-city-other {
  margin-top: 38px;
  padding-top: 4px;
  border-top: 1px solid #e8eef4;
}

.ea-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ea-city-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dfe9f1;
  border-radius: 999px;
  background: #f7fafc;
  color: #31516c !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ea-city-chips a:hover {
  border-color: #0a4d80;
  background: #0a4d80;
  color: #fff !important;
}

.ea-city-chips .ea-city-chips__all {
  border-color: #f3c64d;
  background: #fff8e3;
  color: #7a5a00 !important;
}

.ea-city-chips .ea-city-chips__all:hover {
  border-color: #eebe20;
  background: #eebe20;
  color: #23384d !important;
}

/* Sidebar */
.ea-city-side {
  position: sticky;
  top: 24px;
}

.ea-city-sidecard {
  padding: 24px;
  border-radius: 16px;
  background: #0a3557;
  box-shadow: 0 18px 40px rgba(9, 40, 70, 0.16);
  color: #fff;
}

.ea-city-sidecard .ea-city-label {
  color: #f3c64d;
}

.ea-city-sidecard h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ea-city-sidecard p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12.5px;
  line-height: 1.55;
}

.ea-city-sidecard__phone {
  display: block;
  margin-bottom: 2px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.ea-city-sidecard__hours {
  display: block;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
}

.ea-city-sidecard .ea-city-btn {
  width: 100%;
}

.ea-city-sidecard--light {
  margin-top: 14px;
  border: 1px solid #e4ecf3;
  background: #fff;
  box-shadow: 0 10px 26px rgba(9, 40, 70, 0.04);
  color: #2c4a63;
}

.ea-city-sidecard--light h3 {
  color: #173a57;
}

.ea-city-sidecard--light p {
  margin-bottom: 10px;
  color: #687d8e;
}

.ea-city-sidecard__mail {
  display: block;
  margin-bottom: 8px;
  color: #0a66b7 !important;
  font-size: 12px;
  text-decoration: none !important;
}

.ea-city-sidecard__mail:hover {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.ea-city-sidecard--light .ea-city-sidecard__hours {
  margin-bottom: 0;
  color: #93a3b1;
}

/* Bottom CTA */
.ea-city-bottom {
  padding: 36px 0;
  background: linear-gradient(120deg, #082844 0%, #0a4d80 100%);
}

.ea-city-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.ea-city-bottom .ea-city-label {
  color: #f3c64d;
}

.ea-city-bottom h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ea-city-bottom p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  line-height: 1.5;
}

.ea-city-bottom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .ea-city-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ea-city-route {
    max-width: 560px;
  }

  .ea-city-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ea-city-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .ea-city-sidecard--light {
    margin-top: 0;
  }

  .ea-city-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .ea-city-container {
    width: calc(100% - 28px);
  }

  .ea-city-hero {
    padding: 20px 0 38px;
  }

  .ea-city-crumbs {
    margin-bottom: 20px;
    font-size: 10.5px;
  }

  .ea-city-hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.5rem);
  }

  .ea-city-hero__lead {
    font-size: 14px;
  }

  .ea-city-actions {
    flex-direction: column;
  }

  .ea-city-actions .ea-city-btn {
    width: 100%;
  }

  .ea-city-route {
    padding: 20px;
  }

  .ea-city-trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .ea-city-trust__grid div:nth-child(2) {
    border-right: 0;
  }

  .ea-city-trust__grid div:nth-child(3),
  .ea-city-trust__grid div:nth-child(4) {
    border-right: 0;
  }

  .ea-city-body {
    padding: 32px 0 40px;
  }

  .ea-city-article {
    padding: 26px 22px;
  }

  .ea-city-text {
    font-size: 14.5px;
  }

  .ea-city-text > p:first-of-type {
    font-size: 16px;
  }

  .ea-city-facts {
    grid-template-columns: 1fr;
  }

  .ea-city-faq h2,
  .ea-city-other h2 {
    font-size: 20px;
  }

  .ea-city-side {
    grid-template-columns: 1fr;
  }

  .ea-city-bottom {
    padding: 28px 0;
  }

  .ea-city-bottom__actions {
    width: 100%;
    flex-direction: column;
  }

  .ea-city-bottom__actions .ea-city-btn {
    width: 100%;
  }
}
