/* Ortosalon — оформление. Перенесено из макетов редизайна. */

:root {
  --ink: #16273f;
  --blue: #205597;
  --muted: #5a6675;
  --line: rgba(22, 39, 63, .08);
  --tint: #e7eef7;
  --bg-soft: #f4f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

a { color: var(--blue); }
a:hover { color: #16406f; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; }
.pad-x { padding-left: 40px; padding-right: 40px; }

/* --------------------------------------------------------------- шапка */

.h-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 40px; border-bottom: 1px solid var(--line);
}
.h-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.h-logo img { width: 42px; height: 42px; object-fit: contain; }
.h-logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.h-logo-name { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.h-logo-sub { font-size: 11px; font-weight: 600; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; }

.h-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 14.5px; }
.h-nav a { text-decoration: none; color: var(--ink); }
.h-right { display: flex; align-items: center; gap: 16px; }

.h-phone { text-decoration: none; text-align: right; line-height: 1.1; }
.h-phone b { display: block; font-weight: 800; font-size: 16px; color: var(--ink); }
.h-phone span { font-size: 10.5px; font-weight: 600; color: var(--muted); }

.lang { display: flex; background: #eef2f8; border-radius: 8px; padding: 3px; font-weight: 700; font-size: 12px; }
.lang a, .lang span {
  padding: 5px 9px; border-radius: 6px; text-decoration: none;
  color: var(--muted); background: transparent;
}
.lang .is-active { background: var(--blue); color: #fff; }
.lang .is-missing { opacity: .35; cursor: default; }

/* ---------------------------------------------------------------- герой */

.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 56px 40px 48px; background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.kicker {
  display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); background: var(--tint);
  padding: 7px 14px; border-radius: 100px;
}
.kicker-plain { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.hero-h1 {
  margin: 20px 0 16px; font-size: 52px; line-height: 1.04; font-weight: 800;
  letter-spacing: -.02em; color: var(--ink); white-space: pre-line;
}
/* Заголовок города — крупнее адреса салона, но меньше заголовка главной. */
.hero-h1.is-city {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin: 16px 0 14px;
}

/* Заголовок-адрес салона. Он длинный («м. Кривий Ріг, вул. Лермонтова, 22»),
   поэтому размер плавающий и заметно меньше рекламного заголовка главной. */
.hero-h1.is-address {
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 14px 0 18px;
  max-width: 16em;
  text-wrap: balance;
}

.hero-sub { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 480px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 15px 26px; border-radius: 11px;
}
.btn:hover { background: #16406f; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }

.stats { display: flex; gap: 44px; margin-top: 36px; }
.stats b { display: block; font-weight: 800; font-size: 30px; color: var(--ink); }
.stats span { font-size: 13px; color: var(--muted); font-weight: 500; }

.hero-media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--tint); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- секции */

.sec { padding: 52px 40px 48px; }
.sec-soft { background: var(--bg-soft); }
.sec-h2 { margin: 8px 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.sec-sub { margin: 0; font-size: 15px; color: var(--muted); max-width: 520px; }
.sec-head { margin-bottom: 24px; }

.grid-cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: block; text-decoration: none;
}
.oc-lift { transition: transform .18s ease, box-shadow .18s ease; }
.oc-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(22, 39, 63, .4); }

.oc-city .oc-cityimg { transition: transform .3s ease; }
.oc-city:hover .oc-cityimg { transform: scale(1.05); }
.city-thumb { aspect-ratio: 5/4; overflow: hidden; background: var(--tint); }
.city-thumb img { width: 100%; height: 100%; object-fit: cover; }
.city-cap { padding: 13px 14px; text-align: center; }
.city-cap span { font-weight: 700; font-size: 14px; color: var(--ink); }

.svc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; }
.svc-ico {
  width: 38px; height: 38px; border-radius: 10px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.svc-ico span { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); display: block; }
.svc-t { font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.svc-d { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------- салоны и город */

.crumbs { font-size: 13px; color: var(--muted); padding: 18px 40px 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* Карточка салона кликабельна целиком: ссылка на адресе растягивается
   на всю площадь через ::after. Телефон и «Маршрут» поднимаются над ней,
   поэтому продолжают работать как отдельные ссылки. */
.salon-card { display: flex; flex-direction: column; position: relative; }
.salon-link { color: inherit; text-decoration: none; }
.salon-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.salon-card:hover .salon-link { color: var(--blue); }
.salon-card .salon-meta a,
.salon-card .salon-actions { position: relative; z-index: 2; }
.salon-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--tint); }
.salon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.salon-body { padding: 16px 18px 18px; }
.salon-addr { font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.salon-meta { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.salon-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.salon-actions .btn { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }

.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th, .info-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 210px; font-weight: 600; color: var(--muted); }
.info-table td { color: var(--ink); }
.info-table ul { margin: 0; padding-left: 18px; }
.info-table a { color: var(--blue); text-decoration: none; }

.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }

.entry-content { font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.entry-content h2 { font-size: 24px; font-weight: 800; margin: 28px 0 10px; }

/* ---------------------------------------------------------------- подвал */

.foot { background: var(--ink); color: #c4cede; padding: 44px 40px 30px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-logo img { width: 38px; height: 38px; object-fit: contain; }
.foot-logo span { font-weight: 800; font-size: 17px; color: #fff; }
.foot p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 340px; color: #93a1b5; }
.foot-h { font-weight: 700; color: #fff; font-size: 14px; margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot-links a { text-decoration: none; color: #c4cede; }
.foot-phone { text-decoration: none; color: #fff; font-weight: 800; font-size: 20px; }
.foot-note { font-size: 12.5px; color: #93a1b5; margin-top: 4px; }
.foot-rights { padding-top: 20px; font-size: 12.5px; color: #7a8699; }

/* ------------------------------------------------------- мобильное меню */

.h-burger { display: none; position: relative; }
.h-burger > summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 9px;
  background: #eef2f8; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
}
.h-burger > summary::-webkit-details-marker { display: none; }
.h-burger > summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.h-burger[open] > summary { background: var(--tint); }

.h-burger-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  min-width: 218px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 22px 40px -22px rgba(22, 39, 63, .45);
}
.h-burger-menu a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 10px 12px; border-radius: 8px;
}
.h-burger-menu a:hover { background: var(--bg-soft); }
.h-burger-tel { color: var(--blue) !important; font-weight: 800 !important; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px !important; border-radius: 0 !important; }

/* -------------------------------------------------------------- адаптив */

@media (max-width: 980px) {
  .grid-cities { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .h-nav { display: none; }
  .h-burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 22px; }
  /* Прячем только оформительскую картинку главной. Фото салона — содержание,
     оно должно оставаться и на телефоне. */
  .hero-media.is-decor { display: none; }
  .hero-media { aspect-ratio: 16/10; margin-top: 4px; }
  .hero-h1 { font-size: 34px; }
  .grid-cities { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .pad-x, .sec, .h-head, .foot { padding-left: 20px; padding-right: 20px; }
  .h-phone { display: none; }
  .info-table th { width: 140px; }
  .map-box iframe { height: 320px; }
}

@media (max-width: 520px) {
  .grid-cities { grid-template-columns: 1fr; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border: 0; padding-bottom: 2px; }
}

/* Родной подвальный переключатель WPML — своя версия уже стоит в шапке.
   После отказа от WPML это правило можно удалить вместе с плагином. */
.wpml-ls-statics-footer { display: none; }
