/* Стили только для spb.atlant-service-rus.ru (подключается в чанке head по контексту) */
img { max-width: 100%; height: auto; }
/* «Преимущества» (advan_slider / advan_row): прежний размер иконок 150px после проставления width/height */
.advantages .item .image img[src*="/advantages-"],
.advantages .item .image img[src*="/advantage-warranty.jpg"] { width: 150px; height: auto; }

/* ===== Макет Figma (ТЗ от 06.11.2026) ===== */
:root {
  --spb-primary: #364085;
  --spb-blue: #115E9A;
  --spb-text: #111111;
  --spb-muted: #5B6075;
  --spb-surface: #EBECF3;
  --spb-surface-soft: #F5F6FA;
  --spb-border: #D8DBE8;
  --spb-border-strong: #B9BFDD;
}

/* --- Иконка «проверено»: галочка в круге --- */
.masters-check__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--spb-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* --- Рамка вокруг текста + плашка мастеров --- */
.text-frame {
  border: 2px solid var(--spb-border-strong); border-radius: 20px; background: #fff;
  overflow: hidden; margin: 0 0 40px; box-sizing: border-box;
}
.text-frame__body { padding: 56px 64px 40px; }
.text-frame__body > :first-child { margin-top: 0; }
.text-frame__body > :last-child { margin-bottom: 0; }
.text-frame__body h2 { margin-top: 36px; }
.text-frame__body h2:first-child { margin-top: 0; }
.text-frame__body p, .text-frame__body li { line-height: 1.55; }

.masters-check { background: var(--spb-surface); padding: 40px 64px 48px; box-sizing: border-box; }
.masters-check__head { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.masters-check__head h2, .masters-check__title {
  margin: 0 !important; padding: 0; font-family: "PT Sans", sans-serif; font-weight: 700;
  font-size: 28px; line-height: 34px; color: var(--spb-text);
}

/* Главная: 4 карточки в ряд */
.masters--check { margin: 0; padding: 0; background: none; }
.masters--check .masters_wrap { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; justify-content: stretch; }
.masters--check .item {
  width: auto !important; height: auto !important; margin: 0 !important; float: none !important;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 28px 20px; box-sizing: border-box;
}
.masters--check .item .image {
  display: block; width: 124px; height: 124px; border-radius: 50%; overflow: hidden;
  background: var(--spb-surface-soft); margin: 0 0 6px;
}
.masters--check .item .image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.masters--check .item .name { font-family: "PT Sans", sans-serif; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--spb-primary); text-decoration: none; }
.masters--check .item .name:hover { text-decoration: underline; }
.masters--check .item .spec { font-size: 16px; line-height: 22px; color: var(--spb-muted); }
.masters--check .item .age { font-size: 16px; line-height: 22px; color: var(--spb-blue); }
.masters--check .item .age strong { font-weight: 400; }

/* Подстраницы: «Проверено мастером» — список */
.masters-check--list .masters-check__head { margin-bottom: 20px; }
.masters-check__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.masters-check__list li { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; background: none; }
.masters-check__list li::before { display: none; content: none; }
.masters-check__photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: block; background: #fff; }
.masters-check__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.masters-check__info { display: flex; flex-direction: column; gap: 4px; }
.masters-check__name { font-family: "PT Sans", sans-serif; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--spb-primary); text-decoration: none; }
.masters-check__name:hover { text-decoration: underline; }
.masters-check__meta { font-size: 16px; line-height: 22px; color: var(--spb-muted); }

/* --- FAQ «Частые вопросы» (аккордеон) --- */
.faq-block { padding: 80px 0; clear: both; }
.faq-block__inner { max-width: 1200px; margin: 0 auto; }
.faq-block__inner > h2 { margin: 0 0 36px; font-family: "PT Sans", sans-serif; font-size: 30px; line-height: 38px; font-weight: 700; color: var(--spb-text); }
.faq-item {
  border: 1px solid var(--spb-border); border-radius: 14px; background: #fff;
  margin: 0 0 12px; transition: background .2s, border-color .2s;
}
.faq-item.is-open { background: var(--spb-surface-soft); border-color: var(--spb-primary); }
.faq-item h3 { margin: 0; padding: 0; font-size: inherit; }
.faq-item__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  margin: 0; padding: 24px 24px 24px 32px; background: none; border: 0; border-radius: 14px; cursor: pointer;
  text-align: left; font-family: "PT Sans", sans-serif; font-size: 19px; line-height: 26px; font-weight: 700; color: var(--spb-text);
}
.faq-item.is-open .faq-item__toggle { color: var(--spb-primary); padding-bottom: 12px; }
.faq-item__toggle:focus-visible { outline: 2px solid var(--spb-primary); outline-offset: 2px; }
.faq-item__icon {
  position: relative; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--spb-border-strong); box-sizing: border-box; background: #fff;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--spb-primary); border-radius: 1px; transition: transform .2s;
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__icon { background: var(--spb-primary); border-color: var(--spb-primary); }
.faq-item.is-open .faq-item__icon::before, .faq-item.is-open .faq-item__icon::after { background: #fff; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__answer { padding: 0 72px 24px 32px; font-size: 16px; line-height: 24px; color: var(--spb-muted); }
.faq-item__answer p { margin: 0 0 10px; font-size: 16px; line-height: 24px; color: var(--spb-muted); }
.faq-item__answer > :last-child { margin-bottom: 0; }
.faq-block__inner.is-ready .faq-item:not(.is-open) .faq-item__answer { display: none; }

/* --- Блок ссылок у картинки (period, scheme, troubleshooting, warranty, parts) --- */
.clear--links { display: flex; flex-direction: row-reverse; align-items: center; gap: 40px; margin: 0 0 40px; }
.clear--links::after { display: none; }
.clear--links > p.big { flex: 0 0 220px; margin: 0; }
.clear--links > p.big img.right { float: none; display: block; margin: 0; width: 220px; height: auto; }
.clear--links > ul.relative {
  flex: 1 1 auto; display: grid; justify-content: center; align-content: center; gap: 14px;
  list-style: none; margin: 0; padding: 0; position: static;
}
.clear--links > ul.relative li { margin: 0; padding: 0 0 0 36px; position: relative; background: none; list-style: none; font-size: 20px; line-height: 28px; }
.clear--links > ul.relative li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--spb-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 7l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.clear--links > ul.relative li a { display: inline !important; background: none !important; padding: 0 !important; font-family: "PT Sans", sans-serif; font-size: 20px; line-height: 28px; color: var(--spb-blue); text-decoration: none; }
.clear--links > ul.relative li a:hover { text-decoration: underline; }

/* --- «Преимущества» в ряд (новые подстраницы, шаблон 44) --- */
.advantages--row { float: none !important; width: auto !important; clear: both; margin: 40px 0; }
.advantages--row .column { width: auto !important; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; float: none !important; }
.advantages--row .column > h2 { grid-column: 1 / -1; margin: 0 0 4px; }
.advantages--row .item { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 12px; width: auto !important; height: auto !important; float: none !important; margin: 0 !important; }
.advantages--row .item .image { width: auto !important; height: auto !important; }
.advantages--row .item .name { width: auto !important; max-width: 220px; font-size: 18px; line-height: 24px; text-align: center; }
.advantages--row .more, .advantages--row .pagination { display: none !important; }

/* --- Таблица цен на всю ширину --- */
.services--full .right--full { float: none !important; width: auto !important; max-width: none; margin-left: 0; margin-right: 0; }
.services--full .right--full .column { width: auto !important; float: none !important; }
.services--full::after { content: ""; display: table; clear: both; }

/* --- «В цифрах» на /o-kompanii/: 3 пункта на всю ширину --- */
.advantages-about { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantages-about .advantages-about-item { box-sizing: border-box; padding: 16px 20px !important; width: auto !important; max-width: none !important; margin: 0 !important; float: none !important; }

/* --- Список мастеров на /o-kompanii/ --- */
.masters-list { margin: 40px 0; }
.masters-list ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.masters-list li { margin: 0; padding: 0 0 0 24px; position: relative; font-size: 17px; line-height: 24px; }
.masters-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--spb-blue); }
.masters-list a { color: var(--spb-primary); font-weight: 700; }

/* --- Популярные ссылки --- */
.popular-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0; }
.popular-links a { color: var(--spb-blue); }

/* ===== Адаптив ===== */
@media (max-width: 1023px) {
  .masters--check .masters_wrap { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .advantages--row .column { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .text-frame { border-radius: 16px; margin-bottom: 28px; }
  .text-frame__body { padding: 28px 20px 24px; }
  .masters-check { padding: 24px 16px 28px; }
  .masters-check__head { gap: 12px; margin-bottom: 20px; }
  .masters-check__icon { flex-basis: 32px; width: 32px; height: 32px; background-size: 18px; }
  .masters-check__head h2, .masters-check__title { font-size: 22px; line-height: 28px; }
  .masters--check .masters_wrap { gap: 12px; }
  .masters--check .item { padding: 18px 10px; gap: 6px; }
  .masters--check .item .image { width: 88px; height: 88px; }
  .masters--check .item .name { font-size: 16px; line-height: 21px; }
  .masters--check .item .spec, .masters--check .item .age { font-size: 14px; line-height: 19px; }
  .masters-check__list { flex-direction: column; gap: 14px; }
  .masters-check__photo { flex-basis: 56px; width: 56px; height: 56px; }
  .masters-check__name { font-size: 18px; line-height: 24px; }

  .faq-block { padding: 48px 0; }
  .faq-block__inner > h2 { font-size: 24px; line-height: 30px; margin-bottom: 24px; }
  .faq-item { border-radius: 12px; margin-bottom: 10px; }
  .faq-item__toggle { padding: 18px 16px 18px 20px; font-size: 17px; line-height: 23px; }
  .faq-item__answer { padding: 0 20px 18px; }
  .faq-item__answer, .faq-item__answer p { font-size: 15px; line-height: 22px; }

  .clear--links { flex-direction: column; gap: 20px; }
  .clear--links > p.big { flex-basis: auto; }
  .clear--links > ul.relative { justify-content: start; }
  .clear--links > ul.relative li, .clear--links > ul.relative li a { font-size: 18px; line-height: 26px; }

  .advantages-about { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 479px) {
  .advantages--row .column { grid-template-columns: 1fr 1fr; gap: 16px; }
  .advantages--row .item .name { font-size: 15px; line-height: 20px; }
}
