/* ===== ROOT VARS ===== */
:root {
	--green: #059669;
	--green-dark: #047857;
	--green-deep: #065f46;
	--green-light: #ecfdf5;
	--green-border: rgba(5, 150, 105, 0.2);
	--orange: #f97316;
	--yellow: #facc15;
	--yellow-dark: #eab308;
	--dark: #2d3a4a;
	--text: #1a1a1a;
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--bg: #f8faf9;
	--card: #ffffff;
	--radius: 24px;
	--radius-sm: 12px;
	--shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);
	--shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	margin: 0;
}

/* ===== MAIN WRAP ===== */
.hb-wrap {
	padding: 28px 16px 60px;
	max-width: 1200px;
	margin: 0 auto;
}

/* ===== BREADCRUMB ===== */
.hb-breadcrumb {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 18px;
	font-weight: 500;
}
.hb-breadcrumb a { color: var(--green); text-decoration: none; }

.hb-page-title {
	font-size: 24px;
	font-weight: 900;
	color: var(--text);
	margin: 0 0 24px;
}

/* ===== STEPS BANNER ===== */
.hb-steps-wrap {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 32px 24px;
	margin-bottom: 28px;
	box-shadow: var(--shadow);
}
.hb-steps-title {
	font-size: 22px;
	font-weight: 900;
	color: var(--green);
	text-align: center;
	margin-bottom: 4px;
}
.hb-steps-title span { color: var(--orange); }
.hb-steps-sub {
	font-size: 12px;
	color: var(--text-muted);
	text-align: center;
	margin-bottom: 24px;
}
.hb-steps-row {
	display: flex;
	align-items: flex-start;
	gap: 0;
}
.hb-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}
.hb-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 20px;
	left: calc(50% + 26px);
	right: calc(-50% + 26px);
	height: 2px;
	background: linear-gradient(90deg, var(--green), var(--orange));
	opacity: 0.3;
	z-index: 0;
}
.hb-step-num {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--green-light);
	border: 2px solid var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 900;
	color: var(--green);
}
.hb-step-card {
	background: #f9fafb;
	border: 1px solid var(--border);
	border-radius: 14px;
	width: 100%;
	height: 130px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
	padding: 8px;
	overflow: hidden;
}
.hb-step-card button,
.hb-step-card div {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hb-step-label {
	background: var(--green-deep);
	color: white;
	font-size: 10px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: 0.03em;
}
.hb-step-desc {
	font-size: 10px;
	color: var(--text-muted);
	text-align: center;
	font-weight: 600;
	line-height: 1.4;
}

/* ===== LAYOUT ===== */
.hb-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

/* ===== FORM PANEL ===== */
.hb-form-panel {
	flex: 1;
	background: var(--card);
	border-radius: var(--radius);
	padding: 36px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
}

.hb-section-title {
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--text-muted);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.hb-section-title::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 14px;
	background: var(--green);
	border-radius: 2px;
}

.hb-divider {
	border: none;
	border-top: 1px solid var(--border);
	margin: 28px 0;
}

/* ===== UPLOAD ZONE ===== */
.hb-upload-zone {
	border: 2px dashed #d1d5db;
	background: #f9fafb;
	border-radius: 18px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	padding: 24px;
}
.hb-upload-zone:hover {
	border-color: var(--green);
	background: var(--green-light);
}
.hb-upload-icon-wrap {
	width: 60px;
	height: 60px;
	background: #f3f4f6;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	font-size: 28px;
	margin-bottom: 14px;
}
.hb-upload-btn {
	margin-top: 16px;
	background: var(--dark);
	color: white;
	border: none;
	padding: 10px 28px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
}
.hb-upload-btn:hover { background: #1a2533; }

/* ===== PHOTO PREVIEW ===== */
.hb-photo-preview { margin-top: 14px; }
.hb-photo-main {
	width: 100%;
	height: 260px;
	border-radius: 16px;
	overflow: hidden;
	background: #f0f0f0;
	display: none;
	position: relative;
}
.hb-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.hb-photo-main-count {
	position: absolute;
	top: 10px;
	right: 12px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}
.hb-photo-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 4px;
}
.hb-photo-thumb {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	position: relative;
	transition: border-color 0.2s;
}
.hb-photo-thumb.active { border-color: var(--green); }
.hb-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hb-photo-thumb-del {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 18px;
	height: 18px;
	background: rgba(0,0,0,0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	font-size: 10px;
	font-weight: 900;
}
.hb-photo-thumb-del:hover { background: #ef4444; }
.hb-photo-add-btn {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border-radius: 10px;
	border: 2px dashed var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-muted);
	font-size: 24px;
	transition: all 0.2s;
}
.hb-photo-add-btn:hover { border-color: var(--green); color: var(--green); }

/* ===== INPUT FIELDS ===== */
.hb-field { margin-bottom: 18px; }
.hb-field:last-child { margin-bottom: 0; }
.hb-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 7px;
}
.hb-field label .req { color: #ef4444; margin-left: 2px; }

.hb-input {
	width: 100%;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 13px 16px;
	font-size: 14px;
	font-family: inherit;
	color: var(--text);
	background: #fff;
	outline: none;
	transition: all 0.2s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}
.hb-input:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.08);
}
textarea.hb-input {
	resize: vertical;
	min-height: 110px;
	line-height: 1.6;
}
select.hb-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 40px;
	cursor: pointer;
}

.hb-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ===== CONDITION TOGGLE ===== */
.hb-condition-wrap {
	display: flex;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1.5px solid var(--border);
	width: 220px;
}
.hb-condition-btn {
	flex: 1;
	padding: 11px;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	border: none;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
	color: var(--text-muted);
}
.hb-condition-btn.active {
	background: var(--green-light);
	color: var(--green);
}

/* ===== AUTH HINT ===== */
.hb-auth-hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: var(--green-light);
	border: 1px solid var(--green-border);
	border-left: 3px solid var(--green);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--green-deep);
	line-height: 1.5;
	font-weight: 500;
}
.hb-auth-hint i { color: var(--green); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ===== PUBLISH BUTTON ===== */
.hb-publish-wrap { position: relative; }
.hb-publish-btn {
	width: 100%;
	background: var(--dark);
	color: white;
	border: none;
	padding: 16px 24px;
	border-radius: 18px;
	font-size: 16px;
	font-weight: 900;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
	letter-spacing: 0.01em;
}
.hb-publish-btn:hover {
	background: #1a2533;
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(45,58,74,0.3);
}
.hb-publish-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.hb-badge-urgent {
	position: absolute;
	top: -8px;
	right: -6px;
	background: #ef4444;
	color: white;
	font-size: 10px;
	font-weight: 900;
	padding: 3px 9px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ===== SIDEBAR ===== */
.hb-sidebar {
	width: 300px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.hb-sidebar-card {
	background: var(--card);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
}
.hb-sidebar-title {
	font-size: 16px;
	font-weight: 900;
	color: var(--text);
	margin-bottom: 6px;
}
.hb-sidebar-sub {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-muted);
	margin-bottom: 16px;
}
.hb-tip {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f9fafb;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 13px 14px;
	margin-bottom: 10px;
}
.hb-tip-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.hb-tip-icon.orange { background: #fff7ed; color: var(--orange); }
.hb-tip-icon.green  { background: var(--green-light); color: var(--green); }
.hb-tip-text {
	font-size: 11px;
	font-weight: 700;
	color: #374151;
	line-height: 1.4;
}

/* ===== PHONE MOCK ===== */
.hb-phone-mock {
	background: #1a1a1a;
	border-radius: 22px;
	padding: 8px;
	border: 5px solid #374151;
	box-shadow: 0 20px 40px rgba(0,0,0,0.15);
	height: 320px;
	position: relative;
	overflow: hidden;
	margin-bottom: 14px;
}
.hb-phone-mock img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}
.hb-phone-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
}
.hb-phone-overlay p {
	color: white;
	font-size: 10px;
	font-weight: 800;
	margin: 0 0 10px;
}
.hb-phone-overlay .sub {
	color: rgba(255,255,255,0.6);
	font-size: 8px;
	font-weight: 600;
}
.hb-cabinet-btn {
	width: 100%;
	background: #fff;
	border: 1.5px solid var(--border);
	border-radius: 14px;
	padding: 12px;
	font-size: 11px;
	font-weight: 800;
	color: #374151;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
}
.hb-cabinet-btn:hover {
	background: var(--green-light);
	border-color: var(--green);
	color: var(--green);
}

/* ===== BUSINESS CARD ===== */
.hb-biz-steps { margin: 14px 0; }
.hb-biz-step {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	color: #4b5563;
	margin-bottom: 8px;
}
.hb-biz-num {
	width: 18px;
	height: 18px;
	background: var(--green);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 900;
	flex-shrink: 0;
}
.hb-biz-note {
	font-size: 9px;
	font-weight: 700;
	color: #9ca3af;
	margin-bottom: 14px;
}
.hb-biz-btn {
	width: 100%;
	background: var(--green-deep);
	color: white;
	border: none;
	border-radius: 12px;
	padding: 12px;
	font-size: 11px;
	font-weight: 900;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.2s;
}
.hb-biz-btn:hover { background: #064e3b; }

/* ===== B2B BANNER ===== */
.hb-b2b-banner {
	background: #2b3a4a;
	border-radius: var(--radius);
	padding: 36px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	position: relative;
	overflow: hidden;
}
.hb-b2b-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% 50%, rgba(5,150,105,0.15) 0%, transparent 60%);
}
.hb-b2b-left { position: relative; z-index: 1; }
.hb-b2b-left h3 {
	font-size: 22px;
	font-weight: 900;
	color: white;
	line-height: 1.3;
	margin: 0 0 8px;
}
.hb-b2b-left p {
	font-size: 12px;
	color: rgba(255,255,255,0.45);
	font-weight: 600;
	max-width: 380px;
	margin: 0 0 20px;
}
.hb-b2b-btn {
	background: var(--yellow);
	color: #1a1a1a;
	border: none;
	padding: 11px 24px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s;
}
.hb-b2b-btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.hb-b2b-right {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
}
.hb-b2b-label {
	font-size: 60px;
	font-weight: 900;
	color: rgba(255,255,255,0.05);
	letter-spacing: -2px;
	line-height: 1;
}
.hb-b2b-icon-wrap {
	width: 100px;
	height: 100px;
	background: rgba(255,255,255,0.04);
	border-radius: 20px;
	border: 1px solid rgba(255,255,255,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: rgba(255,255,255,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
	.hb-layout { flex-direction: column; }
	.hb-sidebar { width: 100%; }
	.hb-field-row { grid-template-columns: 1fr; }
	.hb-steps-row { flex-direction: column; gap: 0; }
	.hb-step { flex-direction: row; gap: 14px; align-items: flex-start; padding: 10px 0; }
	.hb-step:not(:last-child)::after {
		left: 18px; top: 46px; bottom: -10px;
		right: auto; width: 2px; height: auto;
	}
	.hb-step-card { display: none; }
	.hb-b2b-banner { flex-direction: column; gap: 20px; padding: 28px; }
	.hb-b2b-right { display: none; }
	.hb-form-panel { padding: 20px; }
}.hb-layout {
  max-width: 900px;
  margin: 0 auto;
}

.hb-form-panel {
  width: 100%;
}

.hb-steps-wrap {
  max-width: 860px;
  margin: 0 auto 32px;
}

.hb-breadcrumb,
.hb-page-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hb-b2b-banner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* Если .hb-wrap имеет фиксированный padding — уберите левый/правый */
.hb-wrap {
  padding: 0 16px;
}
.hb-layout {
  width: 100%;
  max-width: 100%;
}
