/* glass-xl.ru — точечная полировка страницы модели (без изменения структуры блоков) */

/* 1. Типографика: ровный ритм и более «плотные» заголовки */
body { -webkit-font-smoothing: antialiased; }
.entry-content h1 {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1f3f73;
  margin-bottom: 22px;
}
.entry-content h2 {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: #1f3f73;
  text-wrap: balance;          /* убирает висящее «300» на второй строке */
  margin: 28px 0 18px;
}
.entry-content > p {
  text-align: left !important; /* вместо justify (задан инлайном) — без «рек» между словами */
  line-height: 1.6;
  color: #3d4451;
}

/* 2. Картинки: мягкие углы */
.entry-content img,
#sp-left .mejs-container { border-radius: 8px; overflow: hidden; }
.entry-content > p > img { margin-right: 18px !important; }

/* 3. Плашка про курс валют: из серого блока — в аккуратное уведомление.
   Классы .moduletablecolor/.customcolor использует и синий блок «Не нашли стекло?»,
   поэтому цепляемся только за серый фон (#ececec), заданный инлайном. */
.entry-content .customcolor .row-fluid[style*="ececec"] {
  background: #fff8e8 !important;
  border-left: 4px solid #f0a500;
  border-radius: 6px;
  display: flow-root;
  box-sizing: border-box;
}
.entry-content .customcolor .row-fluid[style*="ececec"] p { margin: 0 !important; }
.entry-content .customcolor:has(.row-fluid[style*="ececec"]) > br { display: none; }
.entry-content .customcolor .row-fluid[style*="ececec"] span {
  display: block;
  text-align: left;
  font-size: 15px !important;  /* перебивает инлайновый 12pt */
  line-height: 1.5;
  color: #6b5413;
  padding: 12px 18px !important;
}

/* 3а. Синий блок «Не нашли стекло?» — телефон не разрывается переносом */
.entry-content .customcolor .row-fluid[style*="476a9f"] { border-radius: 8px; }
.entry-content .customcolor .row-fluid[style*="476a9f"] strong { white-space: nowrap; }

/* 4. Подпись к фото модели */
.entry-content .namee { font-weight: 500; font-size: 18px; color: #1f3f73; }

/* 5. Меню: тише разделители, ровнее начертание */
#sp-main-menu .sp-menu.level-0 > li::after { opacity: .3; }
#sp-main-menu .sp-menu.level-0 > li > a { font-size: 18px; font-weight: 500; letter-spacing: .005em; }
#sp-main-menu .sp-menu.level-0 > li.active > a { color: #fff; opacity: .7; }

/* 6. Хлебные крошки: меньше и спокойнее */
.bread ul.br, .bread ul.br li { font-size: 14px; color: #8a94a6; }
.bread a.pathway { color: #3c64a0; }

/* 7. Кнопки: чуть мягче углы и лёгкая тень */
.btn.btn-primary {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(165, 0, 70, .25);
  letter-spacing: .02em;
  transition: filter .15s;
}
.btn.btn-primary:hover { filter: brightness(1.08); }

/* 8. Таблица цен: скруглённая шапка, светлая «зебра», тоньше границы */
.big-table table {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #e3e8ef;
}
.big-table tr:first-child th:first-child { border-top-left-radius: 10px; }
.big-table tr:first-child th:last-child  { border-top-right-radius: 10px; }
.big-table th {
  font-size: 15px;
  font-weight: 600;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.25) !important;
  border-bottom: 1px solid rgba(255,255,255,.25) !important;
  padding: 9px 0 !important;
}
.big-table td {
  font-size: 14px;
  border: 0 !important;
  border-bottom: 1px solid #e9edf2 !important;
  padding: 9px 0 !important;
}
.big-table tr:nth-child(odd) td { background: #f6f8fb !important; }
.big-table tr:nth-child(even) td { background: #fff !important; }
/* в ячейках есть span'ы с инлайновым серым фоном — на «зебре» они видны пятнами */
.big-table td * { background: transparent !important; }

/* 9. Сайдбар «Услуги» */
#sp-left .module.highlight .header { border-radius: 8px 8px 0 0; }
#sp-left .module.highlight .mod-wrapper { border-radius: 8px; overflow: hidden; }
#sp-left .zag3 { font-weight: 500; }

/* 10. Мобильная версия (до 767 px) */
@media (max-width: 767px) {
  .entry-content h1 {
    font-size: 26px;
    line-height: 1.25;
    text-wrap: balance;
  }
  .entry-content h2 { font-size: 21px; }

  /* фото над текстом вместо узкой колонки текста с огромными пробелами */
  .entry-content > p > img {
    float: none !important;
    display: block;
    margin: 0 auto 14px !important;
  }
  .entry-content > p { font-size: 15px; }

  .bread ul.br, .bread ul.br li { font-size: 13px; line-height: 1.6; }

  /* таблица: та же брендовая шапка, что на десктопе (на мобиле была ярко-красная),
     первая колонка «прилипает» при горизонтальной прокрутке */
  .big-table th { background-color: #a50046 !important; }
  .big-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 2px 0 6px rgba(0,0,0,.08);
  }
}
