/* ============================================================
   Универсальные блоки: Цифры / Этапы / Карточки / Документы.
   Стиль под текущий (актуальный) вид сайта. Подключается
   отдельным файлом, main.css не трогается.
   ============================================================ */

.blk-stats, .blk-steps, .blk-cards, .blk-docs { padding: 18px 0; margin-bottom: 0; }
.blk-stats__title, .blk-steps__title, .blk-cards__title, .blk-docs__title {
	font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 20px; color: #1c1c1f;
}

/* компактнее вертикальные отступы у текстового блока и галереи;
   убираем глобальный section { margin-bottom:120px } у блоков кейса */
.acf-text-block { padding: 18px 0; margin-bottom: 0; }
.gallery-works { padding: 18px 0; margin-bottom: 0; }
.single-case.head { margin-bottom: 28px; }

/* шапка кейса: адаптивное фото (не растягивать вертикальные снимки) */
.single-case .left img { width: 100%; height: 420px; object-fit: cover; border-radius: 14px; display: block; }
@media (max-width: 767px) { .single-case .left img { height: 260px; } }

/* ---- Слайдер фото в шапке кейса (slick main + миниатюры) ---- */
.single-case .case-slider { position: relative; }
.single-case .case-slider__main { border-radius: 14px; overflow: hidden; }
.single-case .case-slider__main .slick-slide img { width: 100%; height: 420px; object-fit: cover; border-radius: 0; }
.single-case .case-slider__nav { margin-top: 12px; }
.single-case .case-slider__nav .slick-slide { margin: 0 5px; cursor: pointer; }
.single-case .case-slider__nav .slick-slide img { width: 100%; height: 74px; object-fit: cover; border-radius: 8px; opacity: .55; transition: .2s; border: 2px solid transparent; }
.single-case .case-slider__nav .slick-current img,
.single-case .case-slider__nav .slick-slide:hover img { opacity: 1; border-color: #2568fe; }
/* стрелки-переключатели */
.single-case .case-arrow { position: absolute; top: 210px; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(18,40,46,.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .18s; }
.single-case .case-arrow:hover { background: #2568fe; }
.single-case .case-arrow::before { content: ""; display: block; width: 10px; height: 10px; border-top: 2px solid #2568fe; border-right: 2px solid #2568fe; transition: .18s; }
.single-case .case-arrow:hover::before { border-color: #fff; }
.single-case .case-arrow--prev { left: 14px; }
.single-case .case-arrow--prev::before { transform: rotate(-135deg); margin-left: 3px; }
.single-case .case-arrow--next { right: 14px; }
.single-case .case-arrow--next::before { transform: rotate(45deg); margin-right: 3px; }
@media (max-width: 767px) {
	.single-case .case-slider__main .slick-slide img { height: 260px; }
	.single-case .case-arrow { top: 130px; }
}

/* ---- Цифры ---- */
.blk-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.blk-stats__item {
	background: #fff; border: 1px solid #e9e9e9; border-radius: 16px;
	padding: 24px; text-align: center; box-shadow: 0 6px 24px rgba(18,40,46,.06);
}
.blk-stats__item b { display: block; font-size: 36px; font-weight: 800; color: #2568fe; line-height: 1; }
.blk-stats__item span { display: block; font-size: 14px; color: #4f4f4f; margin-top: 8px; }

/* ---- Этапы ---- */
.blk-steps__list { counter-reset: st; display: grid; gap: 14px; }
.blk-steps__item {
	position: relative; background: #fff; border: 1px solid #e9e9e9; border-radius: 14px;
	padding: 20px 24px 20px 70px; box-shadow: 0 6px 24px rgba(18,40,46,.06);
}
.blk-steps__item::before {
	counter-increment: st; content: counter(st);
	position: absolute; left: 22px; top: 20px; width: 34px; height: 34px;
	background: #2568fe; color: #fff; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.blk-steps__item b { display: block; font-size: 17px; margin-bottom: 4px; }
.blk-steps__item p { margin: 0; font-size: 15px; color: #4f4f4f; }

/* ---- Карточки ---- */
.blk-cards__grid { display: grid; gap: 16px; }
.blk-cards__grid--2 { grid-template-columns: repeat(2, 1fr); }
.blk-cards__grid--3 { grid-template-columns: repeat(3, 1fr); }
.blk-cards__grid--4 { grid-template-columns: repeat(4, 1fr); }
.blk-cards__item {
	background: #fff; border: 1px solid #e9e9e9; border-radius: 14px;
	padding: 22px; box-shadow: 0 6px 24px rgba(18,40,46,.06); transition: .18s;
}
.blk-cards__item:hover { border-color: #2568fe; box-shadow: 0 12px 32px rgba(18,40,46,.1); }
.blk-cards__ic {
	width: 46px; height: 46px; border-radius: 10px; background: #eaf1ff;
	display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.blk-cards__ic img { max-width: 24px; max-height: 24px; }
.blk-cards__item b { display: block; font-size: 16px; margin-bottom: 6px; }
.blk-cards__item p { margin: 0; font-size: 14px; color: #4f4f4f; line-height: 1.5; }

/* ---- Документы ---- */
.blk-docs__list { display: grid; gap: 12px; }
.blk-docs__item {
	display: flex; align-items: center; gap: 14px;
	background: #fff; border: 1px solid #e9e9e9; border-radius: 14px;
	padding: 16px 20px; box-shadow: 0 6px 24px rgba(18,40,46,.06); transition: .18s;
}
.blk-docs__item:hover { border-color: #2568fe; }
.blk-docs__ic {
	width: 46px; height: 46px; flex: none; border-radius: 10px;
	background: #fdecec; color: #e2453a; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 12px;
}
.blk-docs__txt { flex: 1; }
.blk-docs__txt b { display: block; font-size: 15px; }
.blk-docs__txt small { font-size: 13px; color: #4f4f4f; }
.blk-docs__dl { color: #2568fe; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---- адаптив ---- */
@media (max-width: 900px) {
	.blk-stats__grid, .blk-cards__grid--3, .blk-cards__grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.blk-stats__grid, .blk-cards__grid--2, .blk-cards__grid--3, .blk-cards__grid--4 { grid-template-columns: 1fr; }
}

/* ---- Сквозной блок документов: короткий список и кликабельные превью ---- */
@media (min-width: 1025px) {
    .new_services_norm .list_doc { align-items: flex-end; }
    .new_services_norm .list_doc > .doc-preview { display: block; width: 25%; padding: 0 4px; }
    .new_services_norm .list_doc > .doc-preview img { display: block; width: 100%; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 14px 24px 0 rgba(0, 0, 0, .08); }
    .new_services_norm .list_doc > .doc-preview:nth-child(1) img { height: 210px; }
    .new_services_norm .list_doc > .doc-preview:nth-child(2) img { height: 225px; }
    .new_services_norm .list_doc > .doc-preview:nth-child(3) img { height: 240px; }
    .new_services_norm .list_doc > .doc-preview:nth-child(4) img { height: 255px; }
}
.new_services_norm .list_doc > .doc-preview { transition: transform .18s ease; }
.new_services_norm .list_doc > .doc-preview:hover { transform: translateY(-3px); }
.new_services_norm .list_doc > .doc-preview:focus-visible { outline: 3px solid #2568fe; outline-offset: 3px; border-radius: 10px; }
@media (max-width: 1024px) {
    .new_services_norm .list_doc > .doc-preview { display: block; width: 25%; padding: 0 4px; }
    .new_services_norm .list_doc > .doc-preview img { display: block; width: 100%; height: auto; aspect-ratio: 142 / 200; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 14px 24px 0 rgba(0, 0, 0, .08); }
}
@media (max-width: 767px) {
    .new_services_norm .list_doc > .doc-preview { width: 50%; padding: 4px; }
}
/* ============================================================
   Универсальные блоки: Цифры / Этапы / Карточки / Документы.
   Стиль под текущий (актуальный) вид сайта. Подключается
   отдельным файлом, main.css не трогается.
   ============================================================ */

.blk-stats, .blk-steps, .blk-cards, .blk-docs { padding: 18px 0; margin-bottom: 0; }
.blk-stats__title, .blk-steps__title, .blk-cards__title, .blk-docs__title {
	font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 20px; color: #1c1c1f;
}

/* компактнее вертикальные отступы у текстового блока и галереи;
   убираем глобальный section { margin-bottom:120px } у блоков кейса */
.acf-text-block { padding: 18px 0; margin-bottom: 0; }
.gallery-works { padding: 18px 0; margin-bottom: 0; }
.single-case.head { margin-bottom: 28px; }

/* шапка кейса: адаптивное фото (не растягивать вертикальные снимки) */
.single-case .left img { width: 100%; height: 420px; object-fit: cover; border-radius: 14px; display: block; }
@media (max-width: 767px) { .single-case .left img { height: 260px; } }

/* ---- Слайдер фото в шапке кейса (slick main + миниатюры) ---- */
.single-case .case-slider { position: relative; }
.single-case .case-slider__main { border-radius: 14px; overflow: hidden; }
.single-case .case-slider__main .slick-slide img { width: 100%; height: 420px; object-fit: cover; border-radius: 0; }
.single-case .case-slider__nav { margin-top: 12px; }
.single-case .case-slider__nav .slick-slide { margin: 0 5px; cursor: pointer; }
.single-case .case-slider__nav .slick-slide img { width: 100%; height: 74px; object-fit: cover; border-radius: 8px; opacity: .55; transition: .2s; border: 2px solid transparent; }
.single-case .case-slider__nav .slick-current img,
.single-case .case-slider__nav .slick-slide:hover img { opacity: 1; border-color: #2568fe; }
/* стрелки-переключатели */
.single-case .case-arrow { position: absolute; top: 210px; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(18,40,46,.2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: .18s; }
.single-case .case-arrow:hover { background: #2568fe; }
.single-case .case-arrow::before { content: ""; display: block; width: 10px; height: 10px; border-top: 2px solid #2568fe; border-right: 2px solid #2568fe; transition: .18s; }
.single-case .case-arrow:hover::before { border-color: #fff; }
.single-case .case-arrow--prev { left: 14px; }
.single-case .case-arrow--prev::before { transform: rotate(-135deg); margin-left: 3px; }
.single-case .case-arrow--next { right: 14px; }
.single-case .case-arrow--next::before { transform: rotate(45deg); margin-right: 3px; }
@media (max-width: 767px) {
	.single-case .case-slider__main .slick-slide img { height: 260px; }
	.single-case .case-arrow { top: 130px; }
}

/* ---- Цифры ---- */
.blk-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.blk-stats__item {
	background: #fff; border: 1px solid #e9e9e9; border-radius: 16px;
	padding: 24px; text-align: center; box-shadow: 0 6px 24px rgba(18,40,46,.06);
}
.blk-stats__item b { display: block; font-size: 36px; font-weight: 800; color: #2568fe; line-height: 1; }
.blk-stats__item span { display: block; font-size: 14px; color: #4f4f4f; margin-top: 8px; }

/* ---- Этапы ---- */
.blk-steps__list { counter-reset: st; display: grid; gap: 14px; }
.blk-steps__item {
	position: relative; background: #fff; border: 1px solid #e9e9e9; border-radius: 14px;
	padding: 20px 24px 20px 70px; box-shadow: 0 6px 24px rgba(18,40,46,.06);
}
.blk-steps__item::before {
	counter-increment: st; content: counter(st);
	position: absolute; left: 22px; top: 20px; width: 34px; height: 34px;
	background: #2568fe; color: #fff; border-radius: 10px;
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.blk-steps__item b { display: block; font-size: 17px; margin-bottom: 4px; }
.blk-steps__item p { margin: 0; font-size: 15px; color: #4f4f4f; }

/* ---- Карточки ---- */
.blk-cards__grid { display: grid; gap: 16px; }
.blk-cards__grid--2 { grid-template-columns: repeat(2, 1fr); }
.blk-cards__grid--3 { grid-template-columns: repeat(3, 1fr); }
.blk-cards__grid--4 { grid-template-columns: repeat(4, 1fr); }
.blk-cards__item {
	background: #fff; border: 1px solid #e9e9e9; border-radius: 14px;
	padding: 22px; box-shadow: 0 6px 24px rgba(18,40,46,.06); transition: .18s;
}
.blk-cards__item:hover { border-color: #2568fe; box-shadow: 0 12px 32px rgba(18,40,46,.1); }
.blk-cards__ic {
	width: 46px; height: 46px; border-radius: 10px; background: #eaf1ff;
	display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.blk-cards__ic img { max-width: 24px; max-height: 24px; }
.blk-cards__item b { display: block; font-size: 16px; margin-bottom: 6px; }
.blk-cards__item p { margin: 0; font-size: 14px; color: #4f4f4f; line-height: 1.5; }

/* ---- Документы ---- */
.blk-docs__list { display: grid; gap: 12px; }
.blk-docs__item {
	display: flex; align-items: center; gap: 14px;
	background: #fff; border: 1px solid #e9e9e9; border-radius: 14px;
	padding: 16px 20px; box-shadow: 0 6px 24px rgba(18,40,46,.06); transition: .18s;
}
.blk-docs__item:hover { border-color: #2568fe; }
.blk-docs__ic {
	width: 46px; height: 46px; flex: none; border-radius: 10px;
	background: #fdecec; color: #e2453a; display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 12px;
}
.blk-docs__txt { flex: 1; }
.blk-docs__txt b { display: block; font-size: 15px; }
.blk-docs__txt small { font-size: 13px; color: #4f4f4f; }
.blk-docs__dl { color: #2568fe; font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ---- адаптив ---- */
@media (max-width: 900px) {
	.blk-stats__grid, .blk-cards__grid--3, .blk-cards__grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.blk-stats__grid, .blk-cards__grid--2, .blk-cards__grid--3, .blk-cards__grid--4 { grid-template-columns: 1fr; }
}
