.header-inner {
  grid-template-columns: minmax(180px, 1fr) 152px auto auto;
  gap: 18px;
}

.city-picker {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.city-trigger {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 6px 9px;
  color: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.city-trigger:hover, .city-trigger[aria-expanded="true"] { border-color: #b8a21b; background: #fffdf1; }
.city-trigger:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.city-trigger:disabled { cursor: wait; }
.city-trigger-pin { display: grid; place-items: center; width: 28px; height: 32px; border-radius: 4px; background: var(--yellow); }
.city-trigger-pin .icon { width: 17px; height: 17px; }
.city-trigger-copy { display: grid; gap: 1px; min-width: 0; line-height: 1.2; }
.city-trigger-copy small { font-size: 10px; color: var(--muted); font-weight: 600; }
.city-trigger-copy strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.city-trigger-arrow { width: 12px; height: 12px; transform: rotate(90deg); transition: transform 160ms ease; }
.city-trigger[aria-expanded="true"] .city-trigger-arrow { transform: rotate(-90deg); }
.city-panel { position: absolute; top: calc(100% + 12px); left: 0; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100dvh - var(--header-height) - 30px); overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 6px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: 6px; box-shadow: 0 14px 38px #10111226; animation: city-panel-in 160ms ease both; }
.city-panel[hidden] { display: none; }
.city-panel-title { margin: 0; padding: 15px 12px 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.city-option { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 5px; width: 100%; min-height: 102px; padding: 14px 12px; color: var(--black); text-align: left; border: 0; border-top: 1px solid #eeeeeb; background: var(--white); border-radius: 0; cursor: pointer; }
.city-option:hover { background: var(--soft); }
.city-option[aria-checked="true"] { background: #fff8d4; }
.city-option:focus-visible { outline: 2px solid var(--black); outline-offset: -3px; }
.city-option > strong { font-size: 16px; font-weight: 800; line-height: 1.25; }
.city-option-details { display: grid; gap: 6px; grid-column: 1; font-size: 12px; line-height: 1.45; }
.city-option-address { color: #555b60; }
.city-option-hours { color: var(--black); font-weight: 600; }
.city-option-time { white-space: nowrap; }
@keyframes city-panel-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

body.city-welcome-open { overflow: hidden; }
.city-welcome { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto; overflow-y: auto; overscroll-behavior: contain; color: var(--black); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 8px; box-shadow: 0 20px 60px #10111233; }
.city-welcome::backdrop { background: #10111273; }
.city-welcome[open] { animation: city-panel-in 180ms ease both; }
.city-welcome [hidden] { display: none; }
.city-welcome-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 26px 24px 22px; }
.city-welcome-header .eyebrow { margin: 0 0 10px; }
.city-welcome h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; }
.city-welcome-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-top: -8px; margin-right: -8px; padding: 0; color: var(--black); border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.city-welcome-close:hover { background: var(--soft); }
.city-welcome-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 24px 24px; }
.city-welcome-choices button { min-width: 0; min-height: 60px; padding: 10px 8px; font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--black); background: var(--yellow); border: 1px solid var(--yellow); border-radius: 4px; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.city-welcome-choices button:hover { background: #ffe65c; border-color: #b8a21b; }
.city-welcome-geo { padding: 20px 24px 22px; border-top: 1px solid var(--line); }
.city-find { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; color: var(--black); font-size: 14px; font-weight: 800; border: 1px solid var(--line); border-radius: 4px; background: var(--white); cursor: pointer; }
.city-find:hover { border-color: var(--black); background: var(--soft); }
.city-find:disabled { cursor: progress; color: var(--muted); background: var(--soft); }
.city-find-spinner { display: none; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: currentColor; border-radius: 50%; animation: city-find-spin 800ms linear infinite; }
.city-find[aria-busy="true"] > .icon { display: none; }
.city-find[aria-busy="true"] .city-find-spinner { display: block; }
.city-geo-feedback { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.city-geo-feedback:not(:empty) { margin-top: 14px; }
.city-nearest { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.city-nearest-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.city-nearest h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.city-nearest > p:not(.city-nearest-label) { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.city-nearest-hours { font-weight: 600; }
.city-nearest .button { width: 100%; margin-top: 10px; }
@keyframes city-find-spin { to { transform: rotate(360deg); } }
.hero-details { align-items: start; }
.hero-details dd { display: grid; gap: 4px; }
.hero-details dd > strong { font-size: 18px; }
.hero-details [data-workshop-days],
.hero-details [data-workshop-day-off] { font-size: 12px; color: var(--muted); font-weight: 500; }
.hero-details [data-workshop-day-off] { display: none; }
html[data-city="lukhovitsy"] .hero-details [data-workshop-day-off] { display: block; }
.hero-map-link, .contact-map-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-weight: 800; }
.hero-map-link { margin-top: 8px; font-size: 13px; min-height: 32px; border-bottom: 2px solid var(--yellow); }
.hero-map-link .icon, .contact-map-link .icon { width: 16px; height: 16px; }
.contact-map-link { margin-top: 5px; min-height: 32px; font-size: 13px; }
.speed-contact > span { line-height: 1.6; }
.contacts-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 60px; align-items: center; }
.contact-copy h2 { font-size: 42px; }
.contact-location { min-height: 0; width: 100%; aspect-ratio: 4 / 3; background: #e7e8e6; border-radius: var(--radius); overflow: hidden; }
.contact-location img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-location img[hidden], .contact-location > span[hidden] { display: none; }
.contact-location[data-city="istra"] img { object-fit: contain; background: #101112; }
.contact-location > span { max-width: calc(100% - 40px); }
.location-photo-controls { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 4px; color: white; background: #101112; border-radius: 4px; }
.location-photo-controls[hidden] { display: none; }
.location-photo-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; color: white; background: transparent; cursor: pointer; }
.location-photo-controls button:hover { color: var(--yellow); }
.location-photo-controls button:first-child .icon { transform: rotate(180deg); }
.location-photo-controls > span { min-width: 36px; text-align: center; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.map-wrap { scroll-margin-top: calc(var(--header-height) + 20px); }
.map-tabs button { min-height: 44px; }
.workshop-map { height: 500px; width: 100%; background: #e7e8e6; isolation: isolate; z-index: 0; }
.workshop-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-no-script { padding: 20px; }
.reviews-empty { min-height: 240px; padding: 50px 0; border-block: 1px solid var(--line); text-align: center; }
.reviews-empty[hidden] { display: none; }
.reviews-empty > .icon { width: 30px; height: 30px; margin-bottom: 14px; color: #74797d; }
.reviews-empty h3 { margin: 0 0 12px; font-size: 22px; }
.reviews-empty p { margin: 0 auto; max-width: 480px; color: var(--muted); }
.reviews-score[data-empty="true"] > strong { color: #74797d; }
.reviews-carousel[hidden] { display: none; }
.reviews-all[hidden] { display: none; }
.reviews-summary[hidden] { display: none; }
.footer-inner { grid-template-columns: 1fr minmax(200px, 1.2fr) 1fr; }

@media (max-width: 1320px) and (min-width: 1241px) {
  .header-inner { gap: 10px; grid-template-columns: minmax(160px, 1fr) 152px auto auto; }
  .main-nav a { padding-inline: 8px; font-size: 13px; }
  .brand-copy strong { font-size: 16px; }
  .header-phone { padding-inline: 10px; }
}

@media (max-width: 1240px) {
  .header-inner { grid-template-columns: 1fr 152px auto auto; gap: 12px; }
  .city-picker { grid-column: 2; grid-row: 1; }
  .header-phone { grid-column: 3; grid-row: 1; }
  .menu-button { grid-column: 4; grid-row: 1; }
  .contacts-layout { gap: 32px; }
}

@media (max-width: 900px) {
  .contacts-layout { grid-template-columns: 1fr; }
  .contact-location { max-width: none; min-height: 0; }
}

@media (max-width: 680px) {
  :root { --header-height: 114px; }
  .header-inner { grid-template-columns: 1fr 44px 44px; grid-template-rows: 58px 48px; gap: 0 8px; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-phone { grid-column: 2; grid-row: 1; }
  .menu-button { grid-column: 3; grid-row: 1; }
  .city-picker { grid-column: 1 / -1; grid-row: 2; }
  .city-trigger { height: 44px; }
  .city-trigger-pin { height: 28px; }
  .city-trigger-copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .city-trigger-copy small { font-size: 12px; }
  .city-panel { top: calc(100% + 10px); width: 100%; max-width: none; }
  .hero-details { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; }
  .hero-details dd > strong { font-size: 18px; }
  .hero-details [data-workshop-street] { font-size: 13px; }
  .hero-map-link { font-size: 12px; min-height: 44px; margin-top: 0; }
  .contact-copy h2 { font-size: 32px; }
  .contacts-layout { gap: 24px; margin-bottom: 32px; }
  .contact-location { aspect-ratio: 4 / 3; min-height: 0; }
  .contact-location > span { right: 12px; bottom: 12px; font-size: 11px; padding: 8px 10px; }
  .map-heading { gap: 16px; }
  .map-controls { width: 100%; justify-content: space-between; }
  .map-tabs { display: flex; width: 100%; }
  .map-tabs button { flex: 1; padding-inline: 10px; }
  .map-route { width: 100%; justify-content: center; }
  .workshop-map { height: 400px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero-details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .city-welcome-header { padding: 22px 16px 20px; }
  .city-welcome h2 { font-size: 22px; }
  .city-welcome-choices { gap: 6px; padding: 0 16px 20px; }
  .city-welcome-choices button { min-height: 56px; padding-inline: 3px; font-size: 13px; }
  .city-welcome-geo { padding: 18px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .city-trigger, .city-trigger-arrow { transition: none; }
  .city-panel { animation: none; }
  .city-welcome[open], .city-find-spinner { animation: none; }
  .city-welcome-choices button { transition: none; }
}
