/* ===== Блок «Обо мне и компании» — table-layout, одинаково в Chrome и Safari ===== */
.index-wellcome-block .about-intro {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.index-wellcome-block .about-intro__photo {
  display: table-cell;
  width: 270px;
  padding-right: 24px;
  vertical-align: top;
}
.index-wellcome-block .about-intro__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.index-wellcome-block .about-intro__content {
  display: table-cell;
  vertical-align: top;
}
.index-wellcome-block .about-intro__lead {
  margin: 0 0 1em;
  font-size: inherit;
  line-height: 1.5;
}
.index-wellcome-block .about-intro .about-strengths {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
@media (max-width: 640px) {
  .index-wellcome-block .about-intro,
  .index-wellcome-block .about-intro__photo,
  .index-wellcome-block .about-intro__content {
    display: block;
    width: 100%;
    padding-right: 0;
  }
  .index-wellcome-block .about-intro__photo {
    max-width: 270px;
    margin: 0 auto 20px;
  }
}

/* ===== Иконки мессенджеров в шапке: равномерные отступы + MAX ===== */
.msg_outer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg_outer .msg {
  margin: 0 !important;
}
.msg.max .max_link {
  background: url('https://webkorona.ru/upload/images/max.webp') no-repeat left 50%;
  background-size: 22px;
  padding: 5px 0 5px 30px;
  color: #303030;
}

/* ===== Объединённая таблица цен ===== */
.prices-table-merged {
  display: block;
  overflow-x: auto;
}
.prices-table-merged table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}
.prices-table-merged thead {
  display: table-header-group;
}
.prices-table-merged tbody {
  display: table-row-group;
}
.prices-table-merged .prices-table__header th {
  border-bottom: 3px solid #e74c3c;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  background: #E7E7E7;
  border: 1px solid #878787;
}
/* Все ячейки данных — белый фон, без серого */
.prices-table-merged tbody tr td {
  padding: 16px 10px;
  text-align: left;
  border: 1px solid #878787;
  font-weight: normal;
  background: #fff !important;
}
.prices .tbl td:first-child a,
.prices-table-merged td:first-child a {
  color: #08419E;
  font-weight: 600;
}
.prices .tbl td:first-child a:hover,
.prices-table-merged td:first-child a:hover {
  color: #21A3E1;
}

/* ===== Градиент только для кнопок категорий (не подменю) ===== */
.services-page .menu > ul > li > a {
  background: linear-gradient(135deg, #08419E 0%, #1a78b4 50%, #21A3E1 100%) !important;
}
.services-page .menu > ul > li > a:hover {
  background: linear-gradient(135deg, #0a4fb8 0%, #1e8cc9 50%, #2eb3f0 100%) !important;
}

/* ===== Меню категорий: свернуто по умолчанию, развернута только активная ===== */
.services-page .menu > ul > li > ul {
  display: none;
}
.services-page .menu > ul > li.active > ul {
  display: block;
}
.services-page .menu > ul > li.active .angle-up {
  transform: translateY(-50%) rotate(180deg);
}

/* ===== Карточки новостей: перенос заголовков ===== */
.articles .col {
  min-width: 0;
}
.articles .item-name,
.articles .item-name a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: block;
}
.articles .item-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== Блок «Полезная информация» на главной: перенос заголовков ===== */
.index-news-block .catalog_srv_item {
  min-width: 0;
}
.index-news-block .catalog_srv_item .link a,
.index-news-block .catalog_srv_item .intro {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.index-news-block .catalog_srv_item .link a {
  display: block;
}

/* ===== Страницы статей: перенос текста и пропорциональные картинки ===== */
.services-page .page-content {
  min-width: 0;
}
.about.textOuter,
.about.textOuter h3,
.about.textOuter h4,
.about.textOuter p,
.about.textOuter li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.about.textOuter {
  overflow-wrap: break-word;
  max-width: 100%;
}
.about.textOuter img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Блок «Отзывы клиентов» (index-block comments + otzivi) ===== */
.index-block.comments {
  margin-bottom: 65px;
}
.index-block.comments .block-name {
  margin-bottom: 30px;
  font-weight: 500;
  font-size: 26px;
  text-transform: uppercase;
}
.index-block.comments .block-name span {
  color: #08419E;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: linear-gradient(54.34deg, #fff -5.96%, #f6f8fc 20%, #e8f2fc 86%);
  border: 1px solid rgba(33, 163, 225, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(8, 65, 158, 0.06);
}
.review-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(8, 65, 158, 0.25);
  margin-bottom: 0.5rem;
}
.review-card__text {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 1rem;
}
.review-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.review-card__stars {
  color: #08419E;
  font-size: 1rem;
  letter-spacing: 1px;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(33, 163, 225, 0.2);
}
.review-card__name {
  font-weight: 600;
  font-size: 14px;
  color: #1a2a4a;
}
.review-card__footer a {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 575px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Шаблон «Услуга»: блоки АКЦИИ, ЧЕМ МЫ ОТЛИЧАЕМСЯ, ДРУГИЕ УСЛУГИ — умещаются в колонке ===== */
.services-page .index-discounts-block,
.services-page .index-compare-block,
.services-page .index-actions-block.other-service {
  min-width: 0;
  overflow: hidden;
}
.services-page .index-discounts-block .wrap,
.services-page .index-compare-block .wrap,
.services-page .index-actions-block .wrap {
  max-width: 100%;
  min-width: 0;
}
.services-page .index-discounts-block .catalog_srv_item_outer,
.services-page .index-actions-block .catalog_srv_item_outer,
.services-page .index-actions-block .other__items {
  min-width: 0;
  flex-wrap: wrap;
}
.services-page .index-discounts-block .catalog_srv_item,
.services-page .index-actions-block .catalog_srv_item,
.services-page .index-actions-block .other__items .item {
  min-width: 0;
}
.services-page .index-discounts-block .catalog_srv_item .link,
.services-page .index-discounts-block .catalog_srv_item .item_title,
.services-page .index-actions-block .catalog_srv_item .link,
.services-page .index-actions-block .catalog_srv_item .item_title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
/* Таблица «Чем мы отличаемся» — горизонтальный скролл при переполнении */
.services-page .index-compare-block .table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.services-page .index-compare-block .table table {
  min-width: 500px;
}
.services-page .index-compare-block .list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

/* ===== ВРЕМЕННО: скрыт блок «Акции» на всех страницах — удалить при восстановлении ===== */
.index-discounts-block {
  display: none !important;
}

/* ===== Маркетинг nnew 26.11.2026 (staging) ===== */
.mkt-home--v2026 .mkt-home-body {
  margin-bottom: 2rem;
}
.mkt-hero {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #f4f8fc;
  border-radius: 14px;
  border: 1px solid rgba(8, 65, 158, 0.08);
}
.mkt-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #1a2a4a;
  margin-bottom: 1rem;
}
.mkt-bullets,
.mkt-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.55;
}
.mkt-bullets li,
.mkt-list li {
  margin-bottom: 0.5rem;
}
.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  border: 2px solid transparent;
  text-align: center;
  min-height: 44px;
}
.mkt-btn-primary {
  background: #08419e;
  color: #fff !important;
}
.mkt-btn-secondary {
  background: #fff;
  color: #08419e !important;
  border-color: #08419e;
}
.mkt-cta-telegram {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}
.mkt-section {
  margin: 2rem 0;
}
.mkt-h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: #1a2a4a;
}
.mkt-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.mkt-card {
  background: #fff;
  border: 1px solid #e3eaf5;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(8, 65, 158, 0.06);
}
.mkt-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.mkt-price {
  font-weight: 700;
  color: #08419e;
  margin: 0 0 0.5rem;
}
.mkt-note {
  font-size: 0.92rem;
  color: #555;
}
.mkt-price-row {
  font-size: 1rem;
  line-height: 1.6;
}
.mkt-faq-item {
  border-bottom: 1px solid #e8edf5;
  padding: 0.75rem 0;
}
.mkt-faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.mkt-lead-form-wrap {
  background: #eef3ff;
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}
.mkt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.mkt-form-grid label,
.mkt-lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.mkt-form-full {
  grid-column: 1 / -1;
}
.mkt-form-grid input,
.mkt-lead-form textarea,
.mkt-lead-form select {
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5d3e8;
  border-radius: 8px;
  font-size: 1rem;
}
.mkt-form-tasks {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.mkt-form-tasks legend {
  width: 100%;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.mkt-form-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
}
.mkt-form-alt {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.mkt-h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: #1a2a4a;
}
.mkt-card-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.mkt-tariff-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0 1rem;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  max-width: 100%;
}
.mkt-tariff-matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.mkt-tariff-matrix th,
.mkt-tariff-matrix td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #e8edf5;
  text-align: center;
  vertical-align: middle;
}
.mkt-tariff-matrix th[scope="row"] {
  text-align: left;
  font-weight: 600;
  min-width: 11.5rem;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 2px 0 0 #e8edf5;
}
.mkt-tariff-matrix thead th {
  background: #f4f8fc;
  font-weight: 700;
  line-height: 1.35;
}
.mkt-th-price {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #08419e;
}
.mkt-matrix-yes {
  color: #0a7a3e;
  font-weight: 700;
  font-size: 1.1rem;
}
.mkt-matrix-no {
  color: #999;
}
.mkt-matrix-kp {
  font-size: 0.82rem;
  color: #555;
}
.mkt-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mkt-case-placeholder {
  border: 1px dashed #c5d3e8;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fafcff;
}
.mkt-case-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #08419e;
  background: #eef3ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.mkt-case-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
@media (max-width: 767px) {
  .mkt-card-grid {
    grid-template-columns: 1fr;
  }
  .mkt-case-grid {
    grid-template-columns: 1fr;
  }
  .mkt-form-grid {
    grid-template-columns: 1fr;
  }
  .mkt-cta-row .mkt-btn {
    flex: 1 1 100%;
  }
}

/* ===== Laravel layout: шапка → меню → контент → подвал ===== */
main#out .header {
  margin-bottom: 14px;
}
main#out > .wrap,
main#out > .services-block {
  padding-top: 28px;
  padding-bottom: 44px;
}
main#out > .wrap > h1 {
  margin: 0 0 17px;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
}
main#out > .wrap .prices {
  margin-bottom: 28px;
}
main#out > .wrap article.content {
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
}
main#out > .wrap article.content p {
  margin: 0 0 1em;
}
main#out > .wrap article.content p:last-child {
  margin-bottom: 0;
}
main#out > .wrap article.content ul,
main#out > .wrap article.content ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}
main#out > .wrap article.content li {
  margin-bottom: 0.35em;
}
main#out > .wrap article.content h2,
main#out > .wrap article.content h3 {
  margin: 1.25em 0 0.65em;
  font-weight: 500;
  line-height: 1.3;
}
main#out > .wrap article.content h2:first-child,
main#out > .wrap article.content h3:first-child {
  margin-top: 0;
}
main#out > .wrap article.content .lp.portfolio-gallery {
  margin-bottom: 2rem;
}
main#out > .wrap article.content .lp.portfolio-gallery .results-gallery-title {
  margin-top: 0;
}
main#out > .wrap article.content .portfolio-video {
  margin-top: 0.5rem;
  max-width: 640px;
}
main#out > .wrap article.content .portfolio-video iframe {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(8, 65, 158, 0.12);
}
@media (max-width: 767px) {
  main#out > .wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  main#out > .wrap > h1 {
    font-size: 22px;
  }
}