/* Блоки новой главной — по образцу doirastan.uz, вёрстка своя.
 *
 * Все правила живут под .lp намеренно: на сайте уже есть .step, .dir и .case
 * со своим видом, и без обёртки новые правила молча переписали бы старую
 * главную. Один враппер дешевле, чем переименование половины классов.
 */

.lp .wrap--narrow { max-width: 860px; }
.lp .muted { color: var(--muted); }

/* ── Этапы ───────────────────────────────────────────────────────────────── */

.lp .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Соединяем шаги линией: четыре карточки с номерами читались как
   независимые пункты, хотя это последовательность. Линия идёт в промежутке
   между карточками, на уровне номера, и заканчивается стрелкой. */
.lp .steps .step { position: relative; }

.lp .steps .step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 45px;
	right: -18px;
	width: 18px;
	height: 2px;
	background: var(--line);
}
.lp .steps .step:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 41px;
	right: -18px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--line);
	border-right: 2px solid var(--line);
	transform: rotate(45deg);
	z-index: 1;
}

.lp .steps .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.lp .steps .step__num { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
	border-radius: 12px; background: var(--tint); color: var(--blue); font-weight: 800; font-size: 18px; }
.lp .steps .step h3 { margin: 0 0 8px; font-size: 17px; }
.lp .steps .step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Кейсы ───────────────────────────────────────────────────────────────── */

.lp .cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.lp .cases .case {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lp .cases .case:hover {
	border-color: #c7d7f5;
	box-shadow: 0 18px 40px -18px rgba(17, 24, 39, .22);
	transform: translateY(-2px);
}

/* Название занимает всё свободное место: так заказчик внизу стоит на одной
   линии во всех карточках, сколько бы строк ни занял заголовок. */
.lp .cases .case h3 {
	flex: 1;
	margin: 0;
	font-size: 16.5px;
	line-height: 1.4;
	font-weight: 700;

	/* Страховка на будущее: если в словарь попадёт длинное название, карточка
	   не поедет — текст оборвётся на третьей строке. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.lp .case__mark { display: flex; align-items: center; gap: 10px; }

.lp .case__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--tint);
	color: var(--blue);
	flex: none;
}
.lp .case__icon svg { width: 20px; height: 20px; }

.lp .case__tag {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Заказчик — отдельная строка под чертой, иначе читается как часть названия. */
.lp .case__company {
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

/* Цвет иконки по направлению — тот же, что у карточек направлений выше. */
.lp .case--1c  .case__icon { background: #fef3c7; color: #b45309; }
.lp .case--b24 .case__icon { background: #dbeafe; color: #1d4ed8; }
.lp .case--amo .case__icon { background: #e0e7ff; color: #4338ca; }
.lp .case--ai  .case__icon { background: #d1fae5; color: #047857; }

/* ── Услуги: цветная шапка карточки и список возможностей ────────────────── */

.lp .dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.lp .dirs .dir { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--ink);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.lp .dir__head { padding: 20px 22px; color: #fff; }
.lp .dir__head h3 { margin: 0; font-size: 20px; font-weight: 800; }

.lp .dir--bx   .dir__head { background: linear-gradient(135deg, #2ea4dd, #1a72b8); }
.lp .dir--amo  .dir__head { background: linear-gradient(135deg, #3f6fd8, #21407f); }
.lp .dir--onec .dir__head { background: linear-gradient(135deg, #f5d020, #e0aa00); color: #4a3400; }
.lp .dir--ai   .dir__head { background: linear-gradient(135deg, #22c08a, #0f9c6c); }

.lp .dir__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 22px 22px; }
.lp .dir__body p { margin: 0; color: var(--muted); font-size: 15px; opacity: 1; }

.lp .dir__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lp .dir__list li { position: relative; padding: 0 0 0 26px; font-size: 15px; opacity: 1; }
.lp .dir__list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
	display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--blue); font-size: 11px; }

.lp .btn--wide { margin-top: auto; justify-content: center; align-self: stretch; }
.lp .dirs .dir .btn { background: var(--blue); color: #fff; }
.lp .dir--onec .btn { background: #4a3400; }

/* ── Цифры о компании ────────────────────────────────────────────────────── */

.lp .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lp .fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.lp .fact b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.lp .fact span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ── Виджеты ─────────────────────────────────────────────────────────────── */

.lp .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lp .widget {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 16px;
	align-items: start;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lp .widget:hover {
	border-color: #c7d7f5;
	box-shadow: 0 18px 40px -18px rgba(17, 24, 39, .22);
	transform: translateY(-2px);
}

.lp .widget h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.lp .widget p { margin: 0; color: var(--muted); font-size: 15px; }

.lp .widget__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: var(--tint);
	color: var(--blue);
}
.lp .widget__icon svg { width: 21px; height: 21px; }

/* Цвет по смыслу виджета: подпись и оплата — про документы и деньги,
   ИИ — тот же зелёный, что у кейсов, склад — охра, как у 1С. */
.lp .widget--sign  .widget__icon { background: #ede9fe; color: #6d28d9; }
.lp .widget--pay   .widget__icon { background: #d1fae5; color: #047857; }
.lp .widget--ai    .widget__icon { background: #e0e7ff; color: #4338ca; }
.lp .widget--stock .widget__icon { background: #fef3c7; color: #b45309; }

/* ── Партнёры ────────────────────────────────────────────────────────────── */

.lp .partner {
	display: grid;
	grid-template-rows: 72px auto;
	gap: 16px;
	place-items: center;
	padding: 28px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	text-align: center;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lp .partner:hover {
	border-color: #c7d7f5;
	box-shadow: 0 18px 40px -18px rgba(17, 24, 39, .22);
	transform: translateY(-2px);
}

/* Общая полоса под логотип: файлы разной высоты и пропорций, без неё
   подписи разъезжаются по вертикали. */
.lp .partner__logo {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}
.lp .partner__logo img {
	max-width: 156px;
	max-height: 56px;
	object-fit: contain;
}

.lp .partner__caption {
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
}

@media (max-width: 620px) {
	.lp .partner { grid-template-rows: 60px auto; padding: 22px 16px; }
	.lp .partner__logo img { max-height: 46px; }
}

/* ── Вопросы: на <details>, работают без скриптов ────────────────────────── */

.lp .faq { display: grid; gap: 10px; }
.lp .faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2px 22px; }
.lp .faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.lp .faq__item summary::-webkit-details-marker { display: none; }
.lp .faq__item summary::after { content: "⌄"; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .2s; }
.lp .faq__item[open] summary::after { transform: rotate(180deg); }
.lp .faq__answer { padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.lp .faq__answer p { margin: 0; }

/* ── Адаптив ─────────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
	.lp .steps, .lp .cases, .lp .grid-2, .lp .dirs { grid-template-columns: repeat(2, 1fr); }
	/* В два столбца линия соединяла бы не соседние по смыслу шаги. */
	.lp .steps .step::after, .lp .steps .step::before { display: none; }
}

@media (max-width: 640px) {
	.lp .steps, .lp .cases, .lp .grid-2, .lp .dirs, .lp .facts { grid-template-columns: 1fr; }
}

/* ── Страница «О нас» ────────────────────────────────────────────────────── */

.lp .hero--page { padding: 64px 0 56px; }
.lp .hero--page h1 { max-width: 760px; }
.lp .hero__lead--wide { max-width: 720px; }

.lp .skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp .skill { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.lp .skill h3 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }

@media (max-width: 980px) { .lp .skills { grid-template-columns: 1fr; } }
