:root {
  --accent: #f0b400;
  --dark: #171717;
  --bg: #f6f6f6;
  --card: #ffffff;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body.site {
  margin: 0;
  background: var(--bg);
  color: #222;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

/* На компьютере логотип и меню находятся в левой колонке */
.site-header {
  display: none;
}

.sidebar-left {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #fff;
  background: var(--dark);
}

.sidebar-left .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.sidebar-left .brand img {
  display: block;
  max-width: 70px;
  height: auto;
}

.slogan {
  font-size: 12px;
  line-height: 1.35;
  color: #cfcfcf;
}

.left-menu { margin-top: 10px; }

.left-menu .moduletable,
.left-menu .module,
.left-menu a {
  color: #fff;
}

.left-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.left-menu li {
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.left-menu a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
}

.left-menu a:hover,
.left-menu .active > a {
  color: var(--accent);
}

.left-contacts {
  margin-top: 24px;
}

/* Весь контент всегда находится справа от меню */
.page {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  min-height: calc(100vh - 60px);
  margin-left: var(--sidebar-width);
  padding: 0 0 40px;
}

/* Слайдер не может выйти за границы правой колонки */
.slider {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #000;
}

.slider > .moduletable,
.slider .module,
.slider .n2-ss-slider,
.slider img {
  max-width: 100%;
}

.slider img {
  display: block;
  height: auto;
}

/* Преимущества */
.features {
  width: 100%;
  padding: 0;
  background: #fff;
  border-top: 4px solid var(--accent);
}

.features-row,
.advantages-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 12px 18px;
}

.features-row .moduletable,
.advantages-bar .moduletable,
.feature-item,
.adv-item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fi-icon img,
.adv-item img,
.adv-icon-svg {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.fi-title,
.adv-item strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fi-sub,
.adv-item span {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 12px;
}

/* Основной контент */
.content-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.content-main {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-right {
  flex: 0 0 320px;
  width: 320px;
}

.card {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.module-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.services-grid .service {
  padding: 14px;
  background: #fff;
  border-radius: 8px;
}

.services-grid .service img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
}

/* Футер также справа от левого меню */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - var(--sidebar-width));
  min-height: 70px;
  margin-left: var(--sidebar-width);
  padding: 20px;
  color: #fff;
  background: #0f0f0f;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left .studio {
  max-width: 150px;
  height: 36px;
  object-fit: contain;
}

/* Планшет и телефон */
@media (max-width: 991px) {
  .site-header {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
  }

  .logo img {
    display: block;
    width: auto;
    height: 44px;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
    padding: 6px 10px;
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
  }

  .sidebar-left {
    z-index: 300;
    width: 280px;
    padding-top: 82px;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .sidebar-left.open {
    transform: translateX(0);
  }

  .page,
  .site-footer {
    width: 100%;
    margin-left: 0;
  }

  .page {
    padding-top: 64px;
  }

  .content-wrap {
    flex-direction: column;
  }

  .sidebar-right {
    width: 100%;
    flex-basis: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-row,
  .advantages-bar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .features-row .moduletable,
  .advantages-bar .moduletable,
  .feature-item,
  .adv-item {
    flex: 0 0 220px;
  }
}

@media (max-width: 480px) {
  .content-wrap {
    padding: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .footer-left {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Блок «Наши услуги» */
.services-block {
  padding: 10px 0 20px;
}

.services-block h2 {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid #ffb700;
  font-size: 24px;
  font-weight: 800;
}

.services-block .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.services-block .service-card {
  position: relative;
  display: flex;
  min-height: 150px;
  padding: 18px 16px;
  overflow: hidden;
  color: #151515;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.services-block .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

.services-block .service-title {
  position: relative;
  z-index: 2;
  max-width: 65%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.services-block .service-card img {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.services-block .service-more {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  color: #ffb700;
  font-size: 14px;
  font-weight: 700;
}

.services-all {
  margin-top: 16px;
  text-align: center;
}

.services-all a {
  display: inline-block;
  padding: 11px 30px;
  color: #171717;
  background: #ffb700;
  border-radius: 5px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .services-block .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .services-block .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .services-block .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Блок «Мы на карте» */
.sidebar-right .moduletable {
  margin-bottom: 20px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

.sidebar-right .moduletable > h3,
.sidebar-right .moduletable > .module-title {
  display: inline-block;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 3px solid #ffb700;
  font-size: 18px;
  font-weight: 800;
}

.map-widget iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.map-address {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

.map-address strong {
  color: #222;
  font-size: 14px;
}

.map-address span {
  color: #777;
}

.map-button {
  display: block;
  padding: 11px 8px;
  color: #fff;
  background: #171717;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.map-button:hover {
  background: #ffb700;
  color: #171717;
}

/* Мини-прайс в правой колонке */
.mini-price-head,
.mini-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.mini-price-head {
  padding: 8px 10px;
  color: #ffb700;
  background: #171717;
  font-size: 11px;
  font-weight: 800;
}

.mini-price-row {
  padding: 8px 5px;
  border-bottom: 1px solid #ececec;
  color: #555;
  font-size: 12px;
  line-height: 1.25;
}

.mini-price-row b {
  color: #333;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mini-price-button {
  display: block;
  margin-top: 14px;
  padding: 11px 8px;
  color: #171717;
  background: #ffb700;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mini-price-button:hover {
  background: #e4a500;
}

/* Отступ перед модулем прайс-листа */
.sidebar-right .moduletable:has(.mini-price) {
  margin-top: 28px;
}

/* Контрастная зебра прайса */
.mini-price {
  margin-top: 8px;
}

.mini-price-row {
  padding: 10px 9px;
  border-bottom: 1px solid #dcdcdc;
}

.mini-price-row:nth-child(even) {
  background: #eeeeee;
}

.mini-price-row:nth-child(odd) {
  background: #ffffff;
}

.mini-price-row:hover {
  background: #ffe6a0;
}

.mini-price-row b {
  color: #171717;
  font-weight: 800;
}

/* Заголовки модулей справа */
.sidebar-right .moduletable > h3,
.sidebar-right .moduletable > .module-title,
.sidebar-right .module > h3,
.sidebar-right .module > .module-title {
  display: inline-block;
  margin: 0 0 12px;
  padding-bottom: 7px;
  color: #171717;
  border-bottom: 3px solid #ffb700;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

/* Шапка мини-прайса */
.mini-price-head {
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
}

.mini-price-head span:last-child {
  justify-self: end;
  text-align: right;
}

.mini-price-head strong:last-child {
  justify-self: end;
  text-align: right;
}

/* Заголовок блока в правой колонке */
.side-title {
  display: inline-block;
  margin: 0 0 12px;
  padding-bottom: 7px;
  color: #171717;
  border-bottom: 3px solid #ffb700;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

/* Форма записи и новости под услугами */
.below-services {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  margin-top: 20px;
}

.booking-area,
.news-area {
  min-width: 0;
}

.booking-area .moduletable,
.news-area .moduletable {
  height: 100%;
  padding: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

@media (max-width: 767px) {
  .below-services {
    grid-template-columns: 1fr;
  }
}

/* Форма записи */
.block-title {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 3px solid #ffb700;
  color: #171717;
  font-size: 18px;
  font-weight: 800;
}

.booking-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-form input,
.booking-form select {
  width: 100%;
  height: 38px;
  padding: 8px 11px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 13px;
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: #ffb700;
  outline: none;
}

.booking-form button {
  height: 42px;
  border: 0;
  border-radius: 5px;
  color: #171717;
  background: #ffb700;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.booking-form button:hover {
  background: #e5a600;
}

@media (max-width: 480px) {
  .booking-row {
    grid-template-columns: 1fr;
  }
}

/* Настоящие последние материалы Joomla в блоке новостей */
.news-area .block-title {
  margin-bottom: 8px;
}

.news-area .moduletable {
  padding: 0;
  box-shadow: none;
}

.news-area ul,
.news-area .mod-articleslatest {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-area li {
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.news-area li:last-child {
  border-bottom: 0;
}

.news-area li a {
  display: block;
  margin-bottom: 5px;
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.news-area li a:hover {
  color: #d89700;
}

.news-area time,
.news-area .mod-articleslatest-date,
.news-area .published {
  display: block;
  margin-bottom: 5px;
  color: #999;
  font-size: 11px;
}

/* Настоящие последние материалы Joomla в блоке новостей */
.news-area .block-title {
  margin-bottom: 8px;
}

.news-area .moduletable {
  padding: 0;
  box-shadow: none;
}

.news-area ul,
.news-area .mod-articleslatest {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-area li {
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.news-area li:last-child {
  border-bottom: 0;
}

.news-area li a {
  display: block;
  margin-bottom: 5px;
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.news-area li a:hover {
  color: #d89700;
}

.news-area time,
.news-area .mod-articleslatest-date,
.news-area .published {
  display: block;
  margin-bottom: 5px;
  color: #999;
  font-size: 11px;
}

/* Отзывы в правой колонке */
.reviews-widget {
  margin-top: 4px;
}

.review-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #f7f7f7;
  border-left: 3px solid #ffb700;
  border-radius: 6px;
}

.review-avatar {
  display: flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffb700;
  background: #ffb700;
  font-size: 0;
}

.review-avatar::after {
  content: "●";
  color: #171717;
  font-size: 20px;
}

.review-content {
  min-width: 0;
}

.review-content strong {
  display: block;
  color: #171717;
  font-size: 13px;
}

.review-stars {
  margin: 2px 0;
  color: #ffb700;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-date {
  color: #999;
  font-size: 10px;
}

.review-content p {
  margin: 7px 0 0;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}

.reviews-button {
  display: block;
  margin: 13px auto 0;
  padding: 10px 24px;
  width: fit-content;
  border-radius: 5px;
  color: #171717;
  background: #ffb700;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

/* Контакты и соцсети под левым меню */
.contacts-sidebar {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #ddd;
  font-size: 13px;
  line-height: 1.8;
}

.contacts-phone {
  display: block;
  margin-bottom: 5px;
  color: #ffb700;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.contacts-address,
.contacts-time {
  color: #ddd;
}

.contacts-time {
  color: #bdbdbd;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.social {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.social.vk { background: #2787f5; }
.social.tg { background: #229ed9; }
.social.wa { background: #25d366; }
.social.yt { background: #ff0000; }

.social:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* Индикатор наличия выпадающего подменю у пункта «УСЛУГИ» */
a.has-submenu {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

a.has-submenu::after {
  content: "▾";
  color: #f5b400;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  margin-left: 12px;
}


/* Стрелка у заголовка меню с дочерними пунктами */
.has-submenu {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.has-submenu::after {
  content: "▾" !important;
  display: block;
  color: #f5b400;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  margin-left: 12px;
}


/* ===== Адаптивность: компьютеры, планшеты и телефоны ===== */

/* Изображения и видео никогда не выходят за пределы материала */
.content-main img,
.content-main iframe,
.content-main video {
  max-width: 100%;
}

.content-main img {
  height: auto;
}

/* Позиции модулей после основного материала */
.article-after {
  margin-top: 24px;
}

.article-after:empty {
  display: none;
}

/* Футер */
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(110px, auto);
  align-items: start;
  gap: 28px;
  padding: 32px 28px 18px;
}

.footer-column {
  min-width: 0;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.7;
}

.footer-title {
  margin-bottom: 10px;
  color: #ffb700;
  font-size: 16px;
  font-weight: 800;
}

.footer-contacts a,
.footer-column a {
  display: block;
  color: #e8e8e8;
  text-decoration: none;
}

.footer-contacts a:hover,
.footer-column a:hover {
  color: #ffb700;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin: 0 0 4px;
}

.footer-counter {
  justify-self: end;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #999;
  font-size: 12px;
}

/* Ноутбуки и небольшие мониторы */
@media (max-width: 1199px) and (min-width: 992px) {
  :root {
    --sidebar-width: 230px;
  }

  .sidebar-left {
    padding: 15px;
  }

  .content-wrap {
    gap: 16px;
    padding: 16px;
  }

  .sidebar-right {
    flex-basis: 280px;
    width: 280px;
  }

  .services-block .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-counter {
    justify-self: start;
  }
}

/* Планшеты */
@media (max-width: 991px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    z-index: 250;
    inset: 0;
    background: rgba(0,0,0,.45);
  }

  .sidebar-left {
    box-shadow: 8px 0 24px rgba(0,0,0,.28);
  }

  .sidebar-left.open {
    transform: translateX(0);
  }

  .content-wrap {
    padding: 18px;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
  }

  .footer-counter {
    justify-self: start;
  }
}

/* Телефоны */
@media (max-width: 600px) {
  .site-header {
    height: 58px;
    padding: 7px 14px;
  }

  .logo img {
    height: 40px;
    max-width: 230px;
    object-fit: contain;
  }

  .mobile-toggle {
    padding: 5px 0 5px 12px;
    font-size: 27px;
  }

  .sidebar-left {
    width: min(86vw, 310px);
    padding: 74px 16px 22px;
  }

  .page {
    padding-top: 58px;
  }

  .content-wrap {
    gap: 16px;
    padding: 14px;
  }

  .card,
  .sidebar-right .moduletable {
    padding: 14px;
  }

  .services-block h2 {
    font-size: 22px;
  }

  .services-block .service-card {
    min-height: 138px;
  }

  .features-row,
  .advantages-bar {
    gap: 12px;
    padding: 10px 14px;
    scroll-snap-type: x mandatory;
  }

  .features-row .moduletable,
  .advantages-bar .moduletable,
  .feature-item,
  .adv-item {
    flex-basis: 205px;
    scroll-snap-align: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 18px 16px;
  }

  .footer-bottom {
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .services-block .services-grid {
    grid-template-columns: 1fr;
  }

  .booking-row {
    grid-template-columns: 1fr;
  }
}
/* Форма записи: согласия и сообщения */
.booking-form textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px 11px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  color: #333;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
}

.booking-form textarea:focus {
  border-color: #ffb700;
  outline: none;
}

.booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.booking-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #e5a600;
}

.booking-consent a {
  color: #9a6800;
  text-decoration: underline;
}

.booking-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.booking-form button:disabled {
  cursor: wait;
  opacity: .65;
}

.booking-result {
  display: none;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.4;
}

.booking-result.is-success,
.booking-result.is-error {
  display: block;
}

.booking-result.is-success {
  color: #176b34;
  background: #e5f6e9;
}

.booking-result.is-error {
  color: #9b2020;
  background: #fdeaea;
}
.contacts-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 14px 42px;
  color: #252a31;
}
.contacts-page__header { margin: 0 0 18px; }
.contacts-page__header h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
}
.contacts-page__header p {
  margin: 0;
  color: #697586;
  font-size: 16px;
}
.contacts-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 14px;
  margin-bottom: 58px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(28, 39, 51, .12);
}
.contact-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(28, 39, 51, .09);
}
.contact-card__label {
  margin-bottom: 7px;
  color: #7a8491;
  font-size: 13px;
}
.contact-card__value {
  margin-bottom: 11px;
  color: #2c3138;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  text-decoration: none;
}
.contact-card__email { font-size: 15px; overflow-wrap: anywhere; }
address.contact-card__value { font-style: normal; }
.contact-card__button {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 6px;
  background: #f5a400;
  color: #1f252d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.contact-card__button:hover { background: #ffb51b; transform: translateY(-1px); }
.contacts-map {
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(28, 39, 51, .10);
}
.contacts-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.contacts-map__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  font-size: 13px;
}
.contacts-map__footer div { display: grid; gap: 5px; }
.contacts-map__footer strong { font-size: 13px; }
.contacts-map__footer span { color: #596574; }
.contacts-map__hours { text-align: right; }
@media (max-width: 760px) {
  .contacts-page { padding: 14px 10px 30px; }
  .contacts-cards { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .contact-card { min-height: auto; padding: 20px; }
  .contacts-map iframe { height: 300px; }
  .contacts-map__footer { flex-direction: column; }
  .contacts-map__hours { text-align: left; }
}
/* Материал Диагностика основной вид */
.diag-page {
  --yellow: #ffb000;
  --ink: #202833;
  --muted: #687483;
  max-width: 1180px;
  margin: auto;
  padding: 8px 14px 42px;
  color: var(--ink);
}
.diag-hero {
  display: grid;
  grid-template-columns: 1.55fr 0.97fr;
  gap: 16px;
}
.diag-main-card,
.diag-equipment,
.diag-steps article,
.diag-prices article {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 7px 22px rgba(35, 46, 57, 0.1);
}
.diag-main-card {
  min-height: 622px;
  padding: 22px 18px;
}
.diag-main-card h1 {
  margin: 0 0 7px;
  font-size: 28px;
  line-height: 1.15;
}
.diag-lead {
  margin: 0;
  color: #53606e;
  font-size: 14px;
  line-height: 1.35;
}
.diag-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
  margin-top: 18px;
}
.diag-main-card h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.diag-list {
  margin: 0;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.65;
  color: #53606e;
}
.diag-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.diag-check {
  min-height: 85px;
  padding: 14px 10px;
  border: 1px solid #ffdc90;
  border-radius: 11px;
  background: #fffdfa;
}
.diag-check span {
  display: block;
  color: #f4a500;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 7px;
}
.diag-check h3,
.diag-steps h3,
.diag-prices h3 {
  margin: 0 0 5px;
  font-size: 13px;
}
.diag-check p,
.diag-equipment p,
.diag-note p,
.diag-steps p,
.diag-prices p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.diag-note {
  margin-top: 15px;
  padding: 13px 11px;
  border: 1px solid #ffdc90;
  border-radius: 10px;
  background: #fffdfa;
}
.diag-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.diag-side {
  min-width: 0;
}
.diag-photo {
  display: block;
  width: 100%;
  height: 554px;
  object-fit: cover;
  border-radius: 15px;
}
.diag-equipment {
  margin-top: 11px;
  padding: 14px;
}
.diag-equipment h2 {
  margin: 0 0 6px;
  font-size: 14px;
}
.diag-section {
  margin-top: 20px;
}
.diag-section-title {
  display: inline-block;
  margin: 0 0 11px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow);
  font-size: 18px;
}
.diag-steps,
.diag-prices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.diag-steps article,
.diag-prices article {
  min-height: 100px;
  padding: 14px 11px;
}
.diag-steps b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 12px;
}
.diag-prices strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 15px;
}
@media (max-width: 850px) {
  .diag-hero {
    grid-template-columns: 1fr;
  }
  .diag-main-card {
    min-height: auto;
  }
  .diag-photo {
    height: 360px;
  }
  .diag-steps,
  .diag-prices {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .diag-page {
    padding: 8px 10px 28px;
  }
  .diag-main-card {
    padding: 18px 14px;
  }
  .diag-main-card h1 {
    font-size: 25px;
  }
  .diag-content-grid,
  .diag-checks {
    grid-template-columns: 1fr;
  }
  .diag-steps,
  .diag-prices {
    grid-template-columns: 1fr;
  }
  .diag-photo {
    height: 270px;
  }
}
/* === СТРАНИЦА «ОТЗЫВЫ» === */
.reviews-page {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 32px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.reviews-page__header {
  max-width: 760px;
}

.reviews-page__eyebrow {
  margin: 0 0 8px;
  color: #d97706;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.reviews-page__header > p:last-child {
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

.reviews-page__summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.reviews-page__summary > p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.reviews-rating {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  min-width: 175px;
}

.reviews-rating strong {
  grid-row: span 2;
  font-size: 34px;
  line-height: 1;
}

.reviews-stars,
.review-card__stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.reviews-rating small {
  color: #667085;
  font-size: 12px;
}

/* === КАРТОЧКИ ОТЗЫВОВ В БЛОГЕ JOOMLA ===
   Если шаблон Joomla добавляет классы .items-row и .item,
   правила ниже автоматически выстроят карточки в сетку.
*/
.blog .items-row,
.items-leading,
.items-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 20px;
}

.blog .item,
.items-row .item,
.items-leading > div {
  min-width: 0;
  margin: 0 !important;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 16px 20px;
  height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.review-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.review-card__name {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.2;
}

.review-card__date {
  margin: 0 0 5px;
  color: #98a2b3;
  font-size: 13px;
}

.review-card__body {
  grid-column: 1 / 2;
}

.review-card__body p {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.6;
}

.review-card__car {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  height: 105px;
  object-fit: contain;
}

/* === ОДИНАКОВО АККУРАТНЫЙ ВИД ДЛЯ SEO-БЛОГА ===
   Карточки обычных статей не затрагиваются классом .review-card.
*/
.blog .page-header h1,
.blog .page-header h2 {
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .reviews-page {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .reviews-page__summary,
  .blog .items-row,
  .items-leading,
  .items-row {
    grid-template-columns: 1fr;
  }

  .reviews-page__summary {
    align-items: flex-start;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-card__body,
  .review-card__car {
    grid-column: auto;
    grid-row: auto;
  }

  .review-card__car {
    justify-self: end;
    width: 150px;
    height: 90px;
  }
}
/* Стили только для модуля отзывов */
.reviews-widget {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.reviews-widget .side-title {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.25;
}

.reviews-widget__list {
  display: grid;
  gap: 12px;
}

.reviews-widget .review-card {
  position: relative;
  min-height: 138px;
  padding: 14px 126px 14px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.reviews-widget .review-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-widget .review-avatar {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 50%;
  background: #e5e7eb;
}

.reviews-widget .review-content strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
}

.reviews-widget .review-stars {
  margin-top: 2px;
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.reviews-widget .review-date {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 12px;
}

.reviews-widget .review-card p {
  margin: 10px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.reviews-widget .review-car {
  position: absolute;
  right: 8px;
  bottom: 10px;
  display: block;
  width: 112px;
  height: 80px;
  object-fit: contain;
}

.reviews-widget .reviews-button {
  display: block;
  margin-top: 14px;
  padding: 10px 14px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reviews-widget .reviews-button:hover {
  background: #f8fafc;
  border-color: #9ca3af;
}

@media (max-width: 420px) {
  .reviews-widget .review-card {
    padding-right: 100px;
  }

  .reviews-widget .review-car {
    width: 88px;
    height: 65px;
  }
}
  /* Модуль отзывов: уникальные классы rw- исключают конфликты со страницей отзывов */
  .rw-widget,
  .rw-widget *,
  .rw-widget *::before,
  .rw-widget *::after {
    box-sizing: border-box;
  }

  .rw-widget {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  }

  .rw-widget__title {
    margin: 0 0 16px !important;
    padding: 0 0 10px;
    color: #1f2937;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    border-bottom: 3px solid #f6b400;
  }

  .rw-widget__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .rw-widget .rw-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0;
    min-height: 138px;
    margin: 0 !important;
    padding: 14px 126px 14px 14px !important;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
    transform: none !important;
  }

  .rw-card__main {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .rw-widget .rw-card__avatar {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    margin: 0 !important;
    object-fit: cover;
    border-radius: 50%;
    background: #e5e7eb;
  }

  .rw-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .rw-card__name {
    display: block;
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
  }

  .rw-card__stars {
    display: block;
    margin-top: 3px;
    color: #f59e0b;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .rw-card__date {
    display: block;
    margin-top: 4px;
    color: #98a2b3;
    font-size: 11px;
    line-height: 1;
  }

  .rw-widget .rw-card__text {
    display: block !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    color: #475467;
    font-size: 13px;
    line-height: 1.42;
  }

  .rw-widget .rw-card__car {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: 112px !important;
    height: 80px !important;
    max-width: calc(100% - 18px);
    margin: 0 !important;
    object-fit: contain;
    transform: translateY(-50%) !important;
  }

  .rw-widget__button {
    display: block;
    width: 150px;
    margin: 14px auto 0;
    padding: 10px 14px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
  }

  .rw-widget__button:hover {
    background: #f8fafc;
    border-color: #9ca3af;
  }

  @media (max-width: 390px) {
    .rw-widget {
      padding: 16px;
    }

    .rw-widget .rw-card {
      min-height: 145px;
      padding-right: 102px !important;
    }

    .rw-widget .rw-card__car {
      right: 5px !important;
      width: 90px !important;
      height: 65px !important;
    }
  }
  .price-ios, .price-ios * { box-sizing: border-box; }
  .price-ios { max-width: 1100px; margin: 0 auto; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
  .price-ios__intro { margin: 0 0 20px; color: #6e6e73; font-size: 16px; line-height: 1.55; }
  .price-ios__group { margin: 0 0 14px; overflow: hidden; background: rgba(255,255,255,.92); border: 1px solid #e5e5ea; border-radius: 16px; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
  .price-ios__group summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; color: #1d1d1f; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
  .price-ios__group summary::-webkit-details-marker { display: none; }
  .price-ios__group summary::after { content: "+"; width: 25px; height: 25px; color: #fff; font-size: 21px; font-weight: 400; line-height: 23px; text-align: center; background: #f6b400; border-radius: 50%; transition: transform .2s ease; }
  .price-ios__group[open] summary { border-bottom: 1px solid #e5e5ea; }
  .price-ios__group[open] summary::after { transform: rotate(45deg); }
  .price-ios__table { width: 100%; border-collapse: collapse; }
  .price-ios__table td { padding: 13px 20px; font-size: 15px; line-height: 1.35; border: 0; }
  .price-ios__table tr:nth-child(odd) { background: #f2f2f7; }
  .price-ios__table tr:nth-child(even) { background: #fff; }
  .price-ios__table td:last-child { width: 155px; color: #1d1d1f; font-weight: 700; white-space: nowrap; text-align: right; }
  .price-ios__note { margin: 18px 0 0; color: #6e6e73; font-size: 13px; line-height: 1.5; }
  @media (max-width: 560px) { .price-ios__group summary { padding: 16px; font-size: 16px; } .price-ios__table td { padding: 12px 14px; font-size: 14px; } .price-ios__table td:last-child { width: 105px; font-size: 13px; } }
/* Полный прайс-лист */
.price-ios { max-width: 100%; color: #333; }
.price-ios h1 { margin: 0 0 10px; color: #171717; font-size: clamp(25px, 4vw, 34px); font-weight: 800; }
.price-ios__note { margin: 0 0 20px; color: #666; line-height: 1.55; }
.price-ios__group { margin: 0 0 12px; border: 1px solid #dedede; border-radius: 6px; overflow: hidden; background: #fff; }
.price-ios__group summary { position: relative; padding: 14px 44px 14px 16px; list-style: none; cursor: pointer; color: #171717; background: #f4f4f4; font-size: 16px; font-weight: 800; }
.price-ios__group summary::-webkit-details-marker { display: none; }
.price-ios__group summary::after { content: '+'; position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: #e0a000; font-size: 25px; line-height: 1; }
.price-ios__group[open] summary { background: #171717; color: #fff; }
.price-ios__group[open] summary::after { content: '−'; color: #ffb700; }
.price-ios__head, .price-ios__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.price-ios__head { padding: 10px 16px; color: #fff; background: #3b3b3b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.price-ios__head span:last-child, .price-ios__row b { text-align: right; white-space: nowrap; }
.price-ios__row { padding: 11px 16px; border-top: 1px solid #e2e2e2; font-size: 14px; line-height: 1.35; }
.price-ios__row:nth-child(odd) { background: #f1f1f1; }
.price-ios__row:nth-child(even) { background: #fff; }
.price-ios__row b { color: #171717; font-size: 14px; font-weight: 800; }
@media (max-width: 560px) { .price-ios__group summary { font-size: 15px; } .price-ios__head { display: none; } .price-ios__row { grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; padding: 11px 12px; font-size: 13px; } .price-ios__row b { font-size: 13px; } }
/* Карта предприятия */
.partner-card {
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #fff;
}

.partner-card .side-title {
  margin: 0;
  padding: 14px 16px;
  color: #fff;
  background: #171717;
  font-size: 17px;
  font-weight: 800;
}

.partner-card__intro {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-bottom: 1px solid #dedede;
  background: #f4f4f4;
}

.partner-card__intro strong { color: #171717; font-size: 15px; }
.partner-card__intro span { color: #777; font-size: 13px; }

.partner-card__row {
  display: grid;
  grid-template-columns: minmax(135px, 38%) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid #e3e3e3;
  font-size: 14px;
  line-height: 1.4;
}

.partner-card__row:nth-child(even) { background: #f5f5f5; }
.partner-card__row:last-child { border-bottom: 0; }
.partner-card__row > span { color: #666; }
.partner-card__row b { color: #222; font-weight: 700; overflow-wrap: anywhere; }
.partner-card__row a { color: inherit; text-decoration: none; }
.partner-card__row a:hover { color: #c78a00; text-decoration: underline; }

@media (max-width: 560px) {
  .partner-card__row { grid-template-columns: 1fr; gap: 4px; padding: 11px 12px; font-size: 13px; }
  .partner-card__row > span { font-size: 12px; }
}
#pgCategoryModal {
  display: none !important;
}
/* Страница блога */
.blog .items-row,
.blog-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

/* Одна карточка материала */
.blog .items-row > .item,
.blog-items > .blog-item,
.blog-items > .item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .08);
}

/* Вводная картинка */
.blog .item-image,
.blog .items-row .item > figure,
.blog-items .item-image {
  display: block;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f1f1;
}

.blog .item-image img,
.blog .items-row .item > figure img,
.blog-items .item-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
}

/* Весь текст карточки */
.blog .items-row > .item > *,
.blog-items > .blog-item > *:not(.item-image),
.blog-items > .item > *:not(.item-image) {
  margin-right: 20px;
  margin-left: 20px;
}

.blog .page-header,
.blog .items-row .item .page-header,
.blog-items .page-header {
  margin-top: 20px;
  margin-bottom: 10px;
}

.blog .page-header h2,
.blog .items-row .item .page-header h2,
.blog-items .page-header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.blog .page-header h2 a,
.blog-items .page-header h2 a {
  color: #20242a;
  text-decoration: none;
}

.blog .page-header h2 a:hover,
.blog-items .page-header h2 a:hover {
  color: #e5a800;
}

.blog .item .item-content,
.blog .items-row .item .introtext,
.blog-items .item .item-content {
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

/* Кнопка «Подробнее» */
.blog .readmore,
.blog .items-row .item .readmore,
.blog-items .readmore {
  display: inline-block;
  width: fit-content;
  margin-top: auto !important;
  margin-bottom: 20px !important;
  padding: 11px 16px;
  border-radius: 8px;
  background: #ffb800;
  color: #1e1e1e !important;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.blog .readmore:hover,
.blog .items-row .item .readmore:hover,
.blog-items .readmore:hover {
  background: #e5a800;
  color: #1e1e1e !important;
}

/* Телефон: та же карточка, только одна колонка */
@media (max-width: 760px) {
  .blog .items-row,
  .blog-items {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog .items-row > .item > *,
  .blog-items > .blog-item > *:not(.item-image),
  .blog-items > .item > *:not(.item-image) {
    margin-right: 16px;
    margin-left: 16px;
  }
}
.news-area .home-news-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.news-area .home-news-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 0 14px;
  border-bottom: 1px solid #e5e5e5;
}

.news-area .home-news-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-area .home-news-image {
  display: flex;
  flex: 0 0 118px;
  width: 118px;
  height: 82px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #ededed;
}

.news-area .home-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-area .home-news-no-image {
  color: #999;
  font-size: 28px;
}

.news-area .home-news-content {
  min-width: 0;
}

.news-area .home-news-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.news-area .home-news-title a {
  color: #202020;
  text-decoration: none;
}

.news-area .home-news-title a:hover {
  color: #d89700;
}

.news-area .home-news-intro {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 6px;
  color: #5d5d5d;
  font-size: 13px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-area .home-news-more {
  color: #161616;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.news-area .home-news-more:hover {
  color: #d89700;
}

@media (max-width: 600px) {
  .news-area .home-news-item {
    gap: 11px;
  }

  .news-area .home-news-image {
    flex-basis: 96px;
    width: 96px;
    height: 70px;
  }

  .news-area .home-news-title {
    font-size: 15px;
  }
}
/* Карточки новостей на главной */
.home-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-news-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 41, 61, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 41, 61, .13);
}

.home-news-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf2f5;
}

.home-news-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.home-news-item:hover .home-news-image img {
  transform: scale(1.04);
}

.home-news-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.home-news-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
}

.home-news-title a {
  color: #1d2e3b;
  text-decoration: none;
}

.home-news-title a:hover {
  color: #e66122;
}

.home-news-intro {
  margin: 0 0 18px;
  color: #5f6e78;
  font-size: 15px;
  line-height: 1.58;
}

.home-news-intro p {
  margin: 0;
}

.home-news-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 15px;
  border-radius: 8px;
  background: #e66122;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.home-news-more:hover {
  background: #c94d13;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .home-news-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-news-item {
    flex-direction: row;
  }

  .home-news-image {
    flex: 0 0 42%;
    align-self: stretch;
    aspect-ratio: auto;
  }

  .home-news-content {
    padding: 16px;
  }

  .home-news-title {
    font-size: 17px;
  }

  .home-news-intro {
    margin-bottom: 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .home-news-item {
    flex-direction: column;
  }

  .home-news-image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}
/* Новости и статьи */
.news-articles {
  display: grid;
  gap: 14px;
}

.news-articles__item {
  display: flex;
  gap: 18px;
  padding: 14px;
  min-width: 0;
  background: #fff;
  border: 1px solid #edf0f2;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(20, 41, 61, .06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.news-articles__item:hover {
  border-color: #f1b18e;
  box-shadow: 0 8px 20px rgba(20, 41, 61, .1);
  transform: translateY(-2px);
}

.news-articles__image {
  flex: 0 0 135px;
  width: 135px;
  height: 92px;
  overflow: hidden;
  border-radius: 7px;
  background: #edf1f3;
}

.news-articles__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.news-articles__item:hover .news-articles__image img {
  transform: scale(1.05);
}

.news-articles__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.news-articles__title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.news-articles__title a {
  color: #253641;
  text-decoration: none;
  transition: color .2s ease;
}

.news-articles__title a:hover {
  color: #e66122;
}

.news-articles__intro {
  margin: 0 0 9px;
  color: #697780;
  font-size: 6px;
  line-height: 1.5;
}

.news-articles__intro p {
  margin: 0;
}

.news-articles__more {
  margin-top: auto;
  color: #e66122;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.news-articles__more span {
  margin-left: 3px;
  transition: transform .2s ease;
}

.news-articles__more:hover {
  color: #bd4711;
  text-decoration: underline;
}

.news-articles__more:hover span {
  display: inline-block;
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .news-articles {
    gap: 10px;
  }

  .news-articles__item {
    gap: 12px;
    padding: 10px;
  }

  .news-articles__image {
    flex-basis: 100px;
    width: 100px;
    height: 76px;
  }

  .news-articles__title {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .news-articles__intro {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
  }

  .news-articles__more {
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .news-articles__item {
    align-items: flex-start;
  }

  .news-articles__image {
    flex-basis: 82px;
    width: 82px;
    height: 66px;
  }

  .news-articles__intro {
    display: none;
  }
}