/* Защита и автоматика: только то, чего нет в style.css.
   Базу берём из существующих классов: nova-benefits_text1/2, nova-benefits_blok_mob,
   nova-benefits_blok-title1/2, arrow. Размеры: html { font-size: 62.5% } → 1rem = 10px */

/* Контейнер раздела. .nova-benefits (flex + center) без ширины у _content выталкивал широкую сетку влево,
   поэтому у раздела своя ширина и отступы */
.protection {
  box-sizing: border-box;
  max-width: 184rem;
  margin: 0 auto;
  padding: 0 4rem 10rem; /* верх даёт .nova-benefits_text (margin-top: 5rem) */
}
.protection *,
.protection *::before,
.protection *::after { box-sizing: border-box; }

.protection .nova-benefits_text { margin-bottom: 1.5rem; }

.protection__lead {
  margin: 0 0 4rem;
  font-size: 2rem;
  line-height: 1.4;
  text-align: left;
  color: #323031;
}


/* Заголовки групп на странице Protection */
.ats-group { box-sizing: border-box; margin: 56px 0 24px; padding: 0; max-width: none; }
.ats-group__title { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; margin: 0 0 8px; color: var(--ats-ink); }
.ats-group__text { max-width: 64ch; margin: 0; font-size: 18px; line-height: 1.6; color: var(--ats-gray); }

/* Сетка карточек */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
}

/* Карточка = nova-benefits_blok_mob + переопределения под сетку */
.protection-card {
  width: auto;
  max-height: none;
  min-height: 37rem;
  margin: 0;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
}
.protection-card__picture {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14rem;
  margin-top: 3rem;
}

.protection-card__picture { height: 18rem; }   /* вместо 14rem, фото обычно выше иконок */

.protection-card__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 1s ease;
}
.protection-card:hover .protection-card__image { transform: scale(1.05); }

.protection-card__image {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}


.protection-card__icon {
  width: 22rem;
  height: 14.7rem;
  transition: transform 1s ease;
}
.protection-card:hover .protection-card__icon { transform: scale(1.05); }
.protection-card__texts { flex: 1; margin: 2rem 0; }
.protection-card__arrow {
  align-self: flex-start;
  margin-bottom: 1rem;
}

/* Иконки устройств (SVG-спрайт): тёмные линии и белые корпуса читаются и на сером, и на голубом (hover) */
.device-icon__line,
.device-icon__body,
.device-icon__accent,
.device-icon__wave {
  stroke: #323031;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device-icon__body   { fill: #fff; }
.device-icon__accent { fill: #323031; }
.device-icon__dot    { fill: #323031; stroke: none; }

/* Адаптив */
@media (max-width: 87.5em) { .protection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40em) {
  .protection { padding: 4rem 2rem 6rem; }
  .protection-grid { grid-template-columns: 1fr; }
}






.ats {
    --ats-blue: #00A7E1;       /* фирменный голубой: заливки, рамки, схема */
    --ats-blue-text: #007BA8;  /* тот же голубой, темнее: текст и кнопки (контраст AA) */
    --ats-blue-dark: #00638A;
    --ats-blue-soft: #E6F6FC;
    --ats-gray: #585858;
    --ats-gray-line: #DADADA;
    --ats-ink: #1E2A35;
    --ats-green: #2E7D4F;      /* акцент, использовать точечно */
    display: block;            /* защита от flex/grid-правил общего style.css */
    width: 100%;
}
.ats-section { display: block; width: 100%; }
/* Размеры текста (условный базовый размер сайта мелкий, поэтому задаём явно) */
.ats-section p, .ats-section li, .ats-section td, .ats-section th { font-size: 18px; line-height: 1.6; }
.ats-section .ats-lead { font-size: 20px; }
.ats-section .ats-note { font-size: 16px; }
.ats-section .ats-faq summary { font-size: 20px; }
.ats-section .ats-faq details p { font-size: 18px; }
.ats-section .ats-table caption { font-size: 22px; }
.ats-section .ats-step h3, .ats-section .ats-card h3 { font-size: 22px; }
.ats-section { color: var(--ats-ink); line-height: 1.6; scroll-margin-top: 90px; }
.ats-section *, .ats-section *::before, .ats-section *::after { box-sizing: border-box; }
.ats-section a { color: var(--ats-blue-text); }
.ats-section a:focus-visible, .ats-section summary:focus-visible { outline: 2px solid var(--ats-green); outline-offset: 3px; }

.ats-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ats-section { padding: clamp(56px, 8vw, 104px) 0; }
.ats-section--tint { background: var(--ats-blue-soft); }
.ats-h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
.ats-lead { max-width: 64ch; color: var(--ats-gray); font-size: 18px; margin: 0 0 32px; }
.ats-note { max-width: 72ch; color: var(--ats-gray); font-size: 15px; margin: 32px 0 0; padding-left: 16px; border-left: 2px solid var(--ats-gray-line); }
.ats-list { padding-left: 20px; color: var(--ats-gray); }
.ats-list li { margin-bottom: 8px; }

/* Кнопки */
.ats-btn { display: inline-block; padding: 14px 28px; border: 1px solid var(--ats-blue); border-radius: 4px; color: var(--ats-blue) !important; text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.ats-btn:hover { background: var(--ats-blue-soft); }
.ats-btn--primary { background: var(--ats-blue-text); color: #fff !important; }
.ats-btn--primary:hover { background: var(--ats-blue-dark); }

/* Шаги, карточки */
.ats-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.ats-step { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--ats-blue); }
.ats-step::before { content: counter(step); display: block; font-size: 15px; font-weight: 600; color: var(--ats-green); margin-bottom: 8px; }
.ats-step h3, .ats-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.ats-step p, .ats-card p { margin: 0; color: var(--ats-gray); }
.ats-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ats-card { padding: 28px; border: 1px solid var(--ats-gray-line); border-radius: 4px; background: #fff; color: inherit; text-decoration: none; }
.ats-card--accent { border-color: var(--ats-green); }
.ats-card--link { transition: border-color .2s; }
.ats-card--link:hover { border-color: var(--ats-blue); }

/* Схема */
.ats-scheme { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ats-svg { width: 100%; height: auto; }
.ats-svg rect { fill: #fff; stroke: var(--ats-blue); stroke-width: 1.5; }
.ats-svg__row--load rect { stroke: var(--ats-green); }
.ats-svg__label { font-size: 15px; fill: var(--ats-ink); }
.ats-svg__t { font-size: 16px; font-weight: 600; fill: var(--ats-ink); text-anchor: middle; }

/* Таблицы */
.ats-tables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.ats-table-wrap { overflow-x: auto; }
.ats-table { width: 100%; border-collapse: collapse; }
.ats-table caption { text-align: left; font-size: 20px; font-weight: 600; padding-bottom: 12px; }
.ats-table th, .ats-table td { text-align: left; padding: 12px 0; border-top: 1px solid var(--ats-gray-line); vertical-align: top; }
.ats-table th { width: 46%; font-weight: 400; color: var(--ats-gray); padding-right: 16px; }

/* Документация, FAQ, контакты */
.ats-docs { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.ats-docs .ats-lead { margin-bottom: 0; }
.ats-faq { max-width: 820px; }
.ats-faq details { border-top: 1px solid var(--ats-gray-line); padding: 18px 0; }
.ats-faq details:last-child { border-bottom: 1px solid var(--ats-gray-line); }
.ats-faq summary { cursor: pointer; font-size: 18px; font-weight: 500; }
.ats-faq details p { color: var(--ats-gray); margin: 12px 0 0; }
@media (max-width: 900px) {
    .ats-photos { grid-template-columns: 1fr; }
    .ats-scheme, .ats-tables, .ats-grid3, .ats-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .ats-btn { width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .ats-section * { transition: none !important; } }

/* Фото АВР в hero (оригинальные размеры из style.css рассчитаны на другую картинку) */
.ats .product__image img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }

/* Фотографии изделия */
.ats-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.ats-photos figure { margin: 0; padding: 24px; text-align: center; background: #fff; border: 1px solid var(--ats-gray-line); border-radius: 4px; }
.ats-photos img { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 12px; }
.ats-photos figcaption { color: var(--ats-gray); font-size: 16px; }

/* Ховер-заливка блока */
.kaspiAVR2P:hover { background: rgba(228,0,43,0.3); }
.halykAVR2P:hover { background: rgba(0,121,58,0.3); }

.kaspiAVR2P::before {
  background-image: url('/img/protection/AVR2P.svg');
}
.halykAVR2P::before {
  background-image: url('/img/protection/AVR2P.svg');
}

.kaspiAVR4P:hover { background: rgba(228,0,43,0.3); }
.halykAVR4P:hover { background: rgba(0,121,58,0.3); }

.kaspiAVR4P::before {
  background-image: url('/img/protection/AVR4P.svg');
}
.halykAVR4P::before {
  background-image: url('/img/protection/AVR4P.svg');
}