/* =========================================================
   Тамплиер Диджитал — страницы услуг.
   Подключается поверх landing.css только на /uslugi/ и её
   дочерних страницах. Токены, кнопки, заголовки секций,
   блок «Как проходит проект» и подвал берутся из landing.css.
   ========================================================= */

/* --------------------------------------------------------
   Первый экран услуги
   -------------------------------------------------------- */
.lv2-shero {
	position: relative;
	padding: clamp(104px, 12vw, 156px) 0 clamp(40px, 5vw, 64px);
}

/* Мягкое свечение за заголовком — вместо третьей WebGL-сцены:
   первый экран услуги должен открываться мгновенно. */
.lv2-shero::before {
	content: "";
	position: absolute;
	top: -14%;
	left: 50%;
	width: min(1100px, 120%);
	height: 620px;
	transform: translateX(-50%);
	background: radial-gradient(50% 50% at 50% 50%, rgba(0, 194, 224, .17), transparent 72%);
	pointer-events: none;
}

.lv2-shero__inner {
	position: relative;
	max-width: 860px;
}

.lv2-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-bottom: 26px;
	color: var(--muted-2);
	font-size: 13px;
}
.lv2-crumbs a {
	color: var(--muted);
	transition: color .3s var(--ease);
}
.lv2-crumbs a:hover { color: var(--teal); }
.lv2-crumbs svg { width: 14px; height: 14px; opacity: .55; }
.lv2-crumbs span { color: var(--muted-2); }

.lv2-shero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 16px 7px 12px;
	margin-bottom: 20px;
	border: 1px solid var(--accent-line);
	border-radius: 999px;
	background: rgba(0, 122, 148, .1);
	color: var(--teal);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.lv2-shero__kicker svg { width: 16px; height: 16px; }

.lv2-shero__title {
	font-size: clamp(32px, 5vw, 60px);
	line-height: 1.06;
	letter-spacing: -.02em;
}

.lv2-shero__lead {
	margin-top: 20px;
	max-width: 700px;
	color: var(--body);
	font-size: clamp(15.5px, 1.5vw, 18.5px);
	line-height: 1.62;
}

.lv2-shero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.lv2-shero .lv2-hero__marks { margin-top: 34px; }

/* --------------------------------------------------------
   Когда пора — три симптома
   -------------------------------------------------------- */
.lv2-when__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.lv2-when__card {
	padding: 30px 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.lv2-when__card:hover {
	border-color: rgba(255, 199, 44, .38);
	transform: translateY(-3px);
}
.lv2-when__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: rgba(255, 199, 44, .14);
	color: var(--amber);
}
.lv2-when__icon svg { width: 23px; height: 23px; }
.lv2-when__card h3 { font-size: 17.5px; line-height: 1.35; }
.lv2-when__card p {
	margin-top: 11px;
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.6;
}

/* --------------------------------------------------------
   Что входит — сетка работ
   -------------------------------------------------------- */
.lv2-inc__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.lv2-inc__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.lv2-inc__card:hover {
	border-color: var(--accent-line);
	transform: translateY(-3px);
}
.lv2-inc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: rgba(0, 194, 224, .13);
	color: var(--teal);
}
.lv2-inc__icon svg { width: 22px; height: 22px; }
.lv2-inc__card h3 { font-size: 16.5px; line-height: 1.35; }
.lv2-inc__card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* --------------------------------------------------------
   Результат — широкие строки
   -------------------------------------------------------- */
.lv2-res__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.lv2-res__row {
	display: flex;
	gap: 18px;
	padding: 26px 26px 26px 24px;
	border: 1px solid var(--line);
	border-left: 2px solid rgba(184, 255, 98, .55);
	border-radius: var(--radius-sm);
	background: var(--surface);
}
.lv2-res__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(184, 255, 98, .13);
	color: var(--lime-bright);
}
.lv2-res__icon svg { width: 21px; height: 21px; }
.lv2-res__row h3 { font-size: 17px; line-height: 1.35; }
.lv2-res__row p {
	margin-top: 8px;
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.6;
}

/* --------------------------------------------------------
   Форматы внедрения
   -------------------------------------------------------- */
.lv2-pack__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: start;
}
.lv2-pack__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px 28px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}
.lv2-pack__card.is-featured {
	border-color: rgba(184, 255, 98, .45);
	background: var(--surface-2);
	box-shadow: var(--shadow);
}
.lv2-pack__badge {
	position: absolute;
	top: -12px;
	left: 28px;
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--lime);
	color: #16323a;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.lv2-pack__name { font-size: 21px; }
.lv2-pack__term {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	padding: 6px 13px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--teal);
	font-size: 13px;
	font-weight: 600;
}
.lv2-pack__term svg { width: 15px; height: 15px; }
.lv2-pack__lead { color: var(--body); font-size: 14.5px; line-height: 1.55; }
.lv2-pack__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 2px;
	margin-bottom: 6px;
}
.lv2-pack__list li {
	display: flex;
	gap: 10px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}
.lv2-pack__list svg {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: var(--lime-bright);
}
.lv2-pack__card .lv2-btn { margin-top: auto; }

/* --------------------------------------------------------
   Другие услуги — перелинковка каталога
   -------------------------------------------------------- */
.lv2-more__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.lv2-more__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 26px 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
a.lv2-more__card:hover {
	border-color: var(--accent-line);
	background: var(--surface-2);
	transform: translateY(-4px);
}
/* Услуга без собственной страницы: карточка та же, но без ссылки. */
.lv2-more__card.is-soon { opacity: .72; }
.lv2-more__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: rgba(0, 194, 224, .13);
	color: var(--teal);
}
.lv2-more__icon svg { width: 22px; height: 22px; }
.lv2-more__title { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.lv2-more__text { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.lv2-more__go {
	display: inline-flex;
	margin-top: 4px;
	color: var(--teal);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lv2-more__go svg { width: 17px; height: 17px; }
a.lv2-more__card:hover .lv2-more__go { opacity: 1; transform: none; }

/* --------------------------------------------------------
   Адаптив
   -------------------------------------------------------- */
@media (max-width: 1100px) {
	.lv2-inc__grid,
	.lv2-more__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.lv2-when__grid,
	.lv2-pack__grid,
	.lv2-res__grid { grid-template-columns: 1fr; }
	.lv2-inc__grid,
	.lv2-more__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.lv2-inc__grid,
	.lv2-more__grid { grid-template-columns: 1fr; }
	.lv2-shero { padding-top: clamp(88px, 22vw, 116px); }
	.lv2-shero__cta .lv2-btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------
   Призыв внутри страницы
   Ставится между блоками: читателю не нужно докручивать
   до конца, чтобы написать нам.
   -------------------------------------------------------- */
.lv2-cta { padding: clamp(10px, 2vw, 22px) 0; }

.lv2-cta__panel {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 26px 30px;
	padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 40px);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--surface-2);
	box-shadow: var(--shadow);
}

.lv2-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 18px;
	background: rgba(0, 194, 224, .14);
	color: var(--teal);
}
.lv2-cta__icon svg { width: 29px; height: 29px; }

.lv2-cta__title { font-size: clamp(21px, 2.4vw, 29px); line-height: 1.2; }
.lv2-cta__text {
	margin-top: 10px;
	max-width: 620px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}
.lv2-cta__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--lime-bright);
	font-size: 13.5px;
	font-weight: 600;
}
.lv2-cta__note svg { width: 16px; height: 16px; }

.lv2-cta__actions { display: flex; flex-direction: column; gap: 10px; }
.lv2-cta__actions .lv2-btn { justify-content: center; white-space: nowrap; }

/* Лаймовый вариант — там, где речь про деньги и расчёт. */
.lv2-cta--lime .lv2-cta__panel { border-color: rgba(184, 255, 98, .4); }
.lv2-cta--lime .lv2-cta__icon { background: rgba(184, 255, 98, .14); color: var(--lime-bright); }

/* minmax(0, …) обязателен: просто 1fr растягивал колонку под неразрывную
   надпись кнопки, и текст с кнопкой уезжали за край карточки. */
@media (max-width: 900px) {
	.lv2-cta__panel { grid-template-columns: auto minmax(0, 1fr); }
	.lv2-cta__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 560px) {
	.lv2-cta__panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.lv2-cta__icon { width: 52px; height: 52px; }
	.lv2-cta__actions { flex-direction: column; }
	/* Длинная надпись на узкой кнопке переносится, а не распирает блок. */
	.lv2-cta__actions .lv2-btn { width: 100%; white-space: normal; text-align: center; }
}

/* Цена формата — там, где она известна заранее. */
.lv2-pack__price {
	margin-top: -4px;
	color: var(--ink);
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -.02em;
}
.lv2-pack__card.is-featured .lv2-pack__price { color: var(--lime-bright); }
