/* SIDEKICK · Услуги по заявке (2.099) */
.sk-svc { margin: 28px 0 8px; }
.sk-svc-head { margin-bottom: 14px; }
.sk-svc-head h3 { margin: 0 0 4px; font-size: 18px; color: #e6edf3; display: flex; align-items: center; gap: 8px; }
.sk-svc-head h3 i { color: #ffd700; }
.sk-svc-head p { margin: 0; color: #8b949e; font-size: 13px; }

.sk-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }

/* Карточка */
.sk-svc-card {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 14px;
	min-height: 260px; padding: 16px; box-sizing: border-box; border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0) 55%), #161b22;
	border: 1px solid rgba(255, 215, 0, 0.18);
	transition: border-color .2s ease, transform .2s ease;
}
.sk-svc-card:hover { border-color: rgba(255, 215, 0, 0.4); transform: translateY(-2px); }
.sk-svc-card.is-open { border-color: rgba(255, 123, 0, 0.6); transform: none; }
.sk-svc-card.is-pending { opacity: .85; }

/* Иконка сверху, текст на всю ширину */
.sk-svc-top { display: flex; flex-direction: column; gap: 12px; }
.sk-svc-ico {
	width: 40px; height: 40px; border-radius: 10px;
	display: grid; place-items: center;
	background: rgba(255, 215, 0, 0.1); color: #ffd700; font-size: 17px;
}
.sk-svc-txt { min-width: 0; }
.sk-svc-txt h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; color: #e6edf3; hyphens: auto; }
.sk-svc-txt p { margin: 0; font-size: 13px; line-height: 1.45; color: #8b949e; }

/* Низ: цена + кнопка на всю ширину */
.sk-svc-foot {
	margin-top: auto; padding-top: 12px;
	display: flex; flex-direction: column; gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sk-svc-price { font-size: 16px; font-weight: 700; color: #ffd700; white-space: nowrap; }

.sk-svc-btn {
	appearance: none; box-sizing: border-box; cursor: pointer;
	padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 123, 0, 0.45);
	font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
	background: rgba(255, 123, 0, 0.12); color: #ff7b00;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sk-svc-btn:hover { background: #ff7b00; color: #0d1117; }
.sk-svc-btn:disabled { opacity: .6; cursor: wait; }
.sk-svc-btn.is-ghost { border-color: rgba(255, 255, 255, 0.12); background: transparent; color: #8b949e; }
.sk-svc-btn.is-ghost:hover { color: #e6edf3; background: rgba(255, 255, 255, 0.06); }
.sk-svc-foot .sk-svc-btn { display: block; width: 100%; }

.sk-svc-state {
	display: block; box-sizing: border-box; width: 100%;
	padding: 7px 14px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, 0.12);
	font-size: 13px; text-align: center; color: #8b949e; white-space: nowrap;
}
.sk-svc-state.is-short { color: #6e7681; }
.sk-svc-state.is-work { color: #3fb950; border-color: rgba(63, 185, 80, 0.35); }

/* Форма заказа открывается поверх карточки — сетка не прыгает */
.sk-svc-form {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; gap: 10px;
	padding: 16px; box-sizing: border-box;
	background: linear-gradient(180deg, rgba(255, 123, 0, 0.07), rgba(255, 123, 0, 0) 60%), #161b22;
	animation: sk-svc-in .18s ease;
}
.sk-svc-form[hidden] { display: none !important; }
.sk-svc-form::before {
	content: 'Опиши, что хочешь';
	font-size: 13px; font-weight: 600; color: #e6edf3;
}
.sk-svc-form textarea {
	flex: 1 1 auto; min-height: 70px; width: 100%; box-sizing: border-box; resize: none;
	padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 13px; line-height: 1.45;
	background: #0d1117; color: #e6edf3; border: 1px solid rgba(255, 255, 255, 0.1);
}
.sk-svc-form textarea:focus { outline: none; border-color: rgba(255, 123, 0, 0.6); }
.sk-svc-actions { display: flex; flex-direction: column-reverse; gap: 8px; }
.sk-svc-actions .sk-svc-btn { width: 100%; }

@keyframes sk-svc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
	.sk-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.sk-svc-grid { grid-template-columns: 1fr; }
	.sk-svc-card { min-height: 0; }
	.sk-svc-card.is-open { min-height: 280px; }
}

/* Кнопки формы: текст не вылезает за пилюлю в узкой карточке */
.sk-svc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
.sk-svc-foot .sk-svc-btn,
.sk-svc-actions .sk-svc-btn { display: flex; width: 100%; }
.sk-svc-actions .sk-svc-btn[type="submit"] {
	white-space: normal; text-wrap: balance;
	padding: 8px 12px; font-size: 12.5px; line-height: 1.25; border-radius: 14px;
}
