/* Hide only the obsolete "Тип АКПП" navigation item. Phone and CTA remain. */
.tg-city-intent-enabled .tg-site-nav a[href*="/opredelit-tip-akpp/"],
.tg-city-intent-enabled .tg-site-mobile a[href*="/opredelit-tip-akpp/"] {
  display: none !important;
}

.tg-city-intent,
.tg-city-intent * {
  box-sizing: border-box;
}

.tg-city-intent[hidden],
.tg-city-intent__step[hidden] {
  display: none !important;
}

.tg-city-intent {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  color: #f5f5f2;
  font-family: Manrope, Arial, sans-serif;
}

.tg-city-intent__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 9, 0.82);
  backdrop-filter: blur(9px);
}

.tg-city-intent__dialog {
  position: relative;
  width: min(100%, 670px);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  outline: 0;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 111, 35, 0.14), transparent 34%),
    #0d1117;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.tg-city-intent__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f2;
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.tg-city-intent__close:hover,
.tg-city-intent__close:focus-visible {
  border-color: #ff6f23;
  color: #ff9b4a;
}

.tg-city-intent__eyebrow {
  margin: 0 52px 12px 0;
  color: #ff6f23;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tg-city-intent h2 {
  margin: 0 42px 16px 0;
  color: #f5f5f2;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.tg-city-intent p:not(.tg-city-intent__eyebrow) {
  margin: 0;
  color: #b9bbc1;
  font-size: 16px;
  line-height: 1.65;
}

.tg-city-intent__actions,
.tg-city-intent__links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.tg-city-intent__button,
.tg-city-intent__links a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #f5f5f2;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tg-city-intent__button:hover,
.tg-city-intent__button:focus-visible,
.tg-city-intent__links a:hover,
.tg-city-intent__links a:focus-visible {
  transform: translateY(-1px);
  border-color: #ff6f23;
  outline: 0;
  background: rgba(255, 111, 35, 0.1);
}

.tg-city-intent__button--primary {
  border-color: #ff6f23;
  background: linear-gradient(135deg, #ff6f23 0%, #ff9b4a 100%);
  color: #17100c;
}

.tg-city-intent__button--primary:hover,
.tg-city-intent__button--primary:focus-visible {
  background: linear-gradient(135deg, #ff7c35 0%, #ffa55c 100%);
}

.tg-city-intent__links a span {
  flex: 0 0 auto;
  margin-left: 18px;
  color: #ff9b4a;
  font-size: 20px;
}

.tg-city-intent__text-button {
  margin-top: 22px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 155, 74, 0.55);
  background: transparent;
  color: #ff9b4a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

body.tg-city-intent-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .tg-city-intent {
    align-items: end;
    padding: 12px;
  }

  .tg-city-intent__dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 28px 20px 24px;
    border-radius: 14px;
  }

  .tg-city-intent h2 {
    margin-right: 34px;
    font-size: 29px;
  }

  .tg-city-intent p:not(.tg-city-intent__eyebrow) {
    font-size: 14px;
  }
}

